diff options
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() |
