Home
last modified time | relevance | path

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

/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowMetricsTest.java46 final WindowInsets windowInsets = WindowInsets.CONSUMED; in testConstructor() local
48 final WindowMetrics windowMetrics = new WindowMetrics(bounds, windowInsets, density); in testConstructor()
51 assertThat(windowMetrics.getWindowInsets()).isEqualTo(windowInsets); in testConstructor()
DWindowPolicyTests.java182 final WindowInsets windowInsets = in testOptOutEdgeToEdgeAppBounds() local
184 final Insets insets = windowInsets.getInsets( in testOptOutEdgeToEdgeAppBounds()
202 final WindowInsets windowInsets = in testOptOutEdgeToEdgeDisplayMetrics() local
204 final Insets insets = windowInsets.getInsets( in testOptOutEdgeToEdgeDisplayMetrics()
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsActivity.java262 public Rect getActionBounds(Insets insets, WindowInsets windowInsets) { in getActionBounds() argument
263 return calculateBoundsWithInsets(insets, windowInsets, mContentBoundOnScreen); in getActionBounds()
267 public Rect getSystemGestureExclusionBounds(Insets insets, WindowInsets windowInsets) { in getSystemGestureExclusionBounds() argument
268 return calculateBoundsWithInsets(insets, windowInsets, mContentBoundInWindow); in getSystemGestureExclusionBounds()
282 private Rect calculateBoundsWithInsets(Insets insets, WindowInsets windowInsets, Rect refRect) { in calculateBoundsWithInsets() argument
288 final DisplayCutout cutout = windowInsets.getDisplayCutout(); in calculateBoundsWithInsets()
DWindowInsetsPresenterDrawable.java104 public WindowInsetsPresenterDrawable(WindowInsets windowInsets) { in WindowInsetsPresenterDrawable() argument
106 mWindowInsets = windowInsets; in WindowInsetsPresenterDrawable()
175 public void setWindowInsets(WindowInsets windowInsets) { in setWindowInsets() argument
176 if (windowInsets != null) { in setWindowInsets()
177 mWindowInsets = new WindowInsets.Builder(windowInsets).build(); in setWindowInsets()
DLightBarTestBase.java151 WindowInsets windowInsets = activity.getRootWindowInsets(); in loadCutout() local
152 DisplayCutout displayCutout = windowInsets.getDisplayCutout(); in loadCutout()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DNavigationBarInfo.java101 final WindowInsets windowInsets = getOnMainSync(() -> view.getRootWindowInsets()); in getInstance() local
102 if (!windowInsets.hasStableInsets() || windowInsets.getStableInsetBottom() <= 0) { in getInstance()
119 if (actualBottomInset != windowInsets.getStableInsetBottom()) { in getInstance()
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsLayoutTests.java88 final WindowInsets windowInsets = overlayWindowRoot.getRootWindowInsets(); in testSetFitInsetsTypesInner() local
89 final Insets insets = windowInsets.getInsets(types); in testSetFitInsetsTypesInner()
126 final WindowInsets windowInsets = overlayWindowRoot.getRootWindowInsets(); in testSetFitInsetsSidesInner() local
127 final Insets insets = windowInsets.getInsets(types); in testSetFitInsetsSidesInner()
DWindowInsetsControllerTests.java770 for (WindowInsets windowInsets : windowInsetsList) { in testInsetsDispatch()
771 assertFalse(windowInsets.isVisible(statusBars())); in testInsetsDispatch()
772 assertFalse(windowInsets.isVisible(navigationBars())); in testInsetsDispatch()
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationScreenLayoutTest.java138 final WindowInsets windowInsets = activity.getWindowManager().getCurrentWindowMetrics() in computeScreenLayout() local
140 insets = windowInsets.getInsets(systemBars() | displayCutout()); in computeScreenLayout()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowMetricsTestHelper.java168 WindowInsets windowInsets = windowMetrics.getWindowInsets(); in getBoundsExcludingInsetsTypes() local
170 windowInsets.getInsetsIgnoringVisibility(excludingTypes); in getBoundsExcludingInsetsTypes()
/cts/tests/tests/assist/service/src/android/assist/service/
DMainInteractionSession.java148 WindowInsets windowInsets = windowMetrics.getWindowInsets(); in onShow()
150 windowInsets.getInsets(statusBars()); in onShow()
152 windowInsets.getInsets(displayCutout()); in onShow()
/cts/tests/input/src/android/input/cts/
DTwoWindowsActivity.kt64 val insets = windowMetrics.windowInsets.getInsetsIgnoringVisibility( in launchTwoWindows()
/cts/tests/tests/widget/src/android/widget/cts/
DPopupWindowTest.java724 final WindowInsets windowInsets = upperAnchor.getRootWindowInsets(); in testShowAtLocation() local
725 final int xOff = windowInsets.getSystemWindowInsetLeft() + 10; in testShowAtLocation()
726 final int yOff = windowInsets.getSystemWindowInsetTop() + 21; in testShowAtLocation()
1358 final WindowInsets windowInsets = containerView.getRootWindowInsets(); in testUpdatePositionAndDimension() local
1359 popupPos.set(windowInsets.getStableInsetLeft() + 20, windowInsets.getStableInsetTop() + 50); in testUpdatePositionAndDimension()
1373 popupPos.set(windowInsets.getStableInsetLeft() + 4, windowInsets.getStableInsetTop()); in testUpdatePositionAndDimension()
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowInputTests.java216 final WindowInsets windowInsets = windowMetrics.getWindowInsets(); in testMoveWindowAndTap() local
221 var insets = windowInsets.getInsetsIgnoringVisibility(lp.getFitInsetsTypes()); in testMoveWindowAndTap()