Home
last modified time | relevance | path

Searched refs:addView (Results 1 – 25 of 240) sorted by relevance

12345678910

/cts/tests/tests/companion/CompanionDeviceTestApp/src/android.os.cts.companiondevicetestapp/
DCompanionDeviceTestAppActivity.kt82 addView(associationStatus) in <lambda>()
83 addView(permissionStatus) in <lambda>()
84 addView(notificationsStatus) in <lambda>()
85 addView(bypassStatus) in <lambda>()
87 addView(Button(ctx).apply { in <lambda>()
92 addView(nameFilter) in <lambda>()
93 addView(singleCheckbox) in <lambda>()
94 addView(watchCheckbox) in <lambda>()
95 addView(glassesCheckbox) in <lambda>()
97 addView(cdmButton("Associate") { in <lambda>()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DViewGroupChildDrawingOrderTest.java49 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithDefaultOrder()
50 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithDefaultOrder()
51 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithDefaultOrder()
61 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithCustomOrder()
62 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithCustomOrder()
63 layout.addView(new View(mContext)); in testPublicGetChildDrawingOrderWithCustomOrder()
DViewGroupTest.java153 mMockViewGroup.addView(mTextView); in testAddFocusables()
182 mMockViewGroup.addView(v1); in testAddKeyboardNavigationClusters()
183 mMockViewGroup.addView(v2); in testAddKeyboardNavigationClusters()
213 parent.addView(mMockViewGroup); in testAddKeyboardNavigationClusters()
221 mMockViewGroup.addView(v2); in testAddKeyboardNavigationClusters()
249 mMockViewGroup.addView(mTextView); in testAddStatesFromChildren()
269 mMockViewGroup.addView(mTextView); in testAddTouchables()
295 mMockViewGroup.addView(mTextView); in testAddView()
305 mMockViewGroup.addView(mTextView, -1); in testAddViewWithParaViewInt()
315 mMockViewGroup.addView(mTextView, new ViewGroup.LayoutParams(100, 200)); in testAddViewWithParaViewLayoutPara()
[all …]
DView_FocusHandlingTest.java244 vg.addView(sub, 10, 10); in testFocusHandling()
324 layout.addView(v5, 30, 30); in testSizeHandling()
352 ll0.addView(butInScroll, 40, 40); in testSizeHandling()
353 layout.addView(ll0, 100, 100); in testSizeHandling()
376 ll.addView(zeroSizeBut, 30, 0); in testSizeHandling()
377 layout.addView(ll, 100, 100); in testSizeHandling()
393 ll2.addView(zeroButInAfter, 40, 0); in testSizeHandling()
394 layout.addView(ll2, 100, 100); in testSizeHandling()
412 ll3.addView(outside, 40, 40); in testSizeHandling()
413 sub.addView(inside, 30, 0); in testSizeHandling()
[all …]
DGestureDetectorCtsActivity.java71 mViewGroup.addView(mView); in onCreate()
72 mViewGroup.addView(mTop); in onCreate()
73 mViewGroup.addView(mButton); in onCreate()
DViewGroup_ScrollCaptureTest.java247 viewGroup.addView(view1); in testDispatchScrollCaptureSearch_toChildren()
251 viewGroup.addView(view2); in testDispatchScrollCaptureSearch_toChildren()
258 viewGroup.addView(view3); in testDispatchScrollCaptureSearch_toChildren()
262 viewGroup.addView(view4); in testDispatchScrollCaptureSearch_toChildren()
270 viewGroup.addView(view5); in testDispatchScrollCaptureSearch_toChildren()
344 parent.addView(view1); in testOnScrollCaptureSearch_withPadding()
347 parent.addView(view2); in testOnScrollCaptureSearch_withPadding()
350 parent.addView(view3); in testOnScrollCaptureSearch_withPadding()
DSDRTestActivity.java60 content.addView(mSurfaceView, in onCreate()
62 content.addView(mTextureView, in onCreate()
/cts/tests/tests/widget/src/android/widget/cts/
DViewAnimatorTest.java114 mViewAnimator.addView(v1); in testShowNext()
115 mViewAnimator.addView(v2); in testShowNext()
116 mViewAnimator.addView(v3); in testShowNext()
117 mViewAnimator.addView(v4); in testShowNext()
157 mViewAnimator.addView(v1); in testAccessDisplayedChild()
160 mViewAnimator.addView(v2); in testAccessDisplayedChild()
192 mViewAnimator.addView(v1); in testAccessDisplayedChildBoundary()
195 mViewAnimator.addView(v2); in testAccessDisplayedChildBoundary()
221 mViewAnimator.addView(v1); in testGetBaseline()
222 mViewAnimator.addView(v2); in testGetBaseline()
[all …]
DTextSwitcherTest.java94 mTextSwitcher.addView(tv1, 0, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); in testSetText()
95 mTextSwitcher.addView(tv2, 1, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); in testSetText()
134 mTextSwitcher.addView(tv1, 0, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); in testSetCurrentText()
135 mTextSwitcher.addView(tv2, 1, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); in testSetCurrentText()
168 mTextSwitcher.addView(tv1, 0, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); in testAddView()
174 mTextSwitcher.addView(tv1, 0, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); in testAddView()
181 mTextSwitcher.addView(tv2, Integer.MAX_VALUE, in testAddView()
188 mTextSwitcher.addView(tv2, 1, in testAddView()
197 mTextSwitcher.addView(tv3, 2, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); in testAddView()
207 mTextSwitcher.addView(lv, 0, new ViewGroup.LayoutParams(PARAMS_WIDTH, PARAMS_HEIGHT)); in testAddView()
[all …]
DTableLayoutTest.java112 mTableEmpty.addView(toAdd); in testSetOnHierarchyChangeListener()
119 mTableEmpty.addView(new TextView(mActivity)); in testSetOnHierarchyChangeListener()
127 mTableEmpty.addView(new TextView(mActivity)); in testRequestLayout()
128 mTableEmpty.addView(new ListView(mActivity)); in testRequestLayout()
165 mTableEmpty.addView(new TextView(mActivity)); in testAccessColumnCollapsed()
166 mTableEmpty.addView(new TextView(mActivity)); in testAccessColumnCollapsed()
204 mTableEmpty.addView(new TableRow(mActivity)); in testAccessColumnStretchable()
205 mTableEmpty.addView(new TableRow(mActivity)); in testAccessColumnStretchable()
349 mTableEmpty.addView(new TableRow(mActivity)); in testAccessColumnShrinkable()
350 mTableEmpty.addView(new TableRow(mActivity)); in testAccessColumnShrinkable()
[all …]
DViewSwitcherTest.java84 viewSwitcher.addView(lv1, 0); in testReset()
85 viewSwitcher.addView(lv2, 1); in testReset()
98 viewSwitcher.addView(lv1, 0, new ViewGroup.LayoutParams(20, 25)); in testGetNextView()
102 viewSwitcher.addView(lv2, 1, new ViewGroup.LayoutParams(20, 25)); in testGetNextView()
111 viewSwitcher.addView(lv3, 2, null); in testGetNextView()
DTabWidgetTest.java132 mTabWidget.addView(new TextView(mActivity)); in testTabCount()
149 mTabWidget.addView(toAdd); in testTabViews()
160 mockTabWidget.addView(tv0); in testChildDrawableStateChanged()
161 mockTabWidget.addView(tv1); in testChildDrawableStateChanged()
179 mTabWidget.addView(new TextView(mActivity)); in testSetCurrentTab()
196 mTabWidget.addView(new TextView(mActivity)); in testFocusCurrentTab()
235 mTabWidget.addView(new TextView(mActivity)); in testSetEnabled()
236 mTabWidget.addView(new TextView(mActivity)); in testSetEnabled()
259 mockTabWidget.addView(view1); in testAddView()
273 mockTabWidget.addView(view2); in testAddView()
[all …]
DImageSwitcherTest.java98 mImageSwitcher.addView(iv); in testSetImageResource()
100 mImageSwitcher.addView(iv1); in testSetImageResource()
128 mImageSwitcher.addView(iv); in testSetImageURI()
130 mImageSwitcher.addView(iv1); in testSetImageURI()
171 mImageSwitcher.addView(iv); in testSetImageDrawable()
173 mImageSwitcher.addView(iv1); in testSetImageDrawable()
DHorizontalScrollViewTest.java162 mScrollViewRegular.addView(child0); in testAddView()
168 mScrollViewRegular.addView(child1); in testAddView()
180 mScrollViewRegular.addView(child0, 0); in testAddViewWithIndex()
186 mScrollViewRegular.addView(child1, 1); in testAddViewWithIndex()
195 mScrollViewRegular.addView(child0, -1); in testAddViewWithIndex()
201 mScrollViewRegular.addView(child1, -1); in testAddViewWithIndex()
211 mScrollViewRegular.addView(child0, 1); in testAddViewWithIndex()
222 mScrollViewRegular.addView(child0, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams()
230 mScrollViewRegular.addView(child1, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams()
241 mScrollViewRegular.addView(child0, null); in testAddViewWithLayoutParams()
[all …]
DScrollViewTest.java176 mScrollViewRegular.addView(child0); in testAddView()
182 mScrollViewRegular.addView(child1); in testAddView()
194 mScrollViewRegular.addView(child0, 0); in testAddViewWithIndex()
200 mScrollViewRegular.addView(child1, 1); in testAddViewWithIndex()
209 mScrollViewRegular.addView(child0, -1); in testAddViewWithIndex()
215 mScrollViewRegular.addView(child1, -1); in testAddViewWithIndex()
225 mScrollViewRegular.addView(child0, 1); in testAddViewWithIndex()
236 mScrollViewRegular.addView(child0, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams()
244 mScrollViewRegular.addView(child1, new ViewGroup.LayoutParams(200, 100)); in testAddViewWithLayoutParams()
255 mScrollViewRegular.addView(child0, null); in testAddViewWithLayoutParams()
[all …]
DGridLayoutTest.java172 mGridLayout.addView(new TextView(mActivity), in testCheckLayoutParams()
175 mGridLayout.addView(new TextView(mActivity), in testCheckLayoutParams()
220 container.addView(v, lp); in populate()
230 container.addView(v, lp); in populate()
241 container.addView(v, lp); in populate()
255 container.addView(v, lp); in populate()
/cts/tests/tests/widget/src/android/widget/cts/util/
DListItemFactory.java60 ll.addView(topButton); in twoButtonsSeparatedByFiller()
67 ll.addView(middleFiller); in twoButtonsSeparatedByFiller()
72 ll.addView(bottomButton); in twoButtonsSeparatedByFiller()
121 ll.addView(button, lp); in horizontalButtonSlots()
123 ll.addView(new View(context), lp); in horizontalButtonSlots()
129 ll.addView(button, lp); in horizontalButtonSlots()
131 ll.addView(new View(context), lp); in horizontalButtonSlots()
137 ll.addView(button, lp); in horizontalButtonSlots()
139 ll.addView(new View(context), lp); in horizontalButtonSlots()
253 ll.addView(t1, lp1); in doubleText()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DTvAppVerifierActivity.java90 mItemList.addView(item); in createAndAttachUserItem()
106 mItemList.addView(item); in createAndAttachUserItem()
118 mItemList.addView(item); in createAndAttachAutoItem()
140 mItemList.addView(item); in createAndAttachAutoItem()
167 mItemList.addView(item); in createAndAttachButtonItem()
175 mItemList.addView(item); in addItem()
/cts/tests/tests/hibernation/AutoRevokeRApp/src/android/hibernation/cts/autorevokerapp/
DMainActivity.kt38 addView(allowlistStatus) in onCreate()
39 addView(Button(this@MainActivity).apply { in onCreate()
/cts/tests/tests/hibernation/AutoRevokeSApp/src/android/hibernation/cts/autorevokesapp/
DMainActivity.kt38 addView(allowlistStatus) in onCreate()
39 addView(Button(this@MainActivity).apply { in onCreate()
/cts/tests/autofillservice/src/android/autofillservice/cts/unittests/
DVisibilitySetterActionTest.java70 mRootView.addView(view); in testOneChild()
85 mRootView.addView(view); in testOneChildAddedTwice()
100 mRootView.addView(view1); in testMultipleChildren()
105 mRootView.addView(view2); in testMultipleChildren()
/cts/tests/tests/sensorprivacy/test-apps/CtsUseMicOrCameraAndOverlayForSensorPrivacy/src/android/sensorprivacy/cts/usemiccamera/overlay/
DOverlayActivity.kt27 frameLayout.addView(textView) in onCreate()
28 windowManager.addView(frameLayout, params) in onCreate()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSimpleKeyguardService.java79 rootView.addView(title); in createView()
80 rootView.addView(button); in createView()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DFocusHandlingTest.java148 layout.addView(editText); in launchTestActivity()
218 layout.addView(view1); in testSwitchingBetweenEquivalentNonEditableViews()
230 layout.addView(view2); in testSwitchingBetweenEquivalentNonEditableViews()
303 layout.addView(textView); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView()
342 layout.addView(textView); in testNoEditorNoStartInput()
374 layoutRef.get().addView(editText); in testDelayedAddEditorStartsInput()
397 layout.addView(editText); in testEditorStartsInput()
420 layout.addView(editText); in testSoftInputStateAlwaysVisibleFocusedEditorView()
450 layout.addView(editText); in testSoftInputStateAlwaysVisibleFocusEditorAfterLaunch()
789 layout.addView(editText); in testKeyboardStateAfterImeFocusableFlagChanged()
[all …]
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/
DNotTouchableWindowTestActivity.java44 context.getSystemService(WindowManager.class).addView(rootView, params); in onReceive()
54 context.getSystemService(WindowManager.class).addView(rootView, params); in onReceive()

12345678910