Searched refs:insets (Results 1 – 7 of 7) sorted by relevance
88 runTest(LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT, (activity, insets, displayCutout, which) -> { in testDisplayCutout_default_portrait()94 safeInsets(displayCutout), insetsLessThanOrEqualTo(stableInsets(insets))); in testDisplayCutout_default_portrait()109 runTest(LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES, (a, insets, displayCutout, which) -> { in testDisplayCutout_shortEdges_portrait()116 runTest(LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER, (a, insets, displayCutout, which) -> { in testDisplayCutout_never_portrait()125 WindowInsets insets = getOnMainSync(activity::getRootInsets); in runTest() local127 Assert.assertThat("test setup failed, no insets at root", insets, notNullValue()); in runTest()131 final DisplayCutout displayCutout = insets.getDisplayCutout(); in runTest()135 commonAsserts(activity, insets, displayCutout); in runTest()137 test.run(activity, insets, displayCutout, ROOT); in runTest()145 private void commonAsserts(TestActivity activity, WindowInsets insets, DisplayCutout cutout) { in commonAsserts() argument[all …]
77 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument78 insets = super.onApplyWindowInsets(insets); in onApplyWindowInsets()79 final boolean round = insets.isRound(); in onApplyWindowInsets()85 insets.getSystemWindowInsetLeft(), in onApplyWindowInsets()86 insets.getSystemWindowInsetTop(), in onApplyWindowInsets()87 insets.getSystemWindowInsetRight(), in onApplyWindowInsets()88 insets.getSystemWindowInsetBottom()); in onApplyWindowInsets()89 return insets; in onApplyWindowInsets()
336 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument337 if (insets.isConsumed() in onApplyWindowInsets()342 return insets; in onApplyWindowInsets()350 != insets.getSystemWindowInsetBottom())) { in onApplyWindowInsets()353 return insets; in onApplyWindowInsets()356 final int possibleNavBarHeight = insets.getSystemWindowInsetBottom(); in onApplyWindowInsets()359 ? insets in onApplyWindowInsets()360 : insets.replaceSystemWindowInsets( in onApplyWindowInsets()361 insets.getSystemWindowInsetLeft(), in onApplyWindowInsets()362 insets.getSystemWindowInsetTop(), in onApplyWindowInsets()[all …]
386 protected boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument387 return super.fitSystemWindows(insets); in fitSystemWindows()
788 public boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument2864 public boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument2865 return super.fitSystemWindows(insets); in fitSystemWindows()
1642 Rect insets = new Rect(10, 20, 30, 50); in testFitSystemWindows() local1645 assertFalse(view.fitSystemWindows(insets)); in testFitSystemWindows()1649 assertFalse(view.fitSystemWindows(insets)); in testFitSystemWindows()
META-INF/ META-INF/MANIFEST.MF junit/ junit/awtui/ junit/ ...