Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java19 import static android.view.DisplayCutout.NO_CUTOUT;
20 import static android.view.DisplayCutout.extractBoundsFromList;
21 import static android.view.DisplayCutout.fromSpec;
36 import android.view.DisplayCutout.ParcelableWrapper;
64 final DisplayCutout mCutoutNumbers = new DisplayCutout(
71 final DisplayCutout mCutoutTop = createCutoutTop();
164 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_immutable()
171 DisplayCutout cutout = createCutoutWithInsets(100, 0, 0, 0).inset(1, 2, 3, 4); in inset_insets_withLeftCutout()
181 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_insets_withTopCutout()
191 DisplayCutout cutout = createCutoutWithInsets(0, 0, 100, 0).inset(1, 2, 3, 4); in inset_insets_withRightCutout()
[all …]
DInsetsStateTest.java74 DisplayCutout.NO_CUTOUT, null, null, SOFT_INPUT_ADJUST_RESIZE, typeSideMap); in testCalculateInsets()
93 DisplayCutout.NO_CUTOUT, null, null, SOFT_INPUT_ADJUST_RESIZE, null); in testCalculateInsets_imeAndNav()
112 DisplayCutout.NO_CUTOUT, null, null, 0, null); in testCalculateInsets_navRightStatusTop()
126 DisplayCutout.NO_CUTOUT, null, null, 0, null); in testCalculateInsets_imeIgnoredWithoutAdjustResize()
139 DisplayCutout.NO_CUTOUT, null, null, SOFT_INPUT_ADJUST_RESIZE, null); in testStripForDispatch()
/frameworks/base/core/java/android/view/
DDisplayCutout.java63 public final class DisplayCutout { class
87 public static final DisplayCutout NO_CUTOUT = new DisplayCutout(
92 private static final Pair<Path, DisplayCutout> NULL_PAIR = new Pair<>(null, null);
104 private static Pair<Path, DisplayCutout> sCachedCutout = NULL_PAIR;
251 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() method in DisplayCutout
270 public DisplayCutout(@Nullable Rect safeInsets, @Nullable List<Rect> boundingRects) { in DisplayCutout() method in DisplayCutout
283 private DisplayCutout(Rect safeInsets, Rect boundLeft, Rect boundTop, Rect boundRight, in DisplayCutout() method in DisplayCutout
289 private DisplayCutout(Rect safeInsets, Rect[] bounds, boolean copyArguments) { in DisplayCutout() method in DisplayCutout
294 private DisplayCutout(Rect safeInsets, Bounds bounds) { in DisplayCutout() method in DisplayCutout
481 if (o instanceof DisplayCutout) { in equals()
[all …]
DWindowInsets.java76 @Nullable private final DisplayCutout mDisplayCutout;
111 boolean isRound, boolean alwaysConsumeSystemBars, DisplayCutout displayCutout) { in WindowInsets()
133 boolean alwaysConsumeSystemBars, DisplayCutout displayCutout) { in WindowInsets()
165 private static DisplayCutout displayCutoutCopyConstructorArgument(WindowInsets w) { in displayCutoutCopyConstructorArgument()
169 return DisplayCutout.NO_CUTOUT; in displayCutoutCopyConstructorArgument()
427 public DisplayCutout getDisplayCutout() { in getDisplayCutout()
811 ? DisplayCutout.NO_CUTOUT in inset()
896 private DisplayCutout mDisplayCutout;
1104 public Builder setDisplayCutout(@Nullable DisplayCutout displayCutout) { in setDisplayCutout()
1105 mDisplayCutout = displayCutout != null ? displayCutout : DisplayCutout.NO_CUTOUT; in setDisplayCutout()
DIWindow.aidl26 import android.view.DisplayCutout;
57 in DisplayCutout.ParcelableWrapper displayCutout); in resized()
DIWindowSession.aidl25 import android.view.DisplayCutout;
46 out DisplayCutout.ParcelableWrapper displayCutout, out InputChannel outInputChannel, in addToDisplay()
104 out DisplayCutout.ParcelableWrapper displayCutout, in relayout()
DDisplayCutout.aidl19 parcelable DisplayCutout.ParcelableWrapper;
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DWmDisplayCutoutTest.java19 import static android.view.DisplayCutout.BOUNDS_POSITION_BOTTOM;
20 import static android.view.DisplayCutout.BOUNDS_POSITION_LEFT;
21 import static android.view.DisplayCutout.BOUNDS_POSITION_RIGHT;
22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
23 import static android.view.DisplayCutout.NO_CUTOUT;
24 import static android.view.DisplayCutout.fromBoundingRect;
35 import android.view.DisplayCutout;
50 private final DisplayCutout mCutoutTop = new DisplayCutout(
135 DisplayCutout cutout = WmDisplayCutout.computeSafeInsets(mCutoutTop, 1000, in computeSafeInsets_bounds()
DDisplayRotationUtilTest.java19 import static android.view.DisplayCutout.BOUNDS_POSITION_BOTTOM;
20 import static android.view.DisplayCutout.BOUNDS_POSITION_LEFT;
21 import static android.view.DisplayCutout.BOUNDS_POSITION_RIGHT;
22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
/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()
114 private static Rect computeSafeInsets(Size displaySize, DisplayCutout cutout) { in computeSafeInsets()
168 public DisplayCutout getDisplayCutout() { in getDisplayCutout()
DDisplayRotationUtil.java19 import static android.view.DisplayCutout.BOUNDS_POSITION_LENGTH;
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTestsBase.java20 import static android.view.DisplayCutout.BOUNDS_POSITION_BOTTOM;
21 import static android.view.DisplayCutout.BOUNDS_POSITION_LEFT;
22 import static android.view.DisplayCutout.BOUNDS_POSITION_RIGHT;
23 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
45 import android.view.DisplayCutout;
129 private static DisplayCutout displayCutoutForRotation(int rotation) { in displayCutoutForRotation()
153 return DisplayCutout.fromBoundingRect((int) rectF.left, (int) rectF.top, in displayCutoutForRotation()
DDisplayPolicyLayoutTests.java55 import android.view.DisplayCutout;
436 final DisplayCutout.ParcelableWrapper outDisplayCutout = in layoutHint_appWindow()
437 new DisplayCutout.ParcelableWrapper(); in layoutHint_appWindow()
447 assertThat(outDisplayCutout, is(new DisplayCutout.ParcelableWrapper())); in layoutHint_appWindow()
463 final DisplayCutout.ParcelableWrapper outDisplayCutout = in layoutHint_appWindowInTask()
464 new DisplayCutout.ParcelableWrapper(); in layoutHint_appWindowInTask()
474 assertThat(outDisplayCutout, is(new DisplayCutout.ParcelableWrapper())); in layoutHint_appWindowInTask()
493 final DisplayCutout.ParcelableWrapper outDisplayCutout = in layoutHint_appWindowInTask_outsideContentFrame()
494 new DisplayCutout.ParcelableWrapper(); in layoutHint_appWindowInTask_outsideContentFrame()
504 assertThat(outDisplayCutout, is(new DisplayCutout.ParcelableWrapper())); in layoutHint_appWindowInTask_outsideContentFrame()
DTestIWindow.java24 import android.view.DisplayCutout;
42 DisplayCutout.ParcelableWrapper displayCutout) throws RemoteException { in resized()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DActionBarOverlayLayoutTest.java19 import static android.view.DisplayCutout.NO_CUTOUT;
32 import android.view.DisplayCutout;
56 private static final DisplayCutout CONSUMED_CUTOUT = null;
57 private static final DisplayCutout CUTOUT_5 = new DisplayCutout(
170 private WindowInsets insetsWith(Insets content, DisplayCutout cutout) { in insetsWith()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DDisplayCutoutView.java26 import android.view.DisplayCutout;
90 final DisplayCutout displayCutout = mInfo.displayCutout; in hasCutout()
114 public static void boundsFromDirection(DisplayCutout displayCutout, int gravity, Rect out) { in boundsFromDirection()
142 final DisplayCutout displayCutout = mInfo.displayCutout; in localBounds()
/frameworks/base/core/java/com/android/internal/view/
DBaseIWindow.java25 import android.view.DisplayCutout;
48 DisplayCutout.ParcelableWrapper displayCutout) { in resized()
/frameworks/base/packages/overlays/
DCleanSpec.mk48 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/overlay/DisplayCutout*)
/frameworks/base/tests/WindowManagerStressTest/src/test/windowmanagerstresstest/
DMainActivity.java27 import android.view.DisplayCutout;
109 new DisplayCutout.ParcelableWrapper(), new MergedConfiguration(), in slamWm()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarView.java33 import android.view.DisplayCutout;
80 private DisplayCutout mDisplayCutout;
363 public static Pair<Integer, Integer> cornerCutoutMargins(DisplayCutout cutout, in cornerCutoutMargins()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java27 import android.view.DisplayCutout;
176 final DisplayCutout c = mDisplayCutout.getDisplayCutout(); in onBeginLayout()
DSession.java44 import android.view.DisplayCutout;
157 DisplayCutout.ParcelableWrapper outDisplayCutout, InputChannel outInputChannel, in addToDisplay()
170 new DisplayCutout.ParcelableWrapper() /* cutout */, null /* outInputChannel */, in addToDisplayWithoutInputChannel()
189 DisplayCutout.ParcelableWrapper cutout, MergedConfiguration mergedConfiguration, in relayout()
DTaskSnapshotSurface.java66 import android.view.DisplayCutout;
146 final DisplayCutout.ParcelableWrapper tmpCutout = new DisplayCutout.ParcelableWrapper(); in create()
472 DisplayCutout.ParcelableWrapper displayCutout) { in resized()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceInfo.java23 import android.view.DisplayCutout;
251 public DisplayCutout displayCutout;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/
DPhysicsAnimationLayoutTestCase.java24 import android.view.DisplayCutout;
69 private DisplayCutout mCutout;

123