/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | TestableWindowManager.java | 26 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/ |
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/core/java/android/view/ |
D | WindowMetrics.java | 33 public final class WindowMetrics { class 37 public WindowMetrics(@NonNull Rect bounds, @NonNull WindowInsets windowInsets) { in WindowMetrics() method in WindowMetrics
|
D | WindowManagerImpl.java | 286 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/ |
D | WindowMetricsHelper.java | 27 import android.view.WindowMetrics; 43 @NonNull WindowMetrics windowMetrics) { in getBoundsExcludingNavigationBarAndCutout()
|
/frameworks/base/core/tests/coretests/src/android/window/ |
D | WindowMetricsHelperTest.java | 25 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/ |
D | TaskPreviewSizeProviderTest.kt | 27 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/ |
D | WindowManagerImpl.java | 210 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/ |
D | UdfpsDialogMeasureAdapter.java | 34 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/ |
D | DockTooltipViewTest.java | 33 import android.view.WindowMetrics; 57 private WindowMetrics mWindowMetrics;
|
D | BaseTooltipViewTest.java | 35 import android.view.WindowMetrics; 60 private WindowMetrics mWindowMetrics;
|
D | ItemDelegateCompatTest.java | 33 import android.view.WindowMetrics; 64 private WindowMetrics mWindowMetrics;
|
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/ |
D | EmbeddingTestUtils.java | 37 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/ |
D | InkView.java | 30 import android.view.WindowMetrics; 61 WindowMetrics metrics = wm.getCurrentWindowMetrics(); in InkView()
|
/frameworks/base/tests/SurfaceViewSyncTest/src/com/android/test/ |
D | SurfaceViewSyncActivity.java | 34 import android.view.WindowMetrics; 67 WindowMetrics metrics = windowManager.getCurrentWindowMetrics(); in onCreate()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wallpapers/ |
D | ImageWallpaperTest.java | 47 import android.view.WindowMetrics; 74 private WindowMetrics mWindowMetrics;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/charging/ |
D | WiredChargingRippleControllerTest.kt | 24 import android.view.WindowMetrics 62 @Mock private lateinit var windowMetrics: WindowMetrics
|
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/ |
D | SplitPresenter.java | 38 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/ |
D | AccessibilityFloatingMenuView.java | 52 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/ |
D | NavigationBarTest.java | 68 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/ |
D | MagnificationModeSwitch.java | 41 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/ |
D | StartingSurfaceDrawerTests.java | 66 import android.view.WindowMetrics; 162 final WindowMetrics metrics = realWindowManager.getMaximumWindowMetrics(); in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
D | SideFpsControllerTest.kt | 51 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/ |
D | BubblePositioner.java | 32 import android.view.WindowMetrics; 111 WindowMetrics windowMetrics = mWindowManager.getCurrentWindowMetrics(); in update()
|
/frameworks/base/test-runner/src/android/test/ |
D | TouchUtils.java | 35 import android.view.WindowMetrics; 108 private static Size getSizeExcludingNavigationBarAndCutout(WindowMetrics windowMetrics) { in getSizeExcludingNavigationBarAndCutout()
|