/aosp14/frameworks/base/core/java/android/view/ |
H A D | WindowMetrics.java | 64 public WindowMetrics(@NonNull Rect bounds, @NonNull WindowInsets windowInsets) { in WindowMetrics() argument 65 this(bounds, windowInsets, 1.0f); in WindowMetrics() 80 public WindowMetrics(@NonNull Rect bounds, @NonNull WindowInsets windowInsets, float density) { in WindowMetrics() argument 82 mWindowInsets = windowInsets; in WindowMetrics()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/ui/view/ |
H A D | WindowRootView.kt | 65 override fun onApplyWindowInsets(windowInsets: WindowInsets): WindowInsets? { 66 val insets = windowInsets.getInsetsIgnoringVisibility(WindowInsets.Type.systemBars()) 86 layoutInsetsController.getinsets(windowInsets, displayCutout) 90 return windowInsets 130 windowInsets: WindowInsets?,
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
H A D | NotificationsQSContainerControllerTest.kt | 201 insets = windowInsets().withStableBottom() 212 insets = windowInsets().withStableBottom() 229 insets = windowInsets().withStableBottom() 239 insets = windowInsets().withStableBottom() 255 insets = windowInsets().withCutout() 265 insets = windowInsets().withCutout().withStableBottom() 281 insets = windowInsets().withStableBottom() 288 insets = windowInsets().withStableBottom() 313 insets = windowInsets().withStableBottom() 331 insets = windowInsets().withStableBottom() [all …]
|
H A D | NotificationsQSContainerControllerLegacyTest.kt | 202 insets = windowInsets().withStableBottom() 213 insets = windowInsets().withStableBottom() 230 insets = windowInsets().withStableBottom() 240 insets = windowInsets().withStableBottom() 256 insets = windowInsets().withCutout() 266 insets = windowInsets().withCutout().withStableBottom() 282 insets = windowInsets().withStableBottom() 289 insets = windowInsets().withStableBottom() 314 insets = windowInsets().withStableBottom() 332 insets = windowInsets().withStableBottom() [all …]
|
/aosp14/frameworks/base/core/java/android/window/ |
H A D | WindowMetricsController.java | 142 WindowInsets windowInsets; in getPossibleMaximumWindowMetrics() local 155 windowInsets = getWindowInsetsFromServerForDisplay( in getPossibleMaximumWindowMetrics() 161 windowInsets = new WindowInsets.Builder(windowInsets).setRoundedCorners( in getPossibleMaximumWindowMetrics() 170 maxMetrics.add(new WindowMetrics(maxBounds, windowInsets, density)); in getPossibleMaximumWindowMetrics()
|
H A D | WindowMetricsHelper.java | 44 final WindowInsets windowInsets = windowMetrics.getWindowInsets(); in getBoundsExcludingNavigationBarAndCutout() local 46 result.inset(windowInsets.getInsetsIgnoringVisibility(navigationBars() | displayCutout())); in getBoundsExcludingNavigationBarAndCutout()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/window/ |
H A D | StatusBarWindowView.java | 53 public WindowInsets onApplyWindowInsets(WindowInsets windowInsets) { in onApplyWindowInsets() argument 54 final Insets insets = windowInsets.getInsetsIgnoringVisibility(systemBars()); in onApplyWindowInsets() 63 return windowInsets; in onApplyWindowInsets()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | NotificationInsetsImpl.java | 43 public Pair<Integer, Integer> getinsets(@Nullable WindowInsets windowInsets, in getinsets() argument 45 final Insets insets = windowInsets.getInsetsIgnoringVisibility(systemBars()); in getinsets()
|
/aosp14/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/ |
H A D | CustomizedAppBar.kt | 95 windowInsets = TopAppBarDefaults.windowInsets, 122 windowInsets = TopAppBarDefaults.windowInsets, 223 windowInsets: WindowInsets, 240 .windowInsetsPadding(windowInsets) 279 windowInsets: WindowInsets, 356 .windowInsetsPadding(windowInsets)
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/ |
H A D | PipDismissTargetHandler.java | 112 mTargetViewContainer.setOnApplyWindowInsetsListener((view, windowInsets) -> { in init() 113 if (!windowInsets.equals(mWindowInsets)) { in init() 114 mWindowInsets = windowInsets; in init() 117 return windowInsets; in init()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | WindowInsetsTest.java | 66 WindowInsets windowInsets = new WindowInsets(insets, maxInsets, visible, false, 0, in compatInsets_layoutStable() local 69 assertEquals(Insets.of(0, 10, 0, 0), windowInsets.getSystemWindowInsets()); in compatInsets_layoutStable()
|
H A D | InsetsStateTest.java | 629 WindowInsets windowInsets = mState.calculateInsets(new Rect(1, 2, 197, 396), null, false, in testCalculateRelativeRoundedCorners() local 633 windowInsets.getRoundedCorner(POSITION_TOP_LEFT)); in testCalculateRelativeRoundedCorners() 635 windowInsets.getRoundedCorner(POSITION_TOP_RIGHT)); in testCalculateRelativeRoundedCorners() 637 windowInsets.getRoundedCorner(POSITION_BOTTOM_RIGHT)); in testCalculateRelativeRoundedCorners() 639 windowInsets.getRoundedCorner(POSITION_BOTTOM_LEFT)); in testCalculateRelativeRoundedCorners() 646 WindowInsets windowInsets = mState.calculateInsets(new Rect(10, 20, 200, 400), null, false, in testCalculateRelativeDisplayShape() local 652 assertEquals(expect, windowInsets.getDisplayShape()); in testCalculateRelativeDisplayShape()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ |
H A D | SideFpsControllerTest.kt | 187 windowInsets: WindowInsets = insetsForSmallNavbar(), 241 .thenReturn(WindowMetrics(displayBounds, windowInsets)) 401 windowInsets = insetsForSmallNavbar() 412 windowInsets = insetsForLargeNavbar() 453 windowInsets = insetsForSmallNavbar() 464 windowInsets = insetsForLargeNavbar() 535 windowInsets = insetsForSmallNavbar() 546 windowInsets = insetsForLargeNavbar() 587 windowInsets = insetsForSmallNavbar() 598 windowInsets = insetsForLargeNavbar()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarTouchableRegionManager.java | 236 WindowInsets windowInsets = mNotificationShadeWindowView.getRootWindowInsets(); in updateRegionForNotch() local 237 if (windowInsets == null) { in updateRegionForNotch() 241 DisplayCutout cutout = windowInsets.getDisplayCutout(); in updateRegionForNotch()
|
/aosp14/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/view/ |
H A D | A11yMenuOverlayLayout.java | 255 Insets windowInsets = windowMetrics.getWindowInsets().getInsetsIgnoringVisibility( in updateLayoutByWindowInsetsIfNeeded() local 257 int xOffset = max(windowInsets.left, windowInsets.right); in updateLayoutByWindowInsetsIfNeeded() 258 int yOffset = windowInsets.bottom; in updateLayoutByWindowInsetsIfNeeded()
|
H A D | A11yMenuViewPager.java | 311 Insets windowInsets = windowMetric.getWindowInsets().getInsetsIgnoringVisibility( 316 - windowInsets.bottom;
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/ |
H A D | NavigationBarTest.java | 345 WindowInsets windowInsets = new WindowInsets.Builder().setVisible(ime(), false).build(); in testSetImeWindowStatusWhenImeSwitchOnDisplay() local 346 doReturn(windowInsets).when(mockShadeWindowView).getRootWindowInsets(); in testSetImeWindowStatusWhenImeSwitchOnDisplay() 386 WindowInsets windowInsets = new WindowInsets.Builder().setVisible(ime(), false).build(); in testSetImeWindowStatusWhenKeyguardLockingAndImeInsetsChange() local 387 doReturn(windowInsets).when(mockShadeWindowView).getRootWindowInsets(); in testSetImeWindowStatusWhenKeyguardLockingAndImeInsetsChange() 409 windowInsets = new WindowInsets.Builder().setVisible(ime(), true).build(); in testSetImeWindowStatusWhenKeyguardLockingAndImeInsetsChange() 410 doReturn(windowInsets).when(mockShadeWindowView).getRootWindowInsets(); in testSetImeWindowStatusWhenKeyguardLockingAndImeInsetsChange()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/ |
H A D | BubblePositionerTest.java | 328 WindowInsets windowInsets = mock(WindowInsets.class); in setUpConfig() local 329 when(windowInsets.getInsetsIgnoringVisibility(anyInt())).thenReturn(mInsets); in setUpConfig() 330 when(mWindowMetrics.getWindowInsets()).thenReturn(windowInsets); in setUpConfig()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
H A D | MenuViewLayer.java | 320 final WindowInsets windowInsets = windowMetrics.getWindowInsets(); in onWindowInsetsApplied() local 321 final Rect imeInsetsRect = windowInsets.getInsets(ime()).toRect(); in onWindowInsetsApplied() 325 windowInsets.getInsetsIgnoringVisibility( in onWindowInsetsApplied() 331 mMenuViewAppearance.onImeVisibilityChanged(windowInsets.isVisible(ime()), imeTop); in onWindowInsetsApplied()
|
H A D | MenuViewAppearance.java | 283 final WindowInsets windowInsets = windowMetrics.getWindowInsets(); in getWindowAvailableBounds() local 284 final Insets insets = windowInsets.getInsetsIgnoringVisibility( in getWindowAvailableBounds()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/view/ |
H A D | TaskPreviewSizeProviderTest.kt | 115 val windowInsets = regex 119 val windowMetrics = WindowMetrics(windowManager.maximumWindowMetrics.bounds, windowInsets)
|
/aosp14/frameworks/base/core/java/android/inputmethodservice/ |
H A D | NavigationBarController.java | 172 final WindowInsets windowInsets = decorView.getRootWindowInsets(); in getSystemInsets() local 173 if (windowInsets == null) { in getSystemInsets() 177 windowInsets.getInsetsIgnoringVisibility(WindowInsets.Type.systemBars()); in getSystemInsets() 178 return Insets.min(windowInsets.getInsets(WindowInsets.Type.systemBars() in getSystemInsets()
|
/aosp14/frameworks/base/tests/FlickerTests/src/com/android/server/wm/flicker/service/notification/scenarios/ |
H A D | NotificationUtils.kt | 43 val metricInsets = wm.currentWindowMetrics.windowInsets
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/ |
H A D | TaskPreviewSizeProvider.kt | 73 windowManager.currentWindowMetrics.windowInsets
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/bubble/ |
H A D | OpenActivityFromBubbleOnLocksreenTest.kt | 69 val metricInsets = wm.currentWindowMetrics.windowInsets
|