Loading graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp +9 −7 Original line number Original line Diff line number Diff line Loading @@ -1865,13 +1865,15 @@ TEST_P(GraphicsMapperHidlTest, GetFromBufferDescriptorInfoChromaSiting) { */ */ TEST_P(GraphicsMapperHidlTest, GetFromBufferDescriptorInfoPlaneLayouts) { TEST_P(GraphicsMapperHidlTest, GetFromBufferDescriptorInfoPlaneLayouts) { hidl_vec<uint8_t> vec; hidl_vec<uint8_t> vec; ASSERT_EQ(Error::NONE, const auto ret = mGralloc->getFromBufferDescriptorInfo( mGralloc->getFromBufferDescriptorInfo(mDummyDescriptorInfo, mDummyDescriptorInfo, gralloc4::MetadataType_PlaneLayouts, &vec); gralloc4::MetadataType_PlaneLayouts, &vec)); if (ret == Error::NONE) { std::vector<PlaneLayout> planeLayouts; std::vector<PlaneLayout> planeLayouts; ASSERT_EQ(NO_ERROR, gralloc4::decodePlaneLayouts(vec, &planeLayouts)); ASSERT_EQ(NO_ERROR, gralloc4::decodePlaneLayouts(vec, &planeLayouts)); ASSERT_NO_FATAL_FAILURE(verifyDummyDescriptorInfoPlaneLayouts(planeLayouts)); ASSERT_NO_FATAL_FAILURE(verifyDummyDescriptorInfoPlaneLayouts(planeLayouts)); } else { ASSERT_EQ(Error::UNSUPPORTED, ret); } } } /** /** Loading Loading
graphics/mapper/4.0/vts/functional/VtsHalGraphicsMapperV4_0TargetTest.cpp +9 −7 Original line number Original line Diff line number Diff line Loading @@ -1865,13 +1865,15 @@ TEST_P(GraphicsMapperHidlTest, GetFromBufferDescriptorInfoChromaSiting) { */ */ TEST_P(GraphicsMapperHidlTest, GetFromBufferDescriptorInfoPlaneLayouts) { TEST_P(GraphicsMapperHidlTest, GetFromBufferDescriptorInfoPlaneLayouts) { hidl_vec<uint8_t> vec; hidl_vec<uint8_t> vec; ASSERT_EQ(Error::NONE, const auto ret = mGralloc->getFromBufferDescriptorInfo( mGralloc->getFromBufferDescriptorInfo(mDummyDescriptorInfo, mDummyDescriptorInfo, gralloc4::MetadataType_PlaneLayouts, &vec); gralloc4::MetadataType_PlaneLayouts, &vec)); if (ret == Error::NONE) { std::vector<PlaneLayout> planeLayouts; std::vector<PlaneLayout> planeLayouts; ASSERT_EQ(NO_ERROR, gralloc4::decodePlaneLayouts(vec, &planeLayouts)); ASSERT_EQ(NO_ERROR, gralloc4::decodePlaneLayouts(vec, &planeLayouts)); ASSERT_NO_FATAL_FAILURE(verifyDummyDescriptorInfoPlaneLayouts(planeLayouts)); ASSERT_NO_FATAL_FAILURE(verifyDummyDescriptorInfoPlaneLayouts(planeLayouts)); } else { ASSERT_EQ(Error::UNSUPPORTED, ret); } } } /** /** Loading