Home
last modified time | relevance | path

Searched refs:windowInsets (Results 1 – 25 of 42) sorted by relevance

12

/aosp14/frameworks/base/core/java/android/view/
H A DWindowMetrics.java64 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 DWindowRootView.kt65 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 DNotificationsQSContainerControllerTest.kt201 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 DNotificationsQSContainerControllerLegacyTest.kt202 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 DWindowMetricsController.java142 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 DWindowMetricsHelper.java44 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 DStatusBarWindowView.java53 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 DNotificationInsetsImpl.java43 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 DCustomizedAppBar.kt95 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 DPipDismissTargetHandler.java112 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 DWindowInsetsTest.java66 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 DInsetsStateTest.java629 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 DSideFpsControllerTest.kt187 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 DStatusBarTouchableRegionManager.java236 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 DA11yMenuOverlayLayout.java255 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 DA11yMenuViewPager.java311 Insets windowInsets = windowMetric.getWindowInsets().getInsetsIgnoringVisibility(
316 - windowInsets.bottom;
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
H A DNavigationBarTest.java345 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 DBubblePositionerTest.java328 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 DMenuViewLayer.java320 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 DMenuViewAppearance.java283 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 DTaskPreviewSizeProviderTest.kt115 val windowInsets = regex
119 val windowMetrics = WindowMetrics(windowManager.maximumWindowMetrics.bounds, windowInsets)
/aosp14/frameworks/base/core/java/android/inputmethodservice/
H A DNavigationBarController.java172 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 DNotificationUtils.kt43 val metricInsets = wm.currentWindowMetrics.windowInsets
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
H A DTaskPreviewSizeProvider.kt73 windowManager.currentWindowMetrics.windowInsets
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/flicker/src/com/android/wm/shell/flicker/bubble/
H A DOpenActivityFromBubbleOnLocksreenTest.kt69 val metricInsets = wm.currentWindowMetrics.windowInsets

12