Home
last modified time | relevance | path

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

12

/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);
/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()
107 addItemView(itemView, childIndex); in updateMenuView()
109 childIndex++; in updateMenuView()
115 while (childIndex < parent.getChildCount()) { in updateMenuView()
116 if (!filterLeftoverView(parent, childIndex)) { in updateMenuView()
117 childIndex++; in updateMenuView()
128 protected void addItemView(View itemView, int childIndex) { in addItemView() argument
133 ((ViewGroup) mMenuView).addView(itemView, childIndex); in addItemView()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
DPrintOptionsLayout.java72 final int childIndex = row * mColumnCount + col; in onMeasure() local
74 if (childIndex >= childCount) { in onMeasure()
78 View child = getChildAt(childIndex); in onMeasure()
137 final int childIndex = row * mColumnCount + col; in onLayout() local
139 if (childIndex >= childCount) { in onLayout()
143 View child = getChildAt(childIndex); in onLayout()
/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()
DActionMenuView.java687 protected boolean hasDividerBeforeChildAt(int childIndex) { in hasDividerBeforeChildAt() argument
688 if (childIndex == 0) { in hasDividerBeforeChildAt()
691 final View childBefore = getChildAt(childIndex - 1); in hasDividerBeforeChildAt()
692 final View child = getChildAt(childIndex); in hasDividerBeforeChildAt()
694 if (childIndex < getChildCount() && childBefore instanceof ActionMenuChildView) { in hasDividerBeforeChildAt()
697 if (childIndex > 0 && child instanceof ActionMenuChildView) { in hasDividerBeforeChildAt()
DLinearLayout.java626 protected boolean hasDividerBeforeChildAt(int childIndex) { in hasDividerBeforeChildAt() argument
627 if (childIndex == 0) { in hasDividerBeforeChildAt()
629 } else if (childIndex == getChildCount()) { in hasDividerBeforeChildAt()
633 for (int i = childIndex - 1; i >= 0; i--) { in hasDividerBeforeChildAt()
1416 int measureNullChild(int childIndex) { in measureNullChild() argument
1433 void measureChildBeforeLayout(View child, int childIndex, in measureChildBeforeLayout() argument
1629 int childIndex = start + dir * i; in layoutHorizontal() local
1630 final View child = getVirtualChildAt(childIndex); in layoutHorizontal()
1633 childLeft += measureNullChild(childIndex); in layoutHorizontal()
1687 if (hasDividerBeforeChildAt(childIndex)) { in layoutHorizontal()
[all …]
DTabWidget.java155 void measureChildBeforeLayout(View child, int childIndex, in measureChildBeforeLayout() argument
160 totalWidth + mImposedTabWidths[childIndex], MeasureSpec.EXACTLY); in measureChildBeforeLayout()
165 super.measureChildBeforeLayout(child, childIndex, in measureChildBeforeLayout()
DActionMenuPresenter.java198 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { in shouldIncludeItem() argument
256 public boolean filterLeftoverView(ViewGroup parent, int childIndex) { in filterLeftoverView() argument
257 if (parent.getChildAt(childIndex) == mOverflowButton) return false; in filterLeftoverView()
258 return super.filterLeftoverView(parent, childIndex); in filterLeftoverView()
DGridView.java1985 private boolean isCandidateSelection(int childIndex, int direction) { in isCandidateSelection() argument
1987 final int invertedIndex = count - 1 - childIndex; in isCandidateSelection()
1993 rowStart = childIndex - (childIndex % mNumColumns); in isCandidateSelection()
2004 return childIndex == rowStart; in isCandidateSelection()
2010 return childIndex == rowEnd; in isCandidateSelection()
2016 return childIndex == rowStart && rowStart == 0; in isCandidateSelection()
2019 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.java460 void showOnly(int childIndex, boolean animate) { in showOnly() argument
480 int newWindowStartUnbounded = childIndex - mActiveOffset; in showOnly()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActionMenuView.java695 protected boolean hasSupportDividerBeforeChildAt(int childIndex) { in hasSupportDividerBeforeChildAt() argument
696 if (childIndex == 0) { in hasSupportDividerBeforeChildAt()
699 final View childBefore = getChildAt(childIndex - 1); in hasSupportDividerBeforeChildAt()
700 final View child = getChildAt(childIndex); in hasSupportDividerBeforeChildAt()
702 if (childIndex < getChildCount() && childBefore instanceof ActionMenuChildView) { in hasSupportDividerBeforeChildAt()
705 if (childIndex > 0 && child instanceof ActionMenuChildView) { in hasSupportDividerBeforeChildAt()
DLinearLayoutCompat.java560 protected boolean hasDividerBeforeChildAt(int childIndex) { in hasDividerBeforeChildAt() argument
561 if (childIndex == 0) { in hasDividerBeforeChildAt()
563 } else if (childIndex == getChildCount()) { in hasDividerBeforeChildAt()
567 for (int i = childIndex - 1; i >= 0; i--) { in hasDividerBeforeChildAt()
1353 int measureNullChild(int childIndex) { in measureNullChild() argument
1370 void measureChildBeforeLayout(View child, int childIndex, in measureChildBeforeLayout() argument
1567 int childIndex = start + dir * i; in layoutHorizontal() local
1568 final View child = getVirtualChildAt(childIndex); in layoutHorizontal()
1571 childLeft += measureNullChild(childIndex); in layoutHorizontal()
1625 if (hasDividerBeforeChildAt(childIndex)) { in layoutHorizontal()
[all …]
DActionMenuPresenter.java197 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { in shouldIncludeItem() argument
255 public boolean filterLeftoverView(ViewGroup parent, int childIndex) { in filterLeftoverView() argument
256 if (parent.getChildAt(childIndex) == mOverflowButton) return false; in filterLeftoverView()
257 return super.filterLeftoverView(parent, childIndex); in filterLeftoverView()
/frameworks/base/core/java/android/view/
DGhostView.java333 int childIndex = customOrder ? parent.getChildDrawingOrder(childrenCount, i) : i; in isOnTop() local
335 ? parent.getChildAt(childIndex) : preorderedList.get(childIndex); in isOnTop()
DViewGroup.java1578 int childIndex = customOrder ? getChildDrawingOrder(childrenCount, i) : i; in dispatchHoverEvent() local
1580 ? children[childIndex] : preorderedList.get(childIndex); in dispatchHoverEvent()
1862 int childIndex = customOrder ? getChildDrawingOrder(childrenCount, i) : i; in dispatchGenericPointerEvent() local
1864 ? children[childIndex] : preorderedList.get(childIndex); in dispatchGenericPointerEvent()
2017 final int childIndex = customOrder in dispatchTouchEvent() local
2020 ? children[childIndex] : preorderedList.get(childIndex); in dispatchTouchEvent()
2055 if (children[childIndex] == mChildren[j]) { in dispatchTouchEvent()
2061 mLastTouchDownIndex = childIndex; in dispatchTouchEvent()
3194 int childIndex = customOrder ? getChildDrawingOrder(childrenCount, i) : i; in dispatchDraw() local
3196 ? children[childIndex] : preorderedList.get(childIndex); in dispatchDraw()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
DStackScrollState.java215 private View getNextChildNotGone(int childIndex) {
217 for (int i = childIndex + 1; i < childCount; i++) {
DStackScrollAlgorithm.java294 int childIndex = algorithmState.visibleChildren.indexOf(draggedView); in handleDraggedViews() local
295 if (childIndex >= 0 && childIndex < algorithmState.visibleChildren.size() - 1) { in handleDraggedViews()
296 View nextChild = algorithmState.visibleChildren.get(childIndex + 1); in handleDraggedViews()
/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/libs/hwui/
DDisplayListRenderer.cpp518 int childIndex = mDisplayListData->addChild(op); in addRenderNodeOp() local
522 chunk.endChildIndex = childIndex + 1; in addRenderNodeOp()
/frameworks/native/services/inputflinger/
DInputReader.cpp5817 uint32_t childIndex = parentIndex * 2 + 1; in assignPointerIds() local
5818 if (childIndex >= heapSize) { in assignPointerIds()
5822 if (childIndex + 1 < heapSize in assignPointerIds()
5823 && heap[childIndex + 1].distance < heap[childIndex].distance) { in assignPointerIds()
5824 childIndex += 1; in assignPointerIds()
5827 if (heap[parentIndex].distance <= heap[childIndex].distance) { in assignPointerIds()
5831 swap(heap[parentIndex], heap[childIndex]); in assignPointerIds()
5832 parentIndex = childIndex; in assignPointerIds()
5864 uint32_t childIndex = parentIndex * 2 + 1; in assignPointerIds() local
5865 if (childIndex >= heapSize) { in assignPointerIds()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DAlertController.java594 final int childIndex = scrollParent.indexOfChild(mScrollView); in setupContent() local
595 scrollParent.removeViewAt(childIndex); in setupContent()
596 scrollParent.addView(mListView, childIndex, in setupContent()

12