Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DTestableWindowManager.java26 import android.view.WindowMetrics;
78 public WindowMetrics getCurrentWindowMetrics() { in getCurrentWindowMetrics()
79 final WindowMetrics realMetrics = mWindowManager.getCurrentWindowMetrics(); in getCurrentWindowMetrics()
80 final WindowMetrics windowMetrics = new WindowMetrics( in getCurrentWindowMetrics()
88 public WindowMetrics getMaximumWindowMetrics() { in getMaximumWindowMetrics()
/frameworks/base/core/tests/coretests/src/android/view/
DWindowMetricsTest.java74 WindowMetrics currentMetrics = mWm.getCurrentWindowMetrics(); in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
75 WindowMetrics maxMetrics = mWm.getMaximumWindowMetrics(); in testAddViewAndRemoveView_GetMetrics_DoNotCrash()
86 private static void verifyMetricsValidity(WindowMetrics currentMetrics, in verifyMetricsValidity()
87 WindowMetrics maxMetrics) { in verifyMetricsValidity()
/frameworks/base/core/java/android/view/
DWindowMetrics.java33 public final class WindowMetrics { class
37 public WindowMetrics(@NonNull Rect bounds, @NonNull WindowInsets windowInsets) { in WindowMetrics() method in WindowMetrics
DWindowManagerImpl.java286 public WindowMetrics getCurrentWindowMetrics() { in getCurrentWindowMetrics()
290 return new WindowMetrics(bounds, computeWindowInsets(bounds)); in getCurrentWindowMetrics()
300 public WindowMetrics getMaximumWindowMetrics() { in getMaximumWindowMetrics()
304 return new WindowMetrics(maxBounds, computeWindowInsets(maxBounds)); in getMaximumWindowMetrics()
356 public Set<WindowMetrics> getPossibleMaximumWindowMetrics(int displayId) { in getPossibleMaximumWindowMetrics()
365 Set<WindowMetrics> maxMetrics = new HashSet<>(); in getPossibleMaximumWindowMetrics()
390 maxMetrics.add(new WindowMetrics(maxBounds, windowInsets)); in getPossibleMaximumWindowMetrics()
/frameworks/base/core/java/android/window/
DWindowMetricsHelper.java27 import android.view.WindowMetrics;
43 @NonNull WindowMetrics windowMetrics) { in getBoundsExcludingNavigationBarAndCutout()
/frameworks/base/core/tests/coretests/src/android/window/
DWindowMetricsHelperTest.java25 import android.view.WindowMetrics;
57 final WindowMetrics metrics = activity.getWindowManager().getCurrentWindowMetrics(); in testGetLegacySizeMatchesDisplayGetSize()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/view/
DTaskPreviewSizeProviderTest.kt27 import android.view.WindowMetrics
103 val windowMetrics = WindowMetrics(windowManager.maximumWindowMetrics.bounds, windowInsets) in givenTaskbarSize()
110 val windowMetrics = WindowMetrics(bounds, null) in givenDisplay()
/frameworks/layoutlib/bridge/src/android/view/
DWindowManagerImpl.java210 public WindowMetrics getCurrentWindowMetrics() { in getCurrentWindowMetrics()
213 return new WindowMetrics(bound, computeWindowInsets()); in getCurrentWindowMetrics()
223 public WindowMetrics getMaximumWindowMetrics() { in getMaximumWindowMetrics()
224 return new WindowMetrics(getMaximumBounds(), computeWindowInsets()); in getMaximumWindowMetrics()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsDialogMeasureAdapter.java34 import android.view.WindowMetrics;
103 final WindowMetrics windowMetrics = mWindowManager.getMaximumWindowMetrics(); in onMeasureInternalPortrait()
190 final WindowMetrics windowMetrics = mWindowManager.getMaximumWindowMetrics(); in onMeasureInternalLandscape()
275 private static Insets getNavbarInsets(@Nullable WindowMetrics windowMetrics) { in getNavbarInsets()
282 private static Rect getMaximumWindowBounds(@Nullable WindowMetrics windowMetrics) { in getMaximumWindowBounds()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DDockTooltipViewTest.java33 import android.view.WindowMetrics;
57 private WindowMetrics mWindowMetrics;
DBaseTooltipViewTest.java35 import android.view.WindowMetrics;
60 private WindowMetrics mWindowMetrics;
DItemDelegateCompatTest.java33 import android.view.WindowMetrics;
64 private WindowMetrics mWindowMetrics;
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DEmbeddingTestUtils.java37 import android.view.WindowMetrics;
238 @NonNull Predicate<WindowMetrics> windowMetricsPredicate) { in createSplitPairRuleBuilder()
246 @NonNull Predicate<WindowMetrics> windowMetricsPredicate) { in createSplitPlaceholderRuleBuilder()
/frameworks/base/tests/HandwritingIme/src/com/google/android/test/handwritingime/
DInkView.java30 import android.view.WindowMetrics;
61 WindowMetrics metrics = wm.getCurrentWindowMetrics(); in InkView()
/frameworks/base/tests/SurfaceViewSyncTest/src/com/android/test/
DSurfaceViewSyncActivity.java34 import android.view.WindowMetrics;
67 WindowMetrics metrics = windowManager.getCurrentWindowMetrics(); in onCreate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/
DImageWallpaperTest.java47 import android.view.WindowMetrics;
74 private WindowMetrics mWindowMetrics;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/charging/
DWiredChargingRippleControllerTest.kt24 import android.view.WindowMetrics
62 @Mock private lateinit var windowMetrics: WindowMetrics
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DSplitPresenter.java38 import android.view.WindowMetrics;
554 final WindowMetrics taskWindowMetrics = getTaskWindowMetrics(taskConfiguration); in computeSplitAttributes()
987 WindowMetrics getTaskWindowMetrics(@NonNull Activity activity) { in getTaskWindowMetrics()
992 private static WindowMetrics getTaskWindowMetrics(@NonNull Configuration taskConfiguration) { in getTaskWindowMetrics()
995 return new WindowMetrics(taskBounds, WindowInsets.CONSUMED); in getTaskWindowMetrics()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityFloatingMenuView.java52 import android.view.WindowMetrics;
514 final WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in onWindowInsetsApplied()
585 private void updateDisplaySizeWith(WindowMetrics metrics) { in updateDisplaySizeWith()
734 private Insets getDisplayInsets(WindowMetrics metrics) { in getDisplayInsets()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavigationBarTest.java68 import android.view.WindowMetrics;
274 WindowMetrics metrics = mContext.getSystemService(WindowManager.class) in setupSysuiDependency()
277 WindowMetrics currentWindowMetrics = mContext.getSystemService(WindowManager.class) in setupSysuiDependency()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DMagnificationModeSwitch.java41 import android.view.WindowMetrics;
442 final WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in getDraggableWindowBounds()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/startingsurface/
DStartingSurfaceDrawerTests.java66 import android.view.WindowMetrics;
162 final WindowMetrics metrics = realWindowManager.getMaximumWindowMetrics(); in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DSideFpsControllerTest.kt51 import android.view.WindowMetrics
226 .thenReturn(WindowMetrics(displayBounds, WindowInsets.CONSUMED))
228 .thenReturn(WindowMetrics(displayBounds, windowInsets))
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubblePositioner.java32 import android.view.WindowMetrics;
111 WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in update()
/frameworks/base/test-runner/src/android/test/
DTouchUtils.java35 import android.view.WindowMetrics;
108 private static Size getSizeExcludingNavigationBarAndCutout(WindowMetrics windowMetrics) { in getSizeExcludingNavigationBarAndCutout()

12