Lines Matching refs:newIndex
963 int newIndex = mStack.indexOfStackTask(focusedTask);
971 newIndex = mStack.indexOfStackTask(tv.getTask());
975 int tmpNewIndex = newIndex + (forward ? -1 : 1);
979 newIndex = tmpNewIndex;
987 newIndex = (newIndex + (forward ? -1 : 1) + taskCount) % taskCount;
996 for (newIndex = taskCount - 1; newIndex >= 0; newIndex--) {
997 float taskP = mLayoutAlgorithm.getStackScrollForTask(tasks.get(newIndex));
1004 for (newIndex = 0; newIndex < taskCount; newIndex++) {
1005 float taskP = mLayoutAlgorithm.getStackScrollForTask(tasks.get(newIndex));
1012 if (newIndex != -1) {
1013 boolean willScroll = setFocusedTask(newIndex, true /* scrollToTask */,