| /cts/tests/framework/base/windowmanager/src/android/server/wm/insets/ |
| D | WindowInsetsControllerTests.java | 149 final View rootView = activity.getWindow().getDecorView(); in testHide() local 151 testHideInternal(rootView, statusBars()); in testHide() 152 testHideInternal(rootView, navigationBars()); in testHide() 155 private void testHideInternal(View rootView, int types) { in testHideInternal() argument 156 if (rootView.getRootWindowInsets().isVisible(types)) { in testHideInternal() 158 rootView.getWindowInsetsController().hide(types); in testHideInternal() 160 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(types)); in testHideInternal() 169 final View rootView = activity.getWindow().getDecorView(); in testShow() local 171 testShowInternal(rootView, statusBars()); in testShow() 172 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()
|
| /cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
| D | NotTouchableWindowTestActivity.java | 34 private View rootView; field in NotTouchableWindowTestActivity.CommandReceiver 41 if (rootView != null) { in onReceive() 44 rootView = new View(context); in onReceive() 46 context.getSystemService(WindowManager.class).addView(rootView, params); in onReceive() 50 if (rootView != null) { in onReceive() 53 rootView = new Button(context); in onReceive() 56 context.getSystemService(WindowManager.class).addView(rootView, params); in onReceive() 62 context.getSystemService(WindowManager.class).removeView(rootView); in onReceive() 63 rootView = null; in onReceive()
|
| /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/tests/view/src/android/view/cts/ |
| D | ViewAttributeTest.java | 92 LinearLayout rootView = in testGetExplicitStyle() local 94 View view1 = rootView.findViewById(R.id.view1); in testGetExplicitStyle() 97 View view2 = rootView.findViewById(R.id.view2); in testGetExplicitStyle() 100 View view3 = rootView.findViewById(R.id.view3); in testGetExplicitStyle() 103 View view4 = rootView.findViewById(R.id.view4); in testGetExplicitStyle() 110 LinearLayout rootView = in testGetAttributeResolutionStack() local 112 int[] stackRootView = rootView.getAttributeResolutionStack(android.R.attr.padding); in testGetAttributeResolutionStack() 116 View view1 = rootView.findViewById(R.id.view1); in testGetAttributeResolutionStack() 127 LinearLayout rootView = in testGetAttributeSourceResourceMap() local 129 Map<Integer, Integer> attributeMapRootView = rootView.getAttributeSourceResourceMap(); in testGetAttributeSourceResourceMap() [all …]
|
| D | ViewSourceLayoutTest.java | 51 View rootView = activity.findViewById(R.id.view_root); in testGetSourceLayout() local 52 assertEquals(R.layout.view_source_layout_test_layout, rootView.getSourceLayoutResId()); in testGetSourceLayout()
|
| /cts/tests/contentcaptureservice/src/android/contentcaptureservice/cts/ |
| D | LoginActivityTest.java | 143 LoginActivity.onRootView((activity, rootView) -> { in testContentCaptureSessionCache() argument 144 final ContentCaptureSession mainSession = rootView.getContentCaptureSession(); in testContentCaptureSessionCache() 150 rootView.setContentCaptureSession(childSession); in testContentCaptureSessionCache() 152 assertThat(rootView.getContentCaptureSession()).isEqualTo(childSession); in testContentCaptureSessionCache() 154 rootView.setContentCaptureSession(mainSession); in testContentCaptureSessionCache() 155 assertThat(rootView.getContentCaptureSession()).isEqualTo(mainSession); in testContentCaptureSessionCache() 157 rootView.setContentCaptureSession(childSession); in testContentCaptureSessionCache() 158 assertThat(rootView.getContentCaptureSession()).isEqualTo(childSession); in testContentCaptureSessionCache() 183 LoginActivity.onRootView((activity, rootView) -> { in testSimpleLifecycle_rootViewSession() argument 184 final ContentCaptureSession mainSession = rootView.getContentCaptureSession(); in testSimpleLifecycle_rootViewSession() [all …]
|
| D | ChildlessActivityTest.java | 259 ChildlessActivity.onRootView((activity, rootView) -> { in testAddAndRemoveNoImportantChild() argument 264 rootView.addView(child); in testAddAndRemoveNoImportantChild() 298 ChildlessActivity.onRootView((activity, rootView) -> { in testAddAndRemoveImportantChild() argument 300 rootView.addView(text); in testAddAndRemoveImportantChild() 308 final LinearLayout rootView = activity.getRootView(); in testAddAndRemoveImportantChild() local 310 activity.syncRunOnUiThread(() -> rootView.removeView(child)); in testAddAndRemoveImportantChild() 324 final AutofillId rootId = rootView.getAutofillId(); in testAddAndRemoveImportantChild() 337 .assertViewAppeared(sessionId, rootView, grandpa1.getAutofillId()) in testAddAndRemoveImportantChild() 357 final LinearLayout rootView = activity.getRootView(); in testAddImportantChildAfterSessionStarted() local 359 activity.runOnUiThread(() -> rootView.addView(child)); in testAddImportantChildAfterSessionStarted() [all …]
|
| D | LoginActivity.java | 118 final View rootView = activity.getRootView(); in assertJustInitialViewsAppeared() local 125 assertViewAppeared(events, 5, sessionId, rootView, grandpa1.getAutofillId()); in assertJustInitialViewsAppeared() 150 final View rootView = activity.getRootView(); in assertInitialViewsAppeared() local 159 .assertViewAppeared(sessionId, rootView, grandpa1.getAutofillId()) in assertInitialViewsAppeared()
|
| /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() 163 val switch = rootView.findViewById<Switch>(R.id.switch_view) in testGetAttributeSourceResourceMap() 171 val toolbar = rootView.findViewById<Toolbar>(R.id.toolbar_view1) in testGetAttributeSourceResourceMap() 182 val textview1 = rootView.findViewById<TextView>(R.id.textview1) in testGetAttributeSourceResourceMap()
|
| /cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
| D | FlagSecureTest.java | 80 View rootView = mActivity.getWindow().getDecorView(); in testChildWindowInheritsFlagSecure() local 81 if (rootView.isAttachedToWindow()) { in testChildWindowInheritsFlagSecure() 82 popupWindow.showAsDropDown(rootView); in testChildWindowInheritsFlagSecure() 85 rootView.addOnAttachStateChangeListener(new View.OnAttachStateChangeListener() { in testChildWindowInheritsFlagSecure() 88 popupWindow.showAsDropDown(rootView); in testChildWindowInheritsFlagSecure()
|
| /cts/tests/tests/gameservice/CtsGameServiceTouchVerifier/src/android/service/games/cts/touchverifier/ |
| D | MainActivity.java | 37 final View rootView = findViewById(R.id.root_view); in onCreate() local 41 rootView.setOnClickListener(v -> { in onCreate() 46 WindowInsetsController windowInsetsController = rootView.getWindowInsetsController(); in onCreate()
|
| /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/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
| D | ViewClippingTests.java | 49 rootView -> ((ViewGroup)rootView).setClipChildren(true); 51 static final ViewInitializer PADDING_CLIP_INIT = rootView -> { 52 ViewGroup child = (ViewGroup) rootView.findViewById(R.id.child); 55 child.addView(new UnclippedBlueView(rootView.getContext())); 58 static final ViewInitializer OUTLINE_CLIP_INIT = rootView -> { 59 View child = rootView.findViewById(R.id.child); 69 static final ViewInitializer OUTLINE_CLIP_AA_INIT = rootView -> { 70 View child = rootView.findViewById(R.id.child); 90 static final ViewInitializer CONCAVE_CLIP_INIT = rootView -> { 91 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/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/tests/input/src/android/input/cts/ |
| D | PointerIconTest.kt | 105 activity.window.decorView.rootView.setBackgroundColor(Color.WHITE) in setUp() 136 val view = activity.window.decorView.rootView in testCreateBitmapIcon() 148 val view = activity.window.decorView.rootView in testLoadBitmapIcon() 164 val view = activity.window.decorView.rootView in testLoadVectorIconNoShadow() 183 val view = activity.window.decorView.rootView in testLoadVectorIcon()
|
| /cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
| D | WidgetTestUtils.java | 319 final View rootView = view.getRootView(); 327 rootView.getViewTreeObserver().removeOnGlobalLayoutListener(this); 333 rootView.getViewTreeObserver().addOnGlobalLayoutListener(listener); 340 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 | 1316 final View[] rootView = new View[1]; 1319 rootView[0] = activity.getWindow().getDecorView(); 1320 inset[0] = rootView[0].getRootWindowInsets(); 1325 return new Rect(0, statusBarHeight, rootView[0].getWidth(), 1326 rootView[0].getHeight() - navBarHeight - statusBarHeight);
|
| /cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/ |
| D | KeepClearRectsActivity.java | 37 findViewById(R.id.rootView).setPreferKeepClearRects(keepClearRects); in onCreate()
|
| /cts/tests/framework/base/windowmanager/src/android/server/wm/keyguard/ |
| D | KeyguardLockedTests.java | 474 final View rootView = activity.getWindow().getDecorView(); in testImeShowsAfterLockScreenOnEditorTap() local 479 () -> rootView.getRootWindowInsets().isVisible(ime())); in testImeShowsAfterLockScreenOnEditorTap() 503 () -> rootView.getRootWindowInsets().isVisible(ime())); in testImeShowsAfterLockScreenOnEditorTap()
|
| /cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
| D | WindowInsetsAnimationTestBase.java | 116 protected static boolean hasWindowInsets(View rootView, int types) { in hasWindowInsets() argument 117 return Insets.NONE != rootView.getRootWindowInsets().getInsetsIgnoringVisibility(types); in hasWindowInsets()
|
| /cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
| D | ImeInsetsVisibilityTest.java | 448 private ChildWindowHolder(@NonNull View rootView) { in ChildWindowHolder() argument 449 mRootView = rootView; in ChildWindowHolder()
|
| /cts/tests/framework/base/windowmanager/src/android/server/wm/animations/ |
| D | BlurTests.java | 409 View rootView = findViewById(android.R.id.content); in onCreate() local 410 rootView.setOnApplyWindowInsetsListener((v, insets) -> { in onCreate()
|