Home
last modified time | relevance | path

Searched refs:rootView (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DViewAttributeTest.java74 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 …]
DViewSourceLayoutTest.java40 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/tests/contentcaptureservice/src/android/contentcaptureservice/cts/
DLoginActivityTest.java134 LoginActivity.onRootView((activity, rootView) -> { in testSimpleLifecycle_rootViewSession() argument
135 final ContentCaptureSession mainSession = rootView.getContentCaptureSession(); in testSimpleLifecycle_rootViewSession()
140 Log.i(TAG, "Setting root view (" + rootView + ") session to " + childSession); in testSimpleLifecycle_rootViewSession()
141 rootView.setContentCaptureSession(childSession); in testSimpleLifecycle_rootViewSession()
249 final View rootView = activity.getRootView(); in testSimpleLifecycle_changeContextAfterCreate() local
250 final ContentCaptureSession mainSession = rootView.getContentCaptureSession(); in testSimpleLifecycle_changeContextAfterCreate()
252 Log.i(TAG, "Updating root view (" + rootView + ") context to " + newContext1); in testSimpleLifecycle_changeContextAfterCreate()
256 Log.i(TAG, "Updating root view (" + rootView + ") context to " + newContext2); in testSimpleLifecycle_changeContextAfterCreate()
285 LoginActivity.onRootView((activity, rootView) -> { in testSimpleLifecycle_changeContextOnCreate() argument
286 final ContentCaptureSession mainSession = rootView.getContentCaptureSession(); in testSimpleLifecycle_changeContextOnCreate()
[all …]
DChildlessActivityTest.java247 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 …]
DLoginActivity.java124 final View rootView = activity.getRootView(); in assertJustInitialViewsAppeared() local
131 assertViewAppeared(events, 5, sessionId, rootView, grandpa1.getAutofillId()); in assertJustInitialViewsAppeared()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DViewClippingTests.java41 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);
DPathClippingTests.java130 ViewGroup rootView = (ViewGroup) view; in testViewRotate()
131 rootView.setClipChildren(true); in testViewRotate()
132 View childView = rootView.getChildAt(0); in testViewRotate()
/cts/tests/tests/widget/src/android/widget/cts/
DWidgetAttributeTest.kt67 val rootView = inflater.inflate(R.layout.widget_attribute_layout, null) as LinearLayout in testGetAttributeResolutionStack() constant
71 val toolbar1 = rootView.findViewById<Toolbar>(R.id.toolbar_view1) in testGetAttributeResolutionStack()
87 val toolbar2 = rootView.findViewById<Toolbar>(R.id.toolbar_view2) in testGetAttributeResolutionStack()
105 val textview1 = rootView.findViewById<TextView>(R.id.textview1) in testGetAttributeResolutionStack()
129 val rootView = inflater.inflate(R.layout.widget_attribute_layout, null) as LinearLayout in testGetAttributeSourceResourceMap() constant
132 val progressBar = rootView.findViewById<ProgressBar>(R.id.progress_bar) in testGetAttributeSourceResourceMap()
150 val switch = rootView.findViewById<Switch>(R.id.switch_view) in testGetAttributeSourceResourceMap()
156 val toolbar = rootView.findViewById<Toolbar>(R.id.toolbar_view1) in testGetAttributeSourceResourceMap()
163 val textview1 = rootView.findViewById<TextView>(R.id.textview1) in testGetAttributeSourceResourceMap()
DPopupWindowTest.java498 final View rootView = mActivity.findViewById(R.id.anchor_upper_left).getRootView(); in testShowAsDropDown_ClipToScreen_TooBig() local
499 final int width = rootView.getWidth() * 2; in testShowAsDropDown_ClipToScreen_TooBig()
500 final int height = rootView.getHeight() * 2; in testShowAsDropDown_ClipToScreen_TooBig()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/
DIconHeaderItemPresenter.java51 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/
DPhaseStartFragment.java53 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/autofillservice/src/android/autofillservice/cts/augmented/
DCannedAugmentedFillResponse.java120 final TextView rootView = (TextView) inflater.inflate(R.layout.augmented_autofill_ui, null); in asFillResponse() local
123 rootView.setText(dataset.mPresentation); in asFillResponse()
125 rootView.setContentDescription(getContentDescriptionForUi(focusedId)); in asFillResponse()
127 rootView.setOnClickListener((v) -> { in asFillResponse()
143 boolean ok = fillWindow.update(strip, rootView, 0); in asFillResponse()
145 Log.w(TAG, "FillWindow.update() failed for " + strip + " and " + rootView); in asFillResponse()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DWidgetTestUtils.java279 final View rootView = view.getRootView();
287 rootView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
293 rootView.getViewTreeObserver().addOnGlobalLayoutListener(listener);
300 rootView.requestLayout();
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DWidgetTestUtils.java279 final View rootView = view.getRootView();
287 rootView.getViewTreeObserver().removeOnGlobalLayoutListener(this);
293 rootView.getViewTreeObserver().addOnGlobalLayoutListener(listener);
300 rootView.requestLayout();
/cts/tests/tests/systemui/src/android/systemui/cts/
DWindowInsetsBehaviorTests.java759 final View rootView = mActivity.getWindow().getDecorView(); in testSystemGestureExclusionLimit() local
760 bottom[0] = rootView.getLocationOnScreen()[1] + rootView.getHeight(); in testSystemGestureExclusionLimit()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DHelper.java456 final View rootView = activity.getWindow().getDecorView().getRootView(); in findViewByAutofillHint() local
457 return findViewByAutofillHint(rootView, hint); in findViewByAutofillHint()