Searched refs:position (Results 1 - 25 of 298) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListHeterogeneous.java40 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
41 switch (position % 3) {
44 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
47 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
50 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
57 public View convertView(int position, View convertView, ViewGroup parent) { argument
58 switch (position
73 getItemViewType(int position) argument
[all...]
H A DListItemFocusableAboveUnfocusable.java40 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
41 if (position == 0) {
43 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
45 return super.createView(position, parent, desiredHeight);
H A DListInterleaveFocusables.java43 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
44 if (mFocusablePositions.contains(position)) {
46 position, parent.getContext(), getValueAtPosition(position), desiredHeight);
48 return super.createView(position, parent, desiredHeight);
53 public int getItemViewType(int position) { argument
54 return mFocusablePositions.contains(position) ? 0 : 1;
H A DListOfTouchables.java41 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
43 b.setText("Position " + position);
44 b.setId(position);
H A DListThrasher.java79 public Object getItem(int position) { argument
80 return position;
83 public long getItemId(int position) { argument
84 return position;
87 public View getView(int position, View convertView, ViewGroup parent) { argument
95 view.setText(mTitles[position] + " " + mVersion[position]);
101 int position = mRandomizer.nextInt(getCount());
102 mVersion[position]++;
124 public void onItemSelected(AdapterView parent, View v, int position, lon argument
[all...]
H A DListItemFocusablesFarApart.java40 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
42 position, parent.getContext(), desiredHeight);
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]);
/frameworks/base/core/java/android/widget/
H A DListAdapter.java41 * Returns true if the item at the specified position is not a separator.
44 * The result is unspecified if position is invalid. An {@link ArrayIndexOutOfBoundsException}
47 * @param position Index of the item
53 boolean isEnabled(int position); argument
H A DSectionIndexer.java39 * @return the starting position of that section. If the section is out of bounds, the
40 * position must be clipped to fall within the size of the list.
45 * This is a reverse mapping to fetch the section index for a given position
47 * @param position the position for which to return the section
48 * @return the section index. If the position is out of bounds, the section index
51 int getSectionForPosition(int position); argument
H A DAdapter.java57 * Get the data item associated with the specified position in the data set.
59 * @param position Position of the item whose data we want within the adapter's
61 * @return The data at the specified position.
63 Object getItem(int position); argument
66 * Get the row id associated with the specified position in the list.
68 * @param position The position of the item within the adapter's data set whose row id we want.
69 * @return The id of the item at the specified position.
71 long getItemId(int position); argument
82 * Get a View that displays the data at the specified position i
99 getView(int position, View convertView, ViewGroup parent) argument
123 getItemViewType(int position) argument
[all...]
H A DBaseAdapter.java66 public boolean isEnabled(int position) { argument
70 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
71 return getView(position, convertView, parent);
74 public int getItemViewType(int position) { argument
H A DSpinnerAdapter.java31 * the data at the specified position in the data set.</p>
33 * @param position index of the item whose view we want.
40 * specified position.
42 public View getDropDownView(int position, View convertView, ViewGroup parent); argument
/frameworks/base/core/java/android/database/
H A DCrossProcessCursor.java45 * row position until all of the data in the cursor is exhausted
54 * The current position of the cursor, as returned by {@link #getPosition},
58 * @param position The zero-based index of the first row to copy into the window.
61 void fillWindow(int position, CursorWindow window); argument
65 * to a new position, giving the subclass a chance to update any state it
67 * cursor will scroll to the beforeFirst position.
73 * @param oldPosition The position that we're moving from.
74 * @param newPosition The position that we're moving to.
/frameworks/support/v4/java/android/support/v4/view/
H A DPagerAdapter.java51 * independent of its position in the adapter. A call to the PagerAdapter method
74 * set change may involve pages being added, removed, or changing position. The
99 * Create the page for the given position. The adapter is responsible
105 * @param position The page position to be instantiated.
109 public Object instantiateItem(ViewGroup container, int position) { argument
110 return instantiateItem((View) container, position);
114 * Remove a page for the given position. The adapter is responsible
119 * @param position The page position t
123 destroyItem(ViewGroup container, int position, Object object) argument
136 setPrimaryItem(ViewGroup container, int position, Object object) argument
174 instantiateItem(View container, int position) argument
191 destroyItem(View container, int position, Object object) argument
206 setPrimaryItem(View container, int position, Object object) argument
296 getPageTitle(int position) argument
307 getPageWidth(int position) argument
[all...]
/frameworks/ex/common/java/com/android/common/widget/
H A DCompositeCursorAdapter.java234 * Given a list position, returns the index of the corresponding partition.
236 public int getPartitionForPosition(int position) { argument
241 if (position >= start && position < end) {
250 * Given a list position, return the offset of the corresponding item in its
253 public int getOffsetInPartition(int position) { argument
258 if (position >= start && position < end) {
259 int offset = position - start;
271 * Returns the first list position fo
300 getItemViewType(int partition, int position) argument
305 getItemViewType(int position) argument
323 getView(int position, View convertView, ViewGroup parent) argument
384 getView(int partition, Cursor cursor, int position, View convertView, ViewGroup parent) argument
400 newView(Context context, int partition, Cursor cursor, int position, ViewGroup parent) argument
407 bindView(View v, int partition, Cursor cursor, int position) argument
412 getItem(int position) argument
438 getItemId(int position) argument
484 isEnabled(int position) argument
507 isEnabled(int partition, int position) argument
[all...]
/frameworks/ex/photoviewer/src/com/android/ex/photo/adapters/
H A DBaseCursorPagerAdapter.java44 /** Mapping of row ID to cursor position */
65 * moved to the correct position.
68 public abstract Fragment getItem(Context context, Cursor cursor, int position); argument
71 public Fragment getItem(int position) { argument
72 if (mDataValid && moveCursorTo(position)) {
73 return getItem(mContext, mCursor, position);
88 public Object instantiateItem(View container, int position) { argument
94 if (moveCursorTo(position)) {
101 final Object obj = super.instantiateItem(container, position);
109 public void destroyItem(View container, int position, Objec argument
143 getDataItem(int position) argument
154 getItemId(int position) argument
221 moveCursorTo(int position) argument
[all...]
/frameworks/opt/photoviewer/src/com/android/ex/photo/adapters/
H A DBaseCursorPagerAdapter.java43 /** Mapping of row ID to cursor position */
64 * moved to the correct position.
67 public abstract Fragment getItem(Context context, Cursor cursor, int position); argument
72 public Fragment getItem(int position) { argument
73 if (mCursor != null && moveCursorTo(position)) {
74 return getItem(mContext, mCursor, position);
89 public Object instantiateItem(View container, int position) { argument
95 if (moveCursorTo(position)) {
102 final Object obj = super.instantiateItem(container, position);
110 public void destroyItem(View container, int position, Objec argument
144 getDataItem(int position) argument
155 getItemId(int position) argument
220 moveCursorTo(int position) argument
[all...]
/frameworks/base/libs/hwui/
H A DPathRenderer.cpp69 Vertex::set(destPtr, srcPtr->position[0], srcPtr->position[1]);
73 AlphaVertex::set(destPtr, srcPtr->position[0], srcPtr->position[1], srcPtr->alpha);
125 vec2 lastNormal(current->position[1] - last->position[1],
126 last->position[0] - current->position[0]);
130 vec2 nextNormal(next->position[1] - current->position[
[all...]
H A DVertex.h24 * Simple structure to describe a vertex with a position and a texture.
27 float position[2]; member in struct:android::uirenderer::Vertex
30 vertex[0].position[0] = x;
31 vertex[0].position[1] = y;
36 * Simple structure to describe a vertex with a position and a texture.
39 float position[2]; member in struct:android::uirenderer::TextureVertex
43 vertex[0].position[0] = x;
44 vertex[0].position[1] = y;
56 * Simple structure to describe a vertex with a position and an alpha value.
72 * Simple structure to describe a vertex with a position an
[all...]
/frameworks/base/core/java/android/preference/
H A DPreferenceGroupAdapter.java59 * Maps a position into this adapter -> {@link Preference}. These
200 public Preference getItem(int position) { argument
201 if (position < 0 || position >= getCount()) return null;
202 return mPreferenceList.get(position);
205 public long getItemId(int position) { argument
206 if (position < 0 || position >= getCount()) return ListView.INVALID_ROW_ID;
207 return this.getItem(position).getId();
210 public View getView(int position, Vie argument
225 isEnabled(int position) argument
252 getItemViewType(int position) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DIRemoteViewsFactory.aidl28 RemoteViews getViewAt(int position);
31 long getItemId(int position);
/frameworks/base/core/tests/coretests/src/android/util/
H A DListScenario.java87 * Return whether the item at position is selectable (i.e is a separator).
90 private boolean isItemAtPositionSelectable(int position) { argument
91 return !mUnselectableItems.contains(position);
135 * Set the position that starts selected.
137 * @param startingSelectionPosition The selected position within the adapter's data set.
158 * @param position The position in the list.
162 int position, double itemScreenSizeFactor) {
163 mOverrideItemScreenSizeFactors.put(position, itemScreenSizeFactor);
168 * Set a position a
161 setPositionScreenSizeFactorOverride( int position, double itemScreenSizeFactor) argument
172 setPositionUnselectable(int position) argument
287 positionClicked(int position) argument
296 positionLongClicked(int position) argument
490 getValueAtPosition(int position) argument
500 getHeightForPosition(int position) argument
540 createView(int position, ViewGroup parent, int desiredHeight) argument
548 convertView(int position, View convertView, ViewGroup parent) argument
588 getItemViewType(int position) argument
613 getItem(int position) argument
617 getItemId(int position) argument
627 isEnabled(int position) argument
631 getView(int position, View convertView, ViewGroup parent) argument
652 getItemViewType(int position) argument
[all...]
H A DListUtil.java43 * Set the selected position of the list view.
44 * @param pos The desired position.
70 * Arrow (up or down as appropriate) to the desired position in the list.
71 * @param desiredPos The desired position
72 * @throws IllegalStateException if the position can't be reached within 20 presses.
82 private void arrowDownToSelectedPosition(int position) { argument
84 while(mListView.getSelectedItemPosition() < position && --maxDowns > 0) {
87 if (position != mListView.getSelectedItemPosition()) {
93 private void arrowUpToSelectedPosition(int position) { argument
95 while(mListView.getSelectedItemPosition() > position
[all...]
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
H A DGridThrasher.java81 public Object getItem(int position) { argument
82 return position;
85 public long getItemId(int position) { argument
86 return position;
89 public View getView(int position, View convertView, ViewGroup parent) { argument
97 view.setText(mTitles[position] + " " + mVersion[position]);
103 int position = mRandomizer.nextInt(getCount());
104 mVersion[position]++;
128 public void onItemSelected(AdapterView parent, View v, int position, lon argument
[all...]
H A DGridDelete.java95 public Object getItem(int position) { argument
96 return mData.get(position);
99 public long getItemId(int position) { argument
100 return mData.get(position);
103 public View getView(int position, View convertView, ViewGroup parent) { argument
105 return createView(mData.get(position), parent, desiredHeight);

Completed in 340 milliseconds

1234567891011>>