Searched refs:childCount (Results 1 - 25 of 89) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListGetCheckItemIdsTest.java73 int childCount = mListView.getChildCount();
74 for (int i=0; i<childCount; i++) {
80 for (int i = 0; i < childCount; i++) {
82 mListView.setItemChecked((i - 3 + childCount) % childCount, false);
83 mListView.setItemChecked((i + 1) % childCount, false);
94 int childCount = mListView.getChildCount();
95 assertTrue("Tests requires at least 4 items", childCount >= 4);
134 int childCount = mListView.getChildCount();
135 for (int i = 0; i < childCount;
[all...]
H A DListSetSelectionTest.java54 int childCount = mListView.getChildCount();
55 for (int i=0; i<childCount; i++) {
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
H A DListSetSelectionTest.java72 int childCount = mListView.getChildCount();
73 for (int i=0; i<childCount; i++) {
103 int childCount = mListView.getChildCount();
104 for (int i=0; i<childCount; i++) {
138 int childCount = mListView.getChildCount();
139 for (int i=0; i<childCount; i++) {
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DPrintOptionsLayout.java64 final int childCount = getChildCount();
65 final int rowCount = childCount / mColumnCount + childCount % mColumnCount;
74 if (childIndex >= childCount) {
127 final int childCount = getChildCount();
128 final int rowCount = childCount / mColumnCount + childCount % mColumnCount;
139 if (childIndex >= childCount) {
/frameworks/support/v4/java/android/support/v4/widget/
H A DListViewAutoScrollHelper.java66 final int childCount = target.getChildCount();
68 final int lastPosition = firstPosition + childCount;
73 final View lastView = target.getChildAt(childCount - 1);
H A DDrawerLayout.java683 final int childCount = getChildCount();
684 for (int i = 0; i < childCount; i++) {
734 final int childCount = getChildCount();
735 for (int i = 0; i < childCount; i++) {
765 final int childCount = getChildCount();
766 for (int i = 0; i < childCount; i++) {
843 final int childCount = getChildCount();
844 for (int i = 0; i < childCount; i++) {
896 final int childCount = getChildCount();
897 for (int i = 0; i < childCount;
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
H A DRecentsView.java103 int childCount = getChildCount();
104 for (int i = 0; i < childCount; i++) {
114 numTaskStacksToKeep = Math.min(childCount, numStacks);
140 for (int i = childCount - 1; i >= 0; i--) {
156 int childCount = getChildCount();
157 for (int i = 0; i < childCount; i++) {
180 int childCount = getChildCount();
181 for (int i = 0; i < childCount; i++) {
211 int childCount = getChildCount();
212 for (int i = 0; i < childCount;
[all...]
H A DTaskStackView.java119 int childCount = getChildCount();
120 for (int i = 0; i < childCount; i++) {
155 int childCount = getChildCount();
156 for (int i = childCount - 1; i >= 0; i--) {
212 int childCount = getChildCount();
213 for (int i = 0; i < childCount; i++) {
304 int childCount = getChildCount();
305 for (int i = childCount - 1; i >= 0; i--) {
344 childCount = getChildCount();
345 if (childCount >
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
H A DGridTouchSetSelectionTest.java72 int childCount = mGridView.getChildCount();
73 for (int i=0; i<childCount; i++) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DPanelHolder.java58 protected int getChildDrawingOrder(int childCount, int i) { argument
62 if (i == childCount - 1) {
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityWindowInfo.java412 final int childCount = childIds.size();
413 parcel.writeInt(childCount);
414 for (int i = 0; i < childCount; i++) {
430 final int childCount = parcel.readInt();
431 if (childCount > 0) {
433 mChildIds = new LongArray(childCount);
435 for (int i = 0; i < childCount; i++) {
478 final int childCount = mChildIds.size();
479 for (int i = 0; i < childCount; i++) {
481 if (i < childCount
[all...]
H A DAccessibilityCache.java349 final int childCount = current.getChildCount();
350 for (int i = 0; i < childCount; i++) {
446 final int childCount = nodeParent.getChildCount();
447 for (int k = 0; k < childCount; k++) {
461 final int childCount = node.getChildCount();
462 for (int k = 0; k < childCount; k++) {
/frameworks/base/core/java/android/widget/
H A DActionMenuView.java149 final int childCount = getChildCount();
150 if (mFormatItems && childCount > 0) {
154 for (int i = 0; i < childCount; i++) {
196 // This is used as a bitfield to locate the smallest items present. Assumes childCount < 64.
199 final int childCount = getChildCount();
200 for (int i = 0; i < childCount; i++) {
249 for (int i = 0; i < childCount; i++) {
275 for (int i = 0; i < childCount; i++) {
310 if ((smallestItemsAt & (1 << (childCount - 1))) != 0) {
311 LayoutParams lp = ((LayoutParams) getChildAt(childCount
[all...]
H A DGridView.java517 final int childCount = getChildCount();
518 if (childCount > 0) {
522 for (int i = 0; i < childCount; i += numColumns) {
528 for (int i = childCount - 1; i >= 0; i -= numColumns) {
584 final int childCount = getChildCount();
585 if (childCount > 0) {
586 correctTooHigh(numColumns, verticalSpacing, childCount);
593 final int childCount = getChildCount();
594 if (childCount > 0) {
595 correctTooLow(numColumns, verticalSpacing, childCount);
608 correctTooHigh(int numColumns, int verticalSpacing, int childCount) argument
649 correctTooLow(int numColumns, int verticalSpacing, int childCount) argument
[all...]
H A DViewAnimator.java214 final int childCount = getChildCount();
215 if (childCount == 0) {
218 } else if (mWhichChild >= childCount) {
220 setDisplayedChild(childCount - 1);
H A DTabWidget.java103 protected int getChildDrawingOrder(int childCount, int i) { argument
109 if (i == childCount - 1) {
185 int childCount = 0;
189 childCount++;
192 if (childCount > 0) {
200 final int delta = extraWidth / childCount;
205 childCount--;
H A DAbsListView.java1233 final int childCount = getChildCount();
1234 if (childCount == 0) return true;
1235 if (childCount != mItemCount) return false;
1238 getChildAt(childCount - 1).getBottom() <= getHeight() - mListPadding.bottom;
2034 final int childCount = getChildCount();
2035 if (firstPosition >= 0 && childCount > 0) {
2049 } else if (firstPosition + childCount == count) {
2052 index = firstPosition + childCount / 2;
2054 return (int) (firstPosition + childCount * (index / (float) count));
2124 final int childCount
6430 fillActiveViews(int childCount, int firstActivePosition) argument
[all...]
H A DListView.java207 final int childCount = getChildCount();
210 if (childCount > 0) {
229 child = getChildAt(childCount - 1);
232 if (mFirstPosition + childCount < mItemCount) {
559 final int childCount = getChildCount();
560 final int bottomOfBottomChild = getChildAt(childCount - 1).getBottom();
561 final int lastVisiblePosition = mFirstPosition + childCount - 1;
591 int childCount = getChildCount();
592 int bottomOfBottomChild = getChildAt(childCount - 1).getBottom();
1310 int childCount
1388 correctTooHigh(int childCount) argument
1437 correctTooLow(int childCount) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionMenuView.java159 final int childCount = getChildCount();
160 if (mFormatItems && childCount > 0) {
164 for (int i = 0; i < childCount; i++) {
206 // This is used as a bitfield to locate the smallest items present. Assumes childCount < 64.
209 final int childCount = getChildCount();
210 for (int i = 0; i < childCount; i++) {
259 for (int i = 0; i < childCount; i++) {
285 for (int i = 0; i < childCount; i++) {
320 if ((smallestItemsAt & (1 << (childCount - 1))) != 0) {
321 LayoutParams lp = ((LayoutParams) getChildAt(childCount
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DBackgroundFallback.java55 final int childCount = root.getChildCount();
56 for (int i = 0; i < childCount; i++) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DStackScrollAlgorithm.java178 int childCount = algorithmState.visibleChildren.size();
179 for (int i = 0; i < childCount; i++) {
194 int childCount = algorithmState.visibleChildren.size();
195 for (int i = 0; i < childCount; i++) {
270 int childCount = algorithmState.visibleChildren.size();
271 for (int i = 0; i < childCount; i++) {
320 int childCount = hostView.getChildCount();
322 state.visibleChildren.ensureCapacity(childCount);
323 for (int i = 0; i < childCount; i++) {
354 int childCount
[all...]
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DQueryController.java324 int childCount = fromNode.getChildCount();
326 for (int i = 0; i < childCount; i++) {
330 "AccessibilityNodeInfo returned a null child (%d of %d)", i, childCount));
454 int childCount = fromNode.getChildCount();
456 for (int i = 0; i < childCount; i++) {
460 "AccessibilityNodeInfo returned a null child (%d of %d)", i, childCount));
/frameworks/support/v4/honeycomb/android/support/v4/app/
H A DActionBarDrawerToggleHoneycomb.java124 final int childCount = parent.getChildCount();
125 if (childCount != 2) {
/frameworks/support/v7/appcompat/src/android/support/v7/app/
H A DActionBarDrawerToggleHoneycomb.java123 final int childCount = parent.getChildCount();
124 if (childCount != 2) {
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerTest.java374 final AtomicInteger childCount = new AtomicInteger(0);
379 final int cnt = childCount.incrementAndGet();
394 int cnt = childCount.decrementAndGet();
404 final int cnt = childCount.incrementAndGet();
423 assertEquals("Children count should add up", childCount.get(),
434 assertEquals("Children count should add up", childCount.get(),
460 final int childCount = mLayoutManager.getChildCount();
466 mTestAdapter.getItemViewType(0), recyclerSize + childCount);
468 assertEquals("All children should be recycled", childCount + recyclerSize,
965 final int childCount
[all...]

Completed in 1867 milliseconds

1234