/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/ |
D | WindowInsetsAnimationTests.java | 147 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 …]
|
D | WindowInsetsTest.java | 125 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 …]
|
D | DecorInsetTests.java | 63 assertEquals("unexpected bottom inset: ", 0, activity.mLastContentInsets.getInsets( in testDecorView_consumesNavBar_ifLayoutHideNavIsNotSet()
|
D | WindowInsetsLayoutTests.java | 89 final Insets insets = windowInsets.getInsets(types); in testSetFitInsetsTypesInner() 127 final Insets insets = windowInsets.getInsets(types); in testSetFitInsetsSidesInner()
|
D | ForceRelayoutTestBase.java | 113 if (wi.getInsets(systemBars()).equals(Insets.NONE)) { in onCreate()
|
D | WindowInsetsControllerTests.java | 357 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/ |
D | WindowInsetsAnimationImeTests.java | 150 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/ |
D | WindowInsetsAnimationTestBase.java | 91 ? 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()
|
D | BarTestUtils.java | 57 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
|
D | WindowMetricsTestHelper.java | 76 assertEquals(layoutInsets.getInsets(insetsType), in assertMetricsMatchesLayout() 77 currentMetrics.getWindowInsets().getInsets(insetsType)); in assertMetricsMatchesLayout()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | ImeInsetsControllerTest.java | 152 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/ |
D | CloseOnOutsideTests.java | 85 windowMetrics.getWindowInsets().getInsets(WindowInsets.Type.systemBars()); in touchAndAssert() 87 windowMetrics.getWindowInsets().getInsets(WindowInsets.Type.statusBars()); in touchAndAssert()
|
D | CloseOnOutsideTestActivity.java | 47 Insets insets = windowMetrics.getWindowInsets().getInsets(WindowInsets.Type.systemBars()); in setupWindowSize()
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | SurfaceViewSurfaceValidatorTest.java | 20 import static android.view.cts.surfacevalidator.BitmapPixelChecker.getInsets; 123 getInsets(mActivity)); in testOnTopHasNoBackground() 150 getInsets(mActivity)); in testBackgroundIsBehindAllSurfaceView()
|
D | FlagSecureTest.java | 20 import static android.view.cts.surfacevalidator.BitmapPixelChecker.getInsets; 113 getInsets(mActivity)); in testChildWindowInheritsFlagSecure()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | DisplayUtils.java | 52 .getInsets(WindowInsets.Type.statusBars()).top; in getStatusBarHeight() 57 .getInsets(WindowInsets.Type.statusBars()).bottom; in getNavBarHeight()
|
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | BitmapPixelChecker.java | 193 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/ |
D | DecorInsetSdk29Tests.java | 63 assertEquals("unexpected bottom inset: ", 0, activity.getLastContentInsets().getInsets( in testDecorView_consumesNavBar_ifLayoutHideNavIsNotSet()
|
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
D | TestActivity.java | 65 final var i = insets.getInsets(systemBars() | displayCutout()); in onCreate()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/window/ |
D | WindowPolicyTests.java | 184 final Insets insets = windowInsets.getInsets( in testOptOutEdgeToEdgeAppBounds() 204 final Insets insets = windowInsets.getInsets( in testOptOutEdgeToEdgeDisplayMetrics()
|
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/ |
D | SensitiveNotificationAppHidingTest.kt | 142 BitmapPixelChecker.getInsets(activity) in <lambda>() 155 BitmapPixelChecker.getInsets(activity) in <lambda>()
|
D | ViewSensitiveContentTest.java | 172 /* expectedMatchRatio= */ 0.5f, BitmapPixelChecker.getInsets(activity)); in verifyScreenCapture()
|
/cts/tests/tests/assist/service/src/android/assist/service/ |
D | MainInteractionSession.java | 150 windowInsets.getInsets(statusBars()); in onShow() 152 windowInsets.getInsets(displayCutout()); in onShow()
|
/cts/tests/tests/dpi/src/android/dpi/cts/ |
D | ConfigurationScreenLayoutTest.java | 140 insets = windowInsets.getInsets(systemBars() | displayCutout()); in computeScreenLayout()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewTest.java | 148 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()
|