Home
last modified time | relevance | path

Searched refs:cutout (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DWmDisplayCutoutTest.java57 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_top() local
61 assertEquals(new Rect(0, 15, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_top()
66 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_left() local
70 assertEquals(new Rect(15, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_left()
75 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_bottom() local
79 assertEquals(new Rect(0, 0, 0, 15), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_bottom()
84 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_right() local
88 assertEquals(new Rect(0, 0, 15, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_right()
93 WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in calculateRelativeTo_bounds() local
97 assertThat(cutout.getDisplayCutout().getBoundingRectTop(), in calculateRelativeTo_bounds()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DDisplayCutoutTest.java164 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_immutable() local
171 DisplayCutout cutout = createCutoutWithInsets(100, 0, 0, 0).inset(1, 2, 3, 4); in inset_insets_withLeftCutout() local
173 assertEquals(99, cutout.getSafeInsetLeft()); in inset_insets_withLeftCutout()
174 assertEquals(0, cutout.getSafeInsetTop()); in inset_insets_withLeftCutout()
175 assertEquals(0, cutout.getSafeInsetRight()); in inset_insets_withLeftCutout()
176 assertEquals(0, cutout.getSafeInsetBottom()); in inset_insets_withLeftCutout()
181 DisplayCutout cutout = mCutoutTop.inset(1, 2, 3, 4); in inset_insets_withTopCutout() local
183 assertEquals(0, cutout.getSafeInsetLeft()); in inset_insets_withTopCutout()
184 assertEquals(98, cutout.getSafeInsetTop()); in inset_insets_withTopCutout()
185 assertEquals(0, cutout.getSafeInsetRight()); in inset_insets_withTopCutout()
[all …]
/frameworks/base/core/java/android/view/
DDisplayCutout.java707 final DisplayCutout cutout = new DisplayCutout( in pathAndDisplayCutoutFromSpec() local
711 final Pair<Path, DisplayCutout> result = new Pair<>(p, cutout); in pathAndDisplayCutoutFromSpec()
744 public ParcelableWrapper(DisplayCutout cutout) { in ParcelableWrapper() argument
745 mInner = cutout; in ParcelableWrapper()
763 public static void writeCutoutToParcel(DisplayCutout cutout, Parcel out, int flags) { in writeCutoutToParcel() argument
764 if (cutout == null) { in writeCutoutToParcel()
766 } else if (cutout == NO_CUTOUT) { in writeCutoutToParcel()
770 out.writeTypedObject(cutout.mSafeInsets, flags); in writeCutoutToParcel()
771 out.writeTypedArray(cutout.mBounds.getRects(), flags); in writeCutoutToParcel()
822 public void set(ParcelableWrapper cutout) { in set() argument
[all …]
DInsetsState.java145 boolean alwaysConsumeSystemBars, DisplayCutout cutout, in calculateInsets() argument
186 alwaysConsumeSystemBars, cutout); in calculateInsets()
DInsetsController.java180 boolean alwaysConsumeSystemBars, DisplayCutout cutout, Rect legacyContentInsets, in calculateInsets() argument
185 mLastInsets = mState.calculateInsets(mFrame, isScreenRound, alwaysConsumeSystemBars, cutout, in calculateInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DPhoneStatusBarView.java389 public static Pair<Integer, Integer> cornerCutoutMargins(DisplayCutout cutout, in cornerCutoutMargins() argument
391 return cornerCutoutMargins(cutout, display, RotationUtils.ROTATION_NONE, -1); in cornerCutoutMargins()
394 private static Pair<Integer, Integer> cornerCutoutMargins(DisplayCutout cutout, in cornerCutoutMargins() argument
396 if (cutout == null) { in cornerCutoutMargins()
403 return new Pair<>(cutout.getSafeInsetLeft(), cutout.getSafeInsetRight()); in cornerCutoutMargins()
407 boundsFromDirection(cutout, Gravity.TOP, bounds); in cornerCutoutMargins()
DHeadsUpAppearanceController.java225 DisplayCutout cutout = (windowInset != null) ? windowInset.getDisplayCutout() : null; in getRtlTranslation() local
228 int cutoutLeft = (cutout != null) ? cutout.getSafeInsetLeft() : 0; in getRtlTranslation()
229 int cutoutRight = (cutout != null) ? cutout.getSafeInsetRight() : 0; in getRtlTranslation()
DHeadsUpManagerPhone.java393 DisplayCutout cutout = mStatusBarWindowView.getRootWindowInsets().getDisplayCutout(); in updateRegionForNotch() local
394 if (cutout == null) { in updateRegionForNotch()
401 ScreenDecorations.DisplayCutoutView.boundsFromDirection(cutout, Gravity.TOP, bounds); in updateRegionForNotch()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java114 private static Rect computeSafeInsets(Size displaySize, DisplayCutout cutout) { in computeSafeInsets() argument
116 final List<Rect> boundingRects = cutout.replaceSafeInsets( in computeSafeInsets()
123 final List<Rect> boundingRects = cutout.replaceSafeInsets( in computeSafeInsets()
131 " cutout=" + cutout); in computeSafeInsets()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTestsBase.java112 WmDisplayCutout cutout = null; in displayInfoAndCutoutForRotation() local
119 cutout = WmDisplayCutout.computeSafeInsets( in displayInfoAndCutoutForRotation()
122 info.displayCutout = cutout.getDisplayCutout(); in displayInfoAndCutoutForRotation()
126 return Pair.create(info, cutout); in displayInfoAndCutoutForRotation()
DWindowFrameTests.java436 final WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in testDisplayCutout() local
442 windowFrames.setDisplayCutout(cutout); in testDisplayCutout()
463 final WmDisplayCutout cutout = WmDisplayCutout.computeSafeInsets( in testDisplayCutout_tempDisplayedBounds() local
469 windowFrames.setDisplayCutout(cutout); in testDisplayCutout_tempDisplayedBounds()
DDisplayContentTests.java444 final DisplayCutout cutout = new WmDisplayCutout( in testDisplayCutout_rot0() local
448 dc.mInitialDisplayCutout = cutout; in testDisplayCutout_rot0()
452 assertEquals(cutout, dc.getDisplayInfo().displayCutout); in testDisplayCutout_rot0()
474 final DisplayCutout cutout = new WmDisplayCutout( in testDisplayCutout_rot90() local
479 dc.mInitialDisplayCutout = cutout; in testDisplayCutout_rot90()
DWindowStateTests.java459 final DisplayCutout cutout = new DisplayCutout( in testDisplayCutoutIsCalculatedRelativeToFrame() local
465 wf.setDisplayCutout(new WmDisplayCutout(cutout, new Size(200, 400))); in testDisplayCutoutIsCalculatedRelativeToFrame()
468 assertThat(app.getWmDisplayCutout().getDisplayCutout(), is(cutout.inset(7, 10, 5, 20))); in testDisplayCutoutIsCalculatedRelativeToFrame()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/
DExpandedAnimationController.java534 DisplayCutout cutout = insets.getDisplayCutout(); in getAvailableScreenWidth() local
535 if (cutout != null) { in getAvailableScreenWidth()
536 cutoutLeft = cutout.getSafeInsetLeft(); in getAvailableScreenWidth()
537 cutoutRight = cutout.getSafeInsetRight(); in getAvailableScreenWidth()
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DActionBarOverlayLayoutTest.java170 private WindowInsets insetsWith(Insets content, DisplayCutout cutout) { in insetsWith() argument
171 return new WindowInsets(content.toRect(), null, false, false, cutout); in insetsWith()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSDetail.java151 DisplayCutout cutout = insets.getDisplayCutout(); in onApplyWindowInsets() local
153 cutout, getDisplay()); in onApplyWindowInsets()
DQuickStatusBarHeader.java400 DisplayCutout cutout = insets.getDisplayCutout(); in onApplyWindowInsets() local
402 cutout, getDisplay()); in onApplyWindowInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleStackView.java439 DisplayCutout cutout = insets.getDisplayCutout(); in BubbleStackView()
440 if (cutout != null) { in BubbleStackView()
441 cutoutLeft = cutout.getSafeInsetLeft(); in BubbleStackView()
442 cutoutRight = cutout.getSafeInsetRight(); in BubbleStackView()
/frameworks/base/services/core/java/com/android/server/wm/
DSession.java189 DisplayCutout.ParcelableWrapper cutout, MergedConfiguration mergedConfiguration, in relayout() argument
197 outStableInsets, outsets, outBackdropFrame, cutout, in relayout()
DTaskStack.java433 final DisplayCutout cutout = mDisplayContent.getDisplayInfo().displayCutout; in calculateDockedBoundsForConfigChange() local
434 snapDockedStackAfterRotation(parentConfig, cutout, inOutBounds); in calculateDockedBoundsForConfigChange()
DDisplayContent.java1656 DisplayCutout cutout, int rotation) { in calculateDisplayCutoutForRotationUncached() argument
1657 if (cutout == null || cutout == DisplayCutout.NO_CUTOUT) { in calculateDisplayCutoutForRotationUncached()
1662 cutout, mInitialDisplayWidth, mInitialDisplayHeight); in calculateDisplayCutoutForRotationUncached()
1667 cutout, mInitialDisplayWidth, mInitialDisplayHeight) in calculateDisplayCutoutForRotationUncached()
DActivityRecord.java3886 final DisplayCutout cutout = display.calculateDisplayCutoutForRotation(rotation) in CompatDisplayInsets() local
3888 policy.getNonDecorInsetsLw(rotation, dw, dh, cutout, mNonDecorInsets[rotation]); in CompatDisplayInsets()
/frameworks/base/core/proto/android/server/
Dwindowmanagerservice.proto302 optional .android.view.DisplayCutoutProto cutout = 33 [deprecated=true]; field
389 optional .android.view.DisplayCutoutProto cutout = 10; field