Fix constant

Why isn't this a compile failure??

Bug: 193558894
Test: WIP HardwareBuffer CTS test
Change-Id: Ib803816e70259f7c52fa4d4c06dffdb49df43e23
This commit is contained in:
John Reck
2022-01-25 17:30:49 -05:00
parent 4237251574
commit 34e8f90af2
2 changed files with 2 additions and 2 deletions

View File

@@ -18053,7 +18053,7 @@ package android.hardware {
field public static final long USAGE_CPU_READ_RARELY = 2L; // 0x2L
field public static final long USAGE_CPU_WRITE_OFTEN = 48L; // 0x30L
field public static final long USAGE_CPU_WRITE_RARELY = 32L; // 0x20L
field public static final long USAGE_FRONT_BUFFER = 1L; // 0x1L
field public static final long USAGE_FRONT_BUFFER = 4294967296L; // 0x100000000L
field public static final long USAGE_GPU_COLOR_OUTPUT = 512L; // 0x200L
field public static final long USAGE_GPU_CUBE_MAP = 33554432L; // 0x2000000L
field public static final long USAGE_GPU_DATA_BUFFER = 16777216L; // 0x1000000L

View File

@@ -156,7 +156,7 @@ public final class HardwareBuffer implements Parcelable, AutoCloseable {
* used as USAGE_GPU_COLOR_OUTPUT the buffer will behave similar to a single-buffered window.
* When used with USAGE_COMPOSER_OVERLAY, the system will try to prioritize the buffer
* receiving an overlay plane & avoid caching it in intermediate composition buffers. */
public static final long USAGE_FRONT_BUFFER = 1 << 32;
public static final long USAGE_FRONT_BUFFER = 1L << 32;
/**
* Creates a new <code>HardwareBuffer</code> instance.