Lines Matching defs:userId
300 * Maps the task identifier that activities are currently being started in to the userId of the
301 * task. Each time a new task is created, the entry for the userId of the task is incremented
374 /** Stack id of the front stack when user switched, indexed by userId. */
742 boolean isUserLockedProfile(@UserIdInt int userId) {
743 if (!mService.mUserController.shouldConfirmCredentials(userId)) {
770 if (taskContainsActivityFromUser(tasks.get(i), userId)) {
779 if (taskContainsActivityFromUser(topTask, userId)) {
787 private boolean taskContainsActivityFromUser(TaskRecord task, @UserIdInt int userId) {
791 if (activityRecord.userId == userId) {
798 void setNextTaskIdForUserLocked(int taskId, int userId) {
799 final int currentTaskId = mCurTaskIdForUser.get(userId, -1);
801 mCurTaskIdForUser.put(userId, taskId);
805 static int nextTaskIdForUser(int taskId, int userId) {
807 if (nextTaskId == (userId + 1) * MAX_TASK_IDS_PER_USER) {
814 int getNextTaskIdForUserLocked(int userId) {
815 final int currentTaskId = mCurTaskIdForUser.get(userId, userId * MAX_TASK_IDS_PER_USER);
816 // for a userId u, a taskId can only be in the range
819 int candidateTaskId = nextTaskIdForUser(currentTaskId, userId);
820 while (mRecentTasks.taskIdTakenForUserLocked(candidateTaskId, userId)
823 candidateTaskId = nextTaskIdForUser(candidateTaskId, userId);
832 mCurTaskIdForUser.put(userId, candidateTaskId);
1170 ResolveInfo resolveIntent(Intent intent, String resolvedType, int userId) {
1171 return resolveIntent(intent, resolvedType, userId, 0);
1174 ResolveInfo resolveIntent(Intent intent, String resolvedType, int userId, int flags) {
1178 | ActivityManagerService.STOCK_PM_FLAGS, userId);
1185 ProfilerInfo profilerInfo, int userId) {
1186 final ResolveInfo rInfo = resolveIntent(intent, resolvedType, userId);
1263 r.userId, System.identityHashCode(r),
1496 UserInfo getUserInfo(int userId) {
1499 return UserManager.get(mService.mContext).getUserInfo(userId);
1755 void removeUserLocked(int userId) {
1756 mUserStackInFront.delete(userId);
1763 void updateUserStackLocked(int userId, ActivityStack stack) {
1764 if (userId != mCurrentUser) {
1765 mUserStackInFront.put(userId, stack != null ? stack.getStackId() : HOME_STACK_ID);
1773 boolean doit, boolean evenPersistent, int userId) {
1780 packageName, filterByClasses, doit, evenPersistent, userId)) {
1976 ActivityRecord getHomeActivityForUser(int userId) {
1985 && ((userId == UserHandle.USER_ALL) || (r.userId == userId))) {
2191 * @param userId user handle for the locked managed profile. Freeform tasks for this user will
2194 void moveProfileTasksFromFreeformToFullscreenStackLocked(@UserIdInt int userId) {
2204 if (taskContainsActivityFromUser(tasks.get(i), userId)) {
2405 && mService.mUserController.shouldConfirmCredentials(task.userId)) {
2481 && mService.mUserController.shouldConfirmCredentials(task.userId)) {
3087 boolean switchUserLocked(int userId, UserState uss) {
3093 final int restoreStackId = mUserStackInFront.get(userId, HOME_STACK_ID);
3094 mCurrentUser = userId;
3101 stack.switchUserLocked(userId);
3123 /** Checks whether the userid is a profile of the current user. */
3124 boolean isCurrentProfileLocked(int userId) {
3125 if (userId == mCurrentUser) return true;
3126 return mService.mUserController.isCurrentProfileLocked(userId);
3132 || (isCurrentProfileLocked(r.userId)
3133 && !mService.mUserController.isUserStoppingOrShuttingDownLocked(r.userId)));
3227 pw.println(" mLockTaskPackages (userId:packages)=");
3511 info.userId = stack.mCurrentUser;
3532 taskUserIds[i] = task.userId;
3589 lockTaskMsg.arg1 = task.userId;
3671 lockTaskMsg.arg1 = task.userId;
3829 if (top != null && mService.mUserController.shouldConfirmCredentials(top.userId)) {
3830 mService.mActivityStarter.showConfirmDeviceCredential(top.userId);
4151 final int userId = mService.mUserController.handleIncomingUser(Binder.getCallingPid(),
4156 checkEmbeddedAllowedInner(userId, pendingIntent.key.requestIntent,
4163 void checkEmbeddedAllowedInner(int userId, Intent intent, String resolvedType) {
4164 ActivityInfo aInfo = resolveActivity(intent, resolvedType, 0, null, userId);
4480 final int userId;
4525 if (!mService.mUserController.shouldConfirmCredentials(task.userId)
4550 userId = task.userId;
4552 null, null, 0, 0, bOptions, userId, null, task);