Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/view/
DWindowMetrics.java51 public final class WindowMetrics { class
63 public WindowMetrics(@NonNull Rect bounds, @NonNull WindowInsets windowInsets) { in WindowMetrics() method in WindowMetrics
79 public WindowMetrics(@NonNull Rect bounds, @NonNull WindowInsets windowInsets, float density) { in WindowMetrics() method in WindowMetrics
93 public WindowMetrics(@NonNull Rect bounds, @NonNull Supplier<WindowInsets> windowInsetsSupplier, in WindowMetrics() method in WindowMetrics
163 return WindowMetrics.class.getSimpleName() + ":{" in toString()
DWindowManagerImpl.java327 public WindowMetrics getCurrentWindowMetrics() { in getCurrentWindowMetrics()
332 public WindowMetrics getMaximumWindowMetrics() { in getMaximumWindowMetrics()
338 public Set<WindowMetrics> getPossibleMaximumWindowMetrics(int displayId) { in getPossibleMaximumWindowMetrics()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DTestableWindowManager.java28 import android.view.WindowMetrics;
80 public WindowMetrics getCurrentWindowMetrics() { in getCurrentWindowMetrics()
81 final WindowMetrics realMetrics = mWindowManager.getCurrentWindowMetrics(); in getCurrentWindowMetrics()
82 final WindowMetrics windowMetrics = new WindowMetrics( in getCurrentWindowMetrics()
90 public WindowMetrics getMaximumWindowMetrics() { in getMaximumWindowMetrics()
/frameworks/base/core/java/android/window/
DWindowMetricsController.java41 import android.view.WindowMetrics;
66 public WindowMetrics getCurrentWindowMetrics() { in getCurrentWindowMetrics()
71 public WindowMetrics getMaximumWindowMetrics() { in getMaximumWindowMetrics()
81 private WindowMetrics getWindowMetricsInternal(boolean isMaximum) { in getWindowMetricsInternal()
100 return new WindowMetrics(new Rect(bounds), insetsSupplier, density); in getWindowMetricsInternal()
134 public Set<WindowMetrics> getPossibleMaximumWindowMetrics(int displayId) { in getPossibleMaximumWindowMetrics()
143 Set<WindowMetrics> maxMetrics = new HashSet<>(); in getPossibleMaximumWindowMetrics()
177 maxMetrics.add(new WindowMetrics(maxBounds, windowInsets, density)); in getPossibleMaximumWindowMetrics()
DWindowMetricsHelper.java27 import android.view.WindowMetrics;
43 @NonNull WindowMetrics windowMetrics) { in getBoundsExcludingNavigationBarAndCutout()
/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/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/view/
DWindowMetricsProviderImplTest.kt6 import android.view.WindowMetrics
25 WindowMetrics(bounds, /* windowInsetsSupplier= */ { null }, /* density= */ 1.0f) in getMaximumWindowBounds_returnsValueFromWMMaxWindowMetrics()
40 whenever(windowManager.currentWindowMetrics).thenReturn(WindowMetrics(bounds, windowInsets)) in getCurrentWindowInsets_returnsFromWMCurrentWindowMetrics()
DTaskPreviewSizeProviderTest.kt27 import android.view.WindowMetrics
118 val windowMetrics = WindowMetrics(windowManager.maximumWindowMetrics.bounds, windowInsets) in givenTaskbarSize()
126 val windowMetrics = WindowMetrics(bounds, { null }, 1.0f) in givenDisplay()
/frameworks/base/core/tests/coretests/src/android/window/
DWindowMetricsHelperTest.java32 import android.view.WindowMetrics;
71 final WindowMetrics metrics = activity.getWindowManager().getCurrentWindowMetrics(); in testGetBoundsExcludingNavigationBarAndCutoutMatchesDisplayGetSize()
88 final WindowMetrics metrics = activity.getWindowManager().getCurrentWindowMetrics(); in testGetBoundsExcludingNavigationBarAndCutout()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/docking/ui/viewmodel/
DKeyboardDockingIndicationViewModelTest.kt22 import android.view.WindowMetrics
81 doReturn(WindowMetrics(oldBounds, inset, density)) in onConfigurationChanged_createsNewConfig()
90 doReturn(WindowMetrics(newBounds, inset, density)) in onConfigurationChanged_createsNewConfig()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewLayerControllerTest.java35 import android.view.WindowMetrics;
70 private WindowMetrics mWindowMetrics;
/frameworks/layoutlib/bridge/src/android/view/
DWindowManagerImpl.java267 public WindowMetrics getCurrentWindowMetrics() { in getCurrentWindowMetrics()
270 return new WindowMetrics(bound, computeWindowInsets()); in getCurrentWindowMetrics()
280 public WindowMetrics getMaximumWindowMetrics() { in getMaximumWindowMetrics()
281 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()
195 final WindowMetrics windowMetrics = mWindowManager.getMaximumWindowMetrics(); in onMeasureInternalLandscape()
280 private static Insets getNavbarInsets(@Nullable WindowMetrics windowMetrics) { in getNavbarInsets()
287 private static Rect getMaximumWindowBounds(@Nullable WindowMetrics windowMetrics) { in getMaximumWindowBounds()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperDisplayHelper.java37 import android.view.WindowMetrics;
84 Set<WindowMetrics> metrics = windowManager.getPossibleMaximumWindowMetrics(DEFAULT_DISPLAY); in WallpaperDisplayHelper()
88 for (WindowMetrics metric: metrics) { in WallpaperDisplayHelper()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMagnificationThumbnailTest.java32 import android.view.WindowMetrics;
57 var metrics = new WindowMetrics(new Rect(), WindowInsets.CONSUMED, 1f); in setUp()
/frameworks/base/tests/HandwritingIme/src/com/google/android/test/handwritingime/
DInkView.java28 import android.view.WindowMetrics;
62 WindowMetrics metrics = wm.getCurrentWindowMetrics(); in InkView()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DEmbeddingTestUtils.java37 import android.view.WindowMetrics;
239 @NonNull Predicate<WindowMetrics> windowMetricsPredicate) { in createSplitPairRuleBuilder()
247 @NonNull Predicate<WindowMetrics> windowMetricsPredicate) { in createSplitPlaceholderRuleBuilder()
/frameworks/base/tests/SurfaceViewSyncTest/src/com/android/test/
DSurfaceViewSyncActivity.java34 import android.view.WindowMetrics;
65 WindowMetrics metrics = windowManager.getCurrentWindowMetrics(); in onCreate()
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/
DUtils.kt41 import android.view.WindowMetrics
125 val windowMetrics: WindowMetrics? = windowManager?.maximumWindowMetrics in getNavbarInsets()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewAppearance.java33 import android.view.WindowMetrics;
279 final WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in getWindowAvailableBounds()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/
DImageWallpaperTest.java51 import android.view.WindowMetrics;
79 private WindowMetrics mWindowMetrics;
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/view/
DA11yMenuViewPager.java29 import android.view.WindowMetrics;
315 WindowMetrics windowMetric = windowManager.getCurrentWindowMetrics();
DA11yMenuOverlayLayout.java43 import android.view.WindowMetrics;
263 WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in updateLayoutByWindowInsetsIfNeeded()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/charging/
DWiredChargingRippleControllerTest.kt23 import android.view.WindowMetrics
62 @Mock private lateinit var windowMetrics: WindowMetrics
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DTaskContainer.java39 import android.view.WindowMetrics;
689 WindowMetrics getTaskMetrics() { in getTaskMetrics()
693 return new WindowMetrics(taskBounds, WindowInsets.CONSUMED, density); in getTaskMetrics()

123