Home
last modified time | relevance | path

Searched refs:getChildAt (Results 1 – 25 of 64) sorted by relevance

123

/cts/tests/tests/widget/src/android/widget/cts/
DTableLayoutTest.java131 assertFalse(mTableEmpty.getChildAt(0).isLayoutRequested()); in testRequestLayout()
132 assertFalse(mTableEmpty.getChildAt(1).isLayoutRequested()); in testRequestLayout()
136 assertTrue(mTableEmpty.getChildAt(0).isLayoutRequested()); in testRequestLayout()
137 assertTrue(mTableEmpty.getChildAt(1).isLayoutRequested()); in testRequestLayout()
171 assertFalse(mTableEmpty.getChildAt(0).isLayoutRequested()); in testAccessColumnCollapsed()
172 assertFalse(mTableEmpty.getChildAt(1).isLayoutRequested()); in testAccessColumnCollapsed()
176 assertTrue(mTableEmpty.getChildAt(0).isLayoutRequested()); in testAccessColumnCollapsed()
177 assertTrue(mTableEmpty.getChildAt(1).isLayoutRequested()); in testAccessColumnCollapsed()
183 assertTrue(mTableEmpty.getChildAt(0).isLayoutRequested()); in testAccessColumnCollapsed()
184 assertTrue(mTableEmpty.getChildAt(1).isLayoutRequested()); in testAccessColumnCollapsed()
[all …]
DTabWidgetTest.java181 assertTrue(mTabWidget.getChildAt(0).isSelected()); in testSetCurrentTab()
182 assertFalse(mTabWidget.getChildAt(1).isSelected()); in testSetCurrentTab()
183 assertTrue(mTabWidget.getChildAt(0).isFocused()); in testSetCurrentTab()
184 assertFalse(mTabWidget.getChildAt(1).isFocused()); in testSetCurrentTab()
187 assertFalse(mTabWidget.getChildAt(0).isSelected()); in testSetCurrentTab()
188 assertTrue(mTabWidget.getChildAt(1).isSelected()); in testSetCurrentTab()
189 assertTrue(mTabWidget.getChildAt(0).isFocused()); in testSetCurrentTab()
190 assertFalse(mTabWidget.getChildAt(1).isFocused()); in testSetCurrentTab()
198 assertTrue(mTabWidget.getChildAt(0).isSelected()); in testFocusCurrentTab()
199 assertFalse(mTabWidget.getChildAt(1).isSelected()); in testFocusCurrentTab()
[all …]
DRemoteViewsRecyclingTest.java105 View text1 = container.getChildAt(0); in recycleWhenIdentical()
106 View text2 = container.getChildAt(1); in recycleWhenIdentical()
107 View text3 = container.getChildAt(2); in recycleWhenIdentical()
113 assertSame("TextViews with stable id FIRST_TEXT_ID", text1, container.getChildAt(0)); in recycleWhenIdentical()
114 assertNotSame("TextViews without stable id", text2, container.getChildAt(1)); in recycleWhenIdentical()
115 assertSame("TextViews with stable id AFTER_TEXT_ID", text3, container.getChildAt(2)); in recycleWhenIdentical()
136 View text1 = container.getChildAt(0); in doesntRecycleWhenNotAskingForRecycling()
137 View text2 = container.getChildAt(1); in doesntRecycleWhenNotAskingForRecycling()
143 assertNotSame("TextViews with stable id FIRST_TEXT_ID", text1, container.getChildAt(0)); in doesntRecycleWhenNotAskingForRecycling()
144 assertNotSame("TextViews with stable id AFTER_TEXT_ID", text2, container.getChildAt(1)); in doesntRecycleWhenNotAskingForRecycling()
[all …]
DGridViewTest.java249 ViewAsserts.assertHorizontalCenterAligned(mGridView, mGridView.getChildAt(0)); in testSetGravity()
258 ViewAsserts.assertLeftAligned(mGridView, mGridView.getChildAt(0), in testSetGravity()
268 ViewAsserts.assertRightAligned(mGridView, mGridView.getChildAt(0), in testSetGravity()
296 View child0 = mGridView.getChildAt(0); in verifyAccessHorizontalSpacing()
297 View child1 = mGridView.getChildAt(1); in verifyAccessHorizontalSpacing()
309 child0 = mGridView.getChildAt(0); in verifyAccessHorizontalSpacing()
310 child1 = mGridView.getChildAt(1); in verifyAccessHorizontalSpacing()
326 View child0 = mGridView.getChildAt(0); in testAccessVerticalSpacing()
327 View child1 = mGridView.getChildAt(1); in testAccessVerticalSpacing()
334 child0 = mGridView.getChildAt(0); in testAccessVerticalSpacing()
[all …]
DRemoteViewsFixedCollectionAdapterTest.java485 AppWidgetHostView child0 = (AppWidgetHostView) mListView.getChildAt(0); in testSetRemoteAdapter_withItems()
486 AppWidgetHostView child1 = (AppWidgetHostView) mListView.getChildAt(1); in testSetRemoteAdapter_withItems()
487 TextView textView0 = (TextView) child0.getChildAt(0); in testSetRemoteAdapter_withItems()
488 TextView textView1 = (TextView) child1.getChildAt(0); in testSetRemoteAdapter_withItems()
545 AppWidgetHostView child0 = (AppWidgetHostView) listView.getChildAt(0); in testSetRemoteAdapter_checkedChangeListener()
546 AppWidgetHostView child1 = (AppWidgetHostView) listView.getChildAt(1); in testSetRemoteAdapter_checkedChangeListener()
547 AppWidgetHostView child2 = (AppWidgetHostView) listView.getChildAt(2); in testSetRemoteAdapter_checkedChangeListener()
548 TextView textView0 = (TextView) child0.getChildAt(0); in testSetRemoteAdapter_checkedChangeListener()
549 TextView textView1 = (TextView) child1.getChildAt(0); in testSetRemoteAdapter_checkedChangeListener()
551 (CompoundButton) ((ViewGroup) child2.getChildAt(0)).getChildAt(0); in testSetRemoteAdapter_checkedChangeListener()
[all …]
DTextSwitcherTest.java97 TextView tvChild1 = (TextView) mTextSwitcher.getChildAt(0); in testSetText()
98 TextView tvChild2 = (TextView) mTextSwitcher.getChildAt(1); in testSetText()
137 TextView tvChild1 = (TextView) mTextSwitcher.getChildAt(0); in testSetCurrentText()
138 TextView tvChild2 = (TextView) mTextSwitcher.getChildAt(1); in testSetCurrentText()
169 assertSame(tv1, mTextSwitcher.getChildAt(0)); in testAddView()
190 assertSame(tv2, mTextSwitcher.getChildAt(1)); in testAddView()
DGalleryTest.java131 View v0 = mGallery.getChildAt(0); in setSpacingAndCheck()
132 View v1 = mGallery.getChildAt(1); in setSpacingAndCheck()
147 View v0 = mGallery.getChildAt(0); in checkUnselectedAlpha()
148 View v1 = mGallery.getChildAt(1); in checkUnselectedAlpha()
208 View v0 = mGallery.getChildAt(0); in testSetGravity()
212 v0 = mGallery.getChildAt(0); in testSetGravity()
216 v0 = mGallery.getChildAt(0); in testSetGravity()
268 assertFalse(mGallery.getChildAt(1).isPressed()); in testDispatchSetPressed()
272 assertFalse(mGallery.getChildAt(1).isPressed()); in testDispatchSetPressed()
DViewAnimatorTest.java362 assertSame(v1, mViewAnimator.getChildAt(0)); in testRemoveViews()
363 assertSame(v2, mViewAnimator.getChildAt(1)); in testRemoveViews()
364 assertSame(v3, mViewAnimator.getChildAt(2)); in testRemoveViews()
368 assertSame(v1, mViewAnimator.getChildAt(0)); in testRemoveViews()
369 assertSame(v2, mViewAnimator.getChildAt(1)); in testRemoveViews()
373 assertSame(v1, mViewAnimator.getChildAt(0)); in testRemoveViews()
384 assertSame(v3, mViewAnimator.getChildAt(0)); in testRemoveViews()
385 assertSame(v4, mViewAnimator.getChildAt(1)); in testRemoveViews()
391 assertSame(v3, mViewAnimator.getChildAt(0)); in testRemoveViews()
DExpandableListTester.java82 View headerChild = mExpandableListView.getChildAt(index in testContextMenus()
100 View groupChild = mExpandableListView.getChildAt(index in testContextMenus()
112 View child = mExpandableListView.getChildAt(index in testContextMenus()
127 View footerChild = mExpandableListView.getChildAt(index in testContextMenus()
DTabHostTest.java284 assertSame(tabHost.getTabWidget().getChildAt(0), tabHost.getCurrentTabView()); in testGetCurrentTabView()
292 assertSame(tabHost.getTabWidget().getChildAt(1), tabHost.getCurrentTabView()); in testGetCurrentTabView()
341 TextView child0 = (TextView) tabHost.getTabContentView().getChildAt(0); in testGetTabContentView()
344 assertTrue(tabHost.getTabContentView().getChildAt(1) instanceof ListView); in testGetTabContentView()
345 TextView child2 = (TextView) tabHost.getTabContentView().getChildAt(2); in testGetTabContentView()
357 child0 = (TextView) tabHost.getTabContentView().getChildAt(0); in testGetTabContentView()
360 assertTrue(tabHost.getTabContentView().getChildAt(1) instanceof ListView); in testGetTabContentView()
361 child2 = (TextView) tabHost.getTabContentView().getChildAt(2); in testGetTabContentView()
DAbsSpinnerTest.java212 absSpinner.getChildAt(0).layout(rcChild0.left, rcChild0.top, in testPointToPosition()
214 absSpinner.getChildAt(1).layout(rcChild1.left, rcChild1.top, in testPointToPosition()
216 absSpinner.getChildAt(2).layout(rcChild2.left, rcChild2.top, in testPointToPosition()
241 assertSame(absSpinner.getChildAt(0), absSpinner.getSelectedView()); in testGetSelectedView()
244 assertSame(absSpinner.getChildAt(1), absSpinner.getSelectedView()); in testGetSelectedView()
DTableRowTest.java116 TableRow tableRow = (TableRow) tableLayout.getChildAt(0); in testGetVirtualChildAt()
128 tableRow = (TableRow) tableLayout.getChildAt(0); in testGetVirtualChildAt()
147 TableRow tableRow = (TableRow) tableLayout.getChildAt(0); in testGetVirtualChildCount()
153 tableRow = (TableRow) tableLayout.getChildAt(0); in testGetVirtualChildCount()
DViewSwitcherTest.java99 assertSame(lv1, viewSwitcher.getChildAt(0)); in testGetNextView()
103 assertSame(lv2, viewSwitcher.getChildAt(1)); in testGetNextView()
DAbsListView_ScrollTest.java171 View targetChild = mListView.getChildAt(visibleIndexOfTarget); in onScroll()
307 mListView.getChildAt(0).getTop(); in verifyScrollToPositionFromTop()
344 mListView.getChildAt(0).getTop(); in verifyScrollToPositionFromTop()
444 mListView.getChildAt(0).getTop(); in verifyScrollBy()
452 mListView.getChildAt(0).getTop(); in verifyScrollBy()
593 result.mFirstViewVerticalOffset = mListView.getChildAt(0).getTop();
DListViewTest.java693 MockView childView = (MockView) mListView.getChildAt(0); in testRequestLayoutCallsMeasure()
914 mListView.getChildAt(0).getLayoutDirection(), View.LAYOUT_DIRECTION_RTL); in testResolveRtlOnReAttach()
959 (TemporarilyDetachableMockView) mListView.getChildAt(0); in testRequestLayoutWithTemporaryDetach()
961 (TemporarilyDetachableMockView) mListView.getChildAt(1); in testRequestLayoutWithTemporaryDetach()
963 (TemporarilyDetachableMockView) mListView.getChildAt(2); in testRequestLayoutWithTemporaryDetach()
970 assertEquals(childView0, mListView.getChildAt(0)); in testRequestLayoutWithTemporaryDetach()
971 assertEquals(childView1, mListView.getChildAt(1)); in testRequestLayoutWithTemporaryDetach()
972 assertEquals(childView2, mListView.getChildAt(2)); in testRequestLayoutWithTemporaryDetach()
992 Drawable firstBackground = listView.getChildAt(0).getBackground(); in testJumpDrawables()
997 assertSame(firstBackground, listView.getChildAt(0).getBackground()); in testJumpDrawables()
[all …]
DLinearLayoutTest.java236 View child = parent.getChildAt(i); in testWeightDistribution()
246 assertEquals(100, parent.getChildAt(0).getWidth()); in testWeightDistribution()
247 assertEquals(100, parent.getChildAt(1).getWidth()); in testWeightDistribution()
248 assertEquals(100, parent.getChildAt(2).getWidth()); in testWeightDistribution()
250 assertEquals(33, parent.getChildAt(0).getHeight()); in testWeightDistribution()
251 assertEquals(33, parent.getChildAt(1).getHeight()); in testWeightDistribution()
252 assertEquals(34, parent.getChildAt(2).getHeight()); in testWeightDistribution()
255 View child = parent.getChildAt(i); in testWeightDistribution()
265 assertEquals(33, parent.getChildAt(0).getWidth()); in testWeightDistribution()
266 assertEquals(33, parent.getChildAt(1).getWidth()); in testWeightDistribution()
[all …]
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimationControllerTest.java118 Animation childAnimation1 = mGridView.getChildAt(INDEX_OF_CHILD1).getAnimation(); in testAccessDelay()
119 Animation childAnimation4 = mGridView.getChildAt(INDEX_OF_CHILD4).getAnimation(); in testAccessDelay()
120 Animation childAnimation7 = mGridView.getChildAt(INDEX_OF_CHILD7).getAnimation(); in testAccessDelay()
128 childAnimation1 = mGridView.getChildAt(INDEX_OF_CHILD1).getAnimation(); in testAccessDelay()
129 Animation childAnimation2 = mGridView.getChildAt(INDEX_OF_CHILD2).getAnimation(); in testAccessDelay()
130 Animation childAnimation3 = mGridView.getChildAt(INDEX_OF_CHILD3).getAnimation(); in testAccessDelay()
207 Animation childAnimation1 = mGridView.getChildAt(INDEX_OF_CHILD1).getAnimation();
208 Animation childAnimation4 = mGridView.getChildAt(INDEX_OF_CHILD4).getAnimation();
209 Animation childAnimation7 = mGridView.getChildAt(INDEX_OF_CHILD7).getAnimation();
257 childAnimation1 = mGridView.getChildAt(INDEX_OF_CHILD1).getAnimation();
[all …]
DLayoutAnimationControllerTest.java101 Animation childAnimation1 = mListView.getChildAt(INDEX_OF_CHILD1).getAnimation(); in testAccessOrder()
102 Animation childAnimation2 = mListView.getChildAt(INDEX_OF_CHILD2).getAnimation(); in testAccessOrder()
103 Animation childAnimation3 = mListView.getChildAt(INDEX_OF_CHILD3).getAnimation(); in testAccessOrder()
148 childAnimation1 = mListView.getChildAt(INDEX_OF_CHILD1).getAnimation(); in testAccessOrder()
149 childAnimation2 = mListView.getChildAt(INDEX_OF_CHILD2).getAnimation(); in testAccessOrder()
150 childAnimation3 = mListView.getChildAt(INDEX_OF_CHILD3).getAnimation(); in testAccessOrder()
191 Animation childAnimation1 = mListView.getChildAt(INDEX_OF_CHILD1).getAnimation(); in testAccessDelay()
192 Animation childAnimation2 = mListView.getChildAt(INDEX_OF_CHILD2).getAnimation(); in testAccessDelay()
193 Animation childAnimation3 = mListView.getChildAt(INDEX_OF_CHILD3).getAnimation(); in testAccessDelay()
264 Animation childAnimation1 = mListView.getChildAt(INDEX_OF_CHILD1).getAnimation();
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DViewAttributesTest.java226 if (outerView.getChildAt(0).getIdEntry().equals("doubleNestedView")) {
227 doubleNestedView = outerView.getChildAt(0);
228 secondDoubleNestedView = outerView.getChildAt(1);
230 secondDoubleNestedView = outerView.getChildAt(0);
231 doubleNestedView = outerView.getChildAt(1);
248 AssistStructure.ViewNode tripleNestedView = doubleNestedView.getChildAt(0);
274 AssistStructure.ViewNode nestedView = outerView.getChildAt(0);
281 if (nestedView.getChildAt(0).getIdEntry().equals("doubleNestedView")) {
282 doubleNestedView = nestedView.getChildAt(0);
284 doubleNestedView = nestedView.getChildAt(1);
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DDarkTextThemeTest.java181 verifyColor(listView.getChildAt(0), Color.WHITE); in testCollection_light()
182 verifyColor(listView.getChildAt(1), Color.WHITE); in testCollection_light()
183 verifyColor(listView.getChildAt(2), Color.WHITE); in testCollection_light()
197 verifyColor(listView.getChildAt(0), Color.BLACK); in testCollection_dark()
198 verifyColor(listView.getChildAt(1), Color.BLACK); in testCollection_dark()
199 verifyColor(listView.getChildAt(2), Color.BLACK); in testCollection_dark()
241 if (hasText("Text 0", listView.getChildAt(0)) in setupAndAwaitCollectionWidget()
242 && hasText("Text 1", listView.getChildAt(1)) in setupAndAwaitCollectionWidget()
243 && hasText("Text 2", listView.getChildAt(2))) { in setupAndAwaitCollectionWidget()
DWidgetTransitionTest.java252 if (hasText("Text 0", listView.getChildAt(0)) in testCollection_sendBroadcast()
253 && hasText("Text 1", listView.getChildAt(1)) in testCollection_sendBroadcast()
254 && hasText("Text 2", listView.getChildAt(2))) { in testCollection_sendBroadcast()
269 verifyClickBroadcast(listView.getChildAt(0)); in testCollection_sendBroadcast()
270 verifyClickBroadcast(listView.getChildAt(1)); in testCollection_sendBroadcast()
271 verifyClickBroadcast(listView.getChildAt(2)); in testCollection_sendBroadcast()
/cts/hostsidetests/theme/app/src/android/theme/app/
DReferenceViewGroup.java55 View child = getChildAt(i); in onMeasure()
77 View child = getChildAt(i); in onLayout()
/cts/tests/app/shared/src/android/app/stubs/shared/
DNotificationHostActivity.kt39 get() = requireViewById<FrameLayout>(R.id.content).getChildAt(0)
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyActivity.java133 group.getChildAt(i).setEnabled(enable); in enableLayout()
176 View view = layout.getChildAt(i); in enableUILayout()
/cts/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java490 + ((ViewGroup) parentView).getChildAt(childInt).getClass().getName()); in traverseViewAndStructure()
503 + parentNode.getChildAt(nodeInt).getClassName()); in traverseViewAndStructure()
530 textInWebView |= traverseWebViewForText(parentNode.getChildAt(i)); in traverseViewAndStructure()
545 View childView = parentGroup.getChildAt(i); in traverseViewAndStructure()
546 ViewNode childNode = parentNode.getChildAt(i); in traverseViewAndStructure()
566 textFound |= traverseWebViewForText(parentNode.getChildAt(i)); in traverseWebViewForText()
598 if (traverse(parentNode.getChildAt(i), visitor)) { in traverse()

123