Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchVerticalSpacingStackFromBottomTest.java63 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll()
70 View newLastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testNoScroll()
85 View lastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testShortScroll()
92 View newLastChild = mGridView.getChildAt(mGridView.getChildCount() - 1); in testShortScroll()
119 int originalCount = mGridView.getChildCount(); in testManyScrolls()
131 mGridView.getChildCount(), originalCount + 4), in testManyScrolls()
132 mGridView.getChildCount() <= originalCount + 4); in testManyScrolls()
149 mGridView.getChildCount(), originalCount + 4), in testManyScrolls()
150 mGridView.getChildCount() <= originalCount + 4); in testManyScrolls()
156 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.java56 assertEquals("A ViewGroup should have no child by default", 0, mGroup.getChildCount()); in testStartsEmpty()
65 assertEquals(1, mGroup.getChildCount()); in testAddChild()
82 assertEquals(25, mGroup.getChildCount()); in testAddChildAtFront()
100 assertEquals(25, mGroup.getChildCount()); in testAddChildInMiddle()
116 assertEquals(24, mGroup.getChildCount()); in testAddChildren()
132 assertEquals(0, mGroup.getChildCount()); in testRemoveChild()
154 assertEquals(0, mGroup.getChildCount()); in testRemoveChildren()
175 assertEquals(17, mGroup.getChildCount()); in testRemoveChildrenBulk()
197 assertEquals(17, mGroup.getChildCount()); in testRemoveChildrenBulkAtFront()
217 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/tools/layoutlib/studio-custom-widgets/src/com/android/tools/idea/editors/theme/widgets/
DThemePreviewLayout.java109 for (int i = 0; i < getChildCount(); i++) { in onMeasure()
132 if (getChildCount() < mNumColumns) { in onMeasure()
133 mNumColumns = getChildCount(); in onMeasure()
142 for (int i = 0; i < getChildCount(); i++) { in onMeasure()
153 int firstColumnItems = getChildCount() / mNumColumns + ((getChildCount() % mNumColumns) > 0 in onMeasure()
172 int itemsPerColumn = getChildCount() / mNumColumns; in onLayout()
174 int remainderItems = getChildCount() % mNumColumns; in onLayout()
179 for (int i = 0; i < getChildCount(); i++) { in onLayout()
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/
DListOfShortShortTallShortShortTest.java46 assertEquals("list visible child count", 3, mListView.getChildCount()); in testPreconditions()
69 1, mListView.getChildCount()); in testFadeTopTwoItemsOut()
81 assertEquals("number of list children", 1, mListView.getChildCount()); in testFadeInTwoBottomItems()
86 3, mListView.getChildCount()); in testFadeInTwoBottomItems()
112 1, mListView.getChildCount()); in testFadeOutBottomTwoItems()
126 assertEquals("number of list children", 1, mListView.getChildCount()); in testFadeInTopTwoItems()
131 3, mListView.getChildCount()); in testFadeInTopTwoItems()
DListOfItemsTallerThanScreenTest.java47 assertEquals("should only be one visible child", 1, mListView.getChildCount()); in testPreconditions()
76 assertEquals("child count", 2, mListView.getChildCount()); in testScrollDownAcrossItem()
86 assertEquals(1, mListView.getChildCount()); in testScrollDownToNextItem()
102 assertEquals(2, mListView.getChildCount()); in testScrollDownToNextItem()
127 1, mListView.getChildCount()); in testScrollFirstItemOffScreen()
158 1, mListView.getChildCount()); in testScrollDownToLastItem()
169 assertEquals(2, mListView.getChildCount()); in testScrollUpAcrossFirstItem()
172 assertEquals(1, mListView.getChildCount()); in testScrollUpAcrossFirstItem()
DListWithFirstScreenUnSelectableTest.java43 assertEquals(1, mListView.getChildCount()); in testPreconditions()
56 assertEquals(1, mListView.getChildCount()); in testScrollUpDoesNothing()
62 assertEquals(2, mListView.getChildCount()); in testScrollDownPansNextItemOn()
DListLastItemPartiallyVisibleTest.java45 "in adapter", mListView.getCount(), mListView.getChildCount()); in testPreconditions()
47 final View lastChild = mListView.getChildAt(mListView.getChildCount() - 1); in testPreconditions()
71 mListView.getChildCount() - 1, mListView.getSelectedItemPosition()); in testMovingUpToFullyVisibleNoScroll()
DListOfItemsShorterThanScreenTest.java79 final int lastOnScreenItemIndex = mListView.getChildCount() - 1; in testMoveDownToItemRequiringScrolling()
97 … assertEquals(mListView.getSelectedView(), mListView.getChildAt(mListView.getChildCount() - 2)); in testMoveDownToItemRequiringScrolling()
100 final TextView view = (TextView) mListView.getChildAt(mListView.getChildCount() - 1); in testMoveDownToItemRequiringScrolling()
111 int numItemsOnScreen = mListView.getChildCount(); in testMoveUpToItemRequiringScrolling()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/tv/animations/
DHomeRecentsEnterExitAnimationHolder.java48 for(int i = 0; i < mGridView.getChildCount(); i++) { in startEnterAnimation()
61 for(int i = mGridView.getChildCount() - 1; i >= 0; i--) { in startExitAnimation()
67 .setStartDelay(mDelay * (mGridView.getChildCount() - 1 - i)) in startExitAnimation()
82 for(int i = 0; i < mGridView.getChildCount(); i++) { in setEnterFromHomeStartingAnimationValues()
98 for(int i = 0; i < mGridView.getChildCount(); i++) { in setEnterFromAppStartingAnimationValues()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPageIndicator.java49 while (numPages < getChildCount()) { in setNumPages()
50 removeViewAt(getChildCount() - 1); in setNumPages()
52 while (numPages > getChildCount()) { in setNumPages()
64 (index + 1), getChildCount())); in setLocation()
94 final int N = getChildCount(); in setIndex()
187 final int N = getChildCount();
205 final int N = getChildCount();
/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/core/java/android/widget/
DViewAnimator.java103 if (whichChild >= getChildCount()) { in setDisplayedChild()
106 mWhichChild = getChildCount() - 1; in setDisplayedChild()
151 final int count = getChildCount(); in showOnly()
184 if (getChildCount() == 1) { in addView()
213 final int childCount = getChildCount(); in removeViewAt()
232 if (getChildCount() == 0) { in removeViews()
DHorizontalScrollView.java172 if (getChildCount() == 0) { in getLeftFadingEdgeStrength()
186 if (getChildCount() == 0) { in getRightFadingEdgeStrength()
224 if (getChildCount() > 0) { in addView()
233 if (getChildCount() > 0) { in addView()
242 if (getChildCount() > 0) { in addView()
251 if (getChildCount() > 0) { in addView()
326 if (getChildCount() > 0) { in onMeasure()
407 if (getChildCount() > 0) { in inChild()
569 if (getChildCount() == 0) { in onTouchEvent()
660 if (getChildCount() > 0) { in onTouchEvent()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DLinearLayoutManager.java226 if (getChildCount() > 0) { in onInitializeAccessibilityEvent()
240 if (getChildCount() > 0) { in onSaveInstanceState()
387 final int childCount = getChildCount(); in findViewByPosition()
439 if (getChildCount() == 0) { in computeScrollVectorForPosition()
604 if (getChildCount() > 0) {
667 if (!state.willRunPredictiveAnimations() || getChildCount() == 0 || state.isPreLayout() in layoutForPredictiveAnimations()
746 if (getChildCount() == 0) { in updateAnchorFromChildren()
845 if (getChildCount() > 0) {
1077 if (getChildCount() == 0) { in computeScrollOffset()
1088 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
/frameworks/support/v4/java/android/support/v4/view/accessibility/
DAccessibilityWindowInfoCompat.java40 public int getChildCount(Object info); in getChildCount() method
104 public int getChildCount(Object info) { in getChildCount() method in AccessibilityWindowInfoCompat.AccessibilityWindowInfoStubImpl
185 public int getChildCount(Object info) { in getChildCount() method in AccessibilityWindowInfoCompat.AccessibilityWindowInfoApi21Impl
186 return AccessibilityWindowInfoCompatApi21.getChildCount(info); in getChildCount()
369 public int getChildCount() { in getChildCount() method in AccessibilityWindowInfoCompat
370 return IMPL.getChildCount(mInfo); in getChildCount()
476 builder.append(", hasChildren=").append(getChildCount() > 0); in toString()
/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/support/v17/leanback/src/android/support/v17/leanback/widget/
DControlBar.java41 if (getChildCount() > 0) { in requestFocus()
42 if (getChildAt(getChildCount() / 2).requestFocus(direction, previouslyFocusedRect)) { in requestFocus()
73 for (int i = 0; i < getChildCount() - 1; i++) { in onMeasure()
/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/data-binding/compiler/src/test/java/android/databinding/
DBindingExpressionParserTest.java214 assertEquals(5, expression.getChildCount()); in testTernaryOperator()
227 assertEquals(3, expression.getChildCount()); in testDot()
239 assertEquals(3, expression.getChildCount()); in testQuestionQuestion()
277 assertEquals(2, expression.getChildCount()); in compareUnaryOperators()
286 assertEquals(3, expression.getChildCount()); in compareBinaryOperators()
298 assertEquals(3, expression.getChildCount()); in compareMathOperators()
310 assertEquals(3, expression.getChildCount()); in compareBitShiftOperators()
322 assertEquals(3, expression.getChildCount()); in compareComparisonOperators()
334 assertEquals(3, expression.getChildCount()); in compareAndOrOperators()

12345678910>>...14