Searched refs:getSafeInsets (Results 1 – 10 of 10) sorted by relevance
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
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 …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayCutoutTest.java | 168 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/ |
D | SystemBarUtils.java | 73 insets = Insets.of(rotated.getSafeInsets()); in getStatusBarHeightForRotation()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | ActionBarOverlayLayoutTest.java | 233 ? Insets.of(cutout.getSafeInsets()) in insetsWith()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/hidedisplaycutout/ |
D | HideDisplayCutoutOrganizer.java | 207 Insets insets = cutout != null ? Insets.of(cutout.getSafeInsets()) : Insets.NONE; in getDisplayCutoutInsetsOfNaturalOrientation()
|
/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 696 public Rect getSafeInsets() { in getSafeInsets() method in DisplayCutout 1552 final Rect safeInsets = mInner.getSafeInsets(); in scale()
|
D | WindowInsets.java | 1601 final Insets safeInsets = Insets.of(mDisplayCutout.getSafeInsets()); in setDisplayCutout()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LogicalDisplay.java | 617 return deviceInfo.displayCutout.getSafeInsets(); in getMaskingInsets()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Task.java | 3591 ? null : getDisplayInfo().displayCutout.getSafeInsets();
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 59129 Landroid/view/DisplayCutout;->getSafeInsets()Landroid/graphics/Rect;
|