Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -45940,6 +45940,7 @@ package android.view { public final class Display { method public long getAppVsyncOffsetNanos(); method public android.view.DisplayCutout getCutout(); method public void getCurrentSizeRange(android.graphics.Point, android.graphics.Point); method public int getDisplayId(); method public int getFlags(); core/java/android/view/Display.java +15 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package android.view; import static android.Manifest.permission.CONFIGURE_DISPLAY_COLOR_MODE; import android.annotation.IntDef; import android.annotation.Nullable; import android.annotation.RequiresPermission; import android.app.KeyguardManager; import android.content.res.CompatibilityInfo; Loading Loading @@ -753,6 +754,20 @@ public final class Display { return getRotation(); } /** * Returns the {@link DisplayCutout}, or {@code null} if there is none. * * @see DisplayCutout */ @Nullable public DisplayCutout getCutout() { synchronized (this) { updateDisplayInfoLocked(); return mDisplayInfo.displayCutout; } } /** * Gets the pixel format of the display. * @return One of the constants defined in {@link android.graphics.PixelFormat}. Loading core/java/android/view/DisplayInfo.java +2 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import static android.view.DisplayInfoProto.LOGICAL_HEIGHT; import static android.view.DisplayInfoProto.LOGICAL_WIDTH; import static android.view.DisplayInfoProto.NAME; import android.annotation.Nullable; import android.content.res.CompatibilityInfo; import android.content.res.Configuration; import android.graphics.Rect; Loading Loading @@ -153,6 +154,7 @@ public final class DisplayInfo implements Parcelable { * * @hide */ @Nullable public DisplayCutout displayCutout; /** Loading Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -45940,6 +45940,7 @@ package android.view { public final class Display { method public long getAppVsyncOffsetNanos(); method public android.view.DisplayCutout getCutout(); method public void getCurrentSizeRange(android.graphics.Point, android.graphics.Point); method public int getDisplayId(); method public int getFlags();
core/java/android/view/Display.java +15 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package android.view; import static android.Manifest.permission.CONFIGURE_DISPLAY_COLOR_MODE; import android.annotation.IntDef; import android.annotation.Nullable; import android.annotation.RequiresPermission; import android.app.KeyguardManager; import android.content.res.CompatibilityInfo; Loading Loading @@ -753,6 +754,20 @@ public final class Display { return getRotation(); } /** * Returns the {@link DisplayCutout}, or {@code null} if there is none. * * @see DisplayCutout */ @Nullable public DisplayCutout getCutout() { synchronized (this) { updateDisplayInfoLocked(); return mDisplayInfo.displayCutout; } } /** * Gets the pixel format of the display. * @return One of the constants defined in {@link android.graphics.PixelFormat}. Loading
core/java/android/view/DisplayInfo.java +2 −0 Original line number Diff line number Diff line Loading @@ -22,6 +22,7 @@ import static android.view.DisplayInfoProto.LOGICAL_HEIGHT; import static android.view.DisplayInfoProto.LOGICAL_WIDTH; import static android.view.DisplayInfoProto.NAME; import android.annotation.Nullable; import android.content.res.CompatibilityInfo; import android.content.res.Configuration; import android.graphics.Rect; Loading Loading @@ -153,6 +154,7 @@ public final class DisplayInfo implements Parcelable { * * @hide */ @Nullable public DisplayCutout displayCutout; /** Loading