Loading core/api/test-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -1142,6 +1142,7 @@ package android.hardware.display { public final class DisplayManager { method public boolean areUserDisabledHdrTypesAllowed(); method @RequiresPermission(android.Manifest.permission.MODIFY_REFRESH_RATE_SWITCHING_TYPE) public int getRefreshRateSwitchingType(); method @NonNull public int[] getUserDisabledHdrTypes(); method public boolean isMinimalPostProcessingRequested(int); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setAreUserDisabledHdrTypesAllowed(boolean); method @RequiresPermission(android.Manifest.permission.MODIFY_REFRESH_RATE_SWITCHING_TYPE) public void setRefreshRateSwitchingType(int); Loading Loading @@ -2597,6 +2598,7 @@ package android.view { } public final class Display { method @NonNull public int[] getReportedHdrTypes(); method @NonNull public android.graphics.ColorSpace[] getSupportedWideColorGamut(); method public int getType(); method public boolean hasAccess(int); Loading core/java/android/hardware/display/DisplayManager.java +11 −0 Original line number Diff line number Diff line Loading @@ -748,6 +748,17 @@ public final class DisplayManager { return mGlobal.areUserDisabledHdrTypesAllowed(); } /** * Returns the HDR formats disabled by the user. * * @hide */ @TestApi public @NonNull int[] getUserDisabledHdrTypes() { return mGlobal.getUserDisabledHdrTypes(); } /** * Creates a virtual display. * Loading core/java/android/hardware/display/DisplayManagerGlobal.java +12 −0 Original line number Diff line number Diff line Loading @@ -551,6 +551,18 @@ public final class DisplayManagerGlobal { } } /** * Returns the HDR formats disabled by the user. * */ public int[] getUserDisabledHdrTypes() { try { return mDm.getUserDisabledHdrTypes(); } catch (RemoteException ex) { throw ex.rethrowFromSystemServer(); } } public void requestColorMode(int displayId, int colorMode) { try { mDm.requestColorMode(displayId, colorMode); Loading core/java/android/hardware/display/IDisplayManager.aidl +3 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,9 @@ interface IDisplayManager { // No permissions required. boolean areUserDisabledHdrTypesAllowed(); // No permissions required. int[] getUserDisabledHdrTypes(); // Requires CONFIGURE_DISPLAY_COLOR_MODE void requestColorMode(int displayId, int colorMode); Loading core/java/android/view/Display.java +16 −0 Original line number Diff line number Diff line Loading @@ -1095,6 +1095,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. * Loading Loading
core/api/test-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -1142,6 +1142,7 @@ package android.hardware.display { public final class DisplayManager { method public boolean areUserDisabledHdrTypesAllowed(); method @RequiresPermission(android.Manifest.permission.MODIFY_REFRESH_RATE_SWITCHING_TYPE) public int getRefreshRateSwitchingType(); method @NonNull public int[] getUserDisabledHdrTypes(); method public boolean isMinimalPostProcessingRequested(int); method @RequiresPermission(android.Manifest.permission.WRITE_SECURE_SETTINGS) public void setAreUserDisabledHdrTypesAllowed(boolean); method @RequiresPermission(android.Manifest.permission.MODIFY_REFRESH_RATE_SWITCHING_TYPE) public void setRefreshRateSwitchingType(int); Loading Loading @@ -2597,6 +2598,7 @@ package android.view { } public final class Display { method @NonNull public int[] getReportedHdrTypes(); method @NonNull public android.graphics.ColorSpace[] getSupportedWideColorGamut(); method public int getType(); method public boolean hasAccess(int); Loading
core/java/android/hardware/display/DisplayManager.java +11 −0 Original line number Diff line number Diff line Loading @@ -748,6 +748,17 @@ public final class DisplayManager { return mGlobal.areUserDisabledHdrTypesAllowed(); } /** * Returns the HDR formats disabled by the user. * * @hide */ @TestApi public @NonNull int[] getUserDisabledHdrTypes() { return mGlobal.getUserDisabledHdrTypes(); } /** * Creates a virtual display. * Loading
core/java/android/hardware/display/DisplayManagerGlobal.java +12 −0 Original line number Diff line number Diff line Loading @@ -551,6 +551,18 @@ public final class DisplayManagerGlobal { } } /** * Returns the HDR formats disabled by the user. * */ public int[] getUserDisabledHdrTypes() { try { return mDm.getUserDisabledHdrTypes(); } catch (RemoteException ex) { throw ex.rethrowFromSystemServer(); } } public void requestColorMode(int displayId, int colorMode) { try { mDm.requestColorMode(displayId, colorMode); Loading
core/java/android/hardware/display/IDisplayManager.aidl +3 −0 Original line number Diff line number Diff line Loading @@ -77,6 +77,9 @@ interface IDisplayManager { // No permissions required. boolean areUserDisabledHdrTypesAllowed(); // No permissions required. int[] getUserDisabledHdrTypes(); // Requires CONFIGURE_DISPLAY_COLOR_MODE void requestColorMode(int displayId, int colorMode); Loading
core/java/android/view/Display.java +16 −0 Original line number Diff line number Diff line Loading @@ -1095,6 +1095,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. * Loading