Home
last modified time | relevance | path

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

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
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 …]
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java168 assertEquals(new Rect(5, 6, 7, 8), mCutoutNumbers.getSafeInsets()); in testGetSafeInsets()
416 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 20, 0, 0))); in fromSpec_setsSafeInsets_top()
423 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 20, 0, 10))); in fromSpec_setsSafeInsets_top_and_bottom()
433 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 30, 0, 30))); in fromSpec_setsSafeInsets_waterfallTopBottom()
439 assertThat(cutout.getSafeInsets(), equalTo(new Rect(30, 0, 30, 0))); in fromSpec_setsSafeInsets_waterfallLeftRight()
445 assertThat(cutout.getSafeInsets(), equalTo(new Rect(30, 30, 30, 30))); in fromSpec_setsSafeInsets_waterfall_allEdges()
453 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 30, 0, 30))); in fromSpec_setsSafeInsets_cutoutTopBottom_waterfallTopBottom()
461 assertThat(cutout.getSafeInsets(), equalTo(new Rect(30, 20, 30, 20))); in fromSpec_setsSafeInsets_cutoutTopBottom_waterfallLeftRight()
/frameworks/base/core/java/com/android/internal/policy/
DSystemBarUtils.java73 insets = Insets.of(rotated.getSafeInsets()); in getStatusBarHeightForRotation()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DActionBarOverlayLayoutTest.java233 ? Insets.of(cutout.getSafeInsets()) in insetsWith()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/hidedisplaycutout/
DHideDisplayCutoutOrganizer.java207 Insets insets = cutout != null ? Insets.of(cutout.getSafeInsets()) : Insets.NONE; in getDisplayCutoutInsetsOfNaturalOrientation()
/frameworks/base/core/java/android/view/
DDisplayCutout.java696 public Rect getSafeInsets() { in getSafeInsets() method in DisplayCutout
1552 final Rect safeInsets = mInner.getSafeInsets(); in scale()
DWindowInsets.java1601 final Insets safeInsets = Insets.of(mDisplayCutout.getSafeInsets()); in setDisplayCutout()
/frameworks/base/services/core/java/com/android/server/display/
DLogicalDisplay.java617 return deviceInfo.displayCutout.getSafeInsets(); in getMaskingInsets()
/frameworks/base/services/core/java/com/android/server/wm/
DTask.java3591 ? null : getDisplayInfo().displayCutout.getSafeInsets();
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt59129 Landroid/view/DisplayCutout;->getSafeInsets()Landroid/graphics/Rect;