Searched refs:position (Results 76 - 100 of 430) sorted by relevance

1234567891011>>

/frameworks/base/core/tests/coretests/src/android/widget/gridview/
H A DGridSimple.java49 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
50 View view = super.createView(position, parent, desiredHeight);
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListSimple.java45 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
46 View view = super.createView(position, parent, desiredHeight);
H A DListWithEmptyView.java42 public long getItemId(int position) { argument
43 if (position < 0 || position >= this.getCount()) {
46 return super.getItemId(position);
H A DListHorizontalFocusWithinItemWins.java51 protected View createView(int position, ViewGroup parent, argument
54 if (position == 0) {
57 } else if (position == 1) {
61 throw new IllegalArgumentException("expecting position 0 or 1");
H A DListItemISVAndButton.java42 protected View createView(int position, ViewGroup parent, int desiredHeight) { argument
48 final InternalSelectionView isv = new InternalSelectionView(context, 8, "ISV postion " + position);
61 topButton.setText("button " + position + ")");
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
/frameworks/base/media/tests/CameraBrowser/src/com/android/camerabrowser/
H A DCameraBrowser.java64 public Object getItem(int position) { argument
65 return mDeviceList.get(position);
68 public long getItemId(int position) { argument
69 return position;
72 public View getView(int position, View convertView, ViewGroup parent) { argument
83 MtpDevice device = mDeviceList.get(position);
117 protected void onListItemClick(ListView l, View v, int position, long id) { argument
119 intent.putExtra("device", mDeviceList.get(position).getDeviceName());
H A DObjectBrowser.java71 public Object getItem(int position) { argument
72 return mObjectList.get(position);
75 public long getItemId(int position) { argument
76 return position;
79 public View getView(int position, View convertView, ViewGroup parent) { argument
88 MtpObjectInfo info = mObjectList.get(position);
133 protected void onListItemClick(ListView l, View v, int position, long id) { argument
134 MtpObjectInfo info = mObjectList.get(position);
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/
H A DDirectoryView.java50 public void setPosition(float position) { argument
51 mPosition = position;
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
H A DUsageLogActivity.java102 public UsageEvents.Event getItem(int position) { argument
103 return mEvents.get(position);
107 public long getItemId(int position) { argument
108 return position;
112 public int getItemViewType(int position) { argument
113 final int eventType = getItem(position).getEventType();
121 public View getView(int position, View convertView, ViewGroup parent) { argument
122 final UsageEvents.Event event = getItem(position);
H A DUsageStatsActivity.java112 public Object getItem(int position) { argument
113 return mStats.get(position);
117 public long getItemId(int position) { argument
118 return position;
122 public View getView(int position, View convertView, ViewGroup parent) { argument
135 holder.packageName.setText(mStats.get(position).getPackageName());
137 mStats.get(position).getTotalTimeInForeground()));
/frameworks/base/core/java/android/widget/
H A DSimpleAdapter.java99 public Object getItem(int position) { argument
100 return mData.get(position);
106 public long getItemId(int position) { argument
107 return position;
113 public View getView(int position, View convertView, ViewGroup parent) { argument
114 return createViewFromResource(position, convertView, parent, mResource);
117 private View createViewFromResource(int position, View convertView, argument
126 bindView(position, v);
142 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
143 return createViewFromResource(position, convertVie
146 bindView(int position, View view) argument
[all...]
H A DAdapterView.java63 * The position of the first child displayed
95 * Indicates whether to sync based on the selection or position. Possible
147 * The position within the adapter's data set of the item to select
159 * The position within the adapter's data set of the currently selected item.
186 * Represents an invalid position. All valid positions are in the range 0 to 1 less than the
197 * The last selected position we used when notifying
202 * The id of the last selected position we used when notifying
261 * Implementers can call getItemAtPosition(position) if they need
267 * @param position The position o
270 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
302 performItemClick(View view, int position, long id) argument
334 onItemLongClick(AdapterView<?> parent, View view, int position, long id) argument
378 onItemSelected(AdapterView<?> parent, View view, int position, long id) argument
413 AdapterContextMenuInfo(View targetView, int position, long id) argument
429 public int position; field in class:AdapterView.AdapterContextMenuInfo
653 setSelection(int position) argument
771 getItemAtPosition(int position) argument
776 getItemIdAtPosition(int position) argument
1175 lookForSelectablePosition(int position, boolean lookDown) argument
1183 setSelectedPositionInt(int position) argument
1193 setNextSelectedPositionInt(int position) argument
[all...]
H A DArrayAdapter.java336 public T getItem(int position) { argument
337 return mObjects.get(position);
341 * Returns the position of the specified item in the array.
343 * @param item The item to retrieve the position of.
345 * @return The position of the specified item.
354 public long getItemId(int position) { argument
355 return position;
361 public View getView(int position, View convertView, ViewGroup parent) { argument
362 return createViewFromResource(position, convertView, parent, mResource);
365 private View createViewFromResource(int position, Vie argument
414 getDropDownView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DStackActivity.java45 public View getView(int position, View convertView, ViewGroup parent) {
52 getItem(position % getCount()));
53 ((TextView) item.findViewById(R.id.mini_text)).setText("" + position);
/frameworks/opt/chips/src/com/android/ex/chips/
H A DSingleRecipientArrayAdapter.java47 public View getView(int position, View convertView, ViewGroup parent) { argument
48 return mDropdownChipLayouter.bindView(convertView, parent, getItem(position), position,
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneResultAdapter.java243 public Object getItem(int position) { argument
244 if (position < 0 || position >= mFilteredTimeZoneLength) {
248 return mTimeZoneData.get(mFilteredTimeZoneIndices[position]);
257 public boolean isEnabled(int position) { argument
258 return mFilteredTimeZoneIndices[position] >= 0;
262 public long getItemId(int position) { argument
263 return mFilteredTimeZoneIndices[position];
267 public View getView(int position, View convertView, ViewGroup parent) { argument
270 if (mFilteredTimeZoneIndices[position]
308 onItemClick(AdapterView<?> parent, View v, int position, long id) argument
[all...]
/frameworks/ex/widget/java/com/android/ex/widget/
H A DStaggeredGridView.java67 * - mFirstPosition is the adapter position of the View returned by getChildAt(0).
68 * - Any child index can be translated to an adapter position by adding mFirstPosition.
69 * - Any adapter position can be translated to a child index by subtracting mFirstPosition.
269 * Return the first adapter position with a view currently attached as
272 * @return the adapter position represented by the view at getChildAt(0).
465 * is always the view corresponding to position mFirstPosition + i.
761 final int position = mFirstPosition + i;
765 View newView = obtainView(position, child);
812 final LayoutRecord rec = mLayoutRecords.get(position);
816 rebuildLayoutRecordsBefore = position;
857 invalidateLayoutRecordsBeforePosition(int position) argument
865 invalidateLayoutRecordsAfterPosition(int position) argument
1127 getNextRecordUp(int position, int span) argument
1183 getNextRecordDown(int position, int span) argument
1228 obtainView(int position, View optScrap) argument
1398 int position; field in class:StaggeredGridView.LayoutParams
1521 getTransientStateView(int position) argument
1580 int position; field in class:StaggeredGridView.SavedState
[all...]
/frameworks/base/core/tests/coretests/src/android/view/menu/
H A DMenuScenario.java68 // Add a default item for this position if the subclasses
98 * @param itemPosition The position of the item to add (only for your
120 final int position = findItemPosition(item);
121 if (position < 0) return false;
123 mWasItemClicked[position] = true;
128 public boolean wasItemClicked(int position) { argument
129 return mWasItemClicked[position];
133 * Finds the position for a given Item.
136 * @return The position, or -1 if not found.
/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/com/android/internal/view/menu/
H A DListMenuPresenter.java164 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
165 mMenu.performItemAction(mAdapter.getItem(position), this, 0);
237 public MenuItemImpl getItem(int position) { argument
239 position += mItemIndexOffset;
240 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
241 position++;
243 return items.get(position);
246 public long getItemId(int position) { argument
247 // Since a menu item's ID is optional, we'll use the position as an
249 return position;
252 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/tests/MusicBrowserDemo/src/com/example/android/musicbrowserdemo/
H A DBrowserListFragment.java101 public void onListItemClick(ListView l, View v, int position, long id) { argument
102 final Item item = mItems.get(position);
104 Log.i("BrowserListFragment", "Item clicked: " + position + " -- "
105 + mAdapter.getItem(position).media.getDescription().getIconUri());
178 public Item getItem(int position) { argument
179 return mItems.get(position);
183 public long getItemId(int position) { argument
184 return position;
188 public int getItemViewType(int position) { argument
193 public View getView(int position, Vie argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DListMenuPresenter.java168 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
169 mMenu.performItemAction(mAdapter.getItem(position), this, 0);
241 public MenuItemImpl getItem(int position) { argument
243 position += mItemIndexOffset;
244 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
245 position++;
247 return items.get(position);
250 public long getItemId(int position) { argument
251 // Since a menu item's ID is optional, we'll use the position as an
253 return position;
256 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/core/java/android/database/
H A DCursorToBulkCursorAdaptor.java157 public CursorWindow getWindow(int position) { argument
161 if (!mCursor.moveToPosition(position)) {
174 } else if (position < window.getStartPosition()
175 || position >= window.getStartPosition() + window.getNumRows()) {
178 mCursor.fillWindow(position, window);
191 public void onMove(int position) { argument
195 mCursor.onMove(mCursor.getPosition(), position);
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DYearPickerView.java81 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
110 public View getView(int position, View convertView, ViewGroup parent) { argument
112 super.getView(position, convertView, parent);
124 public void postSetSelectionCentered(final int position) { argument
125 postSetSelectionFromTop(position, mViewSize / 2 - mChildSize / 2);
128 public void postSetSelectionFromTop(final int position, final int offset) { argument
133 setSelectionFromTop(position, offset);

Completed in 746 milliseconds

1234567891011>>