Searched defs:childIndex (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/view/menu/
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);
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...]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
H A DResourceExpr.java189 private String getChildCode(int childIndex, String defaultValue) { argument
190 if (getChildren().size() <= childIndex) {
193 return getChildren().get(childIndex).toCode().generate();
/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 DTabWidget.java147 void measureChildBeforeLayout(View child, int childIndex, int widthMeasureSpec, int totalWidth, argument
151 totalWidth + mImposedTabWidths[childIndex], MeasureSpec.EXACTLY);
156 super.measureChildBeforeLayout(child, childIndex,
H A DTableLayout.java452 void measureChildBeforeLayout(View child, int childIndex, argument
461 super.measureChildBeforeLayout(child, childIndex,
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.java716 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 DActionMenuPresenter.java264 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { argument
487 public boolean filterLeftoverView(ViewGroup parent, int childIndex) { argument
488 if (parent.getChildAt(childIndex) == mOverflowButton) return false;
489 return super.filterLeftoverView(parent, childIndex);
H A DAdapterViewAnimator.java453 * @param childIndex The index of the child to be shown.
457 void showOnly(int childIndex, boolean animate) { argument
477 int newWindowStartUnbounded = childIndex - mActiveOffset;
H A DExpandableListView.java521 void drawDivider(Canvas canvas, Rect bounds, int childIndex) { argument
522 int flatListPosition = childIndex + mFirstPosition;
H A DGridView.java1971 * Is childIndex a candidate for next focus given the direction the focus
1973 * @param childIndex The index to check.
1976 * @return Whether childIndex is a candidate.
1978 private boolean isCandidateSelection(int childIndex, int direction) { argument
1980 final int invertedIndex = count - 1 - childIndex;
1986 rowStart = childIndex - (childIndex % mNumColumns);
1997 return childIndex == rowStart;
2003 return childIndex == rowEnd;
2009 return childIndex
[all...]
H A DLinearLayout.java649 * @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 DListView.java1135 final int childIndex = mPosition - mFirstPosition;
1136 final View child = getChildAt(childIndex);
2750 * @param childIndex The view group index of the child.
2753 private void measureAndAdjustDown(View child, int childIndex, int numChildren) { argument
2762 for (int i = childIndex + 1; i < numChildren; i++) {
3511 * @param childIndex The index of child (of the View) above the divider.
3515 void drawDivider(Canvas canvas, Rect bounds, int childIndex) { argument
H A DStackView.java424 void showOnly(int childIndex, boolean animate) { argument
425 super.showOnly(childIndex, animate);
H A DRemoteViews.java2428 public void setDisplayedChild(int viewId, int childIndex) { argument
2429 setInt(viewId, "setDisplayedChild", childIndex);
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DBaseMenuPresenter.java89 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/core/tests/coretests/src/android/util/
H A DListScenario.java570 * @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/support/v7/appcompat/src/android/support/v7/widget/
H A DActionMenuPresenter.java224 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);
H A DActionMenuView.java717 protected boolean hasSupportDividerBeforeChildAt(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 DLinearLayoutCompat.java554 * @param childIndex Index of child to check for preceding divider
555 * @return true if there should be a divider before the child at childIndex
558 protected boolean hasDividerBeforeChildAt(int childIndex) { argument
559 if (childIndex == 0) {
561 } else if (childIndex == getChildCount()) {
565 for (int i = childIndex - 1; i >= 0; i--) {
1348 * @param childIndex the index of the null child
1351 int measureNullChild(int childIndex) { argument
1362 * @param childIndex the index of the child in this view
1368 void measureChildBeforeLayout(View child, int childIndex, argument
[all...]
/frameworks/base/libs/hwui/
H A DDisplayListCanvas.cpp563 int childIndex = mDisplayList->addChild(op); local
567 chunk.endChildIndex = childIndex + 1;
H A DRecordingCanvas.cpp571 int childIndex = mDisplayList->addChild(op); local
575 chunk.endChildIndex = childIndex + 1;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DNotificationChildrenContainer.java195 * @param childIndex the index to add it at, if -1 it will be added at the end
197 public void addNotification(ExpandableNotificationRow row, int childIndex) { argument
198 int newIndex = childIndex < 0 ? mChildren.size() : childIndex;
211 int childIndex = mChildren.indexOf(row);
215 final View divider = mDividers.remove(childIndex);
/frameworks/base/core/java/com/android/internal/widget/
H A DViewPager.java645 final int result = ((LayoutParams) mDrawingOrderedChildren.get(index).getLayoutParams()).childIndex;
1079 lp.childIndex = i;
2828 int childIndex; field in class:ViewPager.LayoutParams

Completed in 1860 milliseconds

12