Lines Matching refs:position

191             int position;
193 position = lookForSelectablePosition(mItemCount - 1, false);
195 position = lookForSelectablePosition(0, true);
197 setSelectedPositionInt(position);
198 setNextSelectedPositionInt(position);
210 int lookForSelectablePosition(int position, boolean lookDown) {
216 if (position < 0 || position >= mItemCount) {
219 return position;
239 int position = mFirstPosition + count;
241 position += numColumns - 1;
243 fillDown(position, startOffset);
252 int position = mFirstPosition;
254 position -= numColumns;
256 position--;
258 fillUp(position, startOffset);
266 * @param pos The first position to put in the list
365 * @param pos The first position to put in the list
523 * @param position the position at which to start filling
524 * @param top the top of the view at that position
528 private View fillSpecific(int position, int top) {
535 motionRowStart = position - (position % numColumns);
537 final int invertedSelection = mItemCount - 1 - position;
661 // Fill the gap that was opened below the last position with more rows, if
822 * Smoothly scroll to the specified adapter position. The view will
823 * scroll such that the indicated position is displayed.
824 * @param position Scroll to this adapter position.
827 public void smoothScrollToPosition(int position) {
828 super.smoothScrollToPosition(position);
832 * Smoothly scroll to the specified adapter position offset. The view will
833 * scroll such that the indicated position is displayed.
834 * @param offset The amount to offset from the adapter position to scroll to.
1243 // Move the selection relative to its old position
1315 * @param position Logical position in the list
1320 * @param selected Is this position selected?
1324 private View makeAndAddView(int position, int y, boolean flow, int childrenLeft,
1329 // Try to use an existing view for this position
1330 child = mRecycler.getActiveView(position);
1334 setupChild(child, position, y, flow, childrenLeft, selected, true, where);
1339 // Make a new view for this position, or convert an unused view if
1341 child = obtainView(position, mIsScrap);
1344 setupChild(child, position, y, flow, childrenLeft, selected, mIsScrap[0], where);
1354 * @param position The position of the view
1355 * @param y The y position relative to which this view will be positioned
1359 * @param selected Is this position selected?
1365 private void setupChild(View child, int position, int y, boolean flow, int childrenLeft,
1371 mMotionPosition == position;
1382 p.viewType = mAdapter.getItemViewType(position);
1404 ((Checkable) child).setChecked(mCheckStates.get(position));
1407 child.setActivated(mCheckStates.get(position));
1459 != position) {
1467 * @param position Index (starting at 0) of the data item to be selected.
1473 public void setSelection(int position) {
1475 setNextSelectedPositionInt(position);
1477 mResurrectToPosition = position;
1487 * Makes the item at the supplied position selected.
1489 * @param position the position of the new selection
1492 void setSelectionInt(int position) {
1499 setNextSelectedPositionInt(position);