Loading graphics/mapper/4.0/utils/vts/MapperVts.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -303,6 +303,14 @@ bool Gralloc::isSupported(const IMapper::BufferDescriptorInfo& descriptorInfo) { return supported; } bool Gralloc::isSupportedNoFailure(const IMapper::BufferDescriptorInfo& descriptorInfo) { bool supported = false; mMapper->isSupported(descriptorInfo, [&](const auto& tmpError, const auto& tmpSupported) { supported = tmpSupported && tmpError == Error::NONE; }); return supported; } Error Gralloc::get(const native_handle_t* bufferHandle, const IMapper::MetadataType& metadataType, hidl_vec<uint8_t>* outVec) { Error err; Loading graphics/mapper/4.0/utils/vts/include/mapper-vts/4.0/MapperVts.h +4 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,10 @@ class Gralloc { bool isSupported(const IMapper::BufferDescriptorInfo& descriptorInfo); // A version of isSupported that simply treats failure as no support, so it // does not fail the test. bool isSupportedNoFailure(const IMapper::BufferDescriptorInfo& descriptorInfo); Error get(const native_handle_t* bufferHandle, const IMapper::MetadataType& metadataType, hidl_vec<uint8_t>* outVec); Loading graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -1220,7 +1220,7 @@ TEST_P(GraphicsMapperHidlTest, IsSupportedR8) { aidl::android::hardware::graphics::common::PixelFormat::R_8); bool supported = false; ASSERT_NO_FATAL_FAILURE(supported = mGralloc->isSupported(info)); supported = mGralloc->isSupportedNoFailure(info); if (!supported) { GTEST_SUCCEED() << "R_8 is optional; unsupported so skipping allocation test"; Loading Loading
graphics/mapper/4.0/utils/vts/MapperVts.cpp +8 −0 Original line number Diff line number Diff line Loading @@ -303,6 +303,14 @@ bool Gralloc::isSupported(const IMapper::BufferDescriptorInfo& descriptorInfo) { return supported; } bool Gralloc::isSupportedNoFailure(const IMapper::BufferDescriptorInfo& descriptorInfo) { bool supported = false; mMapper->isSupported(descriptorInfo, [&](const auto& tmpError, const auto& tmpSupported) { supported = tmpSupported && tmpError == Error::NONE; }); return supported; } Error Gralloc::get(const native_handle_t* bufferHandle, const IMapper::MetadataType& metadataType, hidl_vec<uint8_t>* outVec) { Error err; Loading
graphics/mapper/4.0/utils/vts/include/mapper-vts/4.0/MapperVts.h +4 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,10 @@ class Gralloc { bool isSupported(const IMapper::BufferDescriptorInfo& descriptorInfo); // A version of isSupported that simply treats failure as no support, so it // does not fail the test. bool isSupportedNoFailure(const IMapper::BufferDescriptorInfo& descriptorInfo); Error get(const native_handle_t* bufferHandle, const IMapper::MetadataType& metadataType, hidl_vec<uint8_t>* outVec); Loading
graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -1220,7 +1220,7 @@ TEST_P(GraphicsMapperHidlTest, IsSupportedR8) { aidl::android::hardware::graphics::common::PixelFormat::R_8); bool supported = false; ASSERT_NO_FATAL_FAILURE(supported = mGralloc->isSupported(info)); supported = mGralloc->isSupportedNoFailure(info); if (!supported) { GTEST_SUCCEED() << "R_8 is optional; unsupported so skipping allocation test"; Loading