Home
last modified time | relevance | path

Searched refs:getChildCount (Results 1 – 25 of 67) sorted by relevance

123

/cts/tests/tests/widget/src/android/widget/cts/
DViewAnimatorTest.java112 assertEquals(0, mViewAnimator.getChildCount()); in testShowNext()
118 assertEquals(4, mViewAnimator.getChildCount()); in testShowNext()
135 assertEquals(0, mViewAnimator.getChildCount()); in testShowNext()
155 assertEquals(0, mViewAnimator.getChildCount()); in testAccessDisplayedChild()
158 assertEquals(1, mViewAnimator.getChildCount()); in testAccessDisplayedChild()
161 assertEquals(2, mViewAnimator.getChildCount()); in testAccessDisplayedChild()
178 assertEquals(0, mViewAnimator.getChildCount()); in testAccessDisplayedChild()
190 assertEquals(0, mViewAnimator.getChildCount()); in testAccessDisplayedChildBoundary()
193 assertEquals(1, mViewAnimator.getChildCount()); in testAccessDisplayedChildBoundary()
196 assertEquals(2, mViewAnimator.getChildCount()); in testAccessDisplayedChildBoundary()
[all …]
DTabHostTest.java184 assertEquals(1, tabHost.getTabWidget().getChildCount()); in testAddTab()
190 assertEquals(2, tabHost.getTabWidget().getChildCount()); in testAddTab()
232 assertEquals(3, tabHost.getTabWidget().getChildCount()); in testClearAllTabs()
233 assertEquals(3, tabHost.getTabContentView().getChildCount()); in testClearAllTabs()
239 assertEquals(0, tabHost.getTabWidget().getChildCount()); in testClearAllTabs()
240 assertEquals(0, tabHost.getTabContentView().getChildCount()); in testClearAllTabs()
273 tabHost.setCurrentTab(tabHost.getTabWidget().getChildCount() + 1); in testAccessCurrentTab()
339 assertEquals(3, tabHost.getTabContentView().getChildCount()); in testGetTabContentView()
353 assertEquals(3, tabHost.getTabContentView().getChildCount()); in testGetTabContentView()
355 assertEquals(4, tabHost.getTabContentView().getChildCount()); in testGetTabContentView()
DRemoteViewsRecyclingTest.java116 assertEquals(3, container.getChildCount()); in recycleWhenIdentical()
145 assertEquals(2, container.getChildCount()); in doesntRecycleWhenNotAskingForRecycling()
180 assertEquals(3, container.getChildCount()); in recycleWhenInsertView()
213 assertEquals(2, container.getChildCount()); in recycleWhenRemovingMiddleView()
246 assertEquals(4, container.getChildCount()); in recycleWhenAddingAtEnd()
279 assertEquals(2, container.getChildCount()); in recycleWhenRemovingFromEnd()
311 assertEquals(1, container.getChildCount()); in doesntRecycleWhenLayoutDoesntMatch()
467 assertEquals(4, container.getChildCount()); in recycleWhenRemovingFromEndAndInsertInMiddleAtManyLevels()
468 assertEquals(3, container2.getChildCount()); in recycleWhenRemovingFromEndAndInsertInMiddleAtManyLevels()
DHorizontalScrollViewTest.java165 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddView()
173 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddView()
183 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithIndex()
191 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithIndex()
198 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithIndex()
206 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithIndex()
227 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithLayoutParams()
235 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithLayoutParams()
257 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithIndexAndLayoutParams()
265 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithIndexAndLayoutParams()
[all …]
DScrollViewTest.java179 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddView()
187 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddView()
197 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithIndex()
205 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithIndex()
212 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithIndex()
220 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithIndex()
241 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithLayoutParams()
249 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithLayoutParams()
271 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithIndexAndLayoutParams()
279 assertEquals(1, mScrollViewRegular.getChildCount()); in testAddViewWithIndexAndLayoutParams()
[all …]
DTextSwitcherTest.java170 assertEquals(1, mTextSwitcher.getChildCount()); in testAddView()
191 assertEquals(2, mTextSwitcher.getChildCount()); in testAddView()
DRadioGroupTest.java413 assertEquals(4, mRadioGroup.getChildCount()); in testAddView()
422 assertEquals(5, mRadioGroup.getChildCount()); in testAddView()
433 assertEquals(colInfo.getRowCount(), mRadioGroup.getChildCount()); in testOnInitializeAccessibilityNodeInfo_populatesCollectionInfo()
453 for (int i = 0; i < mRadioGroup.getChildCount(); i++) { in testOnInitializeAccessibilityNodeInfo_populatesColInfoWithInvalidCount()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableContainerStateTest.java68 assertEquals(0, mDrawableContainerState.getChildCount()); in testAddChild()
74 assertEquals(1, mDrawableContainerState.getChildCount()); in testAddChild()
86 assertEquals(2, mDrawableContainerState.getChildCount()); in testAddChild()
97 assertEquals(3, mDrawableContainerState.getChildCount()); in testAddChild()
107 assertEquals(0, mDrawableContainerState.getChildCount()); in testIsStateful()
113 assertEquals(1, mDrawableContainerState.getChildCount()); in testIsStateful()
119 assertEquals(2, mDrawableContainerState.getChildCount()); in testIsStateful()
125 assertEquals(3, mDrawableContainerState.getChildCount()); in testIsStateful()
131 assertEquals(4, mDrawableContainerState.getChildCount()); in testIsStateful()
197 assertEquals(0, mDrawableContainerState.getChildCount()); in testConstantHeightsAndWidths()
[all …]
DLevelListDrawableTest.java73 assertEquals(0, mDrawableContainerState.getChildCount()); in testAddLevel()
78 assertEquals(0, mDrawableContainerState.getChildCount()); in testAddLevel()
85 assertEquals(1, mDrawableContainerState.getChildCount()); in testAddLevel()
91 assertEquals(2, mDrawableContainerState.getChildCount()); in testAddLevel()
141 assertEquals(2, mDrawableContainerState.getChildCount()); in testInflate()
154 assertEquals(3, mDrawableContainerState.getChildCount()); in testInflate()
201 assertEquals(3, ((DrawableContainerState) d1.getConstantState()).getChildCount()); in testMutate()
202 assertEquals(2, ((DrawableContainerState) d2.getConstantState()).getChildCount()); in testMutate()
203 assertEquals(2, ((DrawableContainerState) d3.getConstantState()).getChildCount()); in testMutate()
DAnimatedStateListDrawableTest.java84 assertEquals(0, cs.getChildCount()); in testAddState()
95 assertEquals(1, cs.getChildCount()); in testAddState()
99 assertEquals(2, cs.getChildCount()); in testAddState()
121 assertEquals(3, cs.getChildCount()); in testAddTransition()
125 assertEquals(4, cs.getChildCount()); in testAddTransition()
129 assertEquals(5, cs.getChildCount()); in testAddTransition()
192 final int count = cs.getChildCount(); in runPreloadDensityTestForDrawableInner()
255 assertEquals(4, asldState.getChildCount()); in testInflate()
265 assertEquals(6, asldState.getChildCount()); in testParsingTransitionDefinedWithAVD()
DStateListDrawableTest.java83 assertEquals(0, mDrawableContainerState.getChildCount()); in testAddState()
88 assertEquals(0, mDrawableContainerState.getChildCount()); in testAddState()
94 assertEquals(1, mDrawableContainerState.getChildCount()); in testAddState()
101 assertEquals(2, mDrawableContainerState.getChildCount()); in testAddState()
108 assertEquals(3, mDrawableContainerState.getChildCount()); in testAddState()
171 assertEquals(0, mDrawableContainerState.getChildCount()); in testOnStateChangeWithNullStateSet()
177 assertEquals(1, mDrawableContainerState.getChildCount()); in testOnStateChangeWithNullStateSet()
276 assertEquals(2, mDrawableContainerState.getChildCount()); in testInflate()
300 assertEquals(1, mDrawableContainerState.getChildCount()); in testInflate()
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java237 assertEquals(0, linearLayout.getChildCount()); in testInflate()
241 assertEquals(1, linearLayout.getChildCount()); in testInflate()
261 assertEquals(0, linearLayout.getChildCount()); in testInflateAttachToRoot()
265 assertEquals(0, linearLayout.getChildCount()); in testInflateAttachToRoot()
270 assertEquals(1, linearLayout.getChildCount()); in testInflateAttachToRoot()
290 assertEquals(0, linearLayout.getChildCount()); in testInflateParser()
301 assertEquals(1, linearLayout.getChildCount()); in testInflateParser()
305 assertEquals(2, linearLayout.getChildCount()); in testInflateParser()
310 assertEquals(3, linearLayout.getChildCount()); in testInflateParser()
330 assertEquals(0, linearLayout.getChildCount()); in testInflateParserAttachToRoot()
[all …]
DViewGroupTest.java293 assertEquals(0, mMockViewGroup.getChildCount()); in testAddView()
296 assertEquals(1, mMockViewGroup.getChildCount()); in testAddView()
303 assertEquals(0, mMockViewGroup.getChildCount()); in testAddViewWithParaViewInt()
306 assertEquals(1, mMockViewGroup.getChildCount()); in testAddViewWithParaViewInt()
313 assertEquals(0, mMockViewGroup.getChildCount()); in testAddViewWithParaViewLayoutPara()
317 assertEquals(1, mMockViewGroup.getChildCount()); in testAddViewWithParaViewLayoutPara()
327 assertEquals(0, mMockViewGroup.getChildCount()); in testAddViewWithParaViewIntInt()
333 assertEquals(1, mMockViewGroup.getChildCount()); in testAddViewWithParaViewIntInt()
340 assertEquals(0, mMockViewGroup.getChildCount()); in testAddViewWidthParaViewIntLayoutParam()
344 assertEquals(1, mMockViewGroup.getChildCount()); in testAddViewWidthParaViewIntLayoutParam()
[all …]
DView_ForceLayout.java225 int childrenCount = getChildCount(); in onMeasure()
234 int childrenCount = getChildCount(); in onLayout()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityCacheTest.java142 assertThat(root.getChildCount(), is(2)); in invalidateNode_subtreeInCacheInvalidated()
177 assertThat(frameRoot.getChildCount(), is(2)); in getChild_descendantNotPrefetched()
199 assertThat(frameRoot.getChildCount(), is(2)); in getChild_descendantPrefetched()
223 assertThat(frameRoot.getChildCount(), is(2)); in getParent_ancestorsPrefetched()
251 assertThat(root.getChildCount(), is(2)); in testRequest_withMultiplePrefetchingStrategies_throwsException()
330 for (int i = 0; i < node.getChildCount(); i++) { in getNodes()
DAccessibilityViewTreeReportingTest.java105 assertSame(3, firstFrameLayout.getChildCount()); in testDescendantsOfNotImportantViewReportedInOrder1()
124 assertSame(3, secondFrameLayout.getChildCount()); in testDescendantsOfNotImportantViewReportedInOrder2()
144 assertSame(4, rootLinearLayout.getChildCount()); in testDescendantsOfNotImportantViewReportedInOrder3()
DAccessibilityEmbeddedHierarchyTest.java233 final int childCount = root.getChildCount(); in findEmbeddedAccessibilityNodeInfo()
242 if (info.getChildCount() != 0) { in findEmbeddedAccessibilityNodeInfo()
/cts/hostsidetests/theme/app/src/android/theme/app/
DReferenceViewGroup.java53 int childCount = getChildCount(); in onMeasure()
75 int childCount = getChildCount(); in onLayout()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DViewAttributesTest.java223 assertThat(outerView.getChildCount()).isEqualTo(2);
247 assertThat(doubleNestedView.getChildCount()).isEqualTo(1);
272 assertThat(outerView.getChildCount()).isEqualTo(1);
279 assertThat(nestedView.getChildCount()).isEqualTo(2);
DFatActivityTest.java117 assertThat(inputContainer.getChildCount()).isEqualTo(1);
197 assertThat(inputContainer.getChildCount()).isEqualTo(1);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyActivity.java132 for (int i = 0; i < group.getChildCount(); i++) { in enableLayout()
175 for (int i = 0; i < layout.getChildCount(); i++) { in enableUILayout()
/cts/tests/tests/transition/src/android/transition/cts/
DChangeTransformTest.java142 assertEquals(2, container.getChildCount()); in testReparentWithOverlay()
159 assertEquals(1, container.getChildCount()); in testReparentWithOverlay()
/cts/tests/tests/assist/src/android/assist/cts/
DAssistTestBase.java486 for (int childInt = 0; childInt < ((ViewGroup) parentView).getChildCount(); in traverseViewAndStructure()
500 for (int nodeInt = 0; nodeInt < parentNode.getChildCount(); nodeInt++) { in traverseViewAndStructure()
512 numViewChildren = ((ViewGroup) parentView).getChildCount(); in traverseViewAndStructure()
514 numNodeChildren = parentNode.getChildCount(); in traverseViewAndStructure()
565 for (int i = parentNode.getChildCount() - 1; i >= 0; i--) { in traverseWebViewForText()
597 for (int i = parentNode.getChildCount() - 1; i >= 0; i--) { in traverse()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DUiDumpUtils.java176 recursively(root, AccessibilityNodeInfo::getChildCount, AccessibilityNodeInfo::getChild, in dumpNodes()
189 ToIntFunction<T> getChildCount, BiFunction<T, Integer, T> getChildAt, in recursively() argument
196 int size = getChildCount.applyAsInt(node); in recursively()
199 getChildCount, getChildAt, childAction, actionChange); in recursively() local
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DCollectionAppWidgetTest.java415 for (int i = 0; i < viewGroup.getChildCount(); i++) { in findFirstMatchingView()
467 CollectionAppWidgetProvider.configure(updateLatch, () -> mListView.getChildCount() > 0, in testSetScrollPosition()
503 PollingCheck.waitFor(TEST_TIMEOUT_MS, () -> mListView.getChildCount() > 0); in testSetScrollPosition()

123