Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DWmDisplayCutoutTest.java61 assertEquals(new Rect(0, 15, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_top()
70 assertEquals(new Rect(15, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_left()
79 assertEquals(new Rect(0, 0, 0, 15), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_bottom()
88 assertEquals(new Rect(0, 0, 15, 0), cutout.getDisplayCutout().getSafeInsets()); in calculateRelativeTo_right()
97 assertThat(cutout.getDisplayCutout().getBoundingRectTop(), in calculateRelativeTo_bounds()
106 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_top()
114 assertEquals(new Rect(20, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_left()
122 assertEquals(new Rect(0, 0, 0, 20), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_bottom()
130 assertEquals(new Rect(0, 0, 20, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_right()
136 2000).getDisplayCutout(); in computeSafeInsets_bounds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/animation/
DStackAnimationController.java446 insets.getDisplayCutout() != null
447 ? insets.getDisplayCutout().getSafeInsetLeft()
455 insets.getDisplayCutout() != null
456 ? insets.getDisplayCutout().getSafeInsetRight()
463 insets.getDisplayCutout() != null
464 ? insets.getDisplayCutout().getSafeInsetTop()
473 insets.getDisplayCutout() != null
474 ? insets.getDisplayCutout().getSafeInsetBottom()
DExpandedAnimationController.java364 insets.getDisplayCutout() != null in getExpandedY()
365 ? insets.getDisplayCutout().getSafeInsetTop() in getExpandedY()
534 DisplayCutout cutout = insets.getDisplayCutout(); in getAvailableScreenWidth()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowFrameTests.java445 assertEquals(w.getWmDisplayCutout().getDisplayCutout().getSafeInsetTop(), 50); in testDisplayCutout()
446 assertEquals(w.getWmDisplayCutout().getDisplayCutout().getSafeInsetBottom(), 0); in testDisplayCutout()
447 assertEquals(w.getWmDisplayCutout().getDisplayCutout().getSafeInsetLeft(), 0); in testDisplayCutout()
448 assertEquals(w.getWmDisplayCutout().getDisplayCutout().getSafeInsetRight(), 0); in testDisplayCutout()
472 assertEquals(w.getWmDisplayCutout().getDisplayCutout().getSafeInsetTop(), 50); in testDisplayCutout_tempDisplayedBounds()
473 assertEquals(w.getWmDisplayCutout().getDisplayCutout().getSafeInsetBottom(), 0); in testDisplayCutout_tempDisplayedBounds()
474 assertEquals(w.getWmDisplayCutout().getDisplayCutout().getSafeInsetLeft(), 0); in testDisplayCutout_tempDisplayedBounds()
475 assertEquals(w.getWmDisplayCutout().getDisplayCutout().getSafeInsetRight(), 0); in testDisplayCutout_tempDisplayedBounds()
DDisplayPolicyTestsBase.java122 info.displayCutout = cutout.getDisplayCutout(); in displayInfoAndCutoutForRotation()
DDisplayContentTests.java446 .computeSafeInsets(200, 400).getDisplayCutout(); in testDisplayCutout_rot0()
477 .computeSafeInsets(displayWidth, displayHeight).getDisplayCutout(); in testDisplayCutout_rot90()
495 .getDisplayCutout(), dc.getDisplayInfo().displayCutout); in testDisplayCutout_rot90()
/frameworks/base/services/core/java/com/android/server/wm/
DWindowFrames.java409 mDisplayCutout.getDisplayCutout().writeToProto(proto, CUTOUT); in writeToProto()
431 pw.println(prefix + " cutout=" + mDisplayCutout.getDisplayCutout() in dump()
432 + " last=" + mLastDisplayCutout.getDisplayCutout()); in dump()
DDisplayFrames.java175 if (!mDisplayCutout.getDisplayCutout().isEmpty()) { in onBeginLayout()
176 final DisplayCutout c = mDisplayCutout.getDisplayCutout(); in onBeginLayout()
DDockedStackDividerController.java181 rotation).getDisplayCutout(); in getSmallestWidthDpForBounds()
283 mDisplayContent.calculateDisplayCutoutForRotation(rotation).getDisplayCutout(); in initSnapAlgorithmForRotations()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarTouchableRegionManager.java79 && (mStatusBarWindowView.getRootWindowInsets().getDisplayCutout() != null); in updateTouchableRegion()
DPhoneStatusBarView.java167 if (!Objects.equals(getRootWindowInsets().getDisplayCutout(), mDisplayCutout)) { in updateOrientationAndCutout()
169 mDisplayCutout = getRootWindowInsets().getDisplayCutout(); in updateOrientationAndCutout()
DKeyguardBottomAreaView.java831 int bottom = insets.getDisplayCutout() != null in onApplyWindowInsets()
832 ? insets.getDisplayCutout().getSafeInsetBottom() : 0; in onApplyWindowInsets()
DHeadsUpAppearanceController.java225 DisplayCutout cutout = (windowInset != null) ? windowInset.getDisplayCutout() : null; in getRtlTranslation()
DHeadsUpManagerPhone.java393 DisplayCutout cutout = mStatusBarWindowView.getRootWindowInsets().getDisplayCutout(); in updateRegionForNotch()
DKeyguardStatusBarView.java227 DisplayCutout dc = getRootWindowInsets().getDisplayCutout(); in updateLayoutConsideringCutout()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java168 public DisplayCutout getDisplayCutout() { in getDisplayCutout() method in WmDisplayCutout
/frameworks/base/packages/SystemUI/src/com/android/systemui/bubbles/
DBubbleExpandedView.java331 insets.getDisplayCutout() != null in updateInsets()
332 ? insets.getDisplayCutout().getSafeInsetBottom() in updateInsets()
DBubbleStackView.java439 DisplayCutout cutout = insets.getDisplayCutout(); in BubbleStackView()
1531 insets.getDisplayCutout() != null in getStatusBarHeight()
1532 ? insets.getDisplayCutout().getSafeInsetTop() in getStatusBarHeight()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DHeadsUpStatusBarView.java237 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/packages/SystemUI/src/com/android/systemui/qs/
DQSDetail.java151 DisplayCutout cutout = insets.getDisplayCutout(); in onApplyWindowInsets()
DQuickStatusBarHeader.java400 DisplayCutout cutout = insets.getDisplayCutout(); in onApplyWindowInsets()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java230 if (insets.getDisplayCutout() != null) { in onApplyWindowInsets()
231 mHeaderPaddingTop = insets.getDisplayCutout().getSafeInsetTop(); in onApplyWindowInsets()
/frameworks/base/core/java/android/view/
DInsetsController.java137 mLastInsets.shouldAlwaysConsumeSystemBars(), mLastInsets.getDisplayCutout(), in InsetsController()
DWindowInsets.java428 public DisplayCutout getDisplayCutout() { in getDisplayCutout() method in WindowInsets

12