From 3b6cfe061e80a23a0f827afdf8a3fa2f8e65f92d Mon Sep 17 00:00:00 2001 From: Marissa Wall Date: Wed, 11 Dec 2019 12:45:20 -0800 Subject: [PATCH] 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 --- .../2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp index 9416a5430e..dd4cdca70a 100644 --- a/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp +++ b/camera/provider/2.4/vts/functional/VtsHalCameraProviderV2_4TargetTest.cpp @@ -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(format), 1u /*layerCount*/, usage, &buffer, &stride, "VtsHalCameraProviderV2_4"); ASSERT_EQ(err, android::NO_ERROR);