Home
last modified time | relevance | path

Searched refs:childCount (Results 1 – 25 of 146) sorted by relevance

123456

/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListGetCheckItemIdsTest.java74 int childCount = mListView.getChildCount(); in testSimpleCheck() local
75 for (int i=0; i<childCount; i++) { in testSimpleCheck()
81 for (int i = 0; i < childCount; i++) { in testSimpleCheck()
83 mListView.setItemChecked((i - 3 + childCount) % childCount, false); in testSimpleCheck()
84 mListView.setItemChecked((i + 1) % childCount, false); in testSimpleCheck()
95 int childCount = mListView.getChildCount(); in testMultipleCheck() local
96 assertTrue("Tests requires at least 4 items", childCount >= 4); in testMultipleCheck()
135 int childCount = mListView.getChildCount(); in testClearChoices() local
136 for (int i = 0; i < childCount; i++) { in testClearChoices()
DListSetSelectionTest.java55 int childCount = mListView.getChildCount(); in testSetSelection() local
56 for (int i=0; i<childCount; i++) { in testSetSelection()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/animation/
DTransitionLayout.kt102 val childCount = childCount in onFinishInflate() constant
103 for (i in 0 until childCount) { in onFinishInflate()
127 val childCount = childCount in applyCurrentState() constant
130 for (i in 0 until childCount) { in applyCurrentState()
199 for (i in 0 until childCount) { in onMeasure()
216 val childCount = childCount in onLayout() constant
217 for (i in 0 until childCount) { in onLayout()
282 val childCount = childCount in applySetToFullLayout() constant
283 for (i in 0 until childCount) { in applySetToFullLayout()
300 val childCount = childCount in ensureViewsNotGone() constant
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintOptionsLayout.java65 final int childCount = getChildCount(); in onMeasure() local
66 final int rowCount = childCount / mColumnCount + childCount % mColumnCount; in onMeasure()
75 if (childIndex >= childCount) { in onMeasure()
128 final int childCount = getChildCount(); in onLayout() local
129 final int rowCount = childCount / mColumnCount + childCount % mColumnCount; in onLayout()
147 if (childIndex >= childCount) { in onLayout()
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/
DListSetSelectionTest.java74 int childCount = mListView.getChildCount(); in testSetSelection() local
75 for (int i=0; i<childCount; i++) { in testSetSelection()
105 int childCount = mListView.getChildCount(); in testSetSelectionFromTop() local
106 for (int i=0; i<childCount; i++) { in testSetSelectionFromTop()
140 int childCount = mListView.getChildCount(); in testSetSelection0() local
141 for (int i=0; i<childCount; i++) { in testSetSelection0()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyguardUserSwitcherListView.java62 int childCount = getChildCount(); in setDarkAmount() local
63 for (int i = 0; i < childCount; i++) { in setDarkAmount()
87 int childCount = getChildCount(); in updateVisibilities() local
88 KeyguardUserDetailItemView[] userItemViews = new KeyguardUserDetailItemView[childCount]; in updateVisibilities()
89 for (int i = 0; i < childCount; i++) { in updateVisibilities()
/frameworks/libs/systemui/viewcapturelib/src/com/android/app/viewcapture/
DViewCapture.java352 if (viewRefEnd.childCount < 0) {
354 viewRefEnd.childCount = (copy != null) ? copy.childCount : 0;
367 int pending = copy.childCount;
370 pending = pending - 1 + copy.childCount;
482 ref.childCount = -parent.getChildCount();
486 int childCount = ref.childCount = parent.getChildCount();
487 for (int i = 0; i < childCount; i++) {
492 ref.childCount = 0;
525 public int childCount = 0;
545 out.childCount = this.childCount;
[all …]
/frameworks/base/core/java/android/widget/
DActionMenuView.java160 final int childCount = getChildCount(); in onMeasure() local
161 if (mFormatItems && childCount > 0) { in onMeasure()
165 for (int i = 0; i < childCount; i++) { in onMeasure()
210 final int childCount = getChildCount(); in onMeasureExactFormat() local
211 for (int i = 0; i < childCount; i++) { in onMeasureExactFormat()
260 for (int i = 0; i < childCount; i++) { in onMeasureExactFormat()
286 for (int i = 0; i < childCount; i++) { in onMeasureExactFormat()
321 if ((smallestItemsAt & (1 << (childCount - 1))) != 0) { in onMeasureExactFormat()
322 LayoutParams lp = ((LayoutParams) getChildAt(childCount - 1).getLayoutParams()); in onMeasureExactFormat()
330 for (int i = 0; i < childCount; i++) { in onMeasureExactFormat()
[all …]
DGridView.java542 final int childCount = getChildCount(); in findMotionRow() local
543 if (childCount > 0) { in findMotionRow()
547 for (int i = 0; i < childCount; i += numColumns) { in findMotionRow()
553 for (int i = childCount - 1; i >= 0; i -= numColumns) { in findMotionRow()
609 final int childCount = getChildCount(); in fillSpecific() local
610 if (childCount > 0) { in fillSpecific()
611 correctTooHigh(numColumns, verticalSpacing, childCount); in fillSpecific()
618 final int childCount = getChildCount(); in fillSpecific() local
619 if (childCount > 0) { in fillSpecific()
620 correctTooLow(numColumns, verticalSpacing, childCount); in fillSpecific()
[all …]
DAbsListView.java1366 final int childCount = getChildCount(); in contentFits() local
1367 if (childCount == 0) return true; in contentFits()
1368 if (childCount != mItemCount) return false; in contentFits()
1371 getChildAt(childCount - 1).getBottom() <= getHeight() - mListPadding.bottom; in contentFits()
2154 final int childCount = getChildCount(); in computeVerticalScrollOffset() local
2155 if (firstPosition >= 0 && childCount > 0) { in computeVerticalScrollOffset()
2169 } else if (firstPosition + childCount == count) { in computeVerticalScrollOffset()
2172 index = firstPosition + childCount / 2; in computeVerticalScrollOffset()
2174 return (int) (firstPosition + childCount * (index / (float) count)); in computeVerticalScrollOffset()
2244 final int childCount = getChildCount(); in onMeasure() local
[all …]
DTabWidget.java157 protected int getChildDrawingOrder(int childCount, int i) { in getChildDrawingOrder() argument
163 if (i == childCount - 1) { in getChildDrawingOrder()
205 int childCount = 0; in measureHorizontal() local
209 childCount++; in measureHorizontal()
212 if (childCount > 0) { in measureHorizontal()
220 final int delta = extraWidth / childCount; in measureHorizontal()
225 childCount--; in measureHorizontal()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DPinShapeHintingViewTest.kt47 Truth.assertThat(underTest.childCount).isEqualTo(6) in testAppend()
53 Truth.assertThat(underTest.childCount).isEqualTo(6) in testDelete()
62 Truth.assertThat(underTest.childCount).isEqualTo(6) in testReset()
DPinShapeNonHintingViewTest.kt47 Truth.assertThat(underTest.childCount).isEqualTo(1) in testAppend()
58 { Truth.assertThat(underTest.childCount).isEqualTo(2) }, in testDelete()
70 { Truth.assertThat(underTest.childCount).isEqualTo(0) }, in testReset()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutKeysLayout.java47 int childCount = getChildCount(); in onMeasure() local
60 for (int i = 0; i < childCount; i++) { in onMeasure()
108 int childCount = getChildCount(); in onLayout() local
119 for (int i = 0; i < childCount; i++) { in onLayout()
149 if (rowStartIdx < childCount) { in onLayout()
150 layoutChildrenOnRow(rowStartIdx, childCount, fullRowWidth, xPos, yPos, in onLayout()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DNotificationChildrenContainer.java206 int childCount = in onLayout() local
208 for (int i = 0; i < childCount; i++) { in onLayout()
250 int childCount = in onMeasure() local
253 int overflowIndex = childCount > collapsedChildren ? collapsedChildren - 1 : -1; in onMeasure()
254 for (int i = 0; i < childCount; i++) { in onMeasure()
302 public void setUntruncatedChildCount(int childCount) { in setUntruncatedChildCount() argument
303 mUntruncatedChildCount = childCount; in setUntruncatedChildCount()
701 int childCount = mAttachedChildren.size();
708 for (int i = 0; i < childCount; i++) {
751 int childCount = mAttachedChildren.size();
[all …]
DStackScrollAlgorithm.java297 int childCount = algorithmState.visibleChildren.size(); in getNotificationChildrenStates() local
298 for (int i = 0; i < childCount; i++) { in getNotificationChildrenStates()
308 int childCount = algorithmState.visibleChildren.size(); in updateSpeedBumpState() local
310 for (int i = 0; i < childCount; i++) { in updateSpeedBumpState()
338 int childCount = algorithmState.visibleChildren.size(); in updateClipping() local
341 for (int i = 0; i < childCount; i++) { in updateClipping()
424 int childCount = algorithmState.visibleChildren.size(); in updateDimmedAndHideSensitive() local
425 for (int i = 0; i < childCount; i++) { in updateDimmedAndHideSensitive()
441 int childCount = mHostView.getChildCount(); in initAlgorithmState() local
443 state.visibleChildren.ensureCapacity(childCount); in initAlgorithmState()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DReverseLinearLayout.java91 int childCount = getChildCount(); in updateOrder() local
92 ArrayList<View> childList = new ArrayList<>(childCount); in updateOrder()
93 for (int i = 0; i < childCount; i++) { in updateOrder()
97 for (int i = childCount - 1; i >= 0; i--) { in updateOrder()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DReverseLinearLayout.java93 int childCount = getChildCount(); in updateOrder() local
94 ArrayList<View> childList = new ArrayList<>(childCount); in updateOrder()
95 for (int i = 0; i < childCount; i++) { in updateOrder()
99 for (int i = childCount - 1; i >= 0; i--) { in updateOrder()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
DItemGroup.java137 final int childCount = child.getCount(); in removeChild() local
140 if (childCount > 0) { in removeChild()
141 notifyItemRangeRemoved(childPosition, childCount); in removeChild()
199 int childCount = children.size(); in getChildPosition() local
200 for (int i = childIndex; childPos < 0 && i < childCount; i++) { in getChildPosition()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DButtonBarLayout.java82 int childCount = getChildCount(); in setStacked() local
83 for (int i = 0; i < childCount; i++) { in setStacked()
101 for (int i = childCount - 1; i >= 0; i--) { in setStacked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNotificationIconContainer.java245 final int childCount = getChildCount(); in onMeasure() local
246 final int maxVisibleIcons = getMaxVisibleIcons(childCount); in onMeasure()
250 for (int i = 0; i < childCount; i++) { in onMeasure()
512 int childCount = getChildCount(); in calculateIconXTranslations() local
513 int maxVisibleIcons = getMaxVisibleIcons(childCount); in calculateIconXTranslations()
517 for (int i = 0; i < childCount; i++) { in calculateIconXTranslations()
536 /* isLastChild= */ i == childCount - 1, translationX, layoutEnd, mIconSize); in calculateIconXTranslations()
550 for (int i = firstOverflowIndex; i < childCount; i++) { in calculateIconXTranslations()
568 } else if (childCount > 0) { in calculateIconXTranslations()
569 View lastChild = getChildAt(childCount - 1); in calculateIconXTranslations()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityWindowInfo.java701 final int childCount = childIds.size(); in writeToParcel() local
702 parcel.writeInt(childCount); in writeToParcel()
703 for (int i = 0; i < childCount; i++) { in writeToParcel()
756 final int childCount = parcel.readInt(); in initFromParcel() local
757 if (childCount > 0) { in initFromParcel()
759 mChildIds = new LongArray(childCount); in initFromParcel()
761 for (int i = 0; i < childCount; i++) { in initFromParcel()
811 final int childCount = mChildIds.size(); in toString() local
812 for (int i = 0; i < childCount; i++) { in toString()
814 if (i < childCount - 1) { in toString()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayArea.java515 int childCount = mChildren.size(); in forAllTaskDisplayAreas() local
516 int i = traverseTopToBottom ? childCount - 1 : 0; in forAllTaskDisplayAreas()
517 while (i >= 0 && i < childCount) { in forAllTaskDisplayAreas()
536 int childCount = mChildren.size(); in forAllTaskDisplayAreas() local
537 int i = traverseTopToBottom ? childCount - 1 : 0; in forAllTaskDisplayAreas()
538 while (i >= 0 && i < childCount) { in forAllTaskDisplayAreas()
557 int childCount = mChildren.size(); in reduceOnAllTaskDisplayAreas() local
558 int i = traverseTopToBottom ? childCount - 1 : 0; in reduceOnAllTaskDisplayAreas()
560 while (i >= 0 && i < childCount) { in reduceOnAllTaskDisplayAreas()
588 int childCount = mChildren.size(); in getItemFromTaskDisplayAreas() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DIgnorableChildLinearLayout.kt59 if (ignoreLastView && childCount > 0) { in onMeasure()
60 val lastView = getChildAt(childCount - 1) in onMeasure()
/frameworks/base/core/java/com/android/internal/widget/
DNotificationVanishingFrameLayout.java61 final int childCount = getChildCount(); in allChildrenGone() local
62 for (int i = 0; i < childCount; i++) { in allChildrenGone()

123456