Home
last modified time | relevance | path

Searched refs:getSafeInsets (Results 1 – 9 of 9) sorted by relevance

/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
H A DWmDisplayCutoutTest.java59 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 DDisplayCutoutTest.java166 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 DSystemBarUtils.java62 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 DHideDisplayCutoutOrganizer.java207 Insets insets = cutout != null ? Insets.of(cutout.getSafeInsets()) : Insets.NONE; in getDisplayCutoutInsetsOfNaturalOrientation()
/aosp14/frameworks/base/core/java/android/view/
H A DDisplayCutout.java644 public Rect getSafeInsets() { in getSafeInsets() method in DisplayCutout
1369 final Rect safeInsets = mInner.getSafeInsets(); in scale()
H A DWindowInsets.java1358 final Insets safeInsets = Insets.of(mDisplayCutout.getSafeInsets()); in setDisplayCutout()
/aosp14/frameworks/base/services/core/java/com/android/server/display/
H A DLogicalDisplay.java576 return deviceInfo.displayCutout.getSafeInsets(); in getMaskingInsets()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DTask.java3558 ? null : getDisplayInfo().displayCutout.getSafeInsets();
/aosp14/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt59772 Landroid/view/DisplayCutout;->getSafeInsets()Landroid/graphics/Rect;