/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/ |
D | WindowInsetsControllerTests.java | 142 final View rootView = activity.getWindow().getDecorView(); in testHide() local 144 testHideInternal(rootView, statusBars()); in testHide() 145 testHideInternal(rootView, navigationBars()); in testHide() 148 private void testHideInternal(View rootView, int types) { in testHideInternal() argument 149 if (rootView.getRootWindowInsets().isVisible(types)) { in testHideInternal() 151 rootView.getWindowInsetsController().hide(types); in testHideInternal() 153 PollingCheck.waitFor(TIMEOUT, () -> !rootView.getRootWindowInsets().isVisible(types)); in testHideInternal() 162 final View rootView = activity.getWindow().getDecorView(); in testShow() local 164 testShowInternal(rootView, statusBars()); in testShow() 165 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/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/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | NotTouchableWindowTestActivity.java | 32 private View rootView; field in NotTouchableWindowTestActivity.CommandReceiver 39 if (rootView != null) { in onReceive() 42 rootView = new View(context); in onReceive() 44 context.getSystemService(WindowManager.class).addView(rootView, params); in onReceive() 48 if (rootView != null) { in onReceive() 51 rootView = new Button(context); in onReceive() 54 context.getSystemService(WindowManager.class).addView(rootView, params); in onReceive()
|
/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 | 247 ChildlessActivity.onRootView((activity, rootView) -> { in testAddAndRemoveNoImportantChild() argument 252 rootView.addView(child); in testAddAndRemoveNoImportantChild() 286 ChildlessActivity.onRootView((activity, rootView) -> { in testAddAndRemoveImportantChild() argument 288 rootView.addView(text); in testAddAndRemoveImportantChild() 296 final LinearLayout rootView = activity.getRootView(); in testAddAndRemoveImportantChild() local 298 activity.syncRunOnUiThread(() -> rootView.removeView(child)); in testAddAndRemoveImportantChild() 312 final AutofillId rootId = rootView.getAutofillId(); in testAddAndRemoveImportantChild() 325 .assertViewAppeared(sessionId, rootView, grandpa1.getAutofillId()) in testAddAndRemoveImportantChild() 345 final LinearLayout rootView = activity.getRootView(); in testAddImportantChildAfterSessionStarted() local 347 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/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/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | FlagSecureTest.java | 84 View rootView = mActivity.getWindow().getDecorView(); in testChildWindowInheritsFlagSecure() local 85 if (rootView.isAttachedToWindow()) { in testChildWindowInheritsFlagSecure() 86 popupWindow.showAsDropDown(rootView); in testChildWindowInheritsFlagSecure() 89 rootView.addOnAttachStateChangeListener(new View.OnAttachStateChangeListener() { in testChildWindowInheritsFlagSecure() 92 popupWindow.showAsDropDown(rootView); in testChildWindowInheritsFlagSecure()
|
/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 | 104 activity.window.decorView.rootView.setBackgroundColor(Color.WHITE) in setUp() 128 val view = activity.window.decorView.rootView in testCreateBitmapIcon() 140 val view = activity.window.decorView.rootView in testLoadBitmapIcon() 157 val view = activity.window.decorView.rootView in testLoadVectorIconNoShadow() 180 val view = activity.window.decorView.rootView in testLoadVectorIcon()
|
D | TouchModeTest.kt | 134 val observer = activity.window.decorView.rootView.viewTreeObserver in <lambda>()
|
/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 | 1286 final View[] rootView = new View[1]; 1289 rootView[0] = activity.getWindow().getDecorView(); 1290 inset[0] = rootView[0].getRootWindowInsets(); 1295 return new Rect(0, statusBarHeight, rootView[0].getWidth(), 1296 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 | 410 final View rootView = activity.getWindow().getDecorView(); in testImeShowsAfterLockScreenOnEditorTap() local 415 () -> rootView.getRootWindowInsets().isVisible(ime())); in testImeShowsAfterLockScreenOnEditorTap() 435 () -> 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 | 449 private ChildWindowHolder(@NonNull View rootView) { in ChildWindowHolder() argument 450 mRootView = rootView; in ChildWindowHolder()
|