Home
last modified time | relevance | path

Searched refs:DisplayCutout (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java19 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/
DDisplayCutout.java52 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 …]
DIWindow.aidl26 import android.view.DisplayCutout;
55 in DisplayCutout.ParcelableWrapper displayCutout); in resized()
DIWindowSession.aidl25 import android.view.DisplayCutout;
46 out DisplayCutout.ParcelableWrapper displayCutout, out InputChannel outInputChannel); in addToDisplay()
103 out DisplayCutout.ParcelableWrapper displayCutout, in relayout()
DDisplayCutout.aidl19 parcelable DisplayCutout.ParcelableWrapper;
DWindowInsets.java50 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/
DDisplayCutoutCompat.java22 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/
DWmDisplayCutout.java21 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/
DWmDisplayCutoutTest.java20 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/
DPhoneWindowManagerLayoutTest.java45 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()
DPhoneWindowManagerTestBase.java46 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/
DActionBarOverlayLayoutTest.java19 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/
DTestWindowManagerPolicy.java34 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) {
DTestIWindow.java26 import android.view.DisplayCutout;
42 DisplayCutout.ParcelableWrapper displayCutout) in resized()
DDisplayContentTests.java25 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/
DWindowManagerPolicy.java83 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/
DBaseIWindow.java25 import android.view.DisplayCutout;
46 DisplayCutout.ParcelableWrapper displayCutout) { in resized()
/frameworks/base/tests/WindowManagerStressTest/src/test/windowmanagerstresstest/
DMainActivity.java27 import android.view.DisplayCutout;
107 new DisplayCutout.ParcelableWrapper(), new MergedConfiguration(), in slamWm()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarView.java32 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/
DSession.java47 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()
DDisplayFrames.java27 import android.view.DisplayCutout;
176 final DisplayCutout c = mDisplayCutout.getDisplayCutout(); in onBeginLayout()
DTaskSnapshotSurface.java61 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/
DHeadsUpStatusBarView.java26 import android.view.DisplayCutout;
202 DisplayCutout displayCutout = getRootWindowInsets().getDisplayCutout(); in fitSystemWindows()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DScreenDecorations.java46 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/
DDisplayDeviceInfo.java22 import android.view.DisplayCutout;
234 public DisplayCutout displayCutout;

12