/frameworks/base/core/java/com/android/internal/view/menu/ |
H A D | BaseMenuPresenter.java | 85 int childIndex = 0; 92 if (shouldIncludeItem(childIndex, item)) { 93 final View convertView = parent.getChildAt(childIndex); 103 addItemView(itemView, childIndex); 105 childIndex++; 111 while (childIndex < parent.getChildCount()) { 112 if (!filterLeftoverView(parent, childIndex)) { 113 childIndex++; 122 * @param childIndex Index within the parent to insert at 124 protected void addItemView(View itemView, int childIndex) { argument 138 filterLeftoverView(ViewGroup parent, int childIndex) argument 197 shouldIncludeItem(int childIndex, MenuItemImpl item) argument [all...] |
H A D | IconMenuPresenter.java | 70 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { argument 72 boolean fits = (itemsToShow.size() == mMaxItems && childIndex < mMaxItems) || 73 childIndex < mMaxItems - 1; 78 protected void addItemView(View itemView, int childIndex) { argument 85 super.addItemView(itemView, childIndex); 124 protected boolean filterLeftoverView(ViewGroup parent, int childIndex) { argument 125 if (parent.getChildAt(childIndex) != mMoreView) { 126 return super.filterLeftoverView(parent, childIndex);
|
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/ |
H A D | BaseMenuPresenter.java | 89 int childIndex = 0; 96 if (shouldIncludeItem(childIndex, item)) { 97 final View convertView = parent.getChildAt(childIndex); 107 addItemView(itemView, childIndex); 109 childIndex++; 115 while (childIndex < parent.getChildCount()) { 116 if (!filterLeftoverView(parent, childIndex)) { 117 childIndex++; 126 * @param childIndex Index within the parent to insert at 128 protected void addItemView(View itemView, int childIndex) { argument 142 filterLeftoverView(ViewGroup parent, int childIndex) argument 201 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/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 | 154 void measureChildBeforeLayout(View child, int childIndex, argument 159 totalWidth + mImposedTabWidths[childIndex], MeasureSpec.EXACTLY); 164 super.measureChildBeforeLayout(child, childIndex,
|
H A D | LinearLayout.java | 639 * @param childIndex Index of child to check for preceding divider 640 * @return true if there should be a divider before the child at childIndex 643 protected boolean hasDividerBeforeChildAt(int childIndex) { argument 644 if (childIndex == getVirtualChildCount()) { 648 boolean allViewsAreGoneBefore = allViewsAreGoneBefore(childIndex); 660 private boolean allViewsAreGoneBefore(int childIndex) { argument 661 for (int i = childIndex - 1; i >= 0; i--) { 1442 * @param childIndex the index of the null child 1445 int measureNullChild(int childIndex) { argument 1456 * @param childIndex th 1462 measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, int heightMeasureSpec, int totalHeight) argument [all...] |
H A D | GridView.java | 1983 * Is childIndex a candidate for next focus given the direction the focus 1985 * @param childIndex The index to check. 1988 * @return Whether childIndex is a candidate. 1990 private boolean isCandidateSelection(int childIndex, int direction) { argument 1992 final int invertedIndex = count - 1 - childIndex; 1998 rowStart = childIndex - (childIndex % mNumColumns); 2009 return childIndex == rowStart; 2015 return childIndex == rowEnd; 2021 return childIndex [all...] |
H A D | TableLayout.java | 452 void measureChildBeforeLayout(View child, int childIndex, argument 461 super.measureChildBeforeLayout(child, childIndex,
|
H A D | ActionMenuPresenter.java | 266 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { argument 489 public boolean filterLeftoverView(ViewGroup parent, int childIndex) { argument 490 if (parent.getChildAt(childIndex) == mOverflowButton) return false; 491 return super.filterLeftoverView(parent, childIndex);
|
H A D | AdapterViewAnimator.java | 454 * @param childIndex The index of the child to be shown. 458 void showOnly(int childIndex, boolean animate) { argument 478 int newWindowStartUnbounded = childIndex - mActiveOffset;
|
H A D | ExpandableListView.java | 521 void drawDivider(Canvas canvas, Rect bounds, int childIndex) { argument 522 int flatListPosition = childIndex + mFirstPosition;
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
H A D | ResourceExpr.java | 178 private String getChildCode(int childIndex, String defaultValue) { argument 179 if (getChildren().size() <= childIndex) { 182 return WriterPackage.toCode(getChildren().get(childIndex), false).generate();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/ |
H A D | NotificationChildrenContainer.java | 157 * @param childIndex the index to add it at, if -1 it will be added at the end 159 public void addNotification(ExpandableNotificationRow row, int childIndex) { argument 160 int newIndex = childIndex < 0 ? mChildren.size() : childIndex; 173 int childIndex = mChildren.indexOf(row); 177 View divider = mDividers.remove(Math.max(childIndex - 1, 0));
|
H A D | StackScrollState.java | 247 private View getNextChildNotGone(int childIndex) { argument 249 for (int i = childIndex + 1; i < childCount; i++) {
|
H A D | StackScrollAlgorithm.java | 322 int childIndex = algorithmState.visibleChildren.indexOf(draggedView); 323 if (childIndex >= 0 && childIndex < algorithmState.visibleChildren.size() - 1) { 324 View nextChild = algorithmState.visibleChildren.get(childIndex + 1);
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
H A D | ActionMenuView.java | 718 protected boolean hasSupportDividerBeforeChildAt(int childIndex) { argument 719 if (childIndex == 0) { 722 final View childBefore = getChildAt(childIndex - 1); 723 final View child = getChildAt(childIndex); 725 if (childIndex < getChildCount() && childBefore instanceof ActionMenuChildView) { 728 if (childIndex > 0 && child instanceof ActionMenuChildView) {
|
H A D | LinearLayoutCompat.java | 556 * @param childIndex Index of child to check for preceding divider 557 * @return true if there should be a divider before the child at childIndex 560 protected boolean hasDividerBeforeChildAt(int childIndex) { argument 561 if (childIndex == 0) { 563 } else if (childIndex == getChildCount()) { 567 for (int i = childIndex - 1; i >= 0; i--) { 1350 * @param childIndex the index of the null child 1353 int measureNullChild(int childIndex) { argument 1364 * @param childIndex the index of the child in this view 1370 void measureChildBeforeLayout(View child, int childIndex, argument [all...] |
H A D | ActionMenuPresenter.java | 222 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { argument 280 public boolean filterLeftoverView(ViewGroup parent, int childIndex) { argument 281 if (parent.getChildAt(childIndex) == mOverflowButton) return false; 282 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 | 1723 int childIndex = customOrder ? getChildDrawingOrder(childrenCount, i) : i; 1725 ? children[childIndex] : preorderedList.get(childIndex); 2010 int childIndex = customOrder ? getChildDrawingOrder(childrenCount, i) : i; 2012 ? children[childIndex] : preorderedList.get(childIndex); 2165 final int childIndex = customOrder 2168 ? children[childIndex] : preorderedList.get(childIndex); 2201 // childIndex point [all...] |
/frameworks/support/v4/api21/android/support/v4/app/ |
H A D | FragmentTransitionCompat21.java | 256 for (int childIndex = 0; childIndex < childCount; childIndex++) { 257 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);
|