From 695ef7acfec615967aaa9663d8049d67b6a767e8 Mon Sep 17 00:00:00 2001 From: Jooyung Han Date: Tue, 27 Apr 2021 11:02:09 +0900 Subject: [PATCH] aidl: Set explicit defaults to enum-type fields Fixes: 179853398 Test: mma in hardware/interfaces/graphics Change-Id: I6f93bca4ba3c8d538765fc9a811b9050c6142cc3 --- .../hardware/graphics/common/HardwareBufferDescription.aidl | 4 ++-- .../hardware/graphics/common/HardwareBufferDescription.aidl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/HardwareBufferDescription.aidl b/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/HardwareBufferDescription.aidl index 8b1216948b..232e0231f1 100644 --- a/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/HardwareBufferDescription.aidl +++ b/graphics/common/aidl/aidl_api/android.hardware.graphics.common/current/android/hardware/graphics/common/HardwareBufferDescription.aidl @@ -21,7 +21,7 @@ parcelable HardwareBufferDescription { int width; int height; int layers; - android.hardware.graphics.common.PixelFormat format; - android.hardware.graphics.common.BufferUsage usage; + android.hardware.graphics.common.PixelFormat format = android.hardware.graphics.common.PixelFormat.UNSPECIFIED; + android.hardware.graphics.common.BufferUsage usage = android.hardware.graphics.common.BufferUsage.CPU_READ_NEVER; int stride; } diff --git a/graphics/common/aidl/android/hardware/graphics/common/HardwareBufferDescription.aidl b/graphics/common/aidl/android/hardware/graphics/common/HardwareBufferDescription.aidl index e1e3492376..078c5126fa 100644 --- a/graphics/common/aidl/android/hardware/graphics/common/HardwareBufferDescription.aidl +++ b/graphics/common/aidl/android/hardware/graphics/common/HardwareBufferDescription.aidl @@ -29,7 +29,7 @@ parcelable HardwareBufferDescription { int width; int height; int layers; - PixelFormat format; - BufferUsage usage; + PixelFormat format = PixelFormat.UNSPECIFIED; + BufferUsage usage = BufferUsage.CPU_READ_NEVER; int stride; }