Home
last modified time | relevance | path

Searched refs:getDisplayCutout (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DWmDisplayCutoutTest.java62 assertEquals(new Rect(0, 15, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_top()
71 assertEquals(new Rect(15, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_left()
80 assertEquals(new Rect(0, 0, 0, 15), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_bottom()
89 assertEquals(new Rect(0, 0, 15, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_right()
98 assertThat(cutout.getDisplayCutout().getBoundingRectTop(), in calculateRelativeTo_bounds()
107 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutTop()
115 assertEquals(new Rect(20, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutLeft()
123 assertEquals(new Rect(0, 0, 0, 20), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutBottom()
131 assertEquals(new Rect(0, 0, 20, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutRight()
139 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_topLeftCornerCutout_portrait()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/
DStackAnimationController.java604 insets.getDisplayCutout() != null
605 ? insets.getDisplayCutout().getSafeInsetLeft()
613 insets.getDisplayCutout() != null
614 ? insets.getDisplayCutout().getSafeInsetRight()
621 insets.getDisplayCutout() != null
622 ? insets.getDisplayCutout().getSafeInsetTop()
631 insets.getDisplayCutout() != null
632 ? insets.getDisplayCutout().getSafeInsetBottom()
DExpandedAnimationController.java465 insets.getDisplayCutout() != null in getExpandedY()
466 ? insets.getDisplayCutout().getSafeInsetTop() in getExpandedY()
641 DisplayCutout cutout = insets.getDisplayCutout(); in getAvailableScreenWidth()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java134 if (!mDisplayCutout.getDisplayCutout().isEmpty()) { in onBeginLayout()
135 final DisplayCutout c = mDisplayCutout.getDisplayCutout(); in onBeginLayout()
DWindowFrames.java347 mDisplayCutout.getDisplayCutout().dumpDebug(proto, CUTOUT); in dumpDebug()
365 pw.println(prefix + " cutout=" + mDisplayCutout.getDisplayCutout() in dump()
366 + " last=" + mLastDisplayCutout.getDisplayCutout()); in dump()
DDisplayContent.java1762 calculateDisplayCutoutForRotation(rotation).getDisplayCutout(); in isNonDecorDisplayCloseToSquare()
1786 final DisplayCutout displayCutout = wmDisplayCutout.getDisplayCutout(); in updateDisplayAndOrientation()
1869 calculateDisplayCutoutForRotation(rotation).getDisplayCutout(); in computeScreenConfiguration()
2044 rotation).getDisplayCutout(); in reduceCompatConfigWidthSize()
2097 rotation).getDisplayCutout(); in reduceConfigLayout()
2119 rotation).getDisplayCutout(); in adjustDisplaySizeRanges()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarTouchableRegionManager.java184 && (mNotificationShadeWindowView.getRootWindowInsets().getDisplayCutout() != null); in updateTouchableRegion()
231 DisplayCutout cutout = windowInsets.getDisplayCutout(); in updateRegionForNotch()
DPhoneStatusBarView.java157 if (!Objects.equals(getRootWindowInsets().getDisplayCutout(), mDisplayCutout)) { in updateOrientationAndCutout()
159 mDisplayCutout = getRootWindowInsets().getDisplayCutout(); in updateOrientationAndCutout()
DStatusBarWindowView.java60 DisplayCutout displayCutout = getRootWindowInsets().getDisplayCutout(); in onApplyWindowInsets()
DKeyguardBottomAreaView.java840 int bottom = insets.getDisplayCutout() != null in onApplyWindowInsets()
841 ? insets.getDisplayCutout().getSafeInsetBottom() : 0; in onApplyWindowInsets()
DHeadsUpAppearanceController.java228 DisplayCutout cutout = (windowInset != null) ? windowInset.getDisplayCutout() : null; in getRtlTranslation()
DNotificationShadeWindowView.java107 DisplayCutout displayCutout = getRootWindowInsets().getDisplayCutout(); in onApplyWindowInsets()
DKeyguardStatusBarView.java245 mDisplayCutout = getRootWindowInsets().getDisplayCutout(); in updateLayoutConsideringCutout()
/frameworks/base/core/java/android/window/
DWindowMetricsHelper.java56 final DisplayCutout cutout = windowInsets.getDisplayCutout(); in getBoundsExcludingNavigationBarAndCutout()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowFrameTests.java435 assertEquals(w.getWmDisplayCutout().getDisplayCutout().getSafeInsetTop(), 50); in testDisplayCutout()
436 assertEquals(w.getWmDisplayCutout().getDisplayCutout().getSafeInsetBottom(), 0); in testDisplayCutout()
437 assertEquals(w.getWmDisplayCutout().getDisplayCutout().getSafeInsetLeft(), 0); in testDisplayCutout()
438 assertEquals(w.getWmDisplayCutout().getDisplayCutout().getSafeInsetRight(), 0); in testDisplayCutout()
DDisplayPolicyTestsBase.java127 info.displayCutout = cutout.getDisplayCutout(); in displayInfoAndCutoutForRotation()
DDisplayContentTests.java582 .computeSafeInsets(200, 400).getDisplayCutout(); in testDisplayCutout_rot0()
617 .computeSafeInsets(displayWidth, displayHeight).getDisplayCutout(); in testDisplayCutout_rot90()
634 .computeSafeInsets(displayHeight, displayWidth).getDisplayCutout(), in testDisplayCutout_rot90()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java157 public DisplayCutout getDisplayCutout() { in getDisplayCutout() method in WmDisplayCutout
/frameworks/base/core/java/android/view/
DDisplayAdjustments.java145 public DisplayCutout getDisplayCutout(@Nullable DisplayCutout realCutout) { in getDisplayCutout() method in DisplayAdjustments
DDisplay.java856 ? getDisplayAdjustments().getDisplayCutout(mDisplayInfo.displayCutout) in getCutout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleExpandedView.java526 insets.getDisplayCutout() != null in updateInsets()
527 ? insets.getDisplayCutout().getSafeInsetBottom() in updateInsets()
DBubbleStackView.java946 DisplayCutout cutout = insets.getDisplayCutout(); in BubbleStackView()
2575 insets.getDisplayCutout() != null in getStatusBarHeight()
2576 ? insets.getDisplayCutout().getSafeInsetTop() in getStatusBarHeight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DHeadsUpStatusBarView.java248 DisplayCutout displayCutout = getRootWindowInsets().getDisplayCutout(); in fitSystemWindows()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/bubbles/animation/
DPhysicsAnimationLayoutTestCase.java92 when(mWindowInsets.getDisplayCutout()).thenReturn(mCutout); in setUp()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java230 if (insets.getDisplayCutout() != null) { in onApplyWindowInsets()
231 mHeaderPaddingTop = insets.getDisplayCutout().getSafeInsetTop(); in onApplyWindowInsets()

12