diff options
| author | Jeff Sharkey <jsharkey@android.com> | 2017-12-13 20:05:05 -0700 |
|---|---|---|
| committer | Jeff Sharkey <jsharkey@android.com> | 2017-12-13 20:05:36 -0700 |
| commit | ce8db9911494225fcd99711d7df85a130de5a6ce (patch) | |
| tree | f967d6665fbe29cbcc7310493b254bb7610ec92c /core/java/android/hardware/HardwareBuffer.java | |
| parent | ff38f236b55b51a9f8e03b909f4791ccca329c48 (diff) | |
Add more IntDef prefixes for auto-documenting.
Test: builds, boots
Bug: 70177949
Exempt-From-Owner-Approval: annotation-only changes
Change-Id: I76dde6054e06f52240bd4b1a0f196dcb74623608
Diffstat (limited to 'core/java/android/hardware/HardwareBuffer.java')
| -rw-r--r-- | core/java/android/hardware/HardwareBuffer.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/core/java/android/hardware/HardwareBuffer.java b/core/java/android/hardware/HardwareBuffer.java index b111ad30f27d..7866b52cc68c 100644 --- a/core/java/android/hardware/HardwareBuffer.java +++ b/core/java/android/hardware/HardwareBuffer.java @@ -42,7 +42,15 @@ import libcore.util.NativeAllocationRegistry; public final class HardwareBuffer implements Parcelable, AutoCloseable { /** @hide */ @Retention(RetentionPolicy.SOURCE) - @IntDef({RGBA_8888, RGBA_FP16, RGBA_1010102, RGBX_8888, RGB_888, RGB_565, BLOB}) + @IntDef(prefix = { "RGB", "BLOB" }, value = { + RGBA_8888, + RGBA_FP16, + RGBA_1010102, + RGBX_8888, + RGB_888, + RGB_565, + BLOB + }) public @interface Format { } |
