diff options
| author | Kriti Dang <kritidang@google.com> | 2021-03-29 13:33:57 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-03-29 13:33:57 +0000 |
| commit | 2b5b144ed094ebfd3ee87667d2b6d86ff486d689 (patch) | |
| tree | 85839ab646a5cfc86edae7616110c8df73804f31 /core/java/android/view/Display.java | |
| parent | f076e6843914aeca3c192811ee2226caeaa20b44 (diff) | |
| parent | 7010f95cb2abb509a6a6e65b865ad5f4c2ac87c0 (diff) | |
Merge "Hdr format settings [Backend]" into sc-dev
Diffstat (limited to 'core/java/android/view/Display.java')
| -rw-r--r-- | core/java/android/view/Display.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/core/java/android/view/Display.java b/core/java/android/view/Display.java index 1e2271abee90..bf152cb6ed22 100644 --- a/core/java/android/view/Display.java +++ b/core/java/android/view/Display.java @@ -1096,6 +1096,22 @@ public final class Display { } /** + * @hide + * Returns the display's HDR supported types. + * + * @see #isHdr() + * @see HdrCapabilities#getSupportedHdrTypes() + */ + @TestApi + @NonNull + public int[] getReportedHdrTypes() { + synchronized (mLock) { + updateDisplayInfoLocked(); + return mDisplayInfo.hdrCapabilities.getSupportedHdrTypes(); + } + } + + /** * Returns whether this display supports any HDR type. * * @see #getHdrCapabilities() |
