Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/
DDisplayCutout.java402 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() argument
404 this(safeInsets.toRect(), Insets.NONE, boundLeft, boundTop, boundRight, boundBottom, null, in DisplayCutout()
428 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() argument
431 this(safeInsets.toRect(), waterfallInsets, boundLeft, boundTop, boundRight, boundBottom, in DisplayCutout()
453 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() argument
456 this(safeInsets.toRect(), waterfallInsets, boundLeft, boundTop, boundRight, boundBottom, in DisplayCutout()
474 public DisplayCutout(@Nullable Rect safeInsets, @Nullable List<Rect> boundingRects) { in DisplayCutout() argument
475 this(safeInsets, Insets.NONE, extractBoundsFromList(safeInsets, boundingRects), null, in DisplayCutout()
497 private DisplayCutout(Rect safeInsets, Insets waterfallInsets, Rect boundLeft, Rect boundTop, in DisplayCutout() argument
500 mSafeInsets = getCopyOrRef(safeInsets, copyArguments); in DisplayCutout()
[all …]
DWindowInsets.java1328 final Insets safeInsets = Insets.of(mDisplayCutout.getSafeInsets()); in setDisplayCutout() local
1330 mTypeInsetsMap[index] = safeInsets; in setDisplayCutout()
1331 mTypeMaxInsetsMap[index] = safeInsets; in setDisplayCutout()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/
DCutoutDecorProviderFactoryTest.kt78 safeInsets: Insets, in <lambda>()
83 val insets = RotationUtils.rotateInsets(safeInsets, rotation) in <lambda>()
119 safeInsets = Insets.of(0, 1, 0, 0), in <lambda>()
137 safeInsets = Insets.of(0, 0, 0, 1), in <lambda>()
157 safeInsets = Insets.of(1, 0, 0, 0), in <lambda>()
177 safeInsets = Insets.of(0, 1, 1, 0), in <lambda>()
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java84 Rect safeInsets = new Rect(10, 0, 0, 0); in testExtractBoundsFromList_left() local
86 assertThat(extractBoundsFromList(safeInsets, Collections.singletonList(bound)), in testExtractBoundsFromList_left()
92 Rect safeInsets = new Rect(0, 10, 0, 0); in testExtractBoundsFromList_top() local
94 assertThat(extractBoundsFromList(safeInsets, Collections.singletonList(bound)), in testExtractBoundsFromList_top()
100 Rect safeInsets = new Rect(0, 0, 10, 0); in testExtractBoundsFromList_right() local
102 assertThat(extractBoundsFromList(safeInsets, Collections.singletonList(bound)), in testExtractBoundsFromList_right()
108 Rect safeInsets = new Rect(0, 0, 0, 10); in testExtractBoundsFromList_bottom() local
110 assertThat(extractBoundsFromList(safeInsets, Collections.singletonList(bound)), in testExtractBoundsFromList_bottom()
116 Rect safeInsets = new Rect(0, 10, 0, 10); in testExtractBoundsFromList_top_and_bottom() local
119 assertThat(extractBoundsFromList(safeInsets, in testExtractBoundsFromList_top_and_bottom()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java54 final Rect safeInsets = DisplayCutout.computeSafeInsets(displayWidth, displayHeight, inner); in computeSafeInsets() local
55 return new WmDisplayCutout(inner.replaceSafeInsets(safeInsets), displaySize); in computeSafeInsets()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayLayout.java449 final Rect safeInsets = computeSafeInsets(displaySize, inner); in computeSafeInsets() local
450 return inner.replaceSafeInsets(safeInsets); in computeSafeInsets()