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

1234567891011>>

/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/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
/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.java165 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
166 mMenu.performItemAction(mAdapter.getItem(position), this, 0);
238 public MenuItemImpl getItem(int position) { argument
240 position += mItemIndexOffset;
241 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
242 position++;
244 return items.get(position);
247 public long getItemId(int position) { argument
248 // Since a menu item's ID is optional, we'll use the position as an
250 return position;
253 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DListMenuPresenter.java174 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
175 mMenu.performItemAction(mAdapter.getItem(position), 0);
247 public MenuItemImpl getItem(int position) { argument
249 position += mItemIndexOffset;
250 if (mExpandedIndex >= 0 && position >= mExpandedIndex) {
251 position++;
253 return items.get(position);
256 public long getItemId(int position) { argument
257 // Since a menu item's ID is optional, we'll use the position as an
259 return position;
262 getView(int position, View convertView, ViewGroup parent) argument
[all...]
/frameworks/base/core/java/android/database/
H A DCursorToBulkCursorAdaptor.java160 public CursorWindow getWindow(int position) { argument
164 if (!mCursor.moveToPosition(position)) {
177 } else if (position < window.getStartPosition()
178 || position >= window.getStartPosition() + window.getNumRows()) {
181 mCursor.fillWindow(position, window);
194 public void onMove(int position) { argument
198 mCursor.onMove(mCursor.getPosition(), position);
/frameworks/base/core/java/android/widget/
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
252 * Implementers can call getItemAtPosition(position) if they need
258 * @param position The position o
261 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
293 performItemClick(View view, int position, long id) argument
325 onItemLongClick(AdapterView<?> parent, View view, int position, long id) argument
369 onItemSelected(AdapterView<?> parent, View view, int position, long id) argument
404 AdapterContextMenuInfo(View targetView, int position, long id) argument
420 public int position; field in class:AdapterView.AdapterContextMenuInfo
644 setSelection(int position) argument
762 getItemAtPosition(int position) argument
767 getItemIdAtPosition(int position) argument
1144 lookForSelectablePosition(int position, boolean lookDown) argument
1152 setSelectedPositionInt(int position) argument
1162 setNextSelectedPositionInt(int position) argument
[all...]
H A DListView.java57 * position - index of the items in the cursor
77 * Used to indicate a no preference for a position type.
488 int position;
490 position = lookForSelectablePosition(mItemCount - 1, false);
492 position = lookForSelectablePosition(0, true);
494 setSelectedPositionInt(position);
495 setNextSelectedPositionInt(position);
672 * @param pos The first position to put in the list
707 * @param pos The first position to put in the list
769 int position
798 fillAboveAndBelow(View sel, int position) argument
915 smoothScrollToPosition(int position) argument
1101 setup(int position, int top) argument
1182 measureScrapChild(View child, int position, int widthMeasureSpec) argument
1335 fillSpecific(int position, int top) argument
1772 makeAndAddView(int position, int y, boolean flow, int childrenLeft, boolean selected) argument
1812 setupChild(View child, int position, int y, boolean flowDown, int childrenLeft, boolean selected, boolean recycled) argument
1913 setSelection(int position) argument
1926 setSelectionFromTop(int position, int y) argument
1962 setSelectionInt(int position) argument
1996 lookForSelectablePosition(int position, boolean lookDown) argument
2036 lookForSelectablePositionAfter(int current, int position, boolean lookDown) argument
3084 addViewAbove(View theView, int position) argument
3093 addViewBelow(View theView, int position) argument
3790 onInitializeAccessibilityNodeInfoForItem( View view, int position, AccessibilityNodeInfo info) 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...]
H A DExpandableListConnector.java34 * <li> flPos - Flat list position, the position used by ListView
35 * <li> gPos - Group position, the position of a group among all the groups
36 * <li> cPos - Child position, the position of a child among all the children
46 * Internally, this connector translates the flat list position that the
96 * Translates a flat list position to either a) group pos if the specified
97 * flat list position corresponds to a group, or b) child pos if it
102 * @param flPos the flat list position t
961 public ExpandableListPosition position; field in class:ExpandableListConnector.PositionMetadata
[all...]
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...]
H A DAbsListView.java259 * and the value holds the last known position in the adapter for that id.
304 * The current position of the selector in the list.
367 * The position of the view that received the down motion event
451 * Optional callback to notify client when scroll position has changed
466 * Indicates whether to use pixels-based or position-based scrollbar
487 * The position to resurrect the selected position to.
505 * find a checked item with a stable ID that moved position across
643 * the top of the first position in the adapter, based on the last time
650 * the bottom of the last position i
905 isItemChecked(int position) argument
991 setItemChecked(int position, boolean value) argument
1061 performItemClick(View view, int position, long id) argument
1341 setVerticalScrollbarPosition(int position) argument
1620 int position; field in class:AbsListView.SavedState
2228 obtainView(int position, boolean[] isScrap) argument
2388 onInitializeAccessibilityNodeInfoForItem( View view, int position, AccessibilityNodeInfo info) argument
2419 positionSelector(int position, View sel) argument
2855 createContextMenuInfo(View view, int position, long id) argument
4346 start(final int position) argument
4393 start(final int position, final int boundPosition) argument
4471 startWithOffset(int position, int offset) argument
4475 startWithOffset(final int position, int offset, final int duration) argument
4791 smoothScrollToPosition(int position) argument
4810 smoothScrollToPositionFromTop(int position, int offset, int duration) argument
4828 smoothScrollToPositionFromTop(int position, int offset) argument
4844 smoothScrollToPosition(int position, int boundPosition) argument
4889 smoothScrollByOffset(int position) argument
5277 setSelectionInt(int position) argument
6318 onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) argument
6369 onItemCheckedStateChanged(ActionMode mode, int position, long id, boolean checked) argument
6610 getActiveView(int position) argument
6621 getTransientStateView(int position) argument
6666 getScrapView(int position) argument
6687 addScrapView(View scrap, int position) argument
6928 retrieveFromScrap(ArrayList<View> scrapViews, int position) argument
[all...]
H A DCursorAdapter.java209 public Object getItem(int position) { argument
211 mCursor.moveToPosition(position);
221 public long getItemId(int position) { argument
223 if (mCursor.moveToPosition(position)) {
241 public View getView(int position, View convertView, ViewGroup parent) { argument
245 if (!mCursor.moveToPosition(position)) {
246 throw new IllegalStateException("couldn't move cursor to position " + position);
259 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
261 mCursor.moveToPosition(position);
[all...]
H A DSlidingDrawer.java482 private void animateClose(int position) { argument
483 prepareTracking(position);
484 performFling(position, mMaximumAcceleration, true);
487 private void animateOpen(int position) { argument
488 prepareTracking(position);
489 performFling(position, -mMaximumAcceleration, true);
492 private void performFling(int position, float velocity, boolean always) { argument
493 mAnimationPosition = position;
498 (position > mTopOffset + (mVertical ? mHandleHeight : mHandleWidth) &&
501 // us to retract. Animate back to the expanded position
541 prepareTracking(int position) argument
566 moveHandle(int position) argument
[all...]
H A DExpandableListView.java57 * {@link SimpleCursorTreeAdapter}) contain the preferred position information
62 * {@link ExpandableListContextMenuInfo#packedPosition} being a packed position
89 * The packed position represents a group.
94 * The packed position represents a child.
99 * The packed position represents a neither/null/no preference.
104 * The value for a packed position that represents neither/null/no
106 * (first bit 0) should not have a child position filled.
110 /** The mask (in packed position representation) for the child */
113 /** The mask (in packed position representation) for the group */
116 /** The mask (in packed position representatio
614 isHeaderOrFooterPosition(int position) argument
642 performItemClick(View v, int position, long id) argument
662 handleItemClick(View v, int position, long id) argument
1140 getChildOrGroupId(ExpandableListPosition position) argument
[all...]
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
H A DYearPickerView.java83 public void onItemClick(AdapterView<?> parent, View view, int position, long id) { argument
112 public View getView(int position, View convertView, ViewGroup parent) { argument
114 super.getView(position, convertView, parent);
126 public void postSetSelectionCentered(final int position) { argument
127 postSetSelectionFromTop(position, mViewSize / 2 - mChildSize / 2);
130 public void postSetSelectionFromTop(final int position, final int offset) { argument
135 setSelectionFromTop(position, offset);
/frameworks/base/tests/TransitionTests/src/com/android/transitiontests/
H A DListViewAddRemove.java93 int position = listview.getPositionForView(view);
102 int position = listview.getPositionForView(view);
114 public void onItemClick(AdapterView<?> parent, final View view, int position, long id) {
116 String item = (String) parent.getItemAtPosition(position);
156 public long getItemId(int position) { argument
157 String item = getItem(position);
H A DListViewAddRemoveNoTransition.java55 public void onItemClick(AdapterView<?> parent, final View view, int position, long id) {
56 String item = (String) parent.getItemAtPosition(position);
92 public long getItemId(int position) { argument
93 String item = getItem(position);
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/presentation/
H A DCube.java76 mVertexBuffer.position(0);
82 mColorBuffer.position(0);
86 mIndexBuffer.position(0);
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
H A DA3DSelector.java87 protected void onListItemClick(ListView l, View v, int position, long id) { argument
88 if (position == 0) {
98 File selectedFile = mCurrentSubList[position - 1];
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
H A DFileSelector.java87 protected void onListItemClick(ListView l, View v, int position, long id) { argument
88 if (position == 0) {
98 File selectedFile = mCurrentSubList[position - 1];
/frameworks/base/core/java/android/app/
H A DLauncherActivity.java116 public Intent intentForPosition(int position) { argument
122 ListItem item = mActivitiesList.get(position);
130 public ListItem itemForPosition(int position) { argument
135 return mActivitiesList.get(position);
142 public Object getItem(int position) { argument
143 return position;
146 public long getItemId(int position) { argument
147 return position;
150 public View getView(int position, View convertView, ViewGroup parent) { argument
158 bindView(view, mActivitiesList.get(position));
402 onListItemClick(ListView l, View v, int position, long id) argument
412 intentForPosition(int position) argument
422 itemForPosition(int position) argument
[all...]
/frameworks/support/v4/java/android/support/v4/widget/
H A DCursorAdapter.java211 public Object getItem(int position) { argument
213 mCursor.moveToPosition(position);
223 public long getItemId(int position) { argument
225 if (mCursor.moveToPosition(position)) {
243 public View getView(int position, View convertView, ViewGroup parent) { argument
247 if (!mCursor.moveToPosition(position)) {
248 throw new IllegalStateException("couldn't move cursor to position " + position);
261 public View getDropDownView(int position, View convertView, ViewGroup parent) { argument
263 mCursor.moveToPosition(position);
[all...]
/frameworks/av/libvideoeditor/vss/src/
H A DM4AMRR_CoreReader.c587 M4OSA_UInt32 position, partSeekTime; local
637 position = (pStreamContext->m_streamType != M4SYS_kAMR)?9:6;
650 pStreamContext->m_pSeekIndex[count++]=position;
674 position += auSize ;
682 position ++;
687 pStreamContext->m_pSeekIndex[count++] = position;
713 position = (M4OSA_UInt32)(time_double / pStreamContext->m_seekInterval);
718 position = 0;
722 position=(position >
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DScrollingTabContainerView.java173 public void setTabSelected(int position) { argument
174 mSelectedTabIndex = position;
178 final boolean isSelected = i == position;
181 animateToTab(position);
184 if (mTabSpinner != null && position >= 0) {
185 mTabSpinner.setSelection(position);
248 public void animateToTab(final int position) { argument
249 final View tabView = mTabLayout.getChildAt(position);
312 public void addTab(ActionBar.Tab tab, int position, boolean setSelected) { argument
314 mTabLayout.addView(tabView, position, ne
327 updateTab(int position) argument
337 removeTabAt(int position) argument
358 onItemClick(AdapterView<?> parent, View view, int position, long id) argument
524 getItem(int position) argument
529 getItemId(int position) argument
534 getView(int position, View convertView, ViewGroup parent) argument
[all...]

Completed in 659 milliseconds

1234567891011>>