aidl: Set explicit defaults to enum-type fields

Fixes: 179853398
Test: mma in hardware/interfaces/graphics
Change-Id: I6f93bca4ba3c8d538765fc9a811b9050c6142cc3
This commit is contained in:
Jooyung Han
2021-04-27 11:02:09 +09:00
parent 2fff170562
commit 695ef7acfe
2 changed files with 4 additions and 4 deletions

View File

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

View File

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