Lines Matching refs:position

64      * The position of the first child displayed
96 * Indicates whether to sync based on the selection or position. Possible
148 * The position within the adapter's data set of the item to select
160 * The position within the adapter's data set of the currently selected item.
187 * Represents an invalid position. All valid positions are in the range 0 to 1 less than the
198 * The last selected position we used when notifying
203 * The id of the last selected position we used when notifying
253 * Implementers can call getItemAtPosition(position) if they need
259 * @param position The position of the view in the adapter.
262 void onItemClick(AdapterView<?> parent, View view, int position, long id);
287 * @param position The position of the view in the adapter.
292 public boolean performItemClick(View view, int position, long id) {
298 mOnItemClickListener.onItemClick(this, view, position, id);
314 * Implementers can call getItemAtPosition(position) if they need to access
319 * @param position The position of the view in the list
324 boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id);
357 * position is different from the previously selected position or if
360 * Impelmenters can call getItemAtPosition(position) if they need to access the
365 * @param position The position of the view in the adapter
368 void onItemSelected(AdapterView<?> parent, View view, int position, long id);
403 public AdapterContextMenuInfo(View targetView, int position, long id) {
405 this.position = position;
416 * The position in the adapter for which the context menu is being
419 public int position;
536 * Return the position of the currently selected item within the adapter's data set
585 * Get the position within the adapter's data set for the view, where view is a an adapter item
590 * @return the position within the adapter's data set of the view, or {@link #INVALID_POSITION}
618 * Returns the position within the adapter's data set for the first item
621 * @return The position within the adapter's data set
628 * Returns the position within the adapter's data set for the last item
631 * @return The position within the adapter's data set
641 * @param position Index (starting at 0) of the data item to be selected.
643 public abstract void setSelection(int position);
756 * Gets the data associated with the specified position in the list.
758 * @param position Which data to get
759 * @return The data associated with the specified position in the list
761 public Object getItemAtPosition(int position) {
763 return (adapter == null || position < 0) ? null : adapter.getItem(position);
766 public long getItemIdAtPosition(int position) {
768 return (adapter == null || position < 0) ? INVALID_ROW_ID : adapter.getItemId(position);
903 final int position = getSelectedItemPosition();
904 if (position >= 0) {
989 // See if we can find a position in the new data with the same
1003 // Try to use the same position if we can't find matching data
1006 // Pin position to the available range
1050 * Searches the adapter for a position matching mSyncRowId. The search starts at mSyncPosition
1051 * and then alternates between moving up and moving down until 1) we find the right position, or
1052 * 2) we run out of time, or 3) we have looked at every position
1080 // first position scanned so far
1083 // last position scanned so far
1137 * Find a position that can be selected (i.e., is not a separator).
1139 * @param position The starting position to look at.
1141 * @return The next selectable position starting at position and then searching either up or
1144 int lookForSelectablePosition(int position, boolean lookDown) {
1145 return position;
1150 * @param position Our current position
1152 void setSelectedPositionInt(int position) {
1153 mSelectedPosition = position;
1154 mSelectedRowId = getItemIdAtPosition(position);
1159 * @param position Intended value for mSelectedPosition the next time we go
1162 void setNextSelectedPositionInt(int position) {
1163 mNextSelectedPosition = position;
1164 mNextSelectedRowId = getItemIdAtPosition(position);
1166 if (mNeedSync && mSyncMode == SYNC_SELECTED_POSITION && position >= 0) {
1167 mSyncPosition = position;