Home
last modified time | relevance | path

Searched refs:DisplayCutout (Results 1 – 25 of 74) 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();
72 final DisplayCutout mCutoutWithWaterfall = createCutoutWithWaterfall();
73 final DisplayCutout mWaterfallOnly = createCutoutWaterfallOnly();
162 DisplayCutout cutout = in testGetWaterfallInsets()
187 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_immutable()
[all …]
DInsetsStateTest.java81 false, DisplayCutout.NO_CUTOUT, SOFT_INPUT_ADJUST_RESIZE, 0, 0, typeSideMap); in testCalculateInsets()
100 false, DisplayCutout.NO_CUTOUT, SOFT_INPUT_ADJUST_RESIZE, 0, 0, null); in testCalculateInsets_imeAndNav()
119 false, DisplayCutout.NO_CUTOUT, 0, 0, 0, null); in testCalculateInsets_navRightStatusTop()
135 false, DisplayCutout.NO_CUTOUT, SOFT_INPUT_ADJUST_NOTHING, 0, 0, null); in testCalculateInsets_imeIgnoredWithoutAdjustResize()
151 false, DisplayCutout.NO_CUTOUT, SOFT_INPUT_ADJUST_NOTHING, 0, in testCalculateInsets_systemUiFlagLayoutStable()
155 DisplayCutout.NO_CUTOUT, SOFT_INPUT_ADJUST_NOTHING, 0, in testCalculateInsets_systemUiFlagLayoutStable()
168 false, DisplayCutout.NO_CUTOUT, SOFT_INPUT_ADJUST_NOTHING, FLAG_FULLSCREEN, in testCalculateInsets_systemUiFlagLayoutStable_windowFlagFullscreen()
172 DisplayCutout.NO_CUTOUT, SOFT_INPUT_ADJUST_NOTHING, 0, in testCalculateInsets_systemUiFlagLayoutStable_windowFlagFullscreen()
216 false, DisplayCutout.NO_CUTOUT, 0, 0, 0, null); in testCalculateInsets_extraNavRightStatusTop()
232 false, DisplayCutout.NO_CUTOUT, 0, 0, 0, null); in testCalculateInsets_navigationRightClimateTop()
[all …]
/frameworks/base/core/java/android/view/
DDisplayCutout.java57 public final class DisplayCutout { class
78 public static final DisplayCutout NO_CUTOUT = new DisplayCutout(
83 private static final Pair<Path, DisplayCutout> NULL_PAIR = new Pair<>(null, null);
95 private static Pair<Path, DisplayCutout> sCachedCutout = NULL_PAIR;
246 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() method in DisplayCutout
269 public DisplayCutout(@NonNull Insets safeInsets, @Nullable Rect boundLeft, in DisplayCutout() method in DisplayCutout
290 public DisplayCutout(@Nullable Rect safeInsets, @Nullable List<Rect> boundingRects) { in DisplayCutout() method in DisplayCutout
303 private DisplayCutout(Rect safeInsets, Insets waterfallInsets, Rect boundLeft, in DisplayCutout() method in DisplayCutout
310 private DisplayCutout(Rect safeInsets, Insets waterfallInsets, Rect[] bounds, in DisplayCutout() method in DisplayCutout
317 private DisplayCutout(Rect safeInsets, Insets waterfallInsets, Bounds bounds) { in DisplayCutout() method in DisplayCutout
[all …]
DDisplayAdjustments.java145 public DisplayCutout getDisplayCutout(@Nullable DisplayCutout realCutout) { in getDisplayCutout()
191 final DisplayCutout mRotatedDisplayCutout;
193 public FixedRotationAdjustments(@Surface.Rotation int rotation, DisplayCutout cutout) { in FixedRotationAdjustments()
231 new DisplayCutout.ParcelableWrapper(mRotatedDisplayCutout), flags); in writeToParcel()
236 final DisplayCutout.ParcelableWrapper cutoutWrapper = in FixedRotationAdjustments()
237 in.readTypedObject(DisplayCutout.ParcelableWrapper.CREATOR); in FixedRotationAdjustments()
DIWindowSession.aidl26 import android.view.DisplayCutout;
49 out DisplayCutout.ParcelableWrapper displayCutout, out InputChannel outInputChannel, in addToDisplay()
54 out DisplayCutout.ParcelableWrapper displayCutout, out InputChannel outInputChannel, in addToDisplayAsUser()
113 out DisplayCutout.ParcelableWrapper displayCutout, in relayout()
DWindowInsets.java84 @Nullable private final DisplayCutout mDisplayCutout;
129 boolean isRound, boolean alwaysConsumeSystemBars, DisplayCutout displayCutout) { in WindowInsets()
152 boolean alwaysConsumeSystemBars, DisplayCutout displayCutout, in WindowInsets()
189 private static DisplayCutout displayCutoutCopyConstructorArgument(WindowInsets w) { in displayCutoutCopyConstructorArgument()
193 return DisplayCutout.NO_CUTOUT; in displayCutoutCopyConstructorArgument()
485 public DisplayCutout getDisplayCutout() { in getDisplayCutout()
939 ? DisplayCutout.NO_CUTOUT in inset()
1025 private DisplayCutout mDisplayCutout;
1242 public Builder setDisplayCutout(@Nullable DisplayCutout displayCutout) { in setDisplayCutout()
1243 mDisplayCutout = displayCutout != null ? displayCutout : DisplayCutout.NO_CUTOUT; in setDisplayCutout()
DIWindow.aidl25 import android.view.DisplayCutout;
59 in DisplayCutout.ParcelableWrapper displayCutout); in resized()
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;
51 private final DisplayCutout mCutoutTop = new DisplayCutout(
201 DisplayCutout.fromBoundsAndWaterfall( in computeSafeInsets_waterfall()
212 DisplayCutout.fromBoundsAndWaterfall( 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/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()
66 DisplayCutout newInner = mInner.inset(insetLeft, insetTop, insetRight, insetBottom); in inset()
118 private static Rect computeSafeInsets(Size displaySize, DisplayCutout cutout) { in computeSafeInsets()
157 public DisplayCutout getDisplayCutout() { in getDisplayCutout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/wm/
DDisplayLayout.java43 import android.view.DisplayCutout;
75 private DisplayCutout mCutout;
298 int displayHeight, DisplayCutout displayCutout, int uiMode, Rect outInsets, in computeNonDecorInsets()
334 int displayHeight, DisplayCutout displayCutout, int uiMode, Rect outInsets, in computeStableInsets()
354 public static DisplayCutout calculateDisplayCutoutForRotation( in calculateDisplayCutoutForRotation()
355 DisplayCutout cutout, int rotation, int displayWidth, int displayHeight) { in calculateDisplayCutoutForRotation()
356 if (cutout == null || cutout == DisplayCutout.NO_CUTOUT) { in calculateDisplayCutoutForRotation()
376 DisplayCutout.fromBoundsAndWaterfall(newBounds, waterfallInsets), in calculateDisplayCutoutForRotation()
383 ? index - rotation + DisplayCutout.BOUNDS_POSITION_LENGTH in getBoundIndexFromRotation()
388 public static DisplayCutout computeSafeInsets(DisplayCutout inner, in computeSafeInsets()
[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;
134 private static DisplayCutout displayCutoutForRotation(int rotation, boolean isLongEdgeCutout) { in displayCutoutForRotation()
162 return DisplayCutout.fromBoundingRect((int) rectF.left, (int) rectF.top, in displayCutoutForRotation()
DTestIWindow.java25 import android.view.DisplayCutout;
44 DisplayCutout.ParcelableWrapper displayCutout) throws RemoteException { in resized()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarWindowView.java30 import android.view.DisplayCutout;
60 DisplayCutout displayCutout = getRootWindowInsets().getDisplayCutout(); in onApplyWindowInsets()
95 DisplayCutout cutout, Pair<Integer, Integer> cornerCutoutPadding, in paddingNeededForCutoutAndRoundedCorner()
119 public static Pair<Integer, Integer> cornerCutoutMargins(DisplayCutout cutout, in cornerCutoutMargins()
127 public static Pair<Integer, Integer> statusBarCornerCutoutMargins(DisplayCutout cutout, in statusBarCornerCutoutMargins()
/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/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;
55 import android.view.DisplayCutout;
266 doReturn(new DisplayCutout( in testRoundingTopBottomRadius_OnLeftRightOverlay()
342 doReturn(new DisplayCutout( in testNoRounding_CutoutShortEdge()
378 doReturn(new DisplayCutout( in testNoRounding_CutoutLongEdge()
410 doReturn(new DisplayCutout( in testRounding_CutoutShortEdge()
443 doReturn(new DisplayCutout( in testRounding_CutoutLongEdge()
[all …]
/frameworks/base/apct-tests/perftests/windowmanager/src/android/wm/
DWindowAddRemovePerfTest.java29 import android.view.DisplayCutout;
92 final DisplayCutout.ParcelableWrapper mOutDisplayCutout =
93 new DisplayCutout.ParcelableWrapper();
/frameworks/base/core/java/android/window/
DWindowMetricsHelper.java28 import android.view.DisplayCutout;
56 final DisplayCutout cutout = windowInsets.getDisplayCutout(); in getBoundsExcludingNavigationBarAndCutout()
/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;
268 final DisplayCutout cutout = getCutout(); in setupDecorations()
326 DisplayCutout getCutout() { in getCutout()
496 ? pos - rotation + DisplayCutout.BOUNDS_POSITION_LENGTH in getBoundPositionFromRotation()
[all …]
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/view/
DWindowManagerImpl.java30 import android.view.DisplayCutout;
140 final DisplayCutout.ParcelableWrapper displayCutout = in computeWindowInsets()
141 new DisplayCutout.ParcelableWrapper(); in computeWindowInsets()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wm/
DDisplayLayoutTest.java32 import android.view.DisplayCutout;
130 info.displayCutout = new DisplayCutout( in createDisplayInfo()
136 info.displayCutout = DisplayCutout.NO_CUTOUT; in createDisplayInfo()
/frameworks/base/core/java/com/android/internal/view/
DBaseIWindow.java27 import android.view.DisplayCutout;
58 DisplayCutout.ParcelableWrapper displayCutout) { in resized()
/frameworks/base/packages/overlays/
DCleanSpec.mk48 $(call add-clean-step, rm -rf $(PRODUCT_OUT)/vendor/overlay/DisplayCutout*)

123