Home
last modified time | relevance | path

Searched refs:getInsets (Results 1 – 25 of 43) sorted by relevance

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/
DWindowInsetsAnimationTests.java147 NONE.equals(argument.getInsets(navigationBars())) in testAnimationCallbacks_overlapping()
148 && !NONE.equals(argument.getInsets(statusBars())))); in testAnimationCallbacks_overlapping()
158 before.getInsets( in testAnimationCallbacks_overlapping()
172 .equals(before.getInsets(statusBars())))); in testAnimationCallbacks_overlapping()
181 before.getInsets(navigationBars()), in testAnimationCallbacks_overlapping()
182 callback.navAnimSteps.get(0).insets.getInsets(navigationBars())); in testAnimationCallbacks_overlapping()
184 after.getInsets(navigationBars()), in testAnimationCallbacks_overlapping()
188 .getInsets(navigationBars())); in testAnimationCallbacks_overlapping()
191 before.getInsets(statusBars()), in testAnimationCallbacks_overlapping()
192 callback.statusAnimSteps.get(0).insets.getInsets(statusBars())); in testAnimationCallbacks_overlapping()
[all …]
DWindowInsetsTest.java125 assertEquals(getCutoutSafeInsets(insets), insets.getInsets(Type.displayCutout())); in testBuilder()
196 assertEquals(Insets.NONE, insets.getInsets(Type.displayCutout())); in testBuilder_emptyCutout()
227 assertEquals(getCutoutSafeInsets(insets), insets.getInsets(Type.displayCutout())); in testBuilder_producesImmutableWindowInsets()
251 assertEquals(Insets.of(0, 50, 0, 0), insets.getInsets(statusBars())); in testBuilder_typeMap()
252 assertEquals(Insets.of(0, 0, 0, 100), insets.getInsets(navigationBars())); in testBuilder_typeMap()
253 assertEquals(Insets.of(0, 10, 0, 10), insets.getInsets(tappableElement())); in testBuilder_typeMap()
254 assertEquals(Insets.of(0, 20, 0, 20), insets.getInsets(mandatorySystemGestures())); in testBuilder_typeMap()
255 assertEquals(Insets.of(0, 30, 0, 30), insets.getInsets(systemGestures())); in testBuilder_typeMap()
256 assertEquals(Insets.of(0, 5, 0, 0), insets.getInsets(displayCutout())); in testBuilder_typeMap()
257 assertEquals(Insets.of(0, 50, 0, 0), insets.getInsets(captionBar())); in testBuilder_typeMap()
[all …]
DDecorInsetTests.java63 assertEquals("unexpected bottom inset: ", 0, activity.mLastContentInsets.getInsets( in testDecorView_consumesNavBar_ifLayoutHideNavIsNotSet()
DWindowInsetsLayoutTests.java89 final Insets insets = windowInsets.getInsets(types); in testSetFitInsetsTypesInner()
127 final Insets insets = windowInsets.getInsets(types); in testSetFitInsetsSidesInner()
DForceRelayoutTestBase.java113 if (wi.getInsets(systemBars()).equals(Insets.NONE)) { in onCreate()
DWindowInsetsControllerTests.java357 final Insets insets = rootView.getRootWindowInsets().getInsets(types); in testSetSystemBarsBehavior_default()
415 assumeTrue(rootView.getRootWindowInsets().getInsets(systemGestures()).left > 0); in testSetSystemBarsBehavior_systemGesture_default()
432 assumeTrue(rootView.getRootWindowInsets().getInsets(systemGestures()).left > 0); in testSetSystemBarsBehavior_systemGesture_showTransientBarsBySwipe()
550 final Insets insets = rootView.getRootWindowInsets().getInsets(types); in testSetSystemUiVisibilityAfterCleared_showBarsBySwipe()
850 assertNotNull(firstWindowInsetsDuringAnimation[0].getInsets(ime())); in testImeInsetsWithDifferentControlTarget()
851 assertEquals(0, firstWindowInsetsDuringAnimation[0].getInsets(ime()).bottom); in testImeInsetsWithDifferentControlTarget()
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/
DWindowInsetsAnimationImeTests.java150 NONE.equals(argument.getInsets(statusBars())) in testAnimationCallbacks_overlapping_opposite()
151 && NONE.equals(argument.getInsets(ime())))); in testAnimationCallbacks_overlapping_opposite()
161 .equals(before.getInsets(statusBars())))); in testAnimationCallbacks_overlapping_opposite()
184 before.getInsets(statusBars()), in testAnimationCallbacks_overlapping_opposite()
185 callback.statusAnimSteps.get(0).insets.getInsets(statusBars())); in testAnimationCallbacks_overlapping_opposite()
187 after.getInsets(statusBars()), in testAnimationCallbacks_overlapping_opposite()
191 .getInsets(statusBars())); in testAnimationCallbacks_overlapping_opposite()
193 assertEquals(before.getInsets(ime()), callback.imeAnimSteps.get(0).insets.getInsets(ime())); in testAnimationCallbacks_overlapping_opposite()
195 after.getInsets(ime()), in testAnimationCallbacks_overlapping_opposite()
199 .getInsets(ime())); in testAnimationCallbacks_overlapping_opposite()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowInsetsAnimationTestBase.java91 ? after.getInsets(types) in commonAnimationAssertions()
92 : before.getInsets(types)))); in commonAnimationAssertions()
148 next.getInsets(types).left >= current.getInsets(types).left in compareInsets()
149 && next.getInsets(types).top >= current.getInsets(types).top in compareInsets()
150 && next.getInsets(types).right >= current.getInsets(types).right in compareInsets()
151 && next.getInsets(types).bottom >= current.getInsets(types).bottom; in compareInsets()
154 next.getInsets(types).left <= current.getInsets(types).left in compareInsets()
155 && next.getInsets(types).top <= current.getInsets(types).top in compareInsets()
156 && next.getInsets(types).right <= current.getInsets(types).right in compareInsets()
157 && next.getInsets(types).bottom <= current.getInsets(types).bottom; in compareInsets()
DBarTestUtils.java57 Insets statusBar = getInsets(rule).getInsetsIgnoringVisibility( in assumeHasStatusBar()
67 getInsets(rule).getStableInsetBottom() > 0); in assumeHasColoredNavigationBar()
103 private static WindowInsets getInsets(ActivityTestRule<?> rule) { in getInsets() method in BarTestUtils
DWindowMetricsTestHelper.java76 assertEquals(layoutInsets.getInsets(insetsType), in assertMetricsMatchesLayout()
77 currentMetrics.getWindowInsets().getInsets(insetsType)); in assertMetricsMatchesLayout()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DImeInsetsControllerTest.java152 lastInsets[0].getInsets(ime()).bottom); in testChangeSizeWhileControlling()
153 assertEquals(animController[0].getShownStateInsets(), lastInsets[0].getInsets(ime())); in testChangeSizeWhileControlling()
158 lastInsets[0].getInsets(ime()).bottom + KEYBOARD_HEIGHT_INCREASE; in testChangeSizeWhileControlling()
165 lastInsets[0].getInsets(ime()).bottom); in testChangeSizeWhileControlling()
182 lastInsets[0].getInsets(ime()).bottom); in testChangeSizeWhileControlling()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DCloseOnOutsideTests.java85 windowMetrics.getWindowInsets().getInsets(WindowInsets.Type.systemBars()); in touchAndAssert()
87 windowMetrics.getWindowInsets().getInsets(WindowInsets.Type.statusBars()); in touchAndAssert()
DCloseOnOutsideTestActivity.java47 Insets insets = windowMetrics.getWindowInsets().getInsets(WindowInsets.Type.systemBars()); in setupWindowSize()
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/
DSurfaceViewSurfaceValidatorTest.java20 import static android.view.cts.surfacevalidator.BitmapPixelChecker.getInsets;
123 getInsets(mActivity)); in testOnTopHasNoBackground()
150 getInsets(mActivity)); in testBackgroundIsBehindAllSurfaceView()
DFlagSecureTest.java20 import static android.view.cts.surfacevalidator.BitmapPixelChecker.getInsets;
113 getInsets(mActivity)); in testChildWindowInheritsFlagSecure()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DDisplayUtils.java52 .getInsets(WindowInsets.Type.statusBars()).top; in getStatusBarHeight()
57 .getInsets(WindowInsets.Type.statusBars()).bottom; in getNavBarHeight()
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/
DBitmapPixelChecker.java193 public static Insets getInsets(Activity activity) { in getInsets() method in BitmapPixelChecker
197 .getInsets(displayCutout() | systemBars()); in getInsets()
/cts/tests/framework/base/windowmanager/testsdk29/src/android/server/wm/insets/
DDecorInsetSdk29Tests.java63 assertEquals("unexpected bottom inset: ", 0, activity.getLastContentInsets().getInsets( in testDecorView_consumesNavBar_ifLayoutHideNavIsNotSet()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DTestActivity.java65 final var i = insets.getInsets(systemBars() | displayCutout()); in onCreate()
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/
DWindowPolicyTests.java184 final Insets insets = windowInsets.getInsets( in testOptOutEdgeToEdgeAppBounds()
204 final Insets insets = windowInsets.getInsets( in testOptOutEdgeToEdgeDisplayMetrics()
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/
DSensitiveNotificationAppHidingTest.kt142 BitmapPixelChecker.getInsets(activity) in <lambda>()
155 BitmapPixelChecker.getInsets(activity) in <lambda>()
DViewSensitiveContentTest.java172 /* expectedMatchRatio= */ 0.5f, BitmapPixelChecker.getInsets(activity)); in verifyScreenCapture()
/cts/tests/tests/assist/service/src/android/assist/service/
DMainInteractionSession.java150 windowInsets.getInsets(statusBars()); in onShow()
152 windowInsets.getInsets(displayCutout()); in onShow()
/cts/tests/tests/dpi/src/android/dpi/cts/
DConfigurationScreenLayoutTest.java140 insets = windowInsets.getInsets(systemBars() | displayCutout()); in computeScreenLayout()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewTest.java148 window.getDecorView().getRootWindowInsets().getInsets(captionBar()).top == 0 in testFirstFrames()
399 int extraSurfaceTopOffset = rootWindowInsets.getInsets(systemBars()).top; in testSDRFromSurfaceViewAndTextureView()
400 int extraSurfaceRightOffset = rootWindowInsets.getInsets(systemBars()).right; in testSDRFromSurfaceViewAndTextureView()
401 int extraSurfaceBottomOffset = rootWindowInsets.getInsets(systemBars()).bottom; in testSDRFromSurfaceViewAndTextureView()
402 int extraSurfaceLeftOffset = rootWindowInsets.getInsets(systemBars()).left; in testSDRFromSurfaceViewAndTextureView()

12