Home
last modified time | relevance | path

Searched refs:safeInsets (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/view/
DDisplayCutout.java252 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() argument
254 this(safeInsets.toRect(), boundLeft, boundTop, boundRight, boundBottom, true); in DisplayCutout()
271 public DisplayCutout(@Nullable Rect safeInsets, @Nullable List<Rect> boundingRects) { in DisplayCutout() argument
272 this(safeInsets, extractBoundsFromList(safeInsets, boundingRects), in DisplayCutout()
284 private DisplayCutout(Rect safeInsets, Rect boundLeft, Rect boundTop, Rect boundRight, in DisplayCutout() argument
286 mSafeInsets = getCopyOrRef(safeInsets, copyArguments); in DisplayCutout()
290 private DisplayCutout(Rect safeInsets, Rect[] bounds, boolean copyArguments) { in DisplayCutout() argument
291 mSafeInsets = getCopyOrRef(safeInsets, copyArguments); in DisplayCutout()
295 private DisplayCutout(Rect safeInsets, Bounds bounds) { in DisplayCutout() argument
296 mSafeInsets = safeInsets; in DisplayCutout()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java75 Rect safeInsets = new Rect(10, 0, 0, 0); in testExtractBoundsFromList_left() local
77 assertThat(extractBoundsFromList(safeInsets, Collections.singletonList(bound)), in testExtractBoundsFromList_left()
83 Rect safeInsets = new Rect(0, 10, 0, 0); in testExtractBoundsFromList_top() local
85 assertThat(extractBoundsFromList(safeInsets, Collections.singletonList(bound)), in testExtractBoundsFromList_top()
91 Rect safeInsets = new Rect(0, 0, 10, 0); in testExtractBoundsFromList_right() local
93 assertThat(extractBoundsFromList(safeInsets, Collections.singletonList(bound)), in testExtractBoundsFromList_right()
99 Rect safeInsets = new Rect(0, 0, 0, 10); in testExtractBoundsFromList_bottom() local
101 assertThat(extractBoundsFromList(safeInsets, Collections.singletonList(bound)), in testExtractBoundsFromList_bottom()
107 Rect safeInsets = new Rect(0, 1, 0, 10); in testExtractBoundsFromList_top_and_bottom() local
110 assertThat(extractBoundsFromList(safeInsets, in testExtractBoundsFromList_top_and_bottom()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java51 final Rect safeInsets = computeSafeInsets(displaySize, inner); in computeSafeInsets() local
52 return new WmDisplayCutout(inner.replaceSafeInsets(safeInsets), displaySize); in computeSafeInsets()