Home
last modified time | relevance | path

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

12345

/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.kt95 val childCount = childCount in onFinishInflate() constant
96 for (i in 0 until childCount) { in onFinishInflate()
120 val childCount = childCount in applyCurrentState() constant
123 for (i in 0 until childCount) { in applyCurrentState()
200 for (i in 0 until childCount) { in onMeasure()
217 val childCount = childCount in onLayout() constant
218 for (i in 0 until childCount) { in onLayout()
283 val childCount = childCount in applySetToFullLayout() constant
284 for (i in 0 until childCount) { in applySetToFullLayout()
301 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()
DSmartReplyView.java414 final int childCount = getChildCount(); in filterActionsOrReplies() local
415 for (int i = 0; i < childCount; i++) { in filterActionsOrReplies()
429 final int childCount = getChildCount(); in resetButtonsLayoutParams() local
430 for (int i = 0; i < childCount; i++) { in resetButtonsLayoutParams()
543 final int childCount = getChildCount(); in remeasureButtonsIfNecessary() local
544 for (int i = 0; i < childCount; i++) { in remeasureButtonsIfNecessary()
591 final int childCount = getChildCount(); in onLayout() local
592 for (int i = 0; i < childCount; i++) { in onLayout()
640 int childCount = getChildCount(); in setBackgroundTintColor() local
641 for (int i = 0; i < childCount; i++) { in setBackgroundTintColor()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DStackScrollAlgorithm.java121 int childCount = algorithmState.visibleChildren.size(); in getNotificationChildrenStates() local
122 for (int i = 0; i < childCount; i++) { in getNotificationChildrenStates()
133 int childCount = algorithmState.visibleChildren.size(); in updateSpeedBumpState() local
135 for (int i = 0; i < childCount; i++) { in updateSpeedBumpState()
179 int childCount = algorithmState.visibleChildren.size(); in updateClipping() local
181 for (int i = 0; i < childCount; i++) { in updateClipping()
220 int childCount = algorithmState.visibleChildren.size(); in updateDimmedActivatedHideSensitive() local
221 for (int i = 0; i < childCount; i++) { in updateDimmedActivatedHideSensitive()
242 int childCount = mHostView.getChildCount(); in initAlgorithmState() local
244 state.visibleChildren.ensureCapacity(childCount); in initAlgorithmState()
[all …]
DNotificationChildrenContainer.java164 int childCount = in onLayout() local
166 for (int i = 0; i < childCount; i++) { in onLayout()
207 int childCount = in onMeasure() local
210 int overflowIndex = childCount > collapsedChildren ? collapsedChildren - 1 : -1; in onMeasure()
211 for (int i = 0; i < childCount; i++) { in onMeasure()
258 public void setUntruncatedChildCount(int childCount) { in setUntruncatedChildCount() argument
259 mUntruncatedChildCount = childCount; in setUntruncatedChildCount()
507 int childCount = mAttachedChildren.size();
514 for (int i = 0; i < childCount; i++) {
557 int childCount = mAttachedChildren.size();
[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.java1290 final int childCount = getChildCount(); in contentFits() local
1291 if (childCount == 0) return true; in contentFits()
1292 if (childCount != mItemCount) return false; in contentFits()
1295 getChildAt(childCount - 1).getBottom() <= getHeight() - mListPadding.bottom; in contentFits()
2078 final int childCount = getChildCount(); in computeVerticalScrollOffset() local
2079 if (firstPosition >= 0 && childCount > 0) { in computeVerticalScrollOffset()
2093 } else if (firstPosition + childCount == count) { in computeVerticalScrollOffset()
2096 index = firstPosition + childCount / 2; in computeVerticalScrollOffset()
2098 return (int) (firstPosition + childCount * (index / (float) count)); in computeVerticalScrollOffset()
2168 final int childCount = getChildCount(); in onMeasure() local
[all …]
DTabWidget.java153 protected int getChildDrawingOrder(int childCount, int i) { in getChildDrawingOrder() argument
159 if (i == childCount - 1) { in getChildDrawingOrder()
201 int childCount = 0; in measureHorizontal() local
205 childCount++; in measureHorizontal()
208 if (childCount > 0) { in measureHorizontal()
216 final int delta = extraWidth / childCount; in measureHorizontal()
221 childCount--; in measureHorizontal()
DViewAnimator.java224 final int childCount = getChildCount(); in removeViewAt() local
225 if (childCount == 0) { in removeViewAt()
228 } else if (mWhichChild >= childCount) { in removeViewAt()
230 setDisplayedChild(childCount - 1); in removeViewAt()
/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/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/services/core/java/com/android/server/wm/
DDisplayArea.java342 int childCount = mChildren.size(); in forAllTaskDisplayAreas() local
343 int i = traverseTopToBottom ? childCount - 1 : 0; in forAllTaskDisplayAreas()
344 while (i >= 0 && i < childCount) { in forAllTaskDisplayAreas()
363 int childCount = mChildren.size(); in forAllTaskDisplayAreas() local
364 int i = traverseTopToBottom ? childCount - 1 : 0; in forAllTaskDisplayAreas()
365 while (i >= 0 && i < childCount) { in forAllTaskDisplayAreas()
384 int childCount = mChildren.size(); in reduceOnAllTaskDisplayAreas() local
385 int i = traverseTopToBottom ? childCount - 1 : 0; in reduceOnAllTaskDisplayAreas()
387 while (i >= 0 && i < childCount) { in reduceOnAllTaskDisplayAreas()
415 int childCount = mChildren.size(); in getItemFromTaskDisplayAreas() local
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityWindowInfo.java589 final int childCount = childIds.size(); in writeToParcel() local
590 parcel.writeInt(childCount); in writeToParcel()
591 for (int i = 0; i < childCount; i++) { in writeToParcel()
638 final int childCount = parcel.readInt(); in initFromParcel() local
639 if (childCount > 0) { in initFromParcel()
641 mChildIds = new LongArray(childCount); in initFromParcel()
643 for (int i = 0; i < childCount; i++) { in initFromParcel()
690 final int childCount = mChildIds.size(); in toString() local
691 for (int i = 0; i < childCount; i++) { in toString()
693 if (i < childCount - 1) { in toString()
/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/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DQueryController.java324 int childCount = fromNode.getChildCount(); in findNodeRegularRecursive() local
326 for (int i = 0; i < childCount; i++) { in findNodeRegularRecursive()
330 "AccessibilityNodeInfo returned a null child (%d of %d)", i, childCount)); in findNodeRegularRecursive()
454 int childCount = fromNode.getChildCount(); in findNodePatternRecursive() local
456 for (int i = 0; i < childCount; i++) { in findNodePatternRecursive()
460 "AccessibilityNodeInfo returned a null child (%d of %d)", i, childCount)); in findNodePatternRecursive()
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/
DGridTouchSetSelectionTest.java72 int childCount = mGridView.getChildCount(); in testSetSelection() local
73 for (int i=0; i<childCount; i++) { in testSetSelection()
/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/
DGroupEntry.java67 public void setUntruncatedChildCount(int childCount) { in setUntruncatedChildCount() argument
68 mUntruncatedChildCount = childCount; in setUntruncatedChildCount()

12345