/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
H A D | WmDisplayCutoutTest.java | 59 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutTop() 67 assertEquals(new Rect(20, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutLeft() 75 assertEquals(new Rect(0, 0, 0, 20), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutBottom() 83 assertEquals(new Rect(0, 0, 20, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutRight() 91 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_topLeftCornerCutout_portrait() 99 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_topRightCornerCutout_portrait() 107 assertEquals(new Rect(0, 0, 0, 20), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_bottomLeftCornerCutout_portrait() 115 assertEquals(new Rect(0, 0, 0, 20), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_bottomRightCornerCutout_portrait() 123 assertEquals(new Rect(20, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_topLeftCornerCutout_landscape() 131 assertEquals(new Rect(0, 0, 20, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_topRightCornerCutout_landscape() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | DisplayCutoutTest.java | 166 assertEquals(new Rect(5, 6, 7, 8), mCutoutNumbers.getSafeInsets()); in testGetSafeInsets() 413 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 20, 0, 0))); in fromSpec_setsSafeInsets_top() 420 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 20, 0, 10))); in fromSpec_setsSafeInsets_top_and_bottom() 430 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 30, 0, 30))); in fromSpec_setsSafeInsets_waterfallTopBottom() 436 assertThat(cutout.getSafeInsets(), equalTo(new Rect(30, 0, 30, 0))); in fromSpec_setsSafeInsets_waterfallLeftRight() 442 assertThat(cutout.getSafeInsets(), equalTo(new Rect(30, 30, 30, 30))); in fromSpec_setsSafeInsets_waterfall_allEdges() 449 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 30, 0, 30))); in fromSpec_setsSafeInsets_cutoutTopBottom_waterfallTopBottom() 456 assertThat(cutout.getSafeInsets(), equalTo(new Rect(30, 20, 30, 20))); in fromSpec_setsSafeInsets_cutoutTopBottom_waterfallLeftRight()
|
/aosp14/frameworks/base/core/java/com/android/internal/policy/ |
H A D | SystemBarUtils.java | 62 Insets insets = cutout == null ? Insets.NONE : Insets.of(cutout.getSafeInsets()); in getStatusBarHeightForRotation()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/hidedisplaycutout/ |
H A D | HideDisplayCutoutOrganizer.java | 207 Insets insets = cutout != null ? Insets.of(cutout.getSafeInsets()) : Insets.NONE; in getDisplayCutoutInsetsOfNaturalOrientation()
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | DisplayCutout.java | 644 public Rect getSafeInsets() { in getSafeInsets() method in DisplayCutout 1369 final Rect safeInsets = mInner.getSafeInsets(); in scale()
|
H A D | WindowInsets.java | 1358 final Insets safeInsets = Insets.of(mDisplayCutout.getSafeInsets()); in setDisplayCutout()
|
/aosp14/frameworks/base/services/core/java/com/android/server/display/ |
H A D | LogicalDisplay.java | 576 return deviceInfo.displayCutout.getSafeInsets(); in getMaskingInsets()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | Task.java | 3558 ? null : getDisplayInfo().displayCutout.getSafeInsets();
|
/aosp14/frameworks/base/boot/hiddenapi/ |
H A D | hiddenapi-max-target-o.txt | 59772 Landroid/view/DisplayCutout;->getSafeInsets()Landroid/graphics/Rect;
|