/frameworks/base/core/tests/coretests/src/android/view/ |
D | DisplayCutoutTest.java | 19 import static android.view.DisplayCutout.NO_CUTOUT; 20 import static android.view.DisplayCutout.fromSpec; 35 import android.view.DisplayCutout.ParcelableWrapper; 48 final DisplayCutout mCutoutNumbers = new DisplayCutout( 52 final DisplayCutout mCutoutTop = createCutoutTop(); 95 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_immutable() 102 DisplayCutout cutout = createCutoutWithInsets(100, 0, 0, 0).inset(1, 2, 3, 4); in inset_insets_withLeftCutout() 112 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_insets_withTopCutout() 122 DisplayCutout cutout = createCutoutWithInsets(0, 0, 100, 0).inset(1, 2, 3, 4); in inset_insets_withRightCutout() 132 DisplayCutout cutout = createCutoutWithInsets(0, 0, 0, 100).inset(1, 2, 3, 4); in inset_insets_withBottomCutout() [all …]
|
/frameworks/base/core/java/android/view/ |
D | DisplayCutout.java | 52 public final class DisplayCutout { class 77 public static final DisplayCutout NO_CUTOUT = new DisplayCutout(ZERO_RECT, EMPTY_REGION, 81 private static final Pair<Path, DisplayCutout> NULL_PAIR = new Pair<>(null, null); 93 private static Pair<Path, DisplayCutout> sCachedCutout = NULL_PAIR; 107 public DisplayCutout(Rect safeInsets, List<Rect> boundingRects) { in DisplayCutout() method in DisplayCutout 119 private DisplayCutout(Rect safeInsets, Region bounds, boolean copyArguments) { in DisplayCutout() method in DisplayCutout 246 if (o instanceof DisplayCutout) { in equals() 247 DisplayCutout c = (DisplayCutout) o; in equals() 277 public DisplayCutout inset(int insetLeft, int insetTop, int insetRight, int insetBottom) { in inset() 302 return new DisplayCutout(safeInsets, bounds, false /* copyArguments */); in inset() [all …]
|
D | IWindow.aidl | 26 import android.view.DisplayCutout; 55 in DisplayCutout.ParcelableWrapper displayCutout); in resized()
|
D | IWindowSession.aidl | 25 import android.view.DisplayCutout; 46 out DisplayCutout.ParcelableWrapper displayCutout, out InputChannel outInputChannel); in addToDisplay() 103 out DisplayCutout.ParcelableWrapper displayCutout, in relayout()
|
D | DisplayCutout.aidl | 19 parcelable DisplayCutout.ParcelableWrapper;
|
D | WindowInsets.java | 50 private DisplayCutout mDisplayCutout; 80 boolean isRound, boolean alwaysConsumeNavBar, DisplayCutout displayCutout) { in WindowInsets() 294 public DisplayCutout getDisplayCutout() { in getDisplayCutout()
|
/frameworks/support/compat/src/main/java/androidx/core/view/ |
D | DisplayCutoutCompat.java | 22 import android.view.DisplayCutout; 46 this(SDK_INT >= 28 ? new DisplayCutout(safeInsets, boundingRects) : null); in DisplayCutoutCompat() 56 return ((DisplayCutout) mDisplayCutout).getSafeInsetTop(); in getSafeInsetTop() 65 return ((DisplayCutout) mDisplayCutout).getSafeInsetBottom(); in getSafeInsetBottom() 74 return ((DisplayCutout) mDisplayCutout).getSafeInsetLeft(); in getSafeInsetLeft() 83 return ((DisplayCutout) mDisplayCutout).getSafeInsetRight(); in getSafeInsetRight() 100 return ((DisplayCutout) mDisplayCutout).getBoundingRects(); in getBoundingRects()
|
/frameworks/base/services/core/java/com/android/server/wm/utils/ |
D | WmDisplayCutout.java | 21 import android.view.DisplayCutout; 33 public static final WmDisplayCutout NO_CUTOUT = new WmDisplayCutout(DisplayCutout.NO_CUTOUT, 36 private final DisplayCutout mInner; 39 public WmDisplayCutout(DisplayCutout inner, Size frameSize) { in WmDisplayCutout() 44 public static WmDisplayCutout computeSafeInsets(DisplayCutout inner, in computeSafeInsets() 46 if (inner == DisplayCutout.NO_CUTOUT || inner.isBoundsEmpty()) { in computeSafeInsets() 62 DisplayCutout newInner = mInner.inset(insetLeft, insetTop, insetRight, insetBottom); in inset() 101 private static Rect computeSafeInsets(Size displaySize, DisplayCutout cutout) { in computeSafeInsets() 155 public DisplayCutout getDisplayCutout() { in getDisplayCutout()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/utils/ |
D | WmDisplayCutoutTest.java | 20 import static android.view.DisplayCutout.NO_CUTOUT; 21 import static android.view.DisplayCutout.fromBoundingRect; 31 import android.view.DisplayCutout; 48 private final DisplayCutout mCutoutTop = new DisplayCutout( 131 DisplayCutout cutout = WmDisplayCutout.computeSafeInsets(mCutoutTop, 1000, in computeSafeInsets_bounds()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/policy/ |
D | PhoneWindowManagerLayoutTest.java | 45 import android.view.DisplayCutout; 311 final DisplayCutout.ParcelableWrapper cutout = new DisplayCutout.ParcelableWrapper(); in layoutHint_screenDecorWindow() 319 assertThat(cutout.get(), equalTo(DisplayCutout.NO_CUTOUT)); in layoutHint_screenDecorWindow() 331 final DisplayCutout.ParcelableWrapper outDisplayCutout = in layoutHint_appWindow() 332 new DisplayCutout.ParcelableWrapper(); in layoutHint_appWindow() 341 assertThat(outDisplayCutout, is(new DisplayCutout.ParcelableWrapper())); in layoutHint_appWindow() 355 final DisplayCutout.ParcelableWrapper outDisplayCutout = in layoutHint_appWindowInTask() 356 new DisplayCutout.ParcelableWrapper(); in layoutHint_appWindowInTask() 365 assertThat(outDisplayCutout, is(new DisplayCutout.ParcelableWrapper())); in layoutHint_appWindowInTask()
|
D | PhoneWindowManagerTestBase.java | 46 import android.view.DisplayCutout; 174 private static DisplayCutout displayCutoutForRotation(int rotation) { in displayCutoutForRotation() 183 return DisplayCutout.fromBounds(p); in displayCutoutForRotation()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | ActionBarOverlayLayoutTest.java | 19 import static android.view.DisplayCutout.NO_CUTOUT; 34 import android.view.DisplayCutout; 56 private static final DisplayCutout CONSUMED_CUTOUT = null; 57 private static final DisplayCutout CUTOUT_5 = new DisplayCutout(TOP_INSET_5, Arrays.asList( 166 private WindowInsets insetsWith(Rect content, DisplayCutout cutout) { in insetsWith()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | TestWindowManagerPolicy.java | 34 import android.view.DisplayCutout; 113 int displayId, DisplayCutout displayCutout) { in getNonDecorDisplayWidth() 119 int displayId, DisplayCutout displayCutout) { in getNonDecorDisplayHeight() 125 int displayId, DisplayCutout displayCutout) { in getConfigDisplayWidth() 131 int displayId, DisplayCutout displayCutout) { in getConfigDisplayHeight() 534 DisplayCutout cutout, Rect outInsets) { 551 DisplayCutout cutout, Rect outInsets) {
|
D | TestIWindow.java | 26 import android.view.DisplayCutout; 42 DisplayCutout.ParcelableWrapper displayCutout) in resized()
|
D | DisplayContentTests.java | 25 import static android.view.DisplayCutout.fromBoundingRect; 54 import android.view.DisplayCutout; 425 final DisplayCutout cutout = new WmDisplayCutout( in testDisplayCutout_rot0() 444 final DisplayCutout cutout = new WmDisplayCutout( in testDisplayCutout_rot90()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | WindowManagerPolicy.java | 83 import android.view.DisplayCutout; 952 int uiMode, int displayId, DisplayCutout displayCutout); in getNonDecorDisplayWidth() 960 int uiMode, int displayId, DisplayCutout displayCutout); in getNonDecorDisplayHeight() 969 int uiMode, int displayId, DisplayCutout displayCutout); in getConfigDisplayWidth() 978 int uiMode, int displayId, DisplayCutout displayCutout); in getConfigDisplayHeight() 1202 DisplayCutout.ParcelableWrapper outDisplayCutout) { in getLayoutHintLw() 1683 DisplayCutout displayCutout, Rect outInsets); in getStableInsetsLw() 1711 DisplayCutout displayCutout, Rect outInsets); in getNonDecorInsetsLw()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | BaseIWindow.java | 25 import android.view.DisplayCutout; 46 DisplayCutout.ParcelableWrapper displayCutout) { in resized()
|
/frameworks/base/tests/WindowManagerStressTest/src/test/windowmanagerstresstest/ |
D | MainActivity.java | 27 import android.view.DisplayCutout; 107 new DisplayCutout.ParcelableWrapper(), new MergedConfiguration(), in slamWm()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | PhoneStatusBarView.java | 32 import android.view.DisplayCutout; 76 private DisplayCutout mDisplayCutout; 361 public static Pair<Integer, Integer> cornerCutoutMargins(DisplayCutout cutout, in cornerCutoutMargins()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Session.java | 47 import android.view.DisplayCutout; 197 new DisplayCutout.ParcelableWrapper() /* cutout */, outInputChannel); in add() 204 DisplayCutout.ParcelableWrapper outDisplayCutout, InputChannel outInputChannel) { in addToDisplay() 221 new DisplayCutout.ParcelableWrapper() /* cutout */, null /* outInputChannel */); in addToDisplayWithoutInputChannel() 239 DisplayCutout.ParcelableWrapper cutout, MergedConfiguration mergedConfiguration, in relayout()
|
D | DisplayFrames.java | 27 import android.view.DisplayCutout; 176 final DisplayCutout c = mDisplayCutout.getDisplayCutout(); in onBeginLayout()
|
D | TaskSnapshotSurface.java | 61 import android.view.DisplayCutout; 139 final DisplayCutout.ParcelableWrapper tmpCutout = new DisplayCutout.ParcelableWrapper(); in create() 447 DisplayCutout.ParcelableWrapper displayCutout) { in resized()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | HeadsUpStatusBarView.java | 26 import android.view.DisplayCutout; 202 DisplayCutout displayCutout = getRootWindowInsets().getDisplayCutout(); in fitSystemWindows()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ScreenDecorations.java | 46 import android.view.DisplayCutout; 509 mBoundingPath.set(DisplayCutout.pathFromResources(getResources(), dw, dh)); in updateBoundingPath() 539 final DisplayCutout displayCutout = mInfo.displayCutout; in hasCutout() 563 public static void boundsFromDirection(DisplayCutout displayCutout, int gravity, Rect out) { in boundsFromDirection() 591 final DisplayCutout displayCutout = mInfo.displayCutout; in localBounds()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayDeviceInfo.java | 22 import android.view.DisplayCutout; 234 public DisplayCutout displayCutout;
|