Home
last modified time | relevance | path

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

123

/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/ui/view/
DSceneWindowRootView.kt29 private val windowInsets: MutableStateFlow<WindowInsets?> = MutableStateFlow(null) in <lambda>() constant
44 windowInsets = windowInsets, in <lambda>()
61 override fun onApplyWindowInsets(windowInsets: WindowInsets): WindowInsets { in <lambda>()
62 this.windowInsets.value = windowInsets in <lambda>()
63 return windowInsets in <lambda>()
DWindowRootView.kt72 override fun onApplyWindowInsets(windowInsets: WindowInsets): WindowInsets? { in onApplyWindowInsets()
73 val insets = windowInsets.getInsetsIgnoringVisibility(WindowInsets.Type.systemBars()) in onApplyWindowInsets()
93 layoutInsetsController.getinsets(windowInsets, displayCutout) in onApplyWindowInsets()
97 return windowInsets in onApplyWindowInsets()
137 windowInsets: WindowInsets?, in getinsets()
DSceneWindowRootViewBinder.kt63 windowInsets: StateFlow<WindowInsets?>, in <lambda>()
103 windowInsets = windowInsets, in <lambda>()
141 windowInsets: StateFlow<WindowInsets?>, in <lambda>()
149 displayCutout = displayCutoutFromWindowInsets(scope, context, windowInsets), in <lambda>()
168 windowInsets: StateFlow<WindowInsets?>, in <lambda>()
170 windowInsets in <lambda>()
/frameworks/base/core/java/android/view/
DWindowMetrics.java63 public WindowMetrics(@NonNull Rect bounds, @NonNull WindowInsets windowInsets) { in WindowMetrics() argument
64 this(bounds, windowInsets, 1.0f); in WindowMetrics()
79 public WindowMetrics(@NonNull Rect bounds, @NonNull WindowInsets windowInsets, float density) { in WindowMetrics() argument
81 mWindowInsets = windowInsets; in WindowMetrics()
/frameworks/base/core/java/android/window/
DWindowMetricsController.java144 WindowInsets windowInsets; in getPossibleMaximumWindowMetrics() local
157 windowInsets = getWindowInsetsFromServerForDisplay( in getPossibleMaximumWindowMetrics()
169 windowInsets = new WindowInsets.Builder(windowInsets).setRoundedCorners( in getPossibleMaximumWindowMetrics()
177 maxMetrics.add(new WindowMetrics(maxBounds, windowInsets, density)); in getPossibleMaximumWindowMetrics()
DWindowMetricsHelper.java44 final WindowInsets windowInsets = windowMetrics.getWindowInsets(); in getBoundsExcludingNavigationBarAndCutout() local
46 result.inset(windowInsets.getInsetsIgnoringVisibility(navigationBars() | displayCutout())); in getBoundsExcludingNavigationBarAndCutout()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/
DNotificationsQSContainerControllerTest.kt232 insets = windowInsets().withStableBottom() in testTaskbarVisibleInSplitShade()
243 insets = windowInsets().withStableBottom() in testTaskbarVisibleInSplitShade()
260 insets = windowInsets().withStableBottom() in testTaskbarNotVisibleInSplitShade()
270 insets = windowInsets().withStableBottom() in testTaskbarNotVisibleInSplitShade()
286 insets = windowInsets().withCutout() in testTaskbarNotVisibleInSplitShadeWithCutout()
296 insets = windowInsets().withCutout().withStableBottom() in testTaskbarNotVisibleInSplitShadeWithCutout()
312 insets = windowInsets().withStableBottom() in testTaskbarVisibleInSinglePaneShade()
319 insets = windowInsets().withStableBottom() in testTaskbarVisibleInSinglePaneShade()
337 insets = windowInsets().withCutout().withStableBottom() in testTaskbarNotVisibleInSinglePaneShade()
344 insets = windowInsets().withStableBottom() in testTaskbarNotVisibleInSinglePaneShade()
[all …]
DNotificationsQSContainerControllerLegacyTest.kt238 insets = windowInsets().withStableBottom() in testTaskbarVisibleInSplitShade()
249 insets = windowInsets().withStableBottom() in testTaskbarVisibleInSplitShade()
266 insets = windowInsets().withStableBottom() in testTaskbarNotVisibleInSplitShade()
276 insets = windowInsets().withStableBottom() in testTaskbarNotVisibleInSplitShade()
292 insets = windowInsets().withCutout() in testTaskbarNotVisibleInSplitShadeWithCutout()
302 insets = windowInsets().withCutout().withStableBottom() in testTaskbarNotVisibleInSplitShadeWithCutout()
318 insets = windowInsets().withStableBottom() in testTaskbarVisibleInSinglePaneShade()
325 insets = windowInsets().withStableBottom() in testTaskbarVisibleInSinglePaneShade()
343 insets = windowInsets().withCutout().withStableBottom() in testTaskbarNotVisibleInSinglePaneShade()
350 insets = windowInsets().withStableBottom() in testTaskbarNotVisibleInSinglePaneShade()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/window/
DStatusBarWindowView.java53 public WindowInsets onApplyWindowInsets(WindowInsets windowInsets) { in onApplyWindowInsets() argument
54 final Insets insets = windowInsets.getInsetsIgnoringVisibility(systemBars()); in onApplyWindowInsets()
63 return windowInsets; in onApplyWindowInsets()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DCustomizedAppBar.kt83 private val windowInsets: WindowInsets in <lambda>() constant
100 windowInsets = windowInsets,
127 windowInsets = windowInsets,
232 windowInsets: WindowInsets, in SingleRowTopAppBar()
249 .windowInsetsPadding(windowInsets) in SingleRowTopAppBar()
287 windowInsets: WindowInsets, in TwoRowsTopAppBar()
364 .windowInsetsPadding(windowInsets) in TwoRowsTopAppBar()
384 .windowInsetsPadding(windowInsets.only(WindowInsetsSides.Horizontal)) in TwoRowsTopAppBar()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationInsetsImpl.java43 public Pair<Integer, Integer> getinsets(@Nullable WindowInsets windowInsets, in getinsets() argument
45 final Insets insets = windowInsets.getInsetsIgnoringVisibility(systemBars()); in getinsets()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/view/
DWindowMetricsProviderImplTest.kt36 val windowInsets = in getCurrentWindowInsets_returnsFromWMCurrentWindowMetrics() constant
40 whenever(windowManager.currentWindowMetrics).thenReturn(WindowMetrics(bounds, windowInsets)) in getCurrentWindowInsets_returnsFromWMCurrentWindowMetrics()
DTaskPreviewSizeProviderTest.kt117 val windowInsets = WindowInsets.Builder().setInsets(Type.tappableElement(), insets).build() in givenTaskbarSize() constant
118 val windowMetrics = WindowMetrics(windowManager.maximumWindowMetrics.bounds, windowInsets) in givenTaskbarSize()
/frameworks/base/core/tests/coretests/src/android/view/
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()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipDismissTargetHandler.java112 mTargetViewContainer.setOnApplyWindowInsetsListener((view, windowInsets) -> { in init() argument
113 if (!windowInsets.equals(mWindowInsets)) { in init()
114 mWindowInsets = windowInsets; in init()
117 return windowInsets; in init()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/
DPipDismissTargetHandler.java112 mTargetViewContainer.setOnApplyWindowInsetsListener((view, windowInsets) -> { in init() argument
113 if (!windowInsets.equals(mWindowInsets)) { in init()
114 mWindowInsets = windowInsets; in init()
117 return windowInsets; in init()
/frameworks/base/core/tests/coretests/src/android/window/
DWindowMetricsHelperTest.java92 final WindowInsets windowInsets = metrics.getWindowInsets(); in testGetBoundsExcludingNavigationBarAndCutout() local
94 expectedBounds.inset(windowInsets.getInsetsIgnoringVisibility( in testGetBoundsExcludingNavigationBarAndCutout()
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/view/
DA11yMenuOverlayLayout.java264 Insets windowInsets = windowMetrics.getWindowInsets().getInsetsIgnoringVisibility( in updateLayoutByWindowInsetsIfNeeded() local
266 int xOffset = max(windowInsets.left, windowInsets.right); in updateLayoutByWindowInsetsIfNeeded()
267 int yOffset = windowInsets.bottom; in updateLayoutByWindowInsetsIfNeeded()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarTouchableRegionManager.java257 WindowInsets windowInsets = mNotificationShadeWindowView.getRootWindowInsets(); in updateRegionForNotch() local
258 if (windowInsets == null) { in updateRegionForNotch()
262 DisplayCutout cutout = windowInsets.getDisplayCutout(); in updateRegionForNotch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/
DEditTextActivity.java68 @NonNull WindowInsets windowInsets) { in onCreate()
69 Insets insets = windowInsets.getInsets(WindowInsets.Type.systemBars()); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
DWindowMetricsProvider.kt27 windowManager.currentWindowMetrics.windowInsets.getInsets(
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/view/layout/sections/
DDefaultShortcutsSection.kt67 .setOnApplyWindowInsetsListener { _, windowInsets -> in <lambda>() method
68 val tempSafeInset = windowInsets?.displayCutout?.safeInsetBottom ?: 0 in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/navigationbar/
DNavigationBarTest.java439 WindowInsets windowInsets = new WindowInsets.Builder().setVisible(ime(), false).build(); in testSetImeWindowStatusWhenImeSwitchOnDisplay() local
440 doReturn(windowInsets).when(mockShadeWindowView).getRootWindowInsets(); in testSetImeWindowStatusWhenImeSwitchOnDisplay()
480 WindowInsets windowInsets = new WindowInsets.Builder().setVisible(ime(), false).build(); in testSetImeWindowStatusWhenKeyguardLockingAndImeInsetsChange() local
481 doReturn(windowInsets).when(mockShadeWindowView).getRootWindowInsets(); in testSetImeWindowStatusWhenKeyguardLockingAndImeInsetsChange()
503 windowInsets = new WindowInsets.Builder().setVisible(ime(), true).build(); in testSetImeWindowStatusWhenKeyguardLockingAndImeInsetsChange()
504 doReturn(windowInsets).when(mockShadeWindowView).getRootWindowInsets(); in testSetImeWindowStatusWhenKeyguardLockingAndImeInsetsChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ui/binder/
DKeyguardBottomAreaViewBinder.kt123 startButton.setOnApplyWindowInsetsListener { inView, windowInsets -> in <lambda>() method
124 val bottomInset = windowInsets.displayCutout?.safeInsetBottom ?: 0 in <lambda>()
139 endButton.setOnApplyWindowInsetsListener { inView, windowInsets -> in <lambda>() method
140 val bottomInset = windowInsets.displayCutout?.safeInsetBottom ?: 0 in <lambda>()
/frameworks/base/core/java/android/inputmethodservice/
DNavigationBarController.java196 final WindowInsets windowInsets = decorView.getRootWindowInsets(); in getSystemInsets() local
197 if (windowInsets == null) { in getSystemInsets()
201 windowInsets.getInsetsIgnoringVisibility(WindowInsets.Type.systemBars()); in getSystemInsets()
202 return Insets.min(windowInsets.getInsets(WindowInsets.Type.systemBars() in getSystemInsets()

123