Searched refs:index (Results 51 - 75 of 1308) sorted by last modified time

1234567891011>>

/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DPlaybackControlSupportGlue.java656 int index = 0;
658 index = playbackSpeed - PLAYBACK_SPEED_FAST_L0;
660 index++;
663 if (mFastForwardAction.getIndex() != index) {
664 mFastForwardAction.setIndex(index);
669 int index = 0;
671 index = -playbackSpeed - PLAYBACK_SPEED_FAST_L0;
673 index++;
676 if (mRewindAction.getIndex() != index) {
677 mRewindAction.setIndex(index);
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DArrayObjectAdapter.java55 public Object get(int index) { argument
56 return mItems.get(index);
60 * Returns the index for the first occurrence of item in the adapter, or -1 if
92 * Inserts an item into this adapter at the specified index.
93 * If the index is >= {@link #size} an exception will be thrown.
95 * @param index The index at which the item should be inserted.
98 public void add(int index, Object item) { argument
99 mItems.add(index, item);
100 notifyItemRangeInserted(index,
110 addAll(int index, Collection items) argument
[all...]
H A DCursorObjectAdapter.java137 public Object get(int index) { argument
141 if (!mCursor.moveToPosition(index)) {
144 Object item = mItemCache.get(index);
149 mItemCache.put(index, item);
175 protected final void invalidateCache(int index) { argument
176 mItemCache.remove(index);
180 * Removes {@code count} items starting at {@code index}.
182 protected final void invalidateCache(int index, int count) { argument
183 for (int limit = count + index; index < limi
[all...]
H A DGrid.java38 * A constant representing a default starting index, indicating that the
39 * developer did not provide a start index.
57 * @param index 0-based index of the item in provider
63 public abstract int createItem(int index, boolean append, Object[] item); argument
68 * @param index 0-based index of the item in provider
70 * @param rowIndex Row index to put the item
73 public abstract void addItem(Object item, int index, int length, int rowIndex, int edge); argument
76 * Remove visible item at index
79 removeItem(int index) argument
86 getEdge(int index) argument
92 getSize(int index) argument
230 invalidateItemsAfter(int index) argument
250 getRowIndex(int index) argument
257 getLocation(int index) argument
[all...]
H A DGridLayoutManager.java402 * relationship does. In LTR flows, the first positional index is
443 * A view can have mutliple alignment position, this is the index of which
886 private int getPositionByIndex(int index) { argument
887 return getPositionByView(getChildAt(index));
1147 // Iterate from left to right, which is a different index traversal
1482 public int createItem(int index, boolean append, Object[] item) {
1485 View v = getViewForPosition(index);
1514 if (index == mFocusPosition && subindex == mSubFocusPosition
1524 if (!mInLayoutSearchFocus && index == mFocusPosition
1527 } else if (mInLayoutSearchFocus && index >
3153 int index; // index inside adapter of the current view field in class:GridLayoutManager.SavedState
[all...]
H A DGuidedActionAdapterGroup.java71 // for ACTION_ID_NEXT, we first find out the matching index in Actions list.
72 int index = 0;
74 index = adapter.indexOf(action);
75 if (index < 0) {
79 index++;
85 while (index < size && !adapter.getItem(index).isFocusable()) {
86 index++;
89 while (index < size && adapter.getItem(index)
[all...]
H A DMultiActionsProvider.java34 * the current index within the drawables. Both list of drawables and index can be updated
71 * Increments the index which this MultiAction currently represents. The index is wrapped
79 * Sets the index which this MultiAction currently represents.
80 * @param index The current action index.
82 public void setIndex(int index) { argument
83 mIndex = index;
87 * Returns the currently selected index i
[all...]
H A DPlaybackControlsRow.java107 * Returns the drawable at the given index.
109 public Drawable getDrawable(int index) { argument
110 return mDrawables == null ? null : mDrawables[index];
114 * Returns the label at the given index.
116 public String getLabel(int index) { argument
117 return mLabels == null ? null : mLabels[index];
121 * Returns the secondary label at the given index.
123 public String getSecondaryLabel(int index) { argument
124 return mLabels2 == null ? null : mLabels2[index];
128 * Increments the index, wrappin
137 setIndex(int index) argument
608 getStyledDrawable(Context context, int index) argument
[all...]
H A DScaleFrameLayout.java75 public void addView(View child, int index, ViewGroup.LayoutParams params) { argument
76 super.addView(child, index, params);
82 protected boolean addViewInLayout (View child, int index, ViewGroup.LayoutParams params, argument
84 boolean ret = super.addViewInLayout(child, index, params, preventRequestLayout);
H A DSingleRow.java33 public final Location getLocation(int index) { argument
77 for (int index = getStartIndexForPrepend(); index >= 0; index--) {
78 int size = mProvider.createItem(index, false, mTmpItem);
82 mLastVisibleIndex = mFirstVisibleIndex = index;
85 edge = mProvider.getEdge(index + 1) + mMargin + size;
87 edge = mProvider.getEdge(index + 1) - mMargin - size;
89 mFirstVisibleIndex = index;
91 mProvider.addItem(mTmpItem[0], index, siz
[all...]
H A DSparseArrayObjectAdapter.java45 * Returns the index for the given item in the adapter.
55 * Returns the index for the given key in the adapter.
82 int index = mItems.indexOfKey(key);
83 if (index >= 0) {
84 if (mItems.valueAt(index) != item) {
85 mItems.setValueAt(index, item);
86 notifyItemRangeChanged(index, 1);
90 index = mItems.indexOfKey(key);
91 notifyItemRangeInserted(index, 1);
101 int index
[all...]
H A DStaggeredGrid.java49 * min_edge(index) - min_edge(index - 1) for non reversed case
50 * max_edge(index) - max_edge(index - 1) for reversed case
78 * Returns index of first item (cached or visible) in the staggered grid.
86 * Returns index of last item (cached or visible) in the staggered grid.
101 public final Location getLocation(int index) { argument
105 return mLocations.get(index - mFirstIndex);
151 // prepend visible items from first visible index
165 // if the item is adjacent to first index, shoul
432 invalidateItemsAfter(int index) argument
[all...]
H A DStaggeredGridDefault.java100 * next row of last item. Search until row index wrapped.
108 int index = indexLimit;
122 index = i;
138 index = i;
145 indices[1] = index;
152 * next row of last item. Search until row index wrapped.
160 int index = indexLimit;
175 index = i;
190 index = i;
197 indices[1] = index;
[all...]
/frameworks/support/v17/preference-leanback/src/android/support/v17/preference/
H A DLeanbackListPreferenceDialogFragment.java157 final int index = viewHolder.getAdapterPosition();
158 if (index == RecyclerView.NO_POSITION) {
161 final CharSequence entry = mEntryValues[index];
163 if (index >= 0) {
164 String value = mEntryValues[index].toString();
212 final int index = viewHolder.getAdapterPosition();
213 if (index == RecyclerView.NO_POSITION) {
216 final String entry = mEntryValues[index].toString();
/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
H A DGridActivity.java254 int index = index1;
256 index2 = index;
270 int[] removeItems(int index, int length) { argument
272 System.arraycopy(mItemLengths, index, removed, 0, length);
273 System.arraycopy(mItemLengths, index + length, mItemLengths, index,
274 mNumItems - index - length);
277 mGridView.getAdapter().notifyItemRangeRemoved(index, length);
289 void addItems(int index, int[] items) { argument
296 System.arraycopy(mItemLengths, index, mItemLength
[all...]
H A DGridTest.java47 public int createItem(int index, boolean append, Object[] item) { argument
48 return mItems[index];
52 public void addItem(Object item, int index, int length, int rowIndex, int edge) { argument
57 mEdges[index] = edge;
61 public void removeItem(int index) { argument
65 public int getEdge(int index) { argument
66 return mEdges[index];
70 public int getSize(int index) { argument
71 return mItems[index];
/frameworks/support/v4/api21/android/support/v4/app/
H A DFragmentTransitionCompat21.java290 for (int index = startIndex; index < views.size(); index++) {
291 final View view = views.get(index);
/frameworks/support/v4/api21/android/support/v4/view/accessibility/
H A DAccessibilityWindowInfoCompatApi21.java76 public static Object getChild(Object info, int index) { argument
77 return ((AccessibilityWindowInfo) info).getChild(index);
/frameworks/support/v4/ics/android/support/v4/view/accessibility/
H A DAccessibilityEventCompatIcs.java35 public static Object getRecord(AccessibilityEvent event, int index) { argument
36 return event.getRecord(index);
H A DAccessibilityNodeInfoCompatIcs.java68 public static Object getChild(Object info, int index) { argument
69 return ((AccessibilityNodeInfo) info).getChild(index);
/frameworks/support/v4/java/android/support/v4/app/
H A DBackStackRecord.java1441 for (int index = 0; index < overrides.size(); index++) {
1442 if (source.equals(overrides.valueAt(index))) {
1443 overrides.setValueAt(index, target);
H A DFragment.java214 // For use when retaining a fragment: this is the index of the last mTarget.
486 final void setIndex(int index, Fragment parent) { argument
487 mIndex = index;
H A DFragmentActivity.java122 // A hint for the next candidate request index. Request indicies are ints between 0 and 2^16-1
127 // A map from request index to Fragment "who" (i.e. a Fragment's unique identifier). Used to
865 // use, and then repurposed them for the Fragment's index.
908 int index = (requestCode >> 16) & 0xffff;
909 if (index != 0) {
910 index--;
912 String who = mPendingFragmentActivityResults.get(index);
913 mPendingFragmentActivityResults.remove(index);
978 // Allocates the next available startActivityForResult request index.
980 // Sanity check that we havn't exhaused the request index spac
[all...]
H A DFragmentManager.java280 * Return the BackStackEntry at index <var>index</var> in the back stack;
281 * entries start index 0 being the bottom of the stack.
283 public abstract BackStackEntry getBackStackEntryAt(int index); argument
648 public BackStackEntry getBackStackEntryAt(int index) { argument
649 return mBackStack.get(index);
678 int index = bundle.getInt(key, -1);
679 if (index == -1) {
682 if (index >= mActive.size()) {
684 + key + ": index "
1582 setBackStackIndex(int index, BackStackRecord bse) argument
1607 freeBackStackIndex(int index) argument
[all...]
H A DFragmentStatePagerAdapter.java214 int index = Integer.parseInt(key.substring(1));
217 while (mFragments.size() <= index) {
221 mFragments.set(index, f);

Completed in 313 milliseconds

1234567891011>>