Searched refs:getSafeInsets (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | WmDisplayCutoutTest.java | 62 assertEquals(new Rect(0, 15, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_top() 71 assertEquals(new Rect(15, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_left() 80 assertEquals(new Rect(0, 0, 0, 15), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_bottom() 89 assertEquals(new Rect(0, 0, 15, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_right() 107 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutTop() 115 assertEquals(new Rect(20, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutLeft() 123 assertEquals(new Rect(0, 0, 0, 20), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutBottom() 131 assertEquals(new Rect(0, 0, 20, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutRight() 139 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_topLeftCornerCutout_portrait() 147 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_topRightCornerCutout_portrait() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayCutoutTest.java | 157 assertEquals(new Rect(5, 6, 7, 8), mCutoutNumbers.getSafeInsets()); in testGetSafeInsets() 351 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 20, 0, 0))); in fromSpec_setsSafeInsets_top() 358 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 20, 0, 10))); in fromSpec_setsSafeInsets_top_and_bottom() 368 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 30, 0, 30))); in fromSpec_setsSafeInsets_waterfallTopBottom() 374 assertThat(cutout.getSafeInsets(), equalTo(new Rect(30, 0, 30, 0))); in fromSpec_setsSafeInsets_waterfallLeftRight() 380 assertThat(cutout.getSafeInsets(), equalTo(new Rect(30, 30, 30, 30))); in fromSpec_setsSafeInsets_waterfall_allEdges() 387 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 30, 0, 30))); in fromSpec_setsSafeInsets_cutoutTopBottom_waterfallTopBottom() 394 assertThat(cutout.getSafeInsets(), equalTo(new Rect(30, 20, 30, 20))); in fromSpec_setsSafeInsets_cutoutTopBottom_waterfallLeftRight()
|
/frameworks/base/core/java/android/window/ |
D | WindowMetricsHelper.java | 57 insets = (cutout != null) ? Insets.max(insets, Insets.of(cutout.getSafeInsets())) in getBoundsExcludingNavigationBarAndCutout()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LogicalDisplay.java | 340 return deviceInfo.displayCutout.getSafeInsets(); in getMaskingInsets()
|
/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 445 public Rect getSafeInsets() { in getSafeInsets() method in DisplayCutout
|
D | WindowInsets.java | 1245 final Insets safeInsets = Insets.of(mDisplayCutout.getSafeInsets()); in setDisplayCutout()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowState.java | 1210 windowFrames.calculateDockedDividerInsets(c.getDisplayCutout().getSafeInsets()); in computeFrameLw()
|