summaryrefslogtreecommitdiff
path: root/sensors/common/vts/utils/GrallocWrapper.cpp
AgeCommit message (Collapse)Author
2022-06-10Support AIDL IAllocator for direct channel testsBrian Duddie
Bug: 234673324 Test: atest VtsHalSensorsV2_1TargetTest -> DirectChannelGralloc pass on device using AIDL IAllocator Change-Id: I169d3bc863f7e588f42e408f151064066b9960cc
2020-06-04Add support for IAllocator/IMapper v4.0 in sensors VTSBrian Duddie
Also, pull in the static libs associated with the graphics HALs to VtsHalSensorsTargetTestUtils so that the VTS binaries that depend on it don't need to all pull them in themselves. Fixes: 158018963 Test: VtsHalSensorsV2_0TargetTest on a device supporting the v4.0 HALs Change-Id: Idc47ffb8cacd1ac84d45b979cd45fe630b6808f6
2019-11-12hardware: interfaces: sensors: fix -Wreorder-init-listNick Desaulniers
C++20 is stricter about member ordering in designated initializers than C99. Bug: 139945549 Test: mm Change-Id: I22179dfb829c328462c9b31caf543692d3cf57d9 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-11-04[hardware][interfaces][sensors] fix -Wreorder-init-list againNick Desaulniers
C++20 will require members in a designated initializer to be in order unlike C99. This snuck in because I haven't upgraded the platform toolchain yet. Bug: 139945549 Test: mm Change-Id: Ica2844a213467e41d9b6a8955f1750692da8b444 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-10-17[hardware][interfaces][sensors] fix -Wreorder-init-listNick Desaulniers
C++20 will require members in a designated initializer to be in order unlike C99. Bug: 139945549 Test: mm Change-Id: I78d64ea2b7df3f2bd3b8503aa553a0523b20d711 Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
2019-08-02Add support for new gralloc HAL versionsBrian Duddie
As VTS connects to the IMapper and IAllocator HALs directly, it needs to handle the case where the device only supports the newer HAL versions, which includes IMapper 2.1 & 3.0 and IAllocator 3.0. Since sensors VTS uses the same functionality from the different HAL versions, condense the code into a common interface with HAL version-specific template instantiation. Also remove the unused code that came along with copying from the gralloc VTS reference source. Bug: 138758242 Test: run gralloc-related sensors VTS on Pixel 2+ Change-Id: I1646d8f92546623594af8541bc8ac02955370694
2019-06-20Fix NPD in GrallocWrapperBrian Duddie
Avoid dereferencing null if mapper service is not available. Bug: 135638664 Test: run VtsHalSensorsV2_0TargetTest Change-Id: I3cf2a9f152d8f1737cb5a94356e252d54156c716
2019-06-20Fix log tag for sensors VTS testsBrian Duddie
Define log tag at build level to ensure all libraries have a tag defined. Bug: 135638664 Test: run VtsHalSensorsV2_0TargetTest Change-Id: I593055b59238e9fa8dead00a3dafa84c00e90ec4
2018-10-05Move GrallocWrapper to common directoryBrian Stack
Moves GrallocWrapper to a common directory so that it is able to be used by different versions of Sensors HAL VTS testing. Bug: 111070257 Test: Builds Change-Id: I3b110a8b45a870d762c9ed09063115afa31e6ce3