Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchVerticalSpacingStackFromBottomTest.java64 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll()
71 View newLastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll()
86 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testShortScroll()
93 View newLastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testShortScroll()
121 int originalCount = mGridView.getChildCount(); in testManyScrolls()
133 mGridView.getChildCount(), originalCount + 4), in testManyScrolls()
134 mGridView.getChildCount() <= originalCount + 4); in testManyScrolls()
151 mGridView.getChildCount(), originalCount + 4), in testManyScrolls()
152 mGridView.getChildCount() <= originalCount + 4); in testManyScrolls()
158 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testManyScrolls()
DGridTouchVerticalSpacingTest.java57 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll()
74 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testShortScroll()
90 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testLongScroll()
103 int originalCount = mGridView.getChildCount(); in testManyScrolls()
115 mGridView.getChildCount(), originalCount + 4), in testManyScrolls()
116 mGridView.getChildCount() <= originalCount + 4); in testManyScrolls()
123 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testManyScrolls()
134 mGridView.getChildCount(), originalCount + 4), in testManyScrolls()
135 mGridView.getChildCount() <= originalCount + 4); in testManyScrolls()
DGridTouchStackFromBottomTest.java60 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPushUp()
77 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPullDown()
88 TouchUtils.dragViewToTop(this, mGridView.getChildAt(mGridView.getChildCount() - 1), 2); in testPushUpFast()
94 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPushUpFast()
111 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testPullDownFast()
/frameworks/base/core/tests/coretests/src/android/view/
DViewGroupChildrenTest.java54 assertEquals("A ViewGroup should have no child by default", 0, mGroup.getChildCount()); in testStartsEmpty()
63 assertEquals(1, mGroup.getChildCount()); in testAddChild()
80 assertEquals(25, mGroup.getChildCount()); in testAddChildAtFront()
98 assertEquals(25, mGroup.getChildCount()); in testAddChildInMiddle()
114 assertEquals(24, mGroup.getChildCount()); in testAddChildren()
130 assertEquals(0, mGroup.getChildCount()); in testRemoveChild()
152 assertEquals(0, mGroup.getChildCount()); in testRemoveChildren()
173 assertEquals(17, mGroup.getChildCount()); in testRemoveChildrenBulk()
195 assertEquals(17, mGroup.getChildCount()); in testRemoveChildrenBulkAtFront()
215 assertEquals("17", ((TextView) mGroup.getChildAt(mGroup.getChildCount() - 1)).getText()); in testRemoveChildrenBulkAtEnd()
[all …]
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListTouchManyTest.java76 int originalCount = mListView.getChildCount(); in testPushUp()
84 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp()
93 mListView.getChildCount(), originalCount + 1), in testPushUp()
94 mListView.getChildCount() <= originalCount + 1); in testPushUp()
100 int count = mListView.getChildCount(); in testPress()
127 int count = mListView.getChildCount(); in testLongPress()
149 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testNoScroll()
166 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testShortScroll()
182 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testLongScroll()
DListTouchBottomGravityManyTest.java61 int originalCount = mListView.getChildCount(); in testPullDown()
77 mListView.getChildCount(), originalCount + 1), in testPullDown()
78 mListView.getChildCount() <= originalCount + 1); in testPullDown()
89 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp()
101 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testNoScroll()
108 View newLastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testNoScroll()
123 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testShortScroll()
130 View newLastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testShortScroll()
DListTouchBottomGravityTest.java62 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPullDown()
77 View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp()
81 lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPushUp()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListOfShortShortTallShortShortTest.java47 assertEquals("list visible child count", 3, mListView.getChildCount()); in testPreconditions()
70 1, mListView.getChildCount()); in testFadeTopTwoItemsOut()
82 assertEquals("number of list children", 1, mListView.getChildCount()); in testFadeInTwoBottomItems()
87 3, mListView.getChildCount()); in testFadeInTwoBottomItems()
113 1, mListView.getChildCount()); in testFadeOutBottomTwoItems()
127 assertEquals("number of list children", 1, mListView.getChildCount()); in testFadeInTopTwoItems()
132 3, mListView.getChildCount()); in testFadeInTopTwoItems()
DListOfItemsTallerThanScreenTest.java48 assertEquals("should only be one visible child", 1, mListView.getChildCount()); in testPreconditions()
77 assertEquals("child count", 2, mListView.getChildCount()); in testScrollDownAcrossItem()
87 assertEquals(1, mListView.getChildCount()); in testScrollDownToNextItem()
103 assertEquals(2, mListView.getChildCount()); in testScrollDownToNextItem()
128 1, mListView.getChildCount()); in testScrollFirstItemOffScreen()
159 1, mListView.getChildCount()); in testScrollDownToLastItem()
170 assertEquals(2, mListView.getChildCount()); in testScrollUpAcrossFirstItem()
173 assertEquals(1, mListView.getChildCount()); in testScrollUpAcrossFirstItem()
DListWithFirstScreenUnSelectableTest.java46 assertEquals(1, mListView.getChildCount()); in testPreconditions()
59 assertEquals(1, mListView.getChildCount()); in testScrollUpDoesNothing()
65 assertEquals(2, mListView.getChildCount()); in testScrollDownPansNextItemOn()
DListLastItemPartiallyVisibleTest.java46 "in adapter", mListView.getCount(), mListView.getChildCount()); in testPreconditions()
48 final View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPreconditions()
72 mListView.getChildCount() - 1, mListView.getSelectedItemPosition()); in testMovingUpToFullyVisibleNoScroll()
DListOfItemsShorterThanScreenTest.java80 final int lastOnScreenItemIndex = mListView.getChildCount() - 1; in testMoveDownToItemRequiringScrolling()
98 … assertEquals(mListView.getSelectedView(), mListView.getChildAt(mListView.getChildCount() - 2)); in testMoveDownToItemRequiringScrolling()
101 final TextView view = (TextView) mListView.getChildAt(mListView.getChildCount() - 1); in testMoveDownToItemRequiringScrolling()
112 int numItemsOnScreen = mListView.getChildCount(); in testMoveUpToItemRequiringScrolling()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/globalactions/
DListGridLayoutTest.java54 assertEquals(3, mListGridLayout.getChildCount()); in testInflation()
265 assertEquals(1, row1.getChildCount()); in testRemoveAllItems()
266 assertEquals(1, row2.getChildCount()); in testRemoveAllItems()
267 assertEquals(1, row3.getChildCount()); in testRemoveAllItems()
271 assertEquals(0, row1.getChildCount()); in testRemoveAllItems()
273 assertEquals(0, row2.getChildCount()); in testRemoveAllItems()
275 assertEquals(0, row3.getChildCount()); in testRemoveAllItems()
292 assertEquals(2, mListGridLayout.getSublist(0).getChildCount()); in testAddItem()
293 assertEquals(2, mListGridLayout.getSublist(1).getChildCount()); in testAddItem()
294 assertEquals(0, mListGridLayout.getSublist(2).getChildCount()); in testAddItem()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/contentcapture/
DViewNodeTest.java56 assertThat(mViewNode.getChildCount()).isEqualTo(0); in testUnsupportedProperties()
59 assertThat(mViewNode.getChildCount()).isEqualTo(0); in testUnsupportedProperties()
62 assertThat(mViewNode.getChildCount()).isEqualTo(0); in testUnsupportedProperties()
65 assertThat(mViewNode.getChildCount()).isEqualTo(0); in testUnsupportedProperties()
68 assertThat(mViewNode.getChildCount()).isEqualTo(0); in testUnsupportedProperties()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DInvalidateActivity.java72 for (int y = 0; y < root.getChildCount(); y++) { in onCreate()
75 mColorViews = new ColorView[root.getChildCount()][row.getChildCount()]; in onCreate()
78 for (int x = 0; x < row.getChildCount(); x++) { in onCreate()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/notification/
DZenRadioLayout.java44 int size = radioGroup.getChildCount(); in onMeasure()
45 if (size != radioContent.getChildCount()) { in onMeasure()
74 for (int i = 0; i < group.getChildCount(); i++) { in findFirstClickable()
86 for (int i = group.getChildCount() - 1; i >= 0; i--) { in findLastClickable()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcherListView.java62 int childCount = getChildCount(); in setDarkAmount()
82 open, animate, getChildCount())); in updateVisibilities()
87 int childCount = getChildCount(); in updateVisibilities()
148 int lastIndex = getChildCount() - 1; in removeLastView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPageIndicator.java128 int childCount = getChildCount(); in setNumPages()
137 while (numPages < getChildCount()) { in setNumPages()
138 removeViewAt(getChildCount() - 1); in setNumPages()
140 while (numPages > getChildCount()) { in setNumPages()
170 final int N = getChildCount(); in setTintList()
182 (index + 1), getChildCount())); in setLocation()
212 final int N = getChildCount(); in setIndex()
307 final int N = getChildCount();
325 final int N = getChildCount();
/frameworks/base/core/java/com/android/internal/widget/
DLinearLayoutManager.java230 if (getChildCount() > 0) { in onInitializeAccessibilityEvent()
242 if (getChildCount() > 0) { in onSaveInstanceState()
389 final int childCount = getChildCount(); in findViewByPosition()
444 if (getChildCount() == 0) { in computeScrollVectorForPosition()
609 if (getChildCount() > 0) {
672 if (!state.willRunPredictiveAnimations() || getChildCount() == 0 || state.isPreLayout() in layoutForPredictiveAnimations()
751 if (getChildCount() == 0) { in updateAnchorFromChildren()
850 if (getChildCount() > 0) {
1082 if (getChildCount() == 0) { in computeScrollOffset()
1093 if (getChildCount() == 0) { in computeScrollExtent()
[all …]
DChildHelper.java99 offset = mCallback.getChildCount(); in addView()
117 final int limit = mCallback.getChildCount(); in getOffset()
231 offset = mCallback.getChildCount(); in attachViewToParent()
252 int getChildCount() { in getChildCount() method in ChildHelper
253 return mCallback.getChildCount() - mHiddenViews.size(); in getChildCount()
263 return mCallback.getChildCount(); in getUnfilteredChildCount()
515 int getChildCount(); in getChildCount() method
DScrollbarHelper.java33 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null in computeScrollOffset()
64 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null in computeScrollExtent()
83 if (lm.getChildCount() == 0 || state.getItemCount() == 0 || startChild == null in computeScrollRange()
/frameworks/base/core/tests/coretests/src/android/widget/layout/table/
DAddColumnTest.java65 assertTrue(row1.getChildCount() < row2.getChildCount()); in testWidths()
67 for (int i = 0; i < row1.getChildCount(); i++) { in testWidths()
/frameworks/base/core/java/android/widget/
DViewAnimator.java113 if (whichChild >= getChildCount()) { in setDisplayedChild()
116 mWhichChild = getChildCount() - 1; in setDisplayedChild()
162 final int count = getChildCount(); in showOnly()
195 if (getChildCount() == 1) { in addView()
224 final int childCount = getChildCount(); in removeViewAt()
243 if (getChildCount() == 0) { in removeViews()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiCollection.java57 int count = getChildCount(childPattern); in getChildByDescription()
115 int count = getChildCount(childPattern); in getChildByText()
142 public int getChildCount(UiSelector childPattern) { in getChildCount() method in UiCollection
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListItemRequestRectAboveThinFirstItemTest.java49 mListView.getChildCount() >= 2); in testPreconditions()
92 final int secondToLastIndex = mListView.getChildCount() - 2; in testSecondToLastItemRequestRectBelowBottom()
99 mListView.getChildAt(mListView.getChildCount() - 1).getBottom()); in testSecondToLastItemRequestRectBelowBottom()

12345678910>>...14