Searched refs:childIndex (Results 1 - 25 of 31) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/view/menu/
H A DBaseMenuPresenter.java85 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 DIconMenuPresenter.java70 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 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/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DPrintOptionsLayout.java72 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 DViewAnimator.java147 * @param childIndex The index of the child to be shown.
151 void showOnly(int childIndex, boolean animate) { argument
155 if (i == childIndex) {
175 * @param childIndex The index of the child to be shown.
177 void showOnly(int childIndex) { argument
179 showOnly(childIndex, animate);
H A DTableRow.java183 int measureNullChild(int childIndex) { argument
184 return mConstrainedColumnWidths[childIndex];
191 void measureChildBeforeLayout(View child, int childIndex, argument
203 columnWidth += constrainedColumnWidths[childIndex + i];
247 super.measureChildBeforeLayout(child, childIndex, widthMeasureSpec,
H A DActionMenuView.java687 protected boolean hasDividerBeforeChildAt(int childIndex) { argument
688 if (childIndex == 0) {
691 final View childBefore = getChildAt(childIndex - 1);
692 final View child = getChildAt(childIndex);
694 if (childIndex < getChildCount() && childBefore instanceof ActionMenuChildView) {
697 if (childIndex > 0 && child instanceof ActionMenuChildView) {
H A DTabWidget.java155 void measureChildBeforeLayout(View child, int childIndex, argument
160 totalWidth + mImposedTabWidths[childIndex], MeasureSpec.EXACTLY);
165 super.measureChildBeforeLayout(child, childIndex,
H A DActionMenuPresenter.java198 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { argument
256 public boolean filterLeftoverView(ViewGroup parent, int childIndex) { argument
257 if (parent.getChildAt(childIndex) == mOverflowButton) return false;
258 return super.filterLeftoverView(parent, childIndex);
H A DLinearLayout.java622 * @param childIndex Index of child to check for preceding divider
623 * @return true if there should be a divider before the child at childIndex
626 protected boolean hasDividerBeforeChildAt(int childIndex) { argument
627 if (childIndex == 0) {
629 } else if (childIndex == getChildCount()) {
633 for (int i = childIndex - 1; i >= 0; i--) {
1413 * @param childIndex the index of the null child
1416 int measureNullChild(int childIndex) { argument
1427 * @param childIndex the index of the child in this view
1433 void measureChildBeforeLayout(View child, int childIndex, argument
[all...]
H A DGridView.java1978 * Is childIndex a candidate for next focus given the direction the focus
1980 * @param childIndex The index to check.
1983 * @return Whether childIndex is a candidate.
1985 private boolean isCandidateSelection(int childIndex, int direction) { argument
1987 final int invertedIndex = count - 1 - childIndex;
1993 rowStart = childIndex - (childIndex % mNumColumns);
2004 return childIndex == rowStart;
2010 return childIndex == rowEnd;
2016 return childIndex
[all...]
H A DTableLayout.java455 void measureChildBeforeLayout(View child, int childIndex, argument
464 super.measureChildBeforeLayout(child, childIndex,
H A DAdapterViewAnimator.java456 * @param childIndex The index of the child to be shown.
460 void showOnly(int childIndex, boolean animate) { argument
480 int newWindowStartUnbounded = childIndex - mActiveOffset;
H A DExpandableListView.java523 void drawDivider(Canvas canvas, Rect bounds, int childIndex) { argument
524 int flatListPosition = childIndex + mFirstPosition;
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DActionMenuView.java695 protected boolean hasSupportDividerBeforeChildAt(int childIndex) { argument
696 if (childIndex == 0) {
699 final View childBefore = getChildAt(childIndex - 1);
700 final View child = getChildAt(childIndex);
702 if (childIndex < getChildCount() && childBefore instanceof ActionMenuChildView) {
705 if (childIndex > 0 && child instanceof ActionMenuChildView) {
H A DLinearLayoutCompat.java556 * @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 DActionMenuPresenter.java197 public boolean shouldIncludeItem(int childIndex, MenuItemImpl item) { argument
255 public boolean filterLeftoverView(ViewGroup parent, int childIndex) { argument
256 if (parent.getChildAt(childIndex) == mOverflowButton) return false;
257 return super.filterLeftoverView(parent, childIndex);
/frameworks/base/core/java/android/view/
H A DGhostView.java333 int childIndex = customOrder ? parent.getChildDrawingOrder(childrenCount, i) : i;
335 ? parent.getChildAt(childIndex) : preorderedList.get(childIndex);
H A DViewGroup.java829 final int childIndex = useCustomOrder
832 ? mChildren[childIndex] : orderedList.get(childIndex);
1683 int childIndex = customOrder ? getChildDrawingOrder(childrenCount, i) : i;
1685 ? children[childIndex] : preorderedList.get(childIndex);
1967 int childIndex = customOrder ? getChildDrawingOrder(childrenCount, i) : i;
1969 ? children[childIndex] : preorderedList.get(childIndex);
2101 final int childIndex
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/stack/
H A DStackScrollState.java217 private View getNextChildNotGone(int childIndex) { argument
219 for (int i = childIndex + 1; i < childCount; i++) {
H A DStackScrollAlgorithm.java284 int childIndex = algorithmState.visibleChildren.indexOf(draggedView);
285 if (childIndex >= 0 && childIndex < algorithmState.visibleChildren.size() - 1) {
286 View nextChild = algorithmState.visibleChildren.get(childIndex + 1);
/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/base/libs/hwui/
H A DDisplayListRenderer.cpp515 int childIndex = mDisplayListData->addChild(op); local
519 chunk.endChildIndex = childIndex + 1;
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardWidgetPager.java892 protected boolean shouldSetTopAlignedPivotForWidget(int childIndex) { argument
893 return !isCameraPage(childIndex) && super.shouldSetTopAlignedPivotForWidget(childIndex);
/frameworks/native/services/inputflinger/
H A DInputReader.cpp5817 uint32_t childIndex = parentIndex * 2 + 1; local
5818 if (childIndex >= heapSize) {
5822 if (childIndex + 1 < heapSize
5823 && heap[childIndex + 1].distance < heap[childIndex].distance) {
5824 childIndex += 1;
5827 if (heap[parentIndex].distance <= heap[childIndex].distance) {
5831 swap(heap[parentIndex], heap[childIndex]);
5832 parentIndex = childIndex;
5864 uint32_t childIndex local
[all...]

Completed in 483 milliseconds

12