Home
last modified time | relevance | path

Searched refs:getCurrentWindowMetrics (Results 1 – 25 of 64) sorted by relevance

123

/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
H A DClipboardOverlayWindow.java86 WindowInsets currentInsets = mWindowManager.getCurrentWindowMetrics().getWindowInsets(); in init()
89 WindowInsets insets = mWindowManager.getCurrentWindowMetrics().getWindowInsets(); in init()
121 return mWindowManager.getCurrentWindowMetrics().getWindowInsets(); in getWindowInsets()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DWindowMetricsTest.java74 WindowMetrics currentMetrics = mWm.getCurrentWindowMetrics(); in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
80 currentMetrics = mWm.getCurrentWindowMetrics(); in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
H A DBigCache.java42 final Rect windowBounds = getWindowManager().getCurrentWindowMetrics().getBounds(); in onCreate()
H A DScaleGestureDetectorTest.java60 wm.getCurrentWindowMetrics()); in testScaleGestureDetector()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
H A DTestableWindowManager.java78 public WindowMetrics getCurrentWindowMetrics() { in getCurrentWindowMetrics() method in TestableWindowManager
79 final WindowMetrics realMetrics = mWindowManager.getCurrentWindowMetrics(); in getCurrentWindowMetrics()
H A DWindowMagnificationControllerTest.java343 final Rect bounds = wm.getCurrentWindowMetrics().getBounds(); in deleteWindowMagnification_enableAtTheBottom_overlapFlagIsFalse()
541 mWindowManager.getCurrentWindowMetrics().getBounds()); in onScreenSizeChanged_enabledAtTheCenterOfScreen_keepSameWindowSizeRatio()
1063 final Rect bounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in moveWindowMagnificationToTheBottom_enabledWithGestureInset_overlapFlagIsTrue()
1080 final Rect bounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in moveWindowMagnificationToRightEdge_dragHandleMovesToLeftAndUpdatesTapExcludeRegion()
1116 final Rect bounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in moveWindowMagnificationToLeftEdge_dragHandleMovesToRightAndUpdatesTapExcludeRegion()
1215 final Rect bounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in setWindowSizeLargerThanScreenSize_enabled_windowSizeIsScreenSize()
1234 final Rect bounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in changeMagnificationSize_expectedWindowSize()
1264 final Rect bounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in editModeOnDragCorner_resizesWindow()
1298 final Rect bounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in editModeOnDragEdge_resizesWindowInOnlyOneDirection()
1328 final Rect bounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in setWindowCenterOutOfScreen_enabled_magnificationCenterIsInsideTheScreen()
[all …]
H A DMagnificationModeSwitchTest.java270 mWindowManager.getCurrentWindowMetrics().getBounds().width() / 2; in onDraggingGestureFinish_buttonIsShowing_stickToRightEdge()
492 final Rect windowBounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in onRotationChanged_buttonIsShowing_expectedYPosition()
514 final Rect windowBounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in onScreenSizeChanged_buttonIsShowingOnTheRightSide_expectedPosition()
/aosp14/frameworks/base/packages/SettingsProvider/src/android/provider/settings/backup/
H A DLargeScreenSettings.java43 final Rect bounds = windowManager.getCurrentWindowMetrics().getBounds(); in isLargeScreen()
/aosp14/frameworks/base/core/tests/coretests/src/android/window/
H A DWindowMetricsHelperTest.java57 final WindowMetrics metrics = activity.getWindowManager().getCurrentWindowMetrics(); in testGetLegacySizeMatchesDisplayGetSize()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
H A DMagnificationModeSwitch.java145 final Rect windowBounds = mWindowManager.getCurrentWindowMetrics().getBounds(); in MagnificationModeSwitch()
239 final int windowWidth = mWindowManager.getCurrentWindowMetrics().getBounds().width(); in onFinish()
434 final WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in getDraggableWindowBounds()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DAdjacentListsWithAdjacentISVsInside.java71 getWindowManager().getCurrentWindowMetrics()).height()); in onCreate()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListOfInternalSelectionViews.java116 getWindowManager().getCurrentWindowMetrics()).height(); in onCreate()
/aosp14/frameworks/base/tests/GamePerformance/src/android/gameperformance/
H A DCustomControlView.java48 wm.getCurrentWindowMetrics()).width(); in CustomControlView()
/aosp14/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/util/
H A DExtensionHelper.java108 return context.getSystemService(WindowManager.class).getCurrentWindowMetrics().getBounds(); in getWindowBounds()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
H A DMenuViewLayerControllerTest.java80 when(mWindowManager.getCurrentWindowMetrics()).thenReturn(mWindowMetrics); in setUp()
/aosp14/frameworks/base/test-runner/src/android/test/
H A DTouchUtils.java70 final Size size = getSizeExcludingNavigationBarAndCutout(wm.getCurrentWindowMetrics()); in dragQuarterScreenDown()
99 final Size size = getSizeExcludingNavigationBarAndCutout(wm.getCurrentWindowMetrics()); in dragQuarterScreenUp()
243 wm.getCurrentWindowMetrics()).getHeight(); in dragViewToBottom()
/aosp14/frameworks/base/core/java/android/view/
H A DWindowManagerImpl.java319 public WindowMetrics getCurrentWindowMetrics() { in getCurrentWindowMetrics() method in WindowManagerImpl
320 return mWindowMetricsController.getCurrentWindowMetrics(); in getCurrentWindowMetrics()
/aosp14/frameworks/base/core/java/android/window/
H A DWindowMetricsController.java64 public WindowMetrics getCurrentWindowMetrics() { in getCurrentWindowMetrics() method in WindowMetricsController
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
H A DGridTouchVerticalSpacingStackFromBottomTest.java111 mActivity.getWindowManager().getCurrentWindowMetrics()).height(); in testLongScroll()
/aosp14/frameworks/base/tests/HandwritingIme/src/com/google/android/test/handwritingime/
H A DInkView.java62 WindowMetrics metrics = wm.getCurrentWindowMetrics(); in InkView()
/aosp14/frameworks/base/core/tests/coretests/src/android/util/
H A DScrollViewScenario.java242 int screenHeight = getWindowManager().getCurrentWindowMetrics().getBounds().height() in onCreate()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
H A DMagnificationThumbnailTest.java59 when(mMockWindowManager.getCurrentWindowMetrics()).thenReturn(metrics); in setUp()
/aosp14/frameworks/base/tests/SurfaceViewSyncTest/src/com/android/test/
H A DSurfaceViewSyncActivity.java65 WindowMetrics metrics = windowManager.getCurrentWindowMetrics(); in onCreate()
/aosp14/frameworks/base/core/tests/coretests/BstatsTestApp/src/com/android/coretests/apps/bstatstestapp/
H A DTestService.java122 final Rect bounds = wm.getCurrentWindowMetrics().getBounds();
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
H A DUtilities.java142 final Rect bounds = windowManager.getCurrentWindowMetrics().getBounds(); in isLargeScreen()

123