[VTS10R3]VtsHalGraphicsMapperV2_1Target

问题描述

VtsHalGraphicsMapperV2_1Target
VtsHalGraphicsMapperV2_1Target#GraphicsMapperHidlTest.ValidateBufferSizeBasic(default,default)_32bit
VtsHalGraphicsMapperV2_1Target#GraphicsMapperHidlTest.ValidateBufferSizeBadBuffer(default,default)_32bit
VtsHalGraphicsMapperV2_1Target#GraphicsMapperHidlTest.ValidateBufferSizeBadValue(default,default)_32bit
VtsHalGraphicsMapperV2_1Target#GraphicsMapperHidlTest.GetTransportSizeBasic(default,default)_32bit
VtsHalGraphicsMapperV2_1Target#GraphicsMapperHidlTest.GetTransportSizeBadBuffer(default,default)_32bit
VtsHalGraphicsMapperV2_1Target#GraphicsMapperHidlTest.CreateDescriptor_2_1Basic(default,default)_32bit
VtsHalGraphicsMapperV2_1Target#GraphicsMapperHidlTest.CreateDescriptor_2_1Negative(default,default)_32bit
VtsHalGraphicsMapperV2_1Target#GraphicsMapperHidlTest.ValidateBufferSizeBadValue(default,default)_64bit
Fail1:
hardware/interfaces/graphics/mapper/2.1/vts/functional/VtsHalGraphicsMapperV2_1TargetTest.cpp:132
Expected equality of these values:
  Error::BAD_VALUE
    Which is: 4-byte object <03-00 00-00>
  ret
    Which is: 4-byte object <FF-FF FF-FF>
validateBufferSize with bad width did not fail with BAD_VALUE

Fail2:
hardware/interfaces/graphics/mapper/2.1/utils/vts/MapperVts.cpp:64
Expected: (nullptr) != (mMapperV2_1.get()), actual: (nullptr) vs NULL
failed to get mapper 2.1 service
hardware/interfaces/graphics/mapper/2.1/vts/functional/VtsHalGraphicsMapperV2_1TargetTest.cpp:58
Expected: mGralloc = std::make_unique<Gralloc>( GraphicsMapperHidlEnvironment::Instance()->getServiceName<IAllocator>(), GraphicsMapperHidlEnvironment::Instance()->getServiceName<IMapper>()) doesn't generate new fatal failures in the current thread.
  Actual: it does.
Fail3:
VtsTrebleVendorVintfTest#DeviceManifest/SingleManifestTest.HalsAreBinderized/0_32bit Fail:
VtsTrebleVendorVintfTest#DeviceManifest/SingleManifestTest.HalsAreServed/0_32bit Fail:test/vts-testcase/hal/treble/vintf/SingleManifestTest.cpp:240
Value of: passthrough_not_allowed.empty() Actual: false Expected: true The following HALs can't be passthrough under Treble rules: [android.hardware.graphics.mapper@2.1::IMapper/default].test/vts-testcase/hal/treble/vintf/SingleManifestTest.cpp:283
Value of: canCastInterface(hal_service.get(), fq_name.string().c_str()) Actual: false Expected: true android.hardware.graphics.mapper@2.1::IMapper is not on the device.

解决方案

1. DDK 的部分:
在 gralloc 模塊新增兩個 function, 以處理 VTS 測試所需的檢查:
gralloc_validate_buffer_size (..) 以及 gralloc_get_transport_size(..)2. AOSP 的部分:
增加對返回値的判斷:
Platform/hardware/ graphics/mapper/2.1/utils/passthrough/include/mapper-passthrough/2.1/Gralloc0Hal.h

重新申请 patch:ALPS04841867,ALPS05052139

作者: RESSRC

个人资源站

发表评论

邮箱地址不会被公开。 必填项已用*标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据