Searched refs:childCount (Results 1 - 25 of 91) 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.java755 final int childCount = getChildCount();
756 for (int i = 0; i < childCount; i++) {
806 final int childCount = getChildCount();
807 for (int i = 0; i < childCount; i++) {
837 final int childCount = getChildCount();
838 for (int i = 0; i < childCount; i++) {
915 final int childCount = getChildCount();
916 for (int i = 0; i < childCount; i++) {
1032 final int childCount = getChildCount();
1033 for (int i = 0; i < 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/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationChildrenContainer.java83 int childCount = mChildren.size();
85 for (int i = 0; i < childCount; i++) {
128 int childCount = mChildren.size();
130 for (int i = 0; i < childCount; i++) {
225 int childCount = mChildren.size();
228 for (int i = 0; i < childCount; i++) {
249 int childCount = mChildren.size();
252 for (int i = 0; i < childCount; i++) {
281 int childCount = mChildren.size();
284 for (int i = 0; i < childCount;
[all...]
H A DStackScrollAlgorithm.java180 int childCount = algorithmState.visibleChildren.size();
181 for (int i = 0; i < childCount; i++) {
192 int childCount = algorithmState.visibleChildren.size();
193 for (int i = 0; i < childCount; i++) {
209 int childCount = algorithmState.visibleChildren.size();
210 for (int i = 0; i < childCount; i++) {
298 int childCount = algorithmState.visibleChildren.size();
299 for (int i = 0; i < childCount; i++) {
350 int childCount = hostView.getChildCount();
352 state.visibleChildren.ensureCapacity(childCount);
[all...]
/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...]
/frameworks/base/core/java/android/widget/
H A DActionMenuView.java157 final int childCount = getChildCount();
158 if (mFormatItems && childCount > 0) {
162 for (int i = 0; i < childCount; i++) {
204 // This is used as a bitfield to locate the smallest items present. Assumes childCount < 64.
207 final int childCount = getChildCount();
208 for (int i = 0; i < childCount; i++) {
257 for (int i = 0; i < childCount; i++) {
283 for (int i = 0; i < childCount; i++) {
318 if ((smallestItemsAt & (1 << (childCount - 1))) != 0) {
319 LayoutParams lp = ((LayoutParams) getChildAt(childCount
[all...]
H A DTabWidget.java102 protected int getChildDrawingOrder(int childCount, int i) { argument
108 if (i == childCount - 1) {
186 int childCount = 0;
190 childCount++;
193 if (childCount > 0) {
201 final int delta = extraWidth / childCount;
206 childCount--;
H A DGridView.java522 final int childCount = getChildCount();
523 if (childCount > 0) {
527 for (int i = 0; i < childCount; i += numColumns) {
533 for (int i = childCount - 1; i >= 0; i -= numColumns) {
589 final int childCount = getChildCount();
590 if (childCount > 0) {
591 correctTooHigh(numColumns, verticalSpacing, childCount);
598 final int childCount = getChildCount();
599 if (childCount > 0) {
600 correctTooLow(numColumns, verticalSpacing, childCount);
613 correctTooHigh(int numColumns, int verticalSpacing, int childCount) argument
654 correctTooLow(int numColumns, int verticalSpacing, int childCount) argument
[all...]
H A DViewAnimator.java213 final int childCount = getChildCount();
214 if (childCount == 0) {
217 } else if (mWhichChild >= childCount) {
219 setDisplayedChild(childCount - 1);
H A DAbsListView.java1232 final int childCount = getChildCount();
1233 if (childCount == 0) return true;
1234 if (childCount != mItemCount) return false;
1237 getChildAt(childCount - 1).getBottom() <= getHeight() - mListPadding.bottom;
2031 final int childCount = getChildCount();
2032 if (firstPosition >= 0 && childCount > 0) {
2046 } else if (firstPosition + childCount == count) {
2049 index = firstPosition + childCount / 2;
2051 return (int) (firstPosition + childCount * (index / (float) count));
2121 final int childCount
6507 fillActiveViews(int childCount, int firstActivePosition) argument
[all...]
H A DListView.java211 final int childCount = getChildCount();
214 if (childCount > 0) {
233 child = getChildAt(childCount - 1);
236 if (mFirstPosition + childCount < mItemCount) {
563 final int childCount = getChildCount();
564 final int bottomOfBottomChild = getChildAt(childCount - 1).getBottom();
565 final int lastVisiblePosition = mFirstPosition + childCount - 1;
595 int childCount = getChildCount();
596 int bottomOfBottomChild = getChildAt(childCount - 1).getBottom();
1321 int childCount
1399 correctTooHigh(int childCount) argument
1448 correctTooLow(int childCount) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionMenuView.java161 final int childCount = getChildCount();
162 if (mFormatItems && childCount > 0) {
166 for (int i = 0; i < childCount; i++) {
208 // This is used as a bitfield to locate the smallest items present. Assumes childCount < 64.
211 final int childCount = getChildCount();
212 for (int i = 0; i < childCount; i++) {
261 for (int i = 0; i < childCount; i++) {
287 for (int i = 0; i < childCount; i++) {
322 if ((smallestItemsAt & (1 << (childCount - 1))) != 0) {
323 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++) {
H A DButtonBarLayout.java113 final int childCount = getChildCount();
114 for (int i = childCount - 2; i >= 0; i--) {
/frameworks/support/design/src/android/support/design/widget/
H A DCoordinatorLayout.java300 final int childCount = getChildCount();
301 for (int i = 0; i < childCount; i++) {
316 final int childCount = getChildCount();
317 for (int i = childCount - 1; i >= 0; i--) {
318 final int childIndex = useCustomOrder ? getChildDrawingOrder(childCount, i) : i;
340 final int childCount = topmostChildList.size();
341 for (int i = 0; i < childCount; i++) {
549 final int childCount = getChildCount();
551 boolean resortRequired = mDependencySortedChildren.size() != childCount;
553 for (int i = 0; i < childCount;
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerTest.java200 final int childCount = mLayoutManager.getChildCount();
203 for (int i = 0; i < childCount; i++) {
213 assertEquals("test sanity", childCount - 1, toBeMoved.size());
244 + " initial:" + childCount + ", current:" + mRecyclerView.getChildCount(),
245 mRecyclerView.getChildCount() <= childCount + 3 /*1 for removed view, 2 for its size*/);
643 final AtomicInteger childCount = new AtomicInteger(0);
648 final int cnt = childCount.incrementAndGet();
663 int cnt = childCount.decrementAndGet();
673 final int cnt = childCount.incrementAndGet();
692 assertEquals("Children count should add up", childCount
1626 selectTargetChildren(int childCount) argument
[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) {

Completed in 471 milliseconds

1234