Searched refs:childIndex (Results 1 - 25 of 54) sorted by relevance

123

/frameworks/base/cmds/statsd/src/condition/
H A DCombinationConditionTracker.cpp73 int childIndex = it->second; local
74 const auto& childTracker = allConditionTrackers[childIndex];
76 if (stack[childIndex]) {
92 if (allConditionTrackers[childIndex]->isSliced()) {
94 mSlicedChildren.push_back(childIndex);
96 mUnSlicedChildren.push_back(childIndex);
98 mChildren.push_back(childIndex);
119 for (const int childIndex : mChildren) {
120 if (conditionCache[childIndex] == ConditionState::kNotEvaluated) {
121 allConditions[childIndex]
[all...]
H A Dcondition_util.cpp50 for (auto childIndex : children) {
51 ConditionState childState = conditionCache[childIndex];
/frameworks/base/cmds/statsd/src/matchers/
H A DCombinationLogMatchingTracker.cpp70 int childIndex = pair->second; local
73 if (stack[childIndex]) {
78 if (!allTrackers[childIndex]->init(allLogMatchers, allTrackers, matcherMap, stack)) {
83 mChildren.push_back(childIndex);
85 const set<int>& childTagIds = allTrackers[childIndex]->getAtomIds();
109 for (const int childIndex : mChildren) {
110 if (matcherResults[childIndex] == MatchingState::kNotComputed) {
111 const sp<LogMatchingTracker>& child = allTrackers[childIndex];
H A Dmatcher_util.cpp39 for (const int childIndex : children) {
40 if (matcherResults[childIndex] != MatchingState::kMatched) {
49 for (const int childIndex : children) {
50 if (matcherResults[childIndex] == MatchingState::kMatched) {
62 for (const int childIndex : children) {
63 if (matcherResults[childIndex] != MatchingState::kMatched) {
71 for (const int childIndex : children) {
72 if (matcherResults[childIndex] == MatchingState::kMatched) {
/frameworks/base/core/java/com/android/internal/view/menu/
H A DBaseMenuPresenter.java87 int childIndex = 0;
94 if (shouldIncludeItem(childIndex, item)) {
95 final View convertView = parent.getChildAt(childIndex);
105 addItemView(itemView, childIndex);
107 childIndex++;
113 while (childIndex < parent.getChildCount()) {
114 if (!filterLeftoverView(parent, childIndex)) {
115 childIndex++;
124 * @param childIndex Index within the parent to insert at
126 protected void addItemView(View itemView, int childIndex) { argument
140 filterLeftoverView(ViewGroup parent, int childIndex) argument
199 shouldIncludeItem(int childIndex, MenuItemImpl item) argument
[all...]
H A DIconMenuPresenter.java72 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { argument
74 boolean fits = (itemsToShow.size() == mMaxItems && childIndex < mMaxItems) ||
75 childIndex < mMaxItems - 1;
80 protected void addItemView(View itemView, int childIndex) { argument
87 super.addItemView(itemView, childIndex);
126 protected boolean filterLeftoverView(ViewGroup parent, int childIndex) { argument
127 if (parent.getChildAt(childIndex) != mMoreView) {
128 return super.filterLeftoverView(parent, childIndex);
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/view/menu/
H A DBaseMenuPresenter.java94 int childIndex = 0;
101 if (shouldIncludeItem(childIndex, item)) {
102 final View convertView = parent.getChildAt(childIndex);
112 addItemView(itemView, childIndex);
114 childIndex++;
120 while (childIndex < parent.getChildCount()) {
121 if (!filterLeftoverView(parent, childIndex)) {
122 childIndex++;
131 * @param childIndex Index within the parent to insert at
133 protected void addItemView(View itemView, int childIndex) { argument
147 filterLeftoverView(ViewGroup parent, int childIndex) argument
207 shouldIncludeItem(int childIndex, MenuItemImpl item) argument
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DPrintOptionsLayout.java73 final int childIndex = row * mColumnCount + col;
75 if (childIndex >= childCount) {
79 View child = getChildAt(childIndex);
139 final int childIndex;
142 childIndex = row * mColumnCount + (mColumnCount - col - 1);
144 childIndex = row * mColumnCount + col;
147 if (childIndex >= childCount) {
151 View child = getChildAt(childIndex);
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
H A DItemGroup.java141 final int childIndex = identityIndexOf(mChildren, child);
142 final int childPosition = getChildPosition(childIndex);
144 if (childIndex != -1) {
146 mChildren.remove(childIndex);
205 private int getChildPosition(int childIndex) { argument
207 if (childIndex != -1) {
210 for (int i = childIndex; childPos < 0 && i < childCount; i++) {
211 // Find the position of the first visible child after childIndex. This is required
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DAbstractMediaItemPresenter.java530 int childIndex = calculateMediaItemNumberFlipperIndex(vh);
531 if (childIndex != -1 && vh.mMediaItemNumberViewFlipper.getDisplayedChild() != childIndex) {
532 vh.mMediaItemNumberViewFlipper.setDisplayedChild(childIndex);
537 int childIndex = -1;
541 childIndex = (vh.mMediaItemNumberView == null) ? -1 :
545 childIndex = (vh.mMediaItemPausedView == null) ? -1 :
549 childIndex = (vh.mMediaItemPlayingView == null) ? -1 :
552 return childIndex;
H A DPlaybackTransportRowPresenter.java222 for (int childIndex = 0; childIndex < heroChildIndex - mThumbHeroIndex + start;
223 childIndex++) {
224 mThumbsBar.setThumbBitmap(childIndex, null);
226 for (int childIndex = heroChildIndex + end - mThumbHeroIndex + 1;
227 childIndex < totalNum; childIndex++) {
228 mThumbsBar.setThumbBitmap(childIndex, null);
236 int childIndex = index - (mThumbHeroIndex - mThumbsBar.getChildCount() / 2);
237 if (childIndex <
[all...]
/frameworks/base/core/java/com/android/internal/app/
H A DMicroAlertController.java78 final int childIndex = scrollParent.indexOfChild(mScrollView);
79 scrollParent.removeViewAt(childIndex);
/frameworks/base/core/java/android/widget/
H A DViewAnimator.java146 * @param childIndex The index of the child to be shown.
150 void showOnly(int childIndex, boolean animate) { argument
154 if (i == childIndex) {
174 * @param childIndex The index of the child to be shown.
176 void showOnly(int childIndex) { argument
178 showOnly(childIndex, animate);
H A DTableRow.java182 int measureNullChild(int childIndex) { argument
183 return mConstrainedColumnWidths[childIndex];
190 void measureChildBeforeLayout(View child, int childIndex, argument
202 columnWidth += constrainedColumnWidths[childIndex + i];
246 super.measureChildBeforeLayout(child, childIndex, widthMeasureSpec,
H A DActionMenuView.java717 protected boolean hasDividerBeforeChildAt(int childIndex) { argument
718 if (childIndex == 0) {
721 final View childBefore = getChildAt(childIndex - 1);
722 final View child = getChildAt(childIndex);
724 if (childIndex < getChildCount() && childBefore instanceof ActionMenuChildView) {
727 if (childIndex > 0 && child instanceof ActionMenuChildView) {
H A DTabWidget.java152 void measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, argument
156 totalWidth + mImposedTabWidths[childIndex], MeasureSpec.EXACTLY);
161 super.measureChildBeforeLayout(child, childIndex,
H A DLinearLayout.java713 * @param childIndex Index of child to check for preceding divider
714 * @return true if there should be a divider before the child at childIndex
717 protected boolean hasDividerBeforeChildAt(int childIndex) { argument
718 if (childIndex == getVirtualChildCount()) {
722 boolean allViewsAreGoneBefore = allViewsAreGoneBefore(childIndex);
734 private boolean allViewsAreGoneBefore(int childIndex) { argument
735 for (int i = childIndex - 1; i >= 0; i--) {
1512 * @param childIndex the index of the null child
1515 int measureNullChild(int childIndex) { argument
1526 * @param childIndex th
1532 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationViewHierarchyManager.java220 for (int childIndex = 0; orderedChildren != null && childIndex < orderedChildren.size();
221 childIndex++) {
222 ExpandableNotificationRow childView = orderedChildren.get(childIndex);
232 parent.addChildNotification(childView, childIndex);
/frameworks/support/fragment/src/main/java/androidx/fragment/app/
H A DFragmentTransitionImpl.java321 for (int childIndex = 0; childIndex < childCount; childIndex++) {
322 final View child = viewGroup.getChildAt(childIndex);
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
H A DQuickQSPanel.java266 int childIndex = getChildIndex(tile.tileView);
268 removeViewAt(childIndex);
271 removeViewAt(childIndex);
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
H A DResourceExpr.java212 private String getChildCode(int childIndex, String defaultValue) { argument
213 if (getChildren().size() <= childIndex) {
216 return getChildren().get(childIndex).toCode().generate();
/frameworks/support/v7/appcompat/src/main/java/androidx/appcompat/widget/
H A DActionMenuView.java732 protected boolean hasSupportDividerBeforeChildAt(int childIndex) { argument
733 if (childIndex == 0) {
736 final View childBefore = getChildAt(childIndex - 1);
737 final View child = getChildAt(childIndex);
739 if (childIndex < getChildCount() && childBefore instanceof ActionMenuChildView) {
742 if (childIndex > 0 && child instanceof ActionMenuChildView) {
H A DLinearLayoutCompat.java560 * @param childIndex Index of child to check for preceding divider
561 * @return true if there should be a divider before the child at childIndex
565 protected boolean hasDividerBeforeChildAt(int childIndex) { argument
566 if (childIndex == 0) {
568 } else if (childIndex == getChildCount()) {
572 for (int i = childIndex - 1; i >= 0; i--) {
1354 * @param childIndex the index of the null child
1357 int measureNullChild(int childIndex) { argument
1368 * @param childIndex the index of the child in this view
1374 void measureChildBeforeLayout(View child, int childIndex, argument
[all...]
/frameworks/base/core/java/android/view/
H A DGhostView.java327 int childIndex = customOrder ? parent.getChildDrawingOrder(childrenCount, i) : i;
329 ? parent.getChildAt(childIndex) : preorderedList.get(childIndex);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DNotificationIconContainer.java280 int childIndex = indexOfChild(child);
281 if (childIndex < getChildCount() - 1 && !isReplacingIcon
282 && mIconStates.get(getChildAt(childIndex + 1)).iconAppearAmount > 0.0f) {
284 mAddAnimationStartIndex = childIndex;
286 mAddAnimationStartIndex = Math.min(mAddAnimationStartIndex, childIndex);

Completed in 426 milliseconds

123