Searched refs:candidateTaskId (Results 1 – 1 of 1) sorted by relevance
789 int candidateTaskId = currentTaskId; in getNextTaskIdForUserLocked() local790 while (mRecentTasks.taskIdTakenForUserLocked(candidateTaskId, userId) in getNextTaskIdForUserLocked()791 || anyTaskForIdLocked(candidateTaskId, !RESTORE_FROM_RECENTS, in getNextTaskIdForUserLocked()793 candidateTaskId++; in getNextTaskIdForUserLocked()794 if (candidateTaskId == (userId + 1) * MAX_TASK_IDS_PER_USER) { in getNextTaskIdForUserLocked()796 candidateTaskId -= MAX_TASK_IDS_PER_USER; in getNextTaskIdForUserLocked()798 if (candidateTaskId == currentTaskId) { in getNextTaskIdForUserLocked()806 mCurTaskIdForUser.put(userId, candidateTaskId); in getNextTaskIdForUserLocked()807 return candidateTaskId; in getNextTaskIdForUserLocked()