Searched defs:position (Results 51 - 75 of 316) sorted by relevance

1234567891011>>

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DOverflowMenuAdapter.java57 public MenuItemImpl getItem(int position) { argument
59 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
60 position++;
62 return items.get(position);
66 public long getItemId(int position) { argument
67 // Since a menu item's ID is optional, we'll use the position as an
69 return position;
73 public View getView(int position, View convertView, ViewGroup parent) { argument
81 itemView.initialize(getItem(position), 0);
/frameworks/ex/framesequence/samples/RastermillSamples/src/com/android/rastermill/samples/
H A DSamplesList.java56 protected void onListItemClick(ListView l, View v, int position, long id) { argument
57 Class<?> clazz = (Class<?>) SAMPLES.get(position).get(KEY_CLASS);
/frameworks/opt/chips/tests/src/com/android/ex/chips/
H A DRecipientAlternatesAdapterTest.java92 private static void assertRow(Cursor c, int position, argument
102 assertTrue(c.moveToPosition(position));
/frameworks/wilhelm/src/itf/
H A DIMIDITime.c39 static SLresult IMIDITime_SetPosition(SLMIDITimeItf self, SLuint32 position) argument
45 if (!(position < thiz->mDuration)) {
49 thiz->mPosition = position;
67 SLuint32 position = thiz->mPosition; local
69 *pPosition = position;
/frameworks/base/core/java/android/accounts/
H A DChooseAccountTypeActivity.java109 public void onItemClick(AdapterView<?> parent, View v, int position, long id) {
110 setResultAndFinish(mAuthenticatorInfosToDisplay.get(position).desc.type);
184 public View getView(int position, View convertView, ViewGroup parent) { argument
197 holder.text.setText(mInfos.get(position).name);
198 holder.icon.setImageDrawable(mInfos.get(position).drawable);
/frameworks/base/core/java/android/app/
H A DListActivity.java199 * getListView().getItemAtPosition(position) if they need to access the
204 * @param position The position of the view in the list
207 protected void onListItemClick(ListView l, View v, int position, long id) { argument
271 * position with the adapter's data
273 * @param position
275 public void setSelection(int position) { argument
276 mList.setSelection(position);
280 * Get the position of the currently selected list item.
317 public void onItemClick(AdapterView<?> parent, View v, int position, lon
[all...]
/frameworks/base/core/java/android/database/
H A DBulkCursorNative.java102 int position = data.readInt();
103 onMove(position);
155 public CursorWindow getWindow(int position) throws RemoteException argument
161 data.writeInt(position);
177 public void onMove(int position) throws RemoteException { argument
182 data.writeInt(position);
H A DIBulkCursor.java33 * Gets a cursor window that contains the specified position.
34 * The window will contain a range of rows around the specified position.
36 public CursorWindow getWindow(int position) throws RemoteException; argument
39 * Notifies the cursor that the position has changed.
42 * @param position The new position
44 public void onMove(int position) throws RemoteException; argument
/frameworks/base/core/java/android/widget/
H A DAlphabetIndexer.java176 // position.
186 // Do we have the position of the previous section?
252 * Returns the section index for a given position in the list by querying the item
255 public int getSectionForPosition(int position) { argument
257 mDataCursor.moveToPosition(position);
H A DRemoteViewsListAdapter.java75 public Object getItem(int position) { argument
80 public long getItemId(int position) { argument
81 return position;
85 public View getView(int position, View convertView, ViewGroup parent) { argument
86 if (position < getCount()) {
87 RemoteViews rv = mRemoteViewsList.get(position);
104 public int getItemViewType(int position) { argument
105 if (position < getCount()) {
106 int layoutId = mRemoteViewsList.get(position).getLayoutId();
H A DRemoteViewsService.java90 * @param position The position of the item within the Factory's data set of the item whose
92 * @return A RemoteViews object corresponding to the data at the specified position.
94 public RemoteViews getViewAt(int position); argument
115 * @param position The position of the item within the data set whose row id we want.
116 * @return The id of the item at the specified position.
118 public long getItemId(int position); argument
161 public synchronized RemoteViews getViewAt(int position) { argument
164 rv = mFactory.getViewAt(position);
194 getItemId(int position) argument
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DExpandedMenuView.java70 public void onItemClick(AdapterView parent, View v, int position, long id) { argument
71 invokeItem((MenuItemImpl) getAdapter().getItem(position));
/frameworks/base/core/tests/coretests/src/android/view/
H A DListContextMenu.java65 public Object getItem(int position) { argument
66 return position;
69 public long getItemId(int position) { argument
70 return position;
73 public View getView(int position, View convertView, ViewGroup parent) { argument
81 view.setText("List item " + mTitles[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;
H A DListViewTest.java136 public View getView(int position, View convertView, ViewGroup parent) { argument
/frameworks/base/core/tests/coretests/src/android/widget/focus/
H A DListWithMailMessages.java126 public View getView(int position, View convertView, ViewGroup parent) { argument
127 MailMessage message = getItem(position);
/frameworks/base/core/tests/coretests/src/android/widget/gridview/
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);
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...]
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DAdjacentListsWithAdjacentISVsInside.java113 public Object getItem(int position) { argument
114 return position;
117 public long getItemId(int position) { argument
118 return position;
121 public View getView(int position, View convertView, ViewGroup parent) { argument
H A DListScrollListener.java57 public void onItemSelected(AdapterView parent, View v, int position, long id) { argument
58 mText.setText("Position " + 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 DListWithEmptyView.java42 public long getItemId(int position) { argument
43 if (position < 0 || position >= this.getCount()) {
46 return super.getItemId(position);
/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());
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/
H A DEffectsTest.java121 public Object getItem(int position) { argument
122 Log.d(TAG, "EffectListAdapter getItem() at: "+position+" name: "
123 +mDescriptors[position].name);
124 return mDescriptors[position];
127 public long getItemId(int position) { argument
128 return position;
131 public View getView(int position, View convertView, ViewGroup parent) { argument
134 Log.d(TAG, "getView() new EffectView position: " + position);
137 Log.d(TAG, "getView() convertView position
180 set(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;

Completed in 9232 milliseconds

1234567891011>>