/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 422 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() argument 424 this(getCopyOrRef(safeInsets.toRect(), true), Insets.NONE, in DisplayCutout() 449 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() argument 452 this(getCopyOrRef(safeInsets.toRect(), true), waterfallInsets, in DisplayCutout() 476 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() argument 480 this(safeInsets.toRect(), waterfallInsets, in DisplayCutout() 503 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() argument 506 this(getCopyOrRef(safeInsets.toRect(), true), waterfallInsets, in DisplayCutout() 524 public DisplayCutout(@Nullable Rect safeInsets, @Nullable List<Rect> boundingRects) { in DisplayCutout() argument 525 this(getCopyOrRef(safeInsets, true), Insets.NONE, in DisplayCutout() [all …]
|
D | WindowInsets.java | 1601 final Insets safeInsets = Insets.of(mDisplayCutout.getSafeInsets()); in setDisplayCutout() local 1603 mTypeInsetsMap[index] = safeInsets; in setDisplayCutout() 1604 mTypeMaxInsetsMap[index] = safeInsets; in setDisplayCutout()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/decor/ |
D | CutoutDecorProviderFactoryTest.kt | 78 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/ |
D | DisplayCutoutTest.java | 86 Rect safeInsets = new Rect(10, 0, 0, 0); in testExtractBoundsFromList_left() local 88 assertThat(extractBoundsFromList(safeInsets, Collections.singletonList(bound)), in testExtractBoundsFromList_left() 94 Rect safeInsets = new Rect(0, 10, 0, 0); in testExtractBoundsFromList_top() local 96 assertThat(extractBoundsFromList(safeInsets, Collections.singletonList(bound)), in testExtractBoundsFromList_top() 102 Rect safeInsets = new Rect(0, 0, 10, 0); in testExtractBoundsFromList_right() local 104 assertThat(extractBoundsFromList(safeInsets, Collections.singletonList(bound)), in testExtractBoundsFromList_right() 110 Rect safeInsets = new Rect(0, 0, 0, 10); in testExtractBoundsFromList_bottom() local 112 assertThat(extractBoundsFromList(safeInsets, Collections.singletonList(bound)), in testExtractBoundsFromList_bottom() 118 Rect safeInsets = new Rect(0, 10, 0, 10); in testExtractBoundsFromList_top_and_bottom() local 121 assertThat(extractBoundsFromList(safeInsets, in testExtractBoundsFromList_top_and_bottom() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | WmDisplayCutout.java | 54 final Rect safeInsets = DisplayCutout.computeSafeInsets(displayWidth, displayHeight, inner); in computeSafeInsets() local 55 return new WmDisplayCutout(inner.replaceSafeInsets(safeInsets), displaySize); in computeSafeInsets()
|