Home
last modified time | relevance | path

Searched refs:insets (Results 1 – 7 of 7) sorted by relevance

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DDisplayCutoutTests.java88 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() local
127 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 …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DBoxInsetLayout.java77 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument
78 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()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockIme.java336 public WindowInsets onApplyWindowInsets(WindowInsets insets) { in onApplyWindowInsets() argument
337 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 …]
/cts/tests/tests/view/src/android/view/cts/
DMockView.java386 protected boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument
387 return super.fitSystemWindows(insets); in fitSystemWindows()
DViewGroupTest.java788 public boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument
2864 public boolean fitSystemWindows(Rect insets) { in fitSystemWindows() argument
2865 return super.fitSystemWindows(insets); in fitSystemWindows()
DViewTest.java1642 Rect insets = new Rect(10, 20, 30, 50); in testFitSystemWindows() local
1645 assertFalse(view.fitSystemWindows(insets)); in testFitSystemWindows()
1649 assertFalse(view.fitSystemWindows(insets)); in testFitSystemWindows()
/cts/tools/vm-tests-tf/lib/
Djunit.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/awtui/ junit/ ...