/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | BaseMenuPresenter.java | 87 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 D | IconMenuPresenter.java | 72 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/android/support/v7/view/menu/ |
H A D | BaseMenuPresenter.java | 93 int childIndex = 0; 100 if (shouldIncludeItem(childIndex, item)) { 101 final View convertView = parent.getChildAt(childIndex); 111 addItemView(itemView, childIndex); 113 childIndex++; 119 while (childIndex < parent.getChildCount()) { 120 if (!filterLeftoverView(parent, childIndex)) { 121 childIndex++; 130 * @param childIndex Index within the parent to insert at 132 protected void addItemView(View itemView, int childIndex) { argument 146 filterLeftoverView(ViewGroup parent, int childIndex) argument 205 shouldIncludeItem(int childIndex, MenuItemImpl item) argument [all...] |
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/ |
H A D | PrintOptionsLayout.java | 72 final int childIndex = row * mColumnCount + col; 74 if (childIndex >= childCount) { 78 View child = getChildAt(childIndex); 137 final int childIndex = row * mColumnCount + col; 139 if (childIndex >= childCount) { 143 View child = getChildAt(childIndex);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | AbstractMediaItemPresenter.java | 528 int childIndex = calculateMediaItemNumberFlipperIndex(vh); 529 if (childIndex != -1 && vh.mMediaItemNumberViewFlipper.getDisplayedChild() != childIndex) { 530 vh.mMediaItemNumberViewFlipper.setDisplayedChild(childIndex); 535 int childIndex = -1; 539 childIndex = (vh.mMediaItemNumberView == null) ? -1 : 543 childIndex = (vh.mMediaItemPausedView == null) ? -1 : 547 childIndex = (vh.mMediaItemPlayingView == null) ? -1 : 550 return childIndex;
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | MicroAlertController.java | 78 final int childIndex = scrollParent.indexOfChild(mScrollView); 79 scrollParent.removeViewAt(childIndex);
|
/frameworks/base/core/java/android/widget/ |
H A D | ViewAnimator.java | 146 * @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 D | TableRow.java | 182 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 D | ActionMenuView.java | 716 protected boolean hasDividerBeforeChildAt(int childIndex) { argument 717 if (childIndex == 0) { 720 final View childBefore = getChildAt(childIndex - 1); 721 final View child = getChildAt(childIndex); 723 if (childIndex < getChildCount() && childBefore instanceof ActionMenuChildView) { 726 if (childIndex > 0 && child instanceof ActionMenuChildView) {
|
H A D | TabWidget.java | 147 void measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, argument 151 totalWidth + mImposedTabWidths[childIndex], MeasureSpec.EXACTLY); 156 super.measureChildBeforeLayout(child, childIndex,
|
H A D | LinearLayout.java | 649 * @param childIndex Index of child to check for preceding divider 650 * @return true if there should be a divider before the child at childIndex 653 protected boolean hasDividerBeforeChildAt(int childIndex) { argument 654 if (childIndex == getVirtualChildCount()) { 658 boolean allViewsAreGoneBefore = allViewsAreGoneBefore(childIndex); 670 private boolean allViewsAreGoneBefore(int childIndex) { argument 671 for (int i = childIndex - 1; i >= 0; i--) { 1441 * @param childIndex the index of the null child 1444 int measureNullChild(int childIndex) { argument 1455 * @param childIndex th 1461 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument [all...] |
H A D | GridView.java | 1978 * Is childIndex a candidate for next focus given the direction the focus 1980 * @param childIndex The index to check. 1983 * @return Whether childIndex is a candidate. 1985 private boolean isCandidateSelection(int childIndex, int direction) { argument 1987 final int invertedIndex = count - 1 - childIndex; 1993 rowStart = childIndex - (childIndex % mNumColumns); 2004 return childIndex == rowStart; 2010 return childIndex == rowEnd; 2016 return childIndex [all...] |
H A D | TableLayout.java | 452 void measureChildBeforeLayout(View child, int childIndex, argument 461 super.measureChildBeforeLayout(child, childIndex,
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
H A D | QuickQSPanel.java | 202 int childIndex = getChildIndex(tile.tileView); 204 removeViewAt(childIndex); 207 removeViewAt(childIndex);
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
H A D | ResourceExpr.java | 189 private String getChildCode(int childIndex, String defaultValue) { argument 190 if (getChildren().size() <= childIndex) { 193 return getChildren().get(childIndex).toCode().generate();
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActionMenuView.java | 729 protected boolean hasSupportDividerBeforeChildAt(int childIndex) { argument 730 if (childIndex == 0) { 733 final View childBefore = getChildAt(childIndex - 1); 734 final View child = getChildAt(childIndex); 736 if (childIndex < getChildCount() && childBefore instanceof ActionMenuChildView) { 739 if (childIndex > 0 && child instanceof ActionMenuChildView) {
|
H A D | LinearLayoutCompat.java | 560 * @param childIndex Index of child to check for preceding divider 561 * @return true if there should be a divider before the child at childIndex 564 protected boolean hasDividerBeforeChildAt(int childIndex) { argument 565 if (childIndex == 0) { 567 } else if (childIndex == getChildCount()) { 571 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...] |
H A D | ActionMenuPresenter.java | 224 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { argument 282 public boolean filterLeftoverView(ViewGroup parent, int childIndex) { argument 283 if (parent.getChildAt(childIndex) == mOverflowButton) return false; 284 return super.filterLeftoverView(parent, childIndex);
|
/frameworks/base/core/java/android/view/ |
H A D | GhostView.java | 327 int childIndex = customOrder ? parent.getChildDrawingOrder(childrenCount, i) : i; 329 ? parent.getChildAt(childIndex) : preorderedList.get(childIndex);
|
H A D | ViewGroup.java | 1692 final int childIndex = getAndVerifyPreorderedIndex(childrenCount, i, customOrder); 1693 final View child = getAndVerifyPreorderedView(preorderedList, children, childIndex); 1731 final int childIndex; 1739 childIndex = childIndex1; 1741 childIndex = i; 1743 return childIndex; 1773 final int childIndex = getAndVerifyPreorderedIndex( 1776 preorderedList, children, childIndex); 2067 final int childIndex = getAndVerifyPreorderedIndex(childrenCount, i, customOrder); 2068 final View child = getAndVerifyPreorderedView(preorderedList, children, childIndex); 3051 getAndVerifyPreorderedView(ArrayList<View> preorderedList, View[] children, int childIndex) argument [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | NotificationActionListLayout.java | 238 final int childIndex = start + dir * i; 239 final View child = getChildAt(childIndex);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | StackScrollAlgorithm.java | 216 int childIndex = algorithmState.visibleChildren.indexOf(draggedView); 217 if (childIndex >= 0 && childIndex < algorithmState.visibleChildren.size() - 1) { 218 View nextChild = algorithmState.visibleChildren.get(childIndex + 1);
|
H A D | NotificationChildrenContainer.java | 198 * @param childIndex the index to add it at, if -1 it will be added at the end 200 public void addNotification(ExpandableNotificationRow row, int childIndex) { argument 201 int newIndex = childIndex < 0 ? mChildren.size() : childIndex; 214 int childIndex = mChildren.indexOf(row); 218 final View divider = mDividers.remove(childIndex);
|
/frameworks/support/fragment/api21/android/support/v4/app/ |
H A D | FragmentTransitionCompat21.java | 296 for (int childIndex = 0; childIndex < childCount; childIndex++) { 297 final View child = viewGroup.getChildAt(childIndex);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | ListScenario.java | 570 * @param childIndex The index into the viewgroup children (i.e the children that are 574 public void requestRectangleOnScreen(int childIndex, final Rect rect) { argument 575 final View child = getListView().getChildAt(childIndex);
|