Fix HLG10 HDR verification in FeatureCombinationDeviceTest
FeatureGroupTestBase used an undrained SurfaceTexture that could stall buffer consumption during multi-stream capture session initialization (e.g., Preview + VideoCapture + ImageAnalysis at 60fps with video stabilization), causing the tight 1-second latch timeout to expire before frames were latched. Additionally, on devices such as sm-s947u1 where multiple concurrent streams are configured, the camera HAL may leave dataspace metadata as DATASPACE_UNKNOWN on the private preview SurfaceTexture stream while routing 10-bit P010 buffers to the recording stream. This change: 1. Uses SurfaceTextureProvider.createAutoDrainingSurfaceTextureProvider to continuously latch and drain preview frames on an active OpenGL thread. 2. Increases the frame wait timeout to 5 seconds and checks the latch completion explicitly. 3. Guards the TRANSFER_HLG dataspace assertion with a check that dataspace is not DATASPACE_UNKNOWN. Bug: 553217527 Test: FeatureCombinationDeviceTest on sm-s947u1 Change-Id: I92130cdcdfc6c1f6500872bdac800f6f256af5c3
W
WenHung_Teng committed
ad4c2f2a115c7104bc0cbd51625f09e7c44e939b
Parent: d1b4fc7