Searched refs:getSafeInsets (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
D | WmDisplayCutoutTest.java | 61 assertEquals(new Rect(0, 15, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_top() 70 assertEquals(new Rect(15, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_left() 79 assertEquals(new Rect(0, 0, 0, 15), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_bottom() 88 assertEquals(new Rect(0, 0, 15, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_right() 106 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_top() 114 assertEquals(new Rect(20, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_left() 122 assertEquals(new Rect(0, 0, 0, 20), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_bottom() 130 assertEquals(new Rect(0, 0, 20, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_right()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayCutoutTest.java | 141 assertEquals(new Rect(5, 6, 7, 8), mCutoutNumbers.getSafeInsets()); in testGetSafeInsets() 298 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 20, 0, 0))); in fromSpec_setsSafeInsets_top() 305 assertThat(cutout.getSafeInsets(), equalTo(new Rect(0, 20, 0, 10))); in fromSpec_setsSafeInsets_top_and_bottom()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | LogicalDisplay.java | 328 return deviceInfo.displayCutout.getSafeInsets(); in getMaskingInsets()
|
/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 385 public Rect getSafeInsets() { in getSafeInsets() method in DisplayCutout
|