Home
last modified time | relevance | path

Searched refs:childIndex (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
DBaseMenuPresenter.java89 int childIndex = 0; in updateMenuView() local
96 if (shouldIncludeItem(childIndex, item)) { in updateMenuView()
97 final View convertView = parent.getChildAt(childIndex); in updateMenuView()
108 addItemView(itemView, childIndex); in updateMenuView()
110 childIndex++; in updateMenuView()
116 while (childIndex < parent.getChildCount()) { in updateMenuView()
117 if (!filterLeftoverView(parent, childIndex)) { in updateMenuView()
118 childIndex++; in updateMenuView()
129 protected void addItemView(View itemView, int childIndex) { in addItemView() argument
134 ((ViewGroup) mMenuView).addView(itemView, childIndex); in addItemView()
[all …]
DActionMenuView.java555 protected boolean hasSupportDividerBeforeChildAt(int childIndex) { in hasSupportDividerBeforeChildAt() argument
556 final View childBefore = getChildAt(childIndex - 1); in hasSupportDividerBeforeChildAt()
557 final View child = getChildAt(childIndex); in hasSupportDividerBeforeChildAt()
559 if (childIndex < getChildCount() && childBefore instanceof ActionMenuChildView) { in hasSupportDividerBeforeChildAt()
562 if (childIndex > 0 && child instanceof ActionMenuChildView) { in hasSupportDividerBeforeChildAt()
DActionMenuPresenter.java185 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { in shouldIncludeItem() argument
241 public boolean filterLeftoverView(ViewGroup parent, int childIndex) { in filterLeftoverView() argument
242 if (parent.getChildAt(childIndex) == mOverflowButton) { in filterLeftoverView()
245 return super.filterLeftoverView(parent, childIndex); in filterLeftoverView()
/frameworks/base/core/java/com/android/internal/view/menu/
DBaseMenuPresenter.java85 int childIndex = 0; in updateMenuView() local
92 if (shouldIncludeItem(childIndex, item)) { in updateMenuView()
93 final View convertView = parent.getChildAt(childIndex); in updateMenuView()
103 addItemView(itemView, childIndex); in updateMenuView()
105 childIndex++; in updateMenuView()
111 while (childIndex < parent.getChildCount()) { in updateMenuView()
112 if (!filterLeftoverView(parent, childIndex)) { in updateMenuView()
113 childIndex++; in updateMenuView()
124 protected void addItemView(View itemView, int childIndex) { in addItemView() argument
129 ((ViewGroup) mMenuView).addView(itemView, childIndex); in addItemView()
[all …]
DIconMenuPresenter.java70 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { in shouldIncludeItem() argument
72 boolean fits = (itemsToShow.size() == mMaxItems && childIndex < mMaxItems) || in shouldIncludeItem()
73 childIndex < mMaxItems - 1; in shouldIncludeItem()
78 protected void addItemView(View itemView, int childIndex) {
85 super.addItemView(itemView, childIndex);
124 protected boolean filterLeftoverView(ViewGroup parent, int childIndex) {
125 if (parent.getChildAt(childIndex) != mMoreView) {
126 return super.filterLeftoverView(parent, childIndex);
DActionMenuView.java558 protected boolean hasDividerBeforeChildAt(int childIndex) { in hasDividerBeforeChildAt() argument
559 if (childIndex == 0) { in hasDividerBeforeChildAt()
562 final View childBefore = getChildAt(childIndex - 1); in hasDividerBeforeChildAt()
563 final View child = getChildAt(childIndex); in hasDividerBeforeChildAt()
565 if (childIndex < getChildCount() && childBefore instanceof ActionMenuChildView) { in hasDividerBeforeChildAt()
568 if (childIndex > 0 && child instanceof ActionMenuChildView) { in hasDividerBeforeChildAt()
DActionMenuPresenter.java206 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { in shouldIncludeItem() argument
264 public boolean filterLeftoverView(ViewGroup parent, int childIndex) { in filterLeftoverView() argument
265 if (parent.getChildAt(childIndex) == mOverflowButton) return false; in filterLeftoverView()
266 return super.filterLeftoverView(parent, childIndex); in filterLeftoverView()
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
DLinearLayoutICS.java86 final int childIndex = indexOfChild(child); in measureChildWithMargins() local
93 if (hasSupportDividerBeforeChildAt(childIndex)) { in measureChildWithMargins()
95 } else if (childIndex == count - 1 && hasSupportDividerBeforeChildAt(count)) { in measureChildWithMargins()
99 if (hasSupportDividerBeforeChildAt(childIndex)) { in measureChildWithMargins()
101 } else if (childIndex == count - 1 && hasSupportDividerBeforeChildAt(count)) { in measureChildWithMargins()
175 protected boolean hasSupportDividerBeforeChildAt(int childIndex) { in hasSupportDividerBeforeChildAt() argument
176 if (childIndex == 0) { in hasSupportDividerBeforeChildAt()
178 } else if (childIndex == getChildCount()) { in hasSupportDividerBeforeChildAt()
182 for (int i = childIndex - 1; i >= 0; i--) { in hasSupportDividerBeforeChildAt()
/frameworks/base/core/java/android/widget/
DViewAnimator.java151 void showOnly(int childIndex, boolean animate) { in showOnly() argument
155 if (i == childIndex) { in showOnly()
177 void showOnly(int childIndex) { in showOnly() argument
179 showOnly(childIndex, animate); in showOnly()
DTableRow.java183 int measureNullChild(int childIndex) { in measureNullChild() argument
184 return mConstrainedColumnWidths[childIndex]; in measureNullChild()
191 void measureChildBeforeLayout(View child, int childIndex, in measureChildBeforeLayout() argument
203 columnWidth += constrainedColumnWidths[childIndex + i]; in measureChildBeforeLayout()
247 super.measureChildBeforeLayout(child, childIndex, widthMeasureSpec, in measureChildBeforeLayout()
DLinearLayout.java601 protected boolean hasDividerBeforeChildAt(int childIndex) { in hasDividerBeforeChildAt() argument
602 if (childIndex == 0) { in hasDividerBeforeChildAt()
604 } else if (childIndex == getChildCount()) { in hasDividerBeforeChildAt()
608 for (int i = childIndex - 1; i >= 0; i--) { in hasDividerBeforeChildAt()
1384 int measureNullChild(int childIndex) { in measureNullChild() argument
1401 void measureChildBeforeLayout(View child, int childIndex, in measureChildBeforeLayout() argument
1597 int childIndex = start + dir * i; in layoutHorizontal() local
1598 final View child = getVirtualChildAt(childIndex); in layoutHorizontal()
1601 childLeft += measureNullChild(childIndex); in layoutHorizontal()
1655 if (hasDividerBeforeChildAt(childIndex)) { in layoutHorizontal()
[all …]
DTabWidget.java152 void measureChildBeforeLayout(View child, int childIndex, in measureChildBeforeLayout() argument
157 totalWidth + mImposedTabWidths[childIndex], MeasureSpec.EXACTLY); in measureChildBeforeLayout()
162 super.measureChildBeforeLayout(child, childIndex, in measureChildBeforeLayout()
DGridView.java1897 private boolean isCandidateSelection(int childIndex, int direction) { in isCandidateSelection() argument
1899 final int invertedIndex = count - 1 - childIndex; in isCandidateSelection()
1905 rowStart = childIndex - (childIndex % mNumColumns); in isCandidateSelection()
1916 return childIndex == rowStart; in isCandidateSelection()
1922 return childIndex == rowEnd; in isCandidateSelection()
1928 return childIndex == rowStart && rowStart == 0; in isCandidateSelection()
1931 return childIndex == rowEnd && rowEnd == count - 1; in isCandidateSelection()
DTableLayout.java455 void measureChildBeforeLayout(View child, int childIndex, in measureChildBeforeLayout() argument
464 super.measureChildBeforeLayout(child, childIndex, in measureChildBeforeLayout()
DAdapterViewAnimator.java455 void showOnly(int childIndex, boolean animate) { in showOnly() argument
475 int newWindowStartUnbounded = childIndex - mActiveOffset; in showOnly()
DExpandableListView.java519 void drawDivider(Canvas canvas, Rect bounds, int childIndex) { in drawDivider() argument
520 int flatListPosition = childIndex + mFirstPosition; in drawDivider()
DAbsListView.java5147 final int childIndex = mSelectedPosition - mFirstPosition; in trackMotionScroll() local
5148 if (childIndex >= 0 && childIndex < getChildCount()) { in trackMotionScroll()
5149 positionSelector(mSelectedPosition, getChildAt(childIndex)); in trackMotionScroll()
5152 final int childIndex = mSelectorPosition - mFirstPosition; in trackMotionScroll() local
5153 if (childIndex >= 0 && childIndex < getChildCount()) { in trackMotionScroll()
5154 positionSelector(INVALID_POSITION, getChildAt(childIndex)); in trackMotionScroll()
DStackView.java418 void showOnly(int childIndex, boolean animate) { in showOnly() argument
419 super.showOnly(childIndex, animate); in showOnly()
DListView.java2619 private void measureAndAdjustDown(View child, int childIndex, int numChildren) { in measureAndAdjustDown() argument
2628 for (int i = childIndex + 1; i < numChildren; i++) { in measureAndAdjustDown()
3379 void drawDivider(Canvas canvas, Rect bounds, int childIndex) {
DRemoteViews.java1859 public void setDisplayedChild(int viewId, int childIndex) { in setDisplayedChild() argument
1860 setInt(viewId, "setDisplayedChild", childIndex); in setDisplayedChild()
/frameworks/base/core/tests/coretests/src/android/util/
DListScenario.java574 public void requestRectangleOnScreen(int childIndex, final Rect rect) { in requestRectangleOnScreen() argument
575 final View child = getListView().getChildAt(childIndex); in requestRectangleOnScreen()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardWidgetPager.java892 protected boolean shouldSetTopAlignedPivotForWidget(int childIndex) {
893 return !isCameraPage(childIndex) && super.shouldSetTopAlignedPivotForWidget(childIndex);
/frameworks/base/services/input/
DInputReader.cpp5757 uint32_t childIndex = parentIndex * 2 + 1; in assignPointerIds() local
5758 if (childIndex >= heapSize) { in assignPointerIds()
5762 if (childIndex + 1 < heapSize in assignPointerIds()
5763 && heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds()
5764 childIndex += 1; in assignPointerIds()
5767 if (heap[parentIndex].distance <= heap[childIndex].distance) { in assignPointerIds()
5771 swap(heap[parentIndex], heap[childIndex]); in assignPointerIds()
5772 parentIndex = childIndex; in assignPointerIds()
5804 uint32_t childIndex = parentIndex * 2 + 1; in assignPointerIds() local
5805 if (childIndex >= heapSize) { in assignPointerIds()
[all …]
/frameworks/base/core/java/android/view/
DViewGroup.java1489 final int childIndex = customChildOrder in dispatchHoverEvent() local
1491 final View child = children[childIndex]; in dispatchHoverEvent()
1770 final int childIndex = customOrder ? getChildDrawingOrder(childrenCount, i) : i; in dispatchGenericPointerEvent() local
1771 final View child = children[childIndex]; in dispatchGenericPointerEvent()
1900 final int childIndex = customOrder ? in dispatchTouchEvent() local
1902 final View child = children[childIndex]; in dispatchTouchEvent()
1920 mLastTouchDownIndex = childIndex; in dispatchTouchEvent()
/frameworks/support/v4/java/android/support/v4/view/
DViewPager.java643 …inal int result = ((LayoutParams) mDrawingOrderedChildren.get(index).getLayoutParams()).childIndex; in getChildDrawingOrder()
1076 lp.childIndex = i;
2864 int childIndex;

12