Home
last modified time | relevance | path

Searched refs:decorView (Results 1 – 17 of 17) sorted by relevance

/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DImeInsetsControllerTest.java106 final View decorView = launchResult.second.getDecorView(); in testChangeSizeWhileControlling() local
147 assertEquals(getExpectedBottomInsets(INITIAL_KEYBOARD_HEIGHT, decorView), in testChangeSizeWhileControlling()
158 assertEquals(getExpectedBottomInsets(INITIAL_KEYBOARD_HEIGHT, decorView), in testChangeSizeWhileControlling()
175 assertEquals(getExpectedBottomInsets(NEW_KEYBOARD_HEIGHT, decorView), in testChangeSizeWhileControlling()
213 private int getBottomOfWindow(View decorView) {
215 decorView.getLocationOnScreen(viewPos);
216 return decorView.getHeight() + viewPos[1];
219 private int getExpectedBottomInsets(int keyboardHeight, View decorView) {
223 - Math.max(0, getDisplayHeight(decorView) - getBottomOfWindow(decorView)));
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DBlankWithTitleActivity.java49 final View decorView = getDecorView(); in assertDefaultEvents() local
59 assertDecorViewAppeared(events, 2, decorView); in assertDefaultEvents()
66 assertViewsOptionallyDisappeared(events, minEvents, decorView.getAutofillId(), in assertDefaultEvents()
DLoginActivity.java123 final View decorView = activity.getDecorView(); in assertJustInitialViewsAppeared() local
128 assertDecorViewAppeared(events, 2, decorView); in assertJustInitialViewsAppeared()
129 assertViewAppeared(events, 3, grandpa2, decorView.getAutofillId()); in assertJustInitialViewsAppeared()
151 final View decorView = activity.getDecorView(); in assertInitialViewsDisappeared() local
174 decorView.getAutofillId(), in assertInitialViewsDisappeared()
DCustomViewActivity.java122 final View decorView = getDecorView(); in assertJustInitialViewsAppeared() local
125 + decorView.getAutofillId()); in assertJustInitialViewsAppeared()
135 assertViewAppeared(events, 3, grandpa2, decorView.getAutofillId()); in assertJustInitialViewsAppeared()
DCustomViewActivityTest.java142 final View decorView = activity.getDecorView(); in testSessionLifecycleEvents() local
146 + decorView.getAutofillId() + "customView=" + customViewId); in testSessionLifecycleEvents()
157 assertDecorViewAppeared(events, 2, decorView); in testSessionLifecycleEvents()
158 assertViewAppeared(events, 3, grandpa2, decorView.getAutofillId()); in testSessionLifecycleEvents()
212 final View decorView = activity.getDecorView(); in testVirtualView_wrongWay() local
216 + decorView.getAutofillId() + "customView=" + customViewId); in testVirtualView_wrongWay()
227 assertDecorViewAppeared(events, 2, decorView); in testVirtualView_wrongWay()
228 assertViewAppeared(events, 3, grandpa2, decorView.getAutofillId()); in testVirtualView_wrongWay()
DLoginActivityTest.java235 final View decorView = activity.getDecorView(); in testSimpleLifecycle_rootViewSession() local
242 assertDecorViewAppeared(mainEvents, 2, decorView); in testSimpleLifecycle_rootViewSession()
243 assertViewAppeared(mainEvents, 3, grandpa2, decorView.getAutofillId()); in testSimpleLifecycle_rootViewSession()
251 decorView.getAutofillId(), in testSimpleLifecycle_rootViewSession()
367 final View decorView = activity.getDecorView(); in testSimpleLifecycle_changeContextOnCreate() local
376 assertDecorViewAppeared(events, 3, decorView); in testSimpleLifecycle_changeContextOnCreate()
377 assertViewAppeared(events, 4, grandpa2, decorView.getAutofillId()); in testSimpleLifecycle_changeContextOnCreate()
969 final View decorView = activity.getDecorView(); in testAddChildren_afterAnimation() local
999 decorView.getAutofillId(), in testAddChildren_afterAnimation()
DChildlessActivityTest.java315 final View decorView = activity.getDecorView(); in testAddAndRemoveImportantChild() local
321 assertDecorViewAppeared(events, 2, decorView); in testAddAndRemoveImportantChild()
322 assertViewAppeared(events, 3, grandpa2, decorView.getAutofillId()); in testAddAndRemoveImportantChild()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowCtsActivity.java78 View decorView = getWindow().getDecorView(); in getAppliedInsets() local
80 decorView.getWidth() - (location[0] + view.getWidth()), in getAppliedInsets()
81 decorView.getHeight() - (location[1] + view.getHeight())); in getAppliedInsets()
DWindowInsetsPolicyTest.java169 View decorView = fullscreenActivity.getDecorView(); in testNonAutomotiveFullScreenNotBlockedBySystemComponents() local
170 View contentView = decorView.findViewById(android.R.id.content); in testNonAutomotiveFullScreenNotBlockedBySystemComponents()
171 boolean hasFullWidth = decorView.getMeasuredWidth() == contentView.getMeasuredWidth(); in testNonAutomotiveFullScreenNotBlockedBySystemComponents()
172 boolean hasFullHeight = decorView.getMeasuredHeight() == contentView.getMeasuredHeight(); in testNonAutomotiveFullScreenNotBlockedBySystemComponents()
DWindowFocusTests.java120 final View decorView = activity.getWindow().getDecorView(); in getCenterOfActivityOnScreen() local
122 decorView.getLocationOnScreen(location); in getCenterOfActivityOnScreen()
123 return new Point(location[0] + decorView.getWidth() / 2, in getCenterOfActivityOnScreen()
124 location[1] + decorView.getHeight() / 2); in getCenterOfActivityOnScreen()
/cts/tests/input/src/android/input/cts/
DInputShellCommandTest.kt63 val (x, y) = getViewCenterOnScreen(mActivity.window.decorView) in testDefaultToolType()
74 val (x, y) = getViewCenterOnScreen(mActivity.window.decorView) in testToolType()
DIncompleteMotionTest.kt98 val (x, y) = getViewCenterOnScreen(mActivity.window.decorView) in testIncompleteMotion()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java143 final View decorView = mActivity.getWindow().getDecorView(); in testActionOutsideDoesNotContainedObscuredInformation()
144 decorView.getLocationOnScreen(viewLocation); in testActionOutsideDoesNotContainedObscuredInformation()
146 return new Point(viewLocation[0], viewLocation[1] + decorView.getHeight() / 2); in testActionOutsideDoesNotContainedObscuredInformation()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt83 window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION or in hashCode()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DDrawActivity.kt83 window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION or in hashCode()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DMockIme.java542 final View decorView = getWindow().getWindow().getDecorView(); in onCreate() local
543 decorView.post(() -> decorView.requestLayout()); in onCreate()
/cts/tests/tests/view/src/android/view/cts/
DViewTest.java1430 ViewGroup decorView = (ViewGroup) mActivity.getWindow().getDecorView(); in testKeyboardNavigationClusterSearch() local
1431 decorView.removeAllViews(); in testKeyboardNavigationClusterSearch()
1436 decorView.addView(v1); in testKeyboardNavigationClusterSearch()
1437 decorView.addView(v2); in testKeyboardNavigationClusterSearch()
1442 assertEquals(v2, decorView.keyboardNavigationClusterSearch(v1, View.FOCUS_FORWARD)); in testKeyboardNavigationClusterSearch()
1443 assertEquals(v1, decorView.keyboardNavigationClusterSearch(null, View.FOCUS_FORWARD)); in testKeyboardNavigationClusterSearch()
1444 assertEquals(v2, decorView.keyboardNavigationClusterSearch(null, View.FOCUS_BACKWARD)); in testKeyboardNavigationClusterSearch()
1446 assertEquals(decorView, v1.keyboardNavigationClusterSearch(null, View.FOCUS_BACKWARD)); in testKeyboardNavigationClusterSearch()
1447 assertEquals(decorView, v2.keyboardNavigationClusterSearch(null, View.FOCUS_FORWARD)); in testKeyboardNavigationClusterSearch()
1451 decorView.removeAllViews(); in testKeyboardNavigationClusterSearch()
[all …]