summaryrefslogtreecommitdiff
path: root/graphics/mapper/2.0/vts/functional/VtsHalGraphicsMapperV2_0TargetTest.cpp
AgeCommit message (Collapse)Author
2020-08-31Mark GraphicsMapperHidlTest as allowing not being instantiatedChris Forbes
Only the variant(s) actually implemented by the device will be instantiated. This is consistent with tests for other versioned or optional HALs. Bug: b/167222309 Test: atest VtsHalGraphicsMapperV2_0TargetTest:GoogleTestVerification#UninstantiatedParameterizedTestSuite<GraphicsMapperHidlTest> -- --abi arm64-v8a Change-Id: I4f1bfbad47bdbf75578ec48a3a56fb5351e7729a
2019-12-06Convert VtsHalGraphicsMapperV*TargetTest to be parameterized testDan Shi
Bug: 142397658 Test: atest VtsHalGraphicsMapperV2_0TargetTest \ VtsHalGraphicsMapperV2_1TargetTest \ VtsHalGraphicsMapperV3_0TargetTest Change-Id: I1d4e222f3a04882ae8d74e79201c2751d1d22ea4
2018-08-01graphics: test buffer allocation for thread safetyChia-I Wu
Bug: 111604912 Test: VTS Change-Id: I1b6cacc8d6ff5e1c145425ff6f32001090b07b06
2018-02-02graphics: make mapper VTS utils more reusableChia-I Wu
Better include path (#include <mapper-vts/2.0/MapperVts.h>), better library naming, and move GraphicsMapperHidlEnvironment to where tests are defined. Test: VTS Change-Id: I9fbf6515993ac11852b11ca6b8194a58afe5579a
2018-01-31graphics: move libVtsHalGraphicsMapperTestUtilsChia-I Wu
Move libVtsHalGraphicsMapperTestUtils from 2.0/vts/functional/ to 2.0/utils/vts/. Run clang-format. Test: VTS Change-Id: I1e87129cbdc12167160f7e2f1cd76478e88bbf41
2017-11-13Convert GraphicsMapper Hal test to test against each of the serviceZhuoyao Zhang
names. Bug:64203181 Test: vts-tradefed run vts -m VtsHalGraphicsMapperV2_0Target Change-Id: Icbef0f0575183033c069d8ec097ab774207c40de
2017-04-25graphics: clarify importBuffer and passthrough HALsChia-I Wu
A buffer handle recieved from a HAL is by definition raw and needs to be imported. But because of passthrough HALs, such a raw handle may have been imported already. Explicitly specify that an implementation must accept such a raw handle. Bug: 37540361 Test: boots on angler, ryu and marlin Change-Id: I5ecf526e59b27cc4a8f7f5d5ec27477da0946ece
2017-04-10graphics: revise gralloc interfacesChia-I Wu
Revise IAllocator and IMapper to reduce IPC and to support gralloc0 devices. Specifically, IAllocator is trimmed down to have essentially only allocate(BufferDescriptor descriptor, uint32_t count) generates (Error error, uint32_t stride, vec<handle> buffers); The ability to allocate buffers with shared backing store is removed. ProducerUsage and ConsumerUsage are moved to the graphics.common package and are merged and renamed to BufferUsage. BufferUsage's bits follow gralloc0. IMapper gains typedef vec<uint32_t> BufferDescriptor; createDescriptor(BufferDescriptorInfo descriptorInfo) generates (Error error, BufferDescriptor descriptor); where BufferDescriptor is an implementation-defined blob. lockFlex is replaced by lockYCbCr. All getters are removed. Reference counting with retain/release is replaced by importBuffer/freeBuffer. Most if not all gralloc1 features are not used by the runtime yet. There is also not too much test written for them. As such, they tend to behave differently between implementations and cannot be used reliably. Bug: 36481301 Test: builds and boots on Pixel Change-Id: I1d31105120517ea2c128c7a19297acf3bfd312bb
2017-03-10Change vts target base test class nameYuexi Ma
Test: make vts succeed, vts kernel tests and nfc hal tests passed Change-Id: I95f10ad7a66f261c9030357edd411fe6d94150e8
2017-03-07graphics: add a basic test for IMapper::lockFlexChia-I Wu
Bug: 32023011 Test: manual Change-Id: Iae143d11056f6ab169d1068fdaa62e889051b16e
2017-03-07graphics: clean up mapper VTS testsChia-I Wu
Add libVtsHalGraphicsMapperUtils which provides a wrapper to IMapper. Port tests to be based on libVtsHalGraphicsMapperUtils. Test: manual Change-Id: I0639df178fd0a94153b48733930bb13f2d0aa930
2017-02-28change all vts hidl tests to use VtsHalHidlTargetBaseTest (internal master)Yuexi Ma
Bug: 33385836 Test: mma Change-Id: Ide3ebc4a9db76257f33bcfb0c1f13d2ee33eeaa8
2017-02-23gralloc HAL uses "default" service nameChris Phoenix
The getService() and registerAsService() methods of interface objects now have default parameters of "default" for the service name. HALs will not have to use any service name unless they want to register more than one service. Test: builds Bug: 33844934 Change-Id: Ic3859ccf21e7ee5177f47cb06e3e0c93dd572bf6
2017-02-21Update the test binary and source file name on master.Zhuoyao Zhang
* To confirm with Vts naming convention. Bug: 35273456 Test: mma Change-Id: I845da64085253cd02480465479618308045a52ed