/frameworks/base/core/java/android/view/ |
D | WindowMetrics.java | 51 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()
|
D | WindowManagerImpl.java | 327 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/ |
D | TestableWindowManager.java | 28 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/ |
D | WindowMetricsController.java | 41 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()
|
D | WindowMetricsHelper.java | 27 import android.view.WindowMetrics; 43 @NonNull WindowMetrics windowMetrics) { in getBoundsExcludingNavigationBarAndCutout()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | WindowMetricsTest.java | 74 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/ |
D | WindowMetricsProviderImplTest.kt | 6 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()
|
D | TaskPreviewSizeProviderTest.kt | 27 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/ |
D | WindowMetricsHelperTest.java | 32 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/ |
D | KeyboardDockingIndicationViewModelTest.kt | 22 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/ |
D | MenuViewLayerControllerTest.java | 35 import android.view.WindowMetrics; 70 private WindowMetrics mWindowMetrics;
|
/frameworks/layoutlib/bridge/src/android/view/ |
D | WindowManagerImpl.java | 267 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/ |
D | UdfpsDialogMeasureAdapter.java | 34 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/ |
D | WallpaperDisplayHelper.java | 37 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/ |
D | MagnificationThumbnailTest.java | 32 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/ |
D | InkView.java | 28 import android.view.WindowMetrics; 62 WindowMetrics metrics = wm.getCurrentWindowMetrics(); in InkView()
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/ |
D | EmbeddingTestUtils.java | 37 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/ |
D | SurfaceViewSyncActivity.java | 34 import android.view.WindowMetrics; 65 WindowMetrics metrics = windowManager.getCurrentWindowMetrics(); in onCreate()
|
/frameworks/base/packages/SystemUI/shared/biometrics/src/com/android/systemui/biometrics/ |
D | Utils.kt | 41 import android.view.WindowMetrics 125 val windowMetrics: WindowMetrics? = windowManager?.maximumWindowMetrics in getNavbarInsets()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | MenuViewAppearance.java | 33 import android.view.WindowMetrics; 279 final WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in getWindowAvailableBounds()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/ |
D | ImageWallpaperTest.java | 51 import android.view.WindowMetrics; 79 private WindowMetrics mWindowMetrics;
|
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/view/ |
D | A11yMenuViewPager.java | 29 import android.view.WindowMetrics; 315 WindowMetrics windowMetric = windowManager.getCurrentWindowMetrics();
|
D | A11yMenuOverlayLayout.java | 43 import android.view.WindowMetrics; 263 WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in updateLayoutByWindowInsetsIfNeeded()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/charging/ |
D | WiredChargingRippleControllerTest.kt | 23 import android.view.WindowMetrics 62 @Mock private lateinit var windowMetrics: WindowMetrics
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/ |
D | TaskContainer.java | 39 import android.view.WindowMetrics; 689 WindowMetrics getTaskMetrics() { in getTaskMetrics() 693 return new WindowMetrics(taskBounds, WindowInsets.CONSUMED, density); in getTaskMetrics()
|