/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowInsetsControllerTests.java | 114 final View rootView = activity.getWindow().getDecorView(); in testHide() local 116 testHideInternal(rootView, statusBars()); in testHide() 117 testHideInternal(rootView, navigationBars()); in testHide() 120 private void testHideInternal(View rootView, int types) { in testHideInternal() argument 121 if (rootView.getRootWindowInsets().isVisible(types)) { in testHideInternal() 123 rootView.getWindowInsetsController().hide(types); in testHideInternal() 125 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(types)); in testHideInternal() 132 final View rootView = activity.getWindow().getDecorView(); in testShow() local 134 testShowInternal(rootView, statusBars()); in testShow() 135 testShowInternal(rootView, navigationBars()); in testShow() [all …]
|
D | WindowInsetsLayoutTests.java | 236 final View rootView = getWindow().getDecorView(); in assertMatchesWindowBounds() local 239 assertEquals(windowMetricsBounds.width(), rootView.getWidth()); in assertMatchesWindowBounds() 240 assertEquals(windowMetricsBounds.height(), rootView.getHeight()); in assertMatchesWindowBounds() 242 rootView.getLocationOnScreen(locationOnScreen); in assertMatchesWindowBounds()
|
D | KeyguardLockedTests.java | 422 final View rootView = activity.getWindow().getDecorView(); in testImeShowsAfterLockScreenOnEditorTap() local 427 () -> rootView.getRootWindowInsets().isVisible(ime())); in testImeShowsAfterLockScreenOnEditorTap() 446 () -> rootView.getRootWindowInsets().isVisible(ime())); in testImeShowsAfterLockScreenOnEditorTap()
|
D | WindowInsetsAnimationTestBase.java | 108 protected static boolean hasWindowInsets(View rootView, int types) { in hasWindowInsets() argument 109 return Insets.NONE != rootView.getRootWindowInsets().getInsetsIgnoringVisibility(types); in hasWindowInsets()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewAttributeTest.java | 74 LinearLayout rootView = in testGetExplicitStyle() local 76 View view1 = rootView.findViewById(R.id.view1); in testGetExplicitStyle() 79 View view2 = rootView.findViewById(R.id.view2); in testGetExplicitStyle() 82 View view3 = rootView.findViewById(R.id.view3); in testGetExplicitStyle() 85 View view4 = rootView.findViewById(R.id.view4); in testGetExplicitStyle() 92 LinearLayout rootView = in testGetAttributeResolutionStack() local 94 int[] stackRootView = rootView.getAttributeResolutionStack(android.R.attr.padding); in testGetAttributeResolutionStack() 98 View view1 = rootView.findViewById(R.id.view1); in testGetAttributeResolutionStack() 109 LinearLayout rootView = in testGetAttributeSourceResourceMap() local 111 Map<Integer, Integer> attributeMapRootView = rootView.getAttributeSourceResourceMap(); in testGetAttributeSourceResourceMap() [all …]
|
D | ViewSourceLayoutTest.java | 40 View rootView = activity.findViewById(R.id.view_root); in testGetSourceLayout() local 41 assertEquals(R.layout.view_source_layout_test_layout, rootView.getSourceLayoutResId()); in testGetSourceLayout()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | SimpleKeyguardService.java | 75 LinearLayout rootView = new LinearLayout(context); in createView() local 76 rootView.setOrientation(LinearLayout.VERTICAL); in createView() 77 rootView.setGravity(Gravity.CENTER); in createView() 78 rootView.setBackgroundColor(Color.WHITE); in createView() 79 rootView.addView(title); in createView() 80 rootView.addView(button); in createView() 81 return rootView; in createView()
|
/cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
D | LoginActivityTest.java | 142 LoginActivity.onRootView((activity, rootView) -> { in testContentCaptureSessionCache() argument 143 final ContentCaptureSession mainSession = rootView.getContentCaptureSession(); in testContentCaptureSessionCache() 149 rootView.setContentCaptureSession(childSession); in testContentCaptureSessionCache() 151 assertThat(rootView.getContentCaptureSession()).isEqualTo(childSession); in testContentCaptureSessionCache() 153 rootView.setContentCaptureSession(mainSession); in testContentCaptureSessionCache() 154 assertThat(rootView.getContentCaptureSession()).isEqualTo(mainSession); in testContentCaptureSessionCache() 156 rootView.setContentCaptureSession(childSession); in testContentCaptureSessionCache() 157 assertThat(rootView.getContentCaptureSession()).isEqualTo(childSession); in testContentCaptureSessionCache() 182 LoginActivity.onRootView((activity, rootView) -> { in testSimpleLifecycle_rootViewSession() argument 183 final ContentCaptureSession mainSession = rootView.getContentCaptureSession(); in testSimpleLifecycle_rootViewSession() [all …]
|
D | ChildlessActivityTest.java | 247 ChildlessActivity.onRootView((activity, rootView) -> { in testAddAndRemoveNoImportantChild() argument 252 rootView.addView(child); in testAddAndRemoveNoImportantChild() 285 ChildlessActivity.onRootView((activity, rootView) -> { in testAddAndRemoveImportantChild() argument 287 rootView.addView(text); in testAddAndRemoveImportantChild() 295 final LinearLayout rootView = activity.getRootView(); in testAddAndRemoveImportantChild() local 297 activity.syncRunOnUiThread(() -> rootView.removeView(child)); in testAddAndRemoveImportantChild() 311 final AutofillId rootId = rootView.getAutofillId(); in testAddAndRemoveImportantChild() 324 assertViewAppeared(events, 5, sessionId, rootView, grandpa1.getAutofillId()); in testAddAndRemoveImportantChild() 344 final LinearLayout rootView = activity.getRootView(); in testAddImportantChildAfterSessionStarted() local 346 activity.runOnUiThread(() -> rootView.addView(child)); in testAddImportantChildAfterSessionStarted() [all …]
|
D | LoginActivity.java | 124 final View rootView = activity.getRootView(); in assertJustInitialViewsAppeared() local 131 assertViewAppeared(events, 5, sessionId, rootView, grandpa1.getAutofillId()); in assertJustInitialViewsAppeared()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | WidgetAttributeTest.kt | 68 val rootView = inflater.inflate(R.layout.widget_attribute_layout, null) as LinearLayout in testGetAttributeResolutionStack() constant 72 val toolbar1 = rootView.findViewById<Toolbar>(R.id.toolbar_view1) in testGetAttributeResolutionStack() 88 val toolbar2 = rootView.findViewById<Toolbar>(R.id.toolbar_view2) in testGetAttributeResolutionStack() 106 val textview1 = rootView.findViewById<TextView>(R.id.textview1) in testGetAttributeResolutionStack() 118 val viewAnimator = rootView.findViewById<ViewAnimator>(R.id.viewAnimator) in testGetAttributeResolutionStack() 128 val rootView = inflater.inflate(R.layout.widget_attribute_layout, null) as LinearLayout in testGetAttributeSourceResourceMap() constant 131 val progressBar = rootView.findViewById<ProgressBar>(R.id.progress_bar) in testGetAttributeSourceResourceMap() 149 val switch = rootView.findViewById<Switch>(R.id.switch_view) in testGetAttributeSourceResourceMap() 155 val toolbar = rootView.findViewById<Toolbar>(R.id.toolbar_view1) in testGetAttributeSourceResourceMap() 162 val textview1 = rootView.findViewById<TextView>(R.id.textview1) in testGetAttributeSourceResourceMap()
|
D | PopupWindowTest.java | 544 final View rootView = mActivity.findViewById(R.id.anchor_upper_left).getRootView(); in testShowAsDropDown_ClipToScreen_TooBig() local 545 final int width = rootView.getWidth() * 2; in testShowAsDropDown_ClipToScreen_TooBig() 546 final int height = rootView.getHeight() * 2; in testShowAsDropDown_ClipToScreen_TooBig()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | ViewClippingTests.java | 41 rootView -> ((ViewGroup)rootView).setClipChildren(true); 43 static final ViewInitializer PADDING_CLIP_INIT = rootView -> { 44 ViewGroup child = (ViewGroup) rootView.findViewById(R.id.child); 47 child.addView(new UnclippedBlueView(rootView.getContext())); 50 static final ViewInitializer OUTLINE_CLIP_INIT = rootView -> { 51 View child = rootView.findViewById(R.id.child);
|
D | PathClippingTests.java | 146 ViewGroup rootView = (ViewGroup) view; in testViewRotate() 147 rootView.setClipChildren(true); in testViewRotate() 148 View childView = rootView.getChildAt(0); in testViewRotate()
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/ |
D | IconHeaderItemPresenter.java | 51 View rootView = viewHolder.view; in onBindViewHolder() local 53 ImageView iconView = (ImageView) rootView.findViewById(R.id.header_icon); in onBindViewHolder() 54 Drawable icon = rootView.getResources().getDrawable(R.drawable.android_header, null); in onBindViewHolder() 57 TextView label = (TextView) rootView.findViewById(R.id.header_label); in onBindViewHolder()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Fragments/ |
D | PhaseStartFragment.java | 53 View rootView = inflater.inflate(R.layout.fragment_start_phase, container, false); in onCreateView() local 54 mBtnStart = (Button) rootView.findViewById(R.id.btnStart); in onCreateView() 55 mTvDesc = (TextView) rootView.findViewById(R.id.tvDesc); in onCreateView() 84 return rootView; in onCreateView()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | WidgetTestUtils.java | 277 final View rootView = view.getRootView(); 285 rootView.getViewTreeObserver().removeOnGlobalLayoutListener(this); 291 rootView.getViewTreeObserver().addOnGlobalLayoutListener(listener); 298 rootView.requestLayout();
|
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/ |
D | CannedAugmentedFillResponse.java | 133 final TextView rootView = (TextView) inflater.inflate(R.layout.augmented_autofill_ui, null); in asFillResponse() local 136 rootView.setText(dataset.mPresentation); in asFillResponse() 138 rootView.setContentDescription(getContentDescriptionForUi(focusedId)); in asFillResponse() 140 rootView.setOnClickListener((v) -> { in asFillResponse() 156 boolean ok = fillWindow.update(strip, rootView, 0); in asFillResponse() 158 Log.w(TAG, "FillWindow.update() failed for " + strip + " and " + rootView); in asFillResponse()
|
D | UiBot.java | 1144 final View[] rootView = new View[1]; 1147 rootView[0] = activity.getWindow().getDecorView(); 1148 inset[0] = rootView[0].getRootWindowInsets(); 1153 return new Rect(0, statusBarHeight, rootView[0].getWidth(), 1154 rootView[0].getHeight() - navBarHeight - statusBarHeight);
|
D | Helper.java | 489 final View rootView = activity.getWindow().getDecorView().getRootView(); in findViewByAutofillHint() local 490 return findViewByAutofillHint(rootView, hint); in findViewByAutofillHint()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | WindowInsetsBehaviorTests.java | 771 final View rootView = mActivity.getWindow().getDecorView(); in testSystemGestureExclusionLimit() local 772 swipeBounds.set(mActivity.getViewBoundOnScreen(rootView)); in testSystemGestureExclusionLimit()
|