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

12345

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DLinearLayoutManagerPrepareForDropTest.java53 public int[] selectTargetChildren(int childCount) {
59 public int[] selectTargetChildren(int childCount) {
65 public int[] selectTargetChildren(int childCount) {
66 return new int[]{childCount - 1, childCount - 2};
71 public int[] selectTargetChildren(int childCount) {
72 return new int[]{childCount - 2, childCount - 1};
77 public int[] selectTargetChildren(int childCount) {
78 return new int[]{childCount /
170 selectTargetChildren(int childCount) argument
[all...]
H A DLinearLayoutManagerTest.java151 final int childCount = mLayoutManager.getChildCount();
154 for (int i = 0; i < childCount; i++) {
164 assertEquals("test sanity", childCount - 1, toBeMoved.size());
195 + " initial:" + childCount + ", current:" + mRecyclerView.getChildCount(),
196 mRecyclerView.getChildCount() <= childCount + 3 /*1 for removed view, 2 for its size*/);
363 final AtomicInteger childCount = new AtomicInteger(0);
368 final int cnt = childCount.incrementAndGet();
383 int cnt = childCount.decrementAndGet();
393 final int cnt = childCount.incrementAndGet();
412 assertEquals("Children count should add up", childCount
[all...]
/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/support/core-ui/java/android/support/v4/widget/
H A DListViewAutoScrollHelper.java54 final int childCount = target.getChildCount();
56 final int lastPosition = firstPosition + childCount;
61 final View lastView = target.getChildAt(childCount - 1);
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
H A DListSetSelectionTest.java74 int childCount = mListView.getChildCount();
75 for (int i=0; i<childCount; i++) {
105 int childCount = mListView.getChildCount();
106 for (int i=0; i<childCount; i++) {
140 int childCount = mListView.getChildCount();
141 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/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
H A DHeaderTransformState.java56 int childCount = header.getChildCount();
57 for (int i = 0; i < childCount; i++) {
81 int childCount = header.getChildCount();
82 for (int i = 0; i < childCount; i++) {
133 int childCount = header.getChildCount();
134 for (int i = 0; i < childCount; i++) {
160 int childCount = header.getChildCount();
161 for (int i = 0; i < childCount; i++) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DReverseLinearLayout.java90 int childCount = getChildCount();
91 ArrayList<View> childList = new ArrayList<>(childCount);
92 for (int i = 0; i < childCount; i++) {
96 for (int i = childCount - 1; i >= 0; i--) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DStackScrollAlgorithm.java116 int childCount = algorithmState.visibleChildren.size();
117 for (int i = 0; i < childCount; i++) {
128 int childCount = algorithmState.visibleChildren.size();
129 for (int i = 0; i < childCount; i++) {
144 int childCount = algorithmState.visibleChildren.size();
145 for (int i = 0; i < childCount; i++) {
195 int childCount = algorithmState.visibleChildren.size();
196 for (int i = 0; i < childCount; i++) {
257 int childCount = hostView.getChildCount();
259 state.visibleChildren.ensureCapacity(childCount);
[all...]
H A DNotificationChildrenContainer.java117 int childCount = Math.min(mChildren.size(), NUMBER_OF_CHILDREN_WHEN_CHILDREN_EXPANDED);
118 for (int i = 0; i < childCount; i++) {
155 int childCount = Math.min(mChildren.size(), NUMBER_OF_CHILDREN_WHEN_CHILDREN_EXPANDED);
157 int overflowIndex = childCount > collapsedChildren ? collapsedChildren - 1 : -1;
158 for (int i = 0; i < childCount; i++) {
268 int childCount = mChildren.size();
270 if (childCount > maxAllowedVisibleChildren) {
272 mOverflowNumber, childCount - maxAllowedVisibleChildren);
366 int childCount = mChildren.size();
372 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/core/java/android/view/accessibility/
H A DAccessibilityWindowInfo.java472 final int childCount = childIds.size();
473 parcel.writeInt(childCount);
474 for (int i = 0; i < childCount; i++) {
492 final int childCount = parcel.readInt();
493 if (childCount > 0) {
495 mChildIds = new LongArray(childCount);
497 for (int i = 0; i < childCount; i++) {
541 final int childCount = mChildIds.size();
542 for (int i = 0; i < childCount; i++) {
544 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.java130 protected int getChildDrawingOrder(int childCount, int i) { argument
136 if (i == childCount - 1) {
178 int childCount = 0;
182 childCount++;
185 if (childCount > 0) {
193 final int delta = extraWidth / childCount;
198 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...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionMenuView.java162 final int childCount = getChildCount();
163 if (mFormatItems && childCount > 0) {
167 for (int i = 0; i < childCount; i++) {
209 // This is used as a bitfield to locate the smallest items present. Assumes childCount < 64.
212 final int childCount = getChildCount();
213 for (int i = 0; i < childCount; i++) {
262 for (int i = 0; i < childCount; i++) {
288 for (int i = 0; i < childCount; i++) {
323 if ((smallestItemsAt & (1 << (childCount - 1))) != 0) {
324 LayoutParams lp = ((LayoutParams) getChildAt(childCount
[all...]
H A DButtonBarLayout.java130 final int childCount = getChildCount();
131 for (int i = childCount - 2; i >= 0; i--) {
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DDividerItemDecoration.java122 final int childCount = parent.getChildCount();
123 for (int i = 0; i < childCount; i++) {
148 final int childCount = parent.getChildCount();
149 for (int i = 0; i < childCount; i++) {
H A DLinearSnapHelper.java192 int childCount = layoutManager.getChildCount();
193 if (childCount == 0) {
206 for (int i = 0; i < childCount; i++) {
240 int childCount = layoutManager.getChildCount();
241 if (childCount == 0) {
245 for (int i = 0; i < childCount; i++) {
/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/
H A DKeyboardShortcutKeysLayout.java47 int childCount = getChildCount();
60 for (int i = 0; i < childCount; i++) {
108 int childCount = getChildCount();
119 for (int i = 0; i < childCount; i++) {
149 if (rowStartIdx < childCount) {
150 layoutChildrenOnRow(rowStartIdx, childCount, fullRowWidth, xPos, yPos,
/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/core-ui/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 766 milliseconds

12345