mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
camera-vts: don't import gralloc buffer after allocating
Before moving to GraphicBufferAllocator, the test just allocated the buffer. GraphicBufferAllocator allocates and imports the buffer. Update the test to only allocate the buffer. Bug: 145941038 Test: VtsHalCameraProviderV2_4TargetTest Change-Id: Ib3801d06265836eec2875f13ae6f2ec070d7d353
This commit is contained in:
committed by
Marissa Ikonomidis
parent
8f2708c3f7
commit
3b6cfe061e
@@ -6309,7 +6309,7 @@ void CameraHidlTest::allocateGraphicBuffer(uint32_t width, uint32_t height, uint
|
||||
buffer_handle_t buffer;
|
||||
uint32_t stride;
|
||||
|
||||
android::status_t err = android::GraphicBufferAllocator::get().allocate(
|
||||
android::status_t err = android::GraphicBufferAllocator::get().allocateRawHandle(
|
||||
width, height, static_cast<int32_t>(format), 1u /*layerCount*/, usage, &buffer, &stride,
|
||||
"VtsHalCameraProviderV2_4");
|
||||
ASSERT_EQ(err, android::NO_ERROR);
|
||||
|
||||
Reference in New Issue
Block a user