/frameworks/base/core/java/com/android/internal/view/menu/ |
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);
|
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 193 shouldIncludeItem(int childIndex, MenuItemImpl item) argument [all...] |
H A D | ActionMenuView.java | 502 protected boolean hasDividerBeforeChildAt(int childIndex) { argument 503 final View childBefore = getChildAt(childIndex - 1); 504 final View child = getChildAt(childIndex); 506 if (childIndex < getChildCount() && childBefore instanceof ActionMenuChildView) { 509 if (childIndex > 0 && child instanceof ActionMenuChildView) {
|
H A D | ActionMenuPresenter.java | 181 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { argument 233 public boolean filterLeftoverView(ViewGroup parent, int childIndex) { argument 234 if (parent.getChildAt(childIndex) == mOverflowButton) return false; 235 return super.filterLeftoverView(parent, childIndex);
|
/frameworks/base/core/java/android/widget/ |
H A D | ViewAnimator.java | 145 * @param childIndex The index of the child to be shown. 149 void showOnly(int childIndex, boolean animate) { argument 153 if (i == childIndex) { 173 * @param childIndex The index of the child to be shown. 175 void showOnly(int childIndex) { argument 177 showOnly(childIndex, animate);
|
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 | TableLayout.java | 447 void measureChildBeforeLayout(View child, int childIndex, argument 456 super.measureChildBeforeLayout(child, childIndex,
|
H A D | TableRow.java | 181 int measureNullChild(int childIndex) { argument 182 return mConstrainedColumnWidths[childIndex]; 189 void measureChildBeforeLayout(View child, int childIndex, argument 201 columnWidth += constrainedColumnWidths[childIndex + i]; 245 super.measureChildBeforeLayout(child, childIndex, widthMeasureSpec,
|
H A D | AdapterViewAnimator.java | 444 * @param childIndex The index of the child to be shown. 448 void showOnly(int childIndex, boolean animate) { argument 468 int newWindowStartUnbounded = childIndex - mActiveOffset;
|
H A D | ExpandableListView.java | 389 void drawDivider(Canvas canvas, Rect bounds, int childIndex) { argument 390 int flatListPosition = childIndex + mFirstPosition;
|
H A D | GridView.java | 1858 * Is childIndex a candidate for next focus given the direction the focus 1860 * @param childIndex The index to check. 1863 * @return Whether childIndex is a candidate. 1865 private boolean isCandidateSelection(int childIndex, int direction) { argument 1867 final int invertedIndex = count - 1 - childIndex; 1873 rowStart = childIndex - (childIndex % mNumColumns); 1884 return childIndex == rowStart; 1890 return childIndex == rowEnd; 1896 return childIndex [all...] |
H A D | LinearLayout.java | 562 * @param childIndex Index of child to check for preceding divider 563 * @return true if there should be a divider before the child at childIndex 566 protected boolean hasDividerBeforeChildAt(int childIndex) { argument 567 if (childIndex == 0) { 569 } else if (childIndex == getChildCount()) { 573 for (int i = childIndex - 1; i >= 0; i--) { 1346 * @param childIndex the index of the null child 1349 int measureNullChild(int childIndex) { argument 1360 * @param childIndex the index of the child in this view 1366 void measureChildBeforeLayout(View child, int childIndex, argument [all...] |
H A D | RemoteViews.java | 1139 public void setDisplayedChild(int viewId, int childIndex) { argument 1140 setInt(viewId, "setDisplayedChild", childIndex);
|
H A D | ListView.java | 2498 * @param childIndex The view group index of the child. 2501 private void measureAndAdjustDown(View child, int childIndex, int numChildren) { argument 2510 for (int i = childIndex + 1; i < numChildren; i++) { 3235 * @param childIndex The index of child (of the View) above the divider. 3239 void drawDivider(Canvas canvas, Rect bounds, int childIndex) { argument
|
H A D | StackView.java | 415 void showOnly(int childIndex, boolean animate) { argument 416 super.showOnly(childIndex, animate);
|
/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);
|
/frameworks/base/services/input/ |
H A D | InputReader.cpp | 5320 uint32_t childIndex = parentIndex * 2 + 1; local 5321 if (childIndex >= heapSize) { 5325 if (childIndex + 1 < heapSize 5326 && heap[childIndex + 1].distance < heap[childIndex].distance) { 5327 childIndex += 1; 5330 if (heap[parentIndex].distance <= heap[childIndex].distance) { 5334 swap(heap[parentIndex], heap[childIndex]); 5335 parentIndex = childIndex; 5367 uint32_t childIndex local [all...] |