Home
last modified time | relevance | path

Searched refs:windowMetrics (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProviderTest.kt40 @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/
DWindowMetricsHelper.java43 @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/
DBubblePositioner.java104 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/
DDetailDialog.kt170 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/
DTestableWindowManager.java86 final WindowMetrics windowMetrics = new WindowMetrics( in getCurrentWindowMetrics() local
90 return windowMetrics; in getCurrentWindowMetrics()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarContentInsetsProvider.kt246 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/
DMagnificationModeSwitch.java411 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()
DWindowMagnificationController.java245 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/
DTouchUtils.java108 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/
DAccessibilityFloatingMenuView.java723 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/
DScreenshotView.java288 final WindowMetrics windowMetrics = wm.getCurrentWindowMetrics(); in getTouchRegion() local
289 final Insets gestureInsets = windowMetrics.getWindowInsets().getInsets( in getTouchRegion()