/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarContentInsetsProviderTest.kt | 40 @Mock private lateinit var windowMetrics: WindowMetrics variable in com.android.systemui.statusbar.phone.StatusBarContentInsetsProviderTest 58 `when`(windowMetrics.bounds).thenReturn(screenBounds) in testGetBoundingRectForPrivacyChipForRotation_noCutout() 66 windowMetrics, in testGetBoundingRectForPrivacyChipForRotation_noCutout() 95 windowMetrics, in testGetBoundingRectForPrivacyChipForRotation_noCutout() 130 `when`(windowMetrics.bounds).thenReturn(screenBounds) in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout() 145 windowMetrics, in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout() 162 windowMetrics, in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout() 181 windowMetrics, in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout() 199 windowMetrics, in testCalculateInsetsForRotationWithRotatedResources_topLeftCutout() 222 `when`(windowMetrics.bounds).thenReturn(screenBounds) in testCalculateInsetsForRotationWithRotatedResources_nonCornerCutout() [all …]
|
/frameworks/base/core/java/android/window/ |
D | WindowMetricsHelper.java | 43 @NonNull WindowMetrics windowMetrics) { in getBoundsExcludingNavigationBarAndCutout() 44 final WindowInsets windowInsets = windowMetrics.getWindowInsets(); in getBoundsExcludingNavigationBarAndCutout() 45 final Rect result = new Rect(windowMetrics.getBounds()); in getBoundsExcludingNavigationBarAndCutout()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/ |
D | BubblePositioner.java | 104 WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in update() local 105 if (windowMetrics == null) { in update() 108 WindowInsets metricInsets = windowMetrics.getWindowInsets(); in update() 120 + " bounds: " + windowMetrics.getBounds() in update() 123 updateInternal(mRotation, insets, windowMetrics.getBounds()); in update()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/ |
D | DetailDialog.kt | 170 val windowMetrics = wm.getCurrentWindowMetrics() in <lambda>() constant 171 val rect = windowMetrics.bounds in <lambda>() 172 val metricInsets = windowMetrics.windowInsets in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | TestableWindowManager.java | 86 final WindowMetrics windowMetrics = new WindowMetrics( in getCurrentWindowMetrics() local 90 return windowMetrics; in getCurrentWindowMetrics()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarContentInsetsProvider.kt | 246 windowMetrics: WindowMetrics, in calculateInsetsForRotationWithRotatedResources() 257 val rotZeroBounds = getRotationZeroDisplayBounds(windowMetrics, currentRotation) in calculateInsetsForRotationWithRotatedResources() 258 val currentBounds = windowMetrics.bounds in calculateInsetsForRotationWithRotatedResources()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | MagnificationModeSwitch.java | 411 final WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in getDraggableWindowBounds() local 412 final Insets windowInsets = windowMetrics.getWindowInsets().getInsetsIgnoringVisibility( in getDraggableWindowBounds() 414 final Rect boundRect = new Rect(windowMetrics.getBounds()); in getDraggableWindowBounds()
|
D | WindowMagnificationController.java | 245 final WindowMetrics windowMetrics = mWm.getCurrentWindowMetrics(); in updateSystemGestureInsetsTop() local 246 final Insets insets = windowMetrics.getWindowInsets().getInsets(systemGestures()); in updateSystemGestureInsetsTop() 248 insets.bottom != 0 ? windowMetrics.getBounds().bottom - insets.bottom : -1; in updateSystemGestureInsetsTop()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 108 private static Size getSizeExcludingNavigationBarAndCutout(WindowMetrics windowMetrics) { in getSizeExcludingNavigationBarAndCutout() argument 109 WindowInsets windowInsets = windowMetrics.getWindowInsets(); in getSizeExcludingNavigationBarAndCutout() 115 Rect bounds = windowMetrics.getBounds(); in getSizeExcludingNavigationBarAndCutout()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | AccessibilityFloatingMenuView.java | 723 final WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in getInterval() local 724 final Insets imeInsets = windowMetrics.getWindowInsets().getInsets( in getInterval()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ScreenshotView.java | 288 final WindowMetrics windowMetrics = wm.getCurrentWindowMetrics(); in getTouchRegion() local 289 final Insets gestureInsets = windowMetrics.getWindowInsets().getInsets( in getTouchRegion()
|