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:
Marissa Wall
2019-12-11 12:45:20 -08:00
committed by Marissa Ikonomidis
parent 8f2708c3f7
commit 3b6cfe061e

View File

@@ -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);