Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/
DWmDisplayCutoutTest.java59 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutTop()
67 assertEquals(new Rect(20, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutLeft()
75 assertEquals(new Rect(0, 0, 0, 20), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutBottom()
83 assertEquals(new Rect(0, 0, 20, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_cutoutRight()
91 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_topLeftCornerCutout_portrait()
99 assertEquals(new Rect(0, 20, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_topRightCornerCutout_portrait()
107 assertEquals(new Rect(0, 0, 0, 20), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_bottomLeftCornerCutout_portrait()
115 assertEquals(new Rect(0, 0, 0, 20), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_bottomRightCornerCutout_portrait()
123 assertEquals(new Rect(20, 0, 0, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_topLeftCornerCutout_landscape()
131 assertEquals(new Rect(0, 0, 20, 0), cutout.getDisplayCutout().getSafeInsets()); in computeSafeInsets_topRightCornerCutout_landscape()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/utils/
DWmDisplayCutout.java68 public DisplayCutout getDisplayCutout() { in getDisplayCutout() method in WmDisplayCutout
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/window/
DStatusBarWindowView.java58 DisplayCutout displayCutout = getRootWindowInsets().getDisplayCutout(); in onApplyWindowInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarTouchableRegionManager.java215 && (mNotificationShadeWindowView.getRootWindowInsets().getDisplayCutout() != null); in updateTouchableRegion()
262 DisplayCutout cutout = windowInsets.getDisplayCutout(); in updateRegionForNotch()
DPhoneStatusBarView.java167 if (!Objects.equals(getRootWindowInsets().getDisplayCutout(), mDisplayCutout)) { in updateDisplayParameters()
169 mDisplayCutout = getRootWindowInsets().getDisplayCutout(); in updateDisplayParameters()
DKeyguardStatusBarView.java296 getRootWindowInsets().getDisplayCutout(), in updateLayoutConsideringCutout()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java87 && mInsetsState.getDisplayCutout().equals(displayCutout) in update()
DImmersiveModeConfirmation.java405 final Rect topDisplayCutout = insets.getDisplayCutout() != null in onApplyWindowInsets()
406 ? insets.getDisplayCutout().getBoundingRectTop() in onApplyWindowInsets()
DDisplayPolicy.java2578 final Insets waterfallInsets = state.getDisplayCutout().getWaterfallInsets();
/frameworks/base/services/core/java/com/android/server/input/debug/
DFocusEventDebugView.java131 if (insets.getDisplayCutout() != null) { in onApplyWindowInsets()
133 Math.max(paddingBottom, insets.getDisplayCutout().getSafeInsetBottom()); in onApplyWindowInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DImmersiveModeConfirmation.java482 final Rect topDisplayCutout = insets.getDisplayCutout() != null in onApplyWindowInsets()
483 ? insets.getDisplayCutout().getBoundingRectTop() in onApplyWindowInsets()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/animation/
DPhysicsAnimationLayoutTestCase.java92 when(mWindowInsets.getDisplayCutout()).thenReturn(mCutout); in setUp()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java244 if (insets.getDisplayCutout() != null) { in onApplyWindowInsets()
246 Math.max(headerPaddingTop, insets.getDisplayCutout().getSafeInsetTop()); in onApplyWindowInsets()
247 waterfallInsets = insets.getDisplayCutout().getWaterfallInsets(); in onApplyWindowInsets()
/frameworks/base/core/java/android/view/
DWindowLayout.java104 final DisplayCutout cutout = state.getDisplayCutout(); in computeFrames()
DInsetsState.java478 public DisplayCutout getDisplayCutout() { in getDisplayCutout() method in InsetsState
DWindowInsets.java612 public DisplayCutout getDisplayCutout() { in getDisplayCutout() method in WindowInsets
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayLayout.java334 public DisplayCutout getDisplayCutout() { in getDisplayCutout() method in DisplayLayout
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java1349 final DisplayCutout rawCutout = mInsetsState.getDisplayCutout(); in updateSurface()
1384 final DisplayCutout displayCutout = windowInsets.getDisplayCutout() != null in updateSurface()
1385 ? windowInsets.getDisplayCutout() : rawCutout; in updateSurface()
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DClipboardOverlayView.java589 DisplayCutout cutout = insets.getDisplayCutout(); in computeMargins()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipTouchHandler.java1000 mPipBoundsState.getDisplayLayout().getDisplayCutout();
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipTouchHandler.java1010 mPipBoundsState.getDisplayLayout().getDisplayCutout();
/frameworks/base/core/tests/coretests/src/android/view/
DInsetsStateTest.java636 new SparseIntArray()).getDisplayCutout(); in testCalculateRelativeCutout()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayContentTests.java815 .computeSafeInsets(200, 400).getDisplayCutout(); in testDisplayCutout_rot0()
856 .computeSafeInsets(displayWidth, displayHeight).getDisplayCutout(); in testDisplayCutout_rot90()
877 .computeSafeInsets(displayHeight, displayWidth).getDisplayCutout(), in testDisplayCutout_rot90()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotView.java454 DisplayCutout cutout = insets.getDisplayCutout(); in updateInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationStackScrollLayout.java1955 final DisplayCutout cutout = insets.getDisplayCutout();

12