Lines Matching defs:position

173         int position = 0;
177 Log.d(TAG, prefix + " position=" + position++
199 * @param position The index of the menu row view in the list. This is not the index of the view
206 private boolean isVisibleInLayout(int position, MenuRowView view, List<Integer> rowsToAdd,
209 return (view.getVisibility() != View.GONE && !rowsToRemove.contains(position))
210 || rowsToAdd.contains(position);
261 int position = mSelectedPosition + 1;
262 for (; position < count; ++position) {
264 MenuRowView nextView = mMenuRowViews.get(position);
265 if (isVisibleInLayout(position, nextView, rowsToAdd, rowsToRemove)) {
292 for (++position; position < count; ++position) {
293 MenuRowView view = mMenuRowViews.get(position);
294 if (isVisibleInLayout(position, view, rowsToAdd, rowsToRemove)) {
306 * Move the current selection to the given {@code position}.
308 public void setSelectedPosition(int position) {
310 Log.d(TAG, "setSelectedPosition(position=" + position + ") {previousPosition="
313 if (mSelectedPosition == position) {
316 boolean indexValid = Utils.isIndexValid(mMenuRowViews, position);
317 SoftPreconditions.checkArgument(indexValid, TAG, "position " + position);
321 MenuRow row = mMenuRows.get(position);
323 Log.e(TAG, "Selecting invisible row: " + position);
329 mSelectedPosition = position;
336 // Adjust the position of the selected row.
342 * Move the current selection to the given {@code position} with animation.
345 public void setSelectedPositionSmooth(final int position) {
347 Log.d(TAG, "setSelectedPositionSmooth(position=" + position + ") {previousPosition="
351 setSelectedPosition(position);
354 if (mSelectedPosition == position) {
363 boolean newIndexValid = Utils.isIndexValid(mMenuRowViews, position);
364 SoftPreconditions.checkArgument(newIndexValid, TAG, "position " + position);
368 MenuRow row = mMenuRows.get(position);
370 Log.e(TAG, "Moving to the invisible row: " + position);
384 mSelectedPosition = position;
387 MenuRowView currentView = mMenuRowViews.get(position);
404 boolean scrollDown = position > oldPosition;
442 Rect currentLayoutRect = new Rect(layouts.get(position));
448 // The maximum is to the top of the start position of mTempTitleViewForOld.
470 Rect currentLayoutRect = new Rect(layouts.get(position));
481 // The maximum is to the top of the end position of mTempTitleViewForCurrent.
531 nextPosition = findNextVisiblePosition(position);
553 if (view.getVisibility() == View.VISIBLE && i != oldPosition && i != position
577 mMenuRowViews.get(position).onSelected(true);
584 MenuRow currentRow = mMenuRows.get(position);
586 View titleView = mMenuRowViews.get(position).getTitleView();
602 mMenuRowViews.get(position).onSelected(false);
702 for (int position : addedRowViews) {
703 MenuRowView view = mMenuRowViews.get(position);
705 Rect rect = layouts.get(position);
717 for (int position : removedRowViews) {
718 MenuRowView view = mMenuRowViews.get(position);
742 for (int position : mRemovingRowViews) {
743 mMenuRowViews.get(position).setVisibility(View.GONE);
793 * Returns the current position.