Home
last modified time | relevance | path

Searched refs:DisplayCutout (Results 1 – 25 of 62) 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;
39 import android.view.DisplayCutout.ParcelableWrapper;
67 final DisplayCutout mCutoutNumbers = new DisplayCutout(
74 final DisplayCutout mCutoutTop = createCutoutTop();
75 final DisplayCutout mCutoutWithWaterfall = createCutoutWithWaterfall();
76 final DisplayCutout mWaterfallOnly = createCutoutWaterfallOnly();
167 DisplayCutout cutout = in testGetWaterfallInsets()
178 final DisplayCutout cutout = fromSpec(cutoutSpecString, displayWidth, displayHeight, in testGetCutoutPath()
[all …]
/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;
33 import android.view.DisplayCutout;
49 private final DisplayCutout mCutoutTop = new DisplayCutout(
153 DisplayCutout.constructDisplayCutout( in computeSafeInsets_waterfall()
164 DisplayCutout.constructDisplayCutout( in computeSafeInsets_cutoutTop_greaterThan_waterfallTop()
[all …]
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/core/java/android/view/
DDisplayCutout.java61 public final class DisplayCutout { class
85 public static final DisplayCutout NO_CUTOUT = new DisplayCutout(
90 private static final Pair<Path, DisplayCutout> NULL_PAIR = new Pair<>(null, null);
102 private static Pair<Path, DisplayCutout> sCachedCutout = NULL_PAIR;
364 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() method in DisplayCutout
388 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() method in DisplayCutout
409 public DisplayCutout(@Nullable Rect safeInsets, @Nullable List<Rect> boundingRects) { in DisplayCutout() method in DisplayCutout
432 private DisplayCutout(Rect safeInsets, Insets waterfallInsets, Rect boundLeft, Rect boundTop, in DisplayCutout() method in DisplayCutout
441 private DisplayCutout(Rect safeInsets, Insets waterfallInsets, Rect[] bounds, in DisplayCutout() method in DisplayCutout
449 private DisplayCutout(Rect safeInsets, Insets waterfallInsets, Bounds bounds, in DisplayCutout() method in DisplayCutout
[all …]
DDisplayAdjustments.java147 public DisplayCutout getDisplayCutout(@Nullable DisplayCutout realCutout) { in getDisplayCutout()
219 final DisplayCutout mRotatedDisplayCutout;
222 DisplayCutout cutout) { in FixedRotationAdjustments()
268 new DisplayCutout.ParcelableWrapper(mRotatedDisplayCutout), flags); in writeToParcel()
275 final DisplayCutout.ParcelableWrapper cutoutWrapper = in FixedRotationAdjustments()
276 in.readTypedObject(DisplayCutout.ParcelableWrapper.CREATOR); in FixedRotationAdjustments()
DWindowInsets.java85 @Nullable private final DisplayCutout mDisplayCutout;
133 boolean alwaysConsumeSystemBars, DisplayCutout displayCutout) { in WindowInsets()
156 boolean alwaysConsumeSystemBars, DisplayCutout displayCutout, in WindowInsets()
200 private static DisplayCutout displayCutoutCopyConstructorArgument(WindowInsets w) { in displayCutoutCopyConstructorArgument()
204 return DisplayCutout.NO_CUTOUT; in displayCutoutCopyConstructorArgument()
496 public DisplayCutout getDisplayCutout() { in getDisplayCutout()
995 ? DisplayCutout.NO_CUTOUT in insetUnchecked()
1089 private DisplayCutout mDisplayCutout;
1311 public Builder setDisplayCutout(@Nullable DisplayCutout displayCutout) { in setDisplayCutout()
1312 mDisplayCutout = displayCutout != null ? displayCutout : DisplayCutout.NO_CUTOUT; in setDisplayCutout()
DDisplayCutout.aidl19 parcelable DisplayCutout.ParcelableWrapper;
DInsetsState.java168 private final DisplayCutout.ParcelableWrapper mDisplayCutout =
169 new DisplayCutout.ParcelableWrapper();
255 private DisplayCutout calculateRelativeCutout(Rect frame) { in calculateRelativeCutout()
256 final DisplayCutout raw = mDisplayCutout.get(); in calculateRelativeCutout()
261 return DisplayCutout.NO_CUTOUT; in calculateRelativeCutout()
271 return DisplayCutout.NO_CUTOUT; in calculateRelativeCutout()
477 public void setDisplayCutout(DisplayCutout cutout) { in setDisplayCutout()
481 public DisplayCutout getDisplayCutout() { in getDisplayCutout()
DIWindow.aidl25 import android.view.DisplayCutout;
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java21 import android.view.DisplayCutout;
32 public static final WmDisplayCutout NO_CUTOUT = new WmDisplayCutout(DisplayCutout.NO_CUTOUT,
35 private final DisplayCutout mInner;
38 public WmDisplayCutout(DisplayCutout inner, Size frameSize) { in WmDisplayCutout()
50 DisplayCutout inner, int displayWidth, int displayHeight) { in computeSafeInsets()
51 if (inner == DisplayCutout.NO_CUTOUT) { in computeSafeInsets()
69 private static Rect computeSafeInsets(Size displaySize, DisplayCutout cutout) { in computeSafeInsets()
108 public DisplayCutout getDisplayCutout() { in getDisplayCutout()
DDisplayRotationUtil.java19 import static android.view.DisplayCutout.BOUNDS_POSITION_LENGTH;
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayLayout.java44 import android.view.DisplayCutout;
77 private DisplayCutout mCutout;
294 int displayHeight, DisplayCutout displayCutout, int uiMode, Rect outInsets, in computeNonDecorInsets()
330 int displayHeight, DisplayCutout displayCutout, int uiMode, Rect outInsets, in computeStableInsets()
350 public static DisplayCutout calculateDisplayCutoutForRotation( in calculateDisplayCutoutForRotation()
351 DisplayCutout cutout, int rotation, int displayWidth, int displayHeight) { in calculateDisplayCutoutForRotation()
352 if (cutout == null || cutout == DisplayCutout.NO_CUTOUT) { in calculateDisplayCutoutForRotation()
370 final DisplayCutout.CutoutPathParserInfo info = cutout.getCutoutPathParserInfo(); in calculateDisplayCutoutForRotation()
371 final DisplayCutout.CutoutPathParserInfo newInfo = new DisplayCutout.CutoutPathParserInfo( in calculateDisplayCutoutForRotation()
375 DisplayCutout.constructDisplayCutout(newBounds, waterfallInsets, newInfo), in calculateDisplayCutoutForRotation()
[all …]
/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;
137 private static DisplayCutout displayCutoutForRotation(int rotation, boolean isLongEdgeCutout) { in displayCutoutForRotation()
165 return DisplayCutout.fromBoundingRect((int) rectF.left, (int) rectF.top, in displayCutoutForRotation()
DTestDisplayContent.java35 import android.view.DisplayCutout;
124 mInfo.displayCutout = new DisplayCutout( in setNotch()
/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/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarWindowView.java33 import android.view.DisplayCutout;
68 DisplayCutout displayCutout = getRootWindowInsets().getDisplayCutout(); in onApplyWindowInsets()
126 DisplayCutout cutout, Pair<Integer, Integer> cornerCutoutPadding, in paddingNeededForCutoutAndRoundedCorner()
150 public static Pair<Integer, Integer> cornerCutoutMargins(DisplayCutout cutout, in cornerCutoutMargins()
158 public static Pair<Integer, Integer> statusBarCornerCutoutMargins(DisplayCutout cutout, in statusBarCornerCutoutMargins()
DStatusBarTouchableRegionManager.java25 import android.view.DisplayCutout;
232 DisplayCutout cutout = windowInsets.getDisplayCutout(); in updateRegionForNotch()
DStatusBarContentInsetsProvider.kt24 import android.view.DisplayCutout in <lambda>()
245 displayCutout: DisplayCutout?, in calculateInsetsForRotationWithRotatedResources()
293 dc: DisplayCutout?, in getStatusBarLeftRight()
/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/packages/SystemUI/tests/src/com/android/systemui/
DScreenDecorationsTest.java18 import static android.view.DisplayCutout.BOUNDS_POSITION_BOTTOM;
19 import static android.view.DisplayCutout.BOUNDS_POSITION_LEFT;
20 import static android.view.DisplayCutout.BOUNDS_POSITION_RIGHT;
21 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
56 import android.view.DisplayCutout;
282 doReturn(new DisplayCutout( in testRoundingTopBottomRadius_OnLeftRightOverlay()
362 doReturn(new DisplayCutout( in testNoRounding_CutoutShortEdge()
398 doReturn(new DisplayCutout( in testNoRounding_CutoutLongEdge()
430 doReturn(new DisplayCutout( in testRounding_CutoutShortEdge()
463 doReturn(new DisplayCutout( in testRounding_CutoutLongEdge()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DScreenDecorations.java18 import static android.view.DisplayCutout.BOUNDS_POSITION_BOTTOM;
19 import static android.view.DisplayCutout.BOUNDS_POSITION_LEFT;
20 import static android.view.DisplayCutout.BOUNDS_POSITION_LENGTH;
21 import static android.view.DisplayCutout.BOUNDS_POSITION_RIGHT;
22 import static android.view.DisplayCutout.BOUNDS_POSITION_TOP;
64 import android.view.DisplayCutout;
65 import android.view.DisplayCutout.BoundsPosition;
301 final DisplayCutout cutout = getCutout(); in setupDecorations()
363 DisplayCutout getCutout() { in getCutout()
556 ? pos - rotation + DisplayCutout.BOUNDS_POSITION_LENGTH in getBoundPositionFromRotation()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DDisplayLayoutTest.java32 import android.view.DisplayCutout;
123 info.displayCutout = new DisplayCutout( in createDisplayInfo()
129 info.displayCutout = DisplayCutout.NO_CUTOUT; in createDisplayInfo()
/frameworks/base/packages/overlays/
DCleanSpec.mk47 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/overlay/DisplayCutout*)
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java27 import android.view.DisplayCutout;
85 final DisplayCutout cutout = displayCutout.getDisplayCutout(); in onDisplayInfoUpdated()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/
DPhysicsAnimationLayoutTestCase.java24 import android.view.DisplayCutout;
69 private DisplayCutout mCutout;

123