Lines Matching refs:newIndex
968 int newIndex = mStack.indexOfStackTask(focusedTask);
976 newIndex = mStack.indexOfStackTask(tv.getTask());
980 int tmpNewIndex = newIndex + (forward ? -1 : 1);
984 newIndex = tmpNewIndex;
992 newIndex = (newIndex + (forward ? -1 : 1) + taskCount) % taskCount;
1001 for (newIndex = taskCount - 1; newIndex >= 0; newIndex--) {
1002 float taskP = mLayoutAlgorithm.getStackScrollForTask(tasks.get(newIndex));
1009 for (newIndex = 0; newIndex < taskCount; newIndex++) {
1010 float taskP = mLayoutAlgorithm.getStackScrollForTask(tasks.get(newIndex));
1017 if (newIndex != -1) {
1018 boolean willScroll = setFocusedTask(newIndex, true /* scrollToTask */,