Searched refs:position (Results 26 - 50 of 430) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListTakeFocusFromSide.java55 public Object getItem(int position) { argument
56 return position;
59 public long getItemId(int position) { argument
60 return position;
63 public View getView(int position, View convertView, ViewGroup parent) { argument
71 view.setText(mTitles[position]);
H A DListButtonsDiagonalAcrossItems.java50 protected View createView(int position, ViewGroup parent, argument
52 final Slot slot = position == 0 ? Slot.Left :
53 (position == 1 ? Slot.Middle : Slot.Right);
H A DListItemFocusablesClose.java50 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
52 position, parent.getContext(), desiredHeight);
/frameworks/base/tests/BiDiTests/src/com/android/bidi/
H A DBiDiTestGalleryImages.java52 public Object getItem(int position) { argument
53 return position;
57 public long getItemId(int position) { argument
58 return position;
62 public View getView(int position, View convertView, ViewGroup parent) { argument
64 i.setImageResource(mImageIds[position]);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/binding/
H A DFakeAdapter.java86 public boolean isEnabled(int position) { argument
96 public Object getItem(int position) { argument
97 return mItems.get(position);
101 public long getItemId(int position) { argument
102 return position;
106 public int getItemViewType(int position) { argument
107 return mItems.get(position).getType();
111 public View getView(int position, View convertView, ViewGroup parent) { argument
113 AdapterItem item = mItems.get(position);
129 public View getDropDownView(int position, Vie argument
[all...]
/frameworks/ex/common/java/com/android/common/widget/
H A DCompositeCursorAdapter.java240 * Given a list position, returns the index of the corresponding partition.
242 public int getPartitionForPosition(int position) { argument
247 if (position >= start && position < end) {
256 * Given a list position, return the offset of the corresponding item in its
259 public int getOffsetInPartition(int position) { argument
264 if (position >= start && position < end) {
265 int offset = position - start;
277 * Returns the first list position fo
306 getItemViewType(int partition, int position) argument
311 getItemViewType(int position) argument
333 getView(int position, View convertView, ViewGroup parent) argument
394 getView(int partition, Cursor cursor, int position, View convertView, ViewGroup parent) argument
410 newView(Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
417 bindView(View v, int partition, Cursor cursor, int position) argument
422 getItem(int position) argument
450 getItemId(int position) argument
496 isEnabled(int position) argument
519 isEnabled(int partition, int position) argument
[all...]
H A DGroupingListAdapter.java264 * Figures out whether the item at the specified position represents a
266 * corresponding cursor position.
268 public void obtainPositionMetadata(PositionMetadata metadata, int position) { argument
271 if (metadata.listPosition == position) {
279 // Check cache for the supplied position. What we are looking for is
280 // the group descriptor immediately preceding the supplied position.
281 // Once we have that, we will be able to tell whether the position
284 if (position <= mLastCachedListPosition) {
287 int index = mPositionCache.indexOfKey(position);
289 // If we get back a positive number, the position correspond
388 isGroupHeader(int position) argument
397 getGroupSize(int position) argument
405 toggleGroup(int position) argument
427 getItemViewType(int position) argument
432 getItem(int position) argument
445 getItemId(int position) argument
454 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DArrayObjectAdapter.java73 * @param positionStart The position of first item that has changed.
133 * Replaces item at position with a new item and calls notifyItemRangeChanged()
134 * at the given position. Note that this method does not compare new item to
136 * @param position The index of item to replace.
137 * @param item The new item to be placed at given position.
139 public void replace(int position, Object item) { argument
140 mItems.set(position, item);
141 notifyItemRangeChanged(position, 1);
146 * the starting position and the number of elements to remove.
148 * @param position Th
152 removeItems(int position, int count) argument
[all...]
H A DControlBarPresenter.java90 for (int position = 0; position < mViewHolders.size(); position++) {
91 if (mViewHolders.get(position).view == child) {
93 mViewHolders.get(position),
94 getDisplayedAdapter().get(position), mData);
135 for (int position = 0; position < adapterSize && position < MAX_CONTROLS;
136 position
143 bindControlToAction(int position, Presenter presenter) argument
147 bindControlToAction(final int position, ObjectAdapter adapter, Presenter presenter) argument
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceGroupAdapter.java64 * Maps a position into this adapter -> {@link Preference}. These
211 public Preference getItem(int position) { argument
212 if (position < 0 || position >= getCount()) return null;
213 return mPreferenceList.get(position);
216 public long getItemId(int position) { argument
217 if (position < 0 || position >= getCount()) return ListView.INVALID_ROW_ID;
218 return this.getItem(position).getId();
224 public void setHighlighted(int position) { argument
235 getView(int position, View convertView, ViewGroup parent) argument
258 isEnabled(int position) argument
289 getItemViewType(int position) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DAbsSpinner.java100 * It also provides methods to transform spinner items based on their position
124 int position = mItemCount > 0 ? 0 : INVALID_POSITION;
126 setSelectedPositionInt(position);
127 setNextSelectedPositionInt(position);
259 final int position = mFirstPosition;
264 int index = position + i;
272 public void setSelection(int position, boolean animate) { argument
273 // Animate only if requested position is already on screen somewhere
274 boolean shouldAnimate = animate && mFirstPosition <= position &&
275 position <
280 setSelection(int position) argument
294 setSelectionInt(int position, boolean animate) argument
368 int position; field in class:AbsSpinner.SavedState
445 put(int position, View v) argument
449 get(int position) argument
[all...]
H A DHeaderViewListAdapter.java146 public boolean isEnabled(int position) { argument
149 if (position < numHeaders) {
150 return mHeaderViewInfos.get(position).isSelectable;
154 final int adjPosition = position - numHeaders;
167 public Object getItem(int position) { argument
170 if (position < numHeaders) {
171 return mHeaderViewInfos.get(position).data;
175 final int adjPosition = position - numHeaders;
188 public long getItemId(int position) { argument
190 if (mAdapter != null && position >
207 getView(int position, View convertView, ViewGroup parent) argument
228 getItemViewType(int position) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/widget/
H A DAbsSpinnerCompat.java77 * It also provides methods to transform spinner items based on their position
101 int position = mItemCount > 0 ? 0 : INVALID_POSITION;
103 setSelectedPositionInt(position);
104 setNextSelectedPositionInt(position);
237 final int position = mFirstPosition;
242 int index = position + i;
250 public void setSelection(int position, boolean animate) { argument
251 // Animate only if requested position is already on screen somewhere
252 boolean shouldAnimate = animate && mFirstPosition <= position &&
253 position <
258 setSelection(int position) argument
272 setSelectionInt(int position, boolean animate) argument
346 int position; field in class:AbsSpinnerCompat.SavedState
423 put(int position, View v) argument
427 get(int position) argument
[all...]
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DColumnAdapter.java40 public void onItemClick(ListAdapter adapter, int position); argument
67 final int position = (Integer) v.getTag();
68 mListener.onItemClick(mWrapped, position);
78 public Object getItem(int position) { argument
79 return position;
83 public long getItemId(int position) { argument
84 return position;
88 public View getView(int position, View convertView, ViewGroup parent) { argument
98 final int first = position * mColumns;
H A DSortingCursorWrapper.java171 private static void binarySort(int[] position, String[] value) { argument
172 final int count = position.length;
174 final int pivotPosition = position[start];
197 position[left + 2] = position[left + 1];
200 position[left + 1] = position[left];
204 System.arraycopy(position, left, position, left + 1, n);
208 position[lef
217 binarySort(int[] position, long[] value) argument
[all...]
/frameworks/support/v13/java/android/support/v13/app/
H A DFragmentPagerAdapter.java78 * Return the Fragment associated with a specified position.
80 public abstract Fragment getItem(int position); argument
87 public Object instantiateItem(ViewGroup container, int position) { argument
92 final long itemId = getItemId(position);
101 fragment = getItem(position);
115 public void destroyItem(ViewGroup container, int position, Object object) { argument
119 if (DEBUG) Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object
125 public void setPrimaryItem(ViewGroup container, int position, Object object) { argument
164 * Return a unique identifier for the item at the given position.
166 * <p>The default implementation returns the given position
172 getItemId(int position) argument
[all...]
/frameworks/support/v4/java/android/support/v4/app/
H A DFragmentPagerAdapter.java74 * Return the Fragment associated with a specified position.
76 public abstract Fragment getItem(int position); argument
83 public Object instantiateItem(ViewGroup container, int position) { argument
88 final long itemId = getItemId(position);
97 fragment = getItem(position);
111 public void destroyItem(ViewGroup container, int position, Object object) { argument
115 if (DEBUG) Log.v(TAG, "Detaching item #" + getItemId(position) + ": f=" + object
121 public void setPrimaryItem(ViewGroup container, int position, Object object) { argument
160 * Return a unique identifier for the item at the given position.
162 * <p>The default implementation returns the given position
168 getItemId(int position) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/util/
H A DGridScenario.java112 * Set the position that starts selected.
114 * @param startingSelectionPosition The selected position within the adapter's data set.
135 * @param position The position in the grid.
139 int position, double itemScreenSizeFactor) {
140 mOverrideItemScreenSizeFactors.put(position, itemScreenSizeFactor);
266 public void onItemSelected(AdapterView parent, View v, int position, long id) {
267 positionSelected(position);
315 public final String getValueAtPosition(int position) { argument
316 return "postion " + position;
138 setPositionScreenSizeFactorOverride( int position, double itemScreenSizeFactor) argument
328 createView(int position, ViewGroup parent, int desiredHeight) argument
348 getItem(int position) argument
352 getItemId(int position) argument
356 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/core/java/android/database/
H A DCrossProcessCursorWrapper.java46 public void fillWindow(int position, CursorWindow window) { argument
49 crossProcessCursor.fillWindow(position, window);
53 DatabaseUtils.cursorFillWindow(mCursor, position, window);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/libcore/io/
H A DBridgeBufferIterator.java39 mByteBuffer.position(offset);
44 int newPosition = mByteBuffer.position() + byteCount;
46 mByteBuffer.position(newPosition);
/frameworks/base/core/java/com/android/internal/widget/
H A DAccountViewAdapter.java50 public Object getItem(int position) { argument
51 return mData.get(position);
55 public long getItemId(int position) { argument
56 return position;
65 public View getView(int position, View convertView, ViewGroup parent) { argument
72 AccountElements elements = (AccountElements) getItem(position);
/frameworks/base/core/tests/coretests/src/android/widget/
H A DAutoCompleteTextViewSimple.java99 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
100 Log.d(LOG_TAG, "onItemClick() position " + position);
102 mItemClickPosition = position;
108 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
109 Log.d(LOG_TAG, "onItemSelected() position " + position);
111 mItemSelectedPosition = position;
/frameworks/base/core/java/com/android/internal/app/
H A DNavItemSelectedListener.java36 public void onItemSelected(AdapterView<?> parent, View view, int position, long id) { argument
38 mListener.onNavigationItemSelected(position, id);
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListOfInternalSelectionViews.java74 * @param position The position
75 * @return The label (closest thing to a value) for the item at position
77 public String getLabelForPosition(int position) { argument
78 return "position " + position;
156 public Object getItem(int position) { argument
157 return getLabelForPosition(position);
160 public long getItemId(int position) { argument
161 return position;
164 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DStorageBrowser.java64 public Object getItem(int position) { argument
65 return mStorageList.get(position);
68 public long getItemId(int position) { argument
69 return position;
72 public View getView(int position, View convertView, ViewGroup parent) { argument
81 MtpStorageInfo info = mStorageList.get(position);
114 protected void onListItemClick(ListView l, View v, int position, long id) { argument
117 intent.putExtra("storage", mStorageList.get(position).getStorageId());

Completed in 564 milliseconds

1234567891011>>