Home
last modified time | relevance | path

Searched refs:callingUserId (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/src/com/android/settings/password/
DSetNewPasswordController.java76 final int callingUserId = Utils.getSecureTargetUser(activityToken, in create() local
79 if (lockPatternUtils.isSeparateProfileChallengeAllowed(callingUserId)) { in create()
80 userId = callingUserId; in create()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java1153 int callingUserId = Binder.getCallingUserHandle().getIdentifier(); in removeUser() local
1154 UserInfo callingUser = mUserManager.getUserInfo(callingUserId); in removeUser()
1155 if (!callingUser.isAdmin() && userId != callingUserId) { in removeUser()
1156 throw new SecurityException("Non-admin user " + callingUserId in removeUser()
1369 int callingUserId = Binder.getCallingUserHandle().getIdentifier(); in handleCreateUser() local
1370 UserInfo callingUser = mUserManager.getUserInfo(callingUserId); in handleCreateUser()
1373 Slog.d(TAG, "Non-admin user " + callingUserId in handleCreateUser()
/packages/services/Car/service/src/com/android/car/watchdog/
DWatchdogPerfHandler.java208 int callingUserId = UserHandle.getUserId(callingUid); in getResourceOveruseStats() local
209 UserHandle callingUserHandle = UserHandle.of(callingUserId); in getResourceOveruseStats()
219 statsBuilder.setIoOveruseStats(getIoOveruseStats(callingUserId, callingPackageName, in getResourceOveruseStats()
223 + "package '%s']", callingUid, callingUserId, callingPackageName); in getResourceOveruseStats()
/packages/modules/Permission/service/java/com/android/role/
DRoleService.java597 final int callingUserId = UserHandleCompat.getUserId(callingUid); in enforceCrossUserPermission() local
598 if (userId == callingUserId) { in enforceCrossUserPermission()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaProvider.java1363 int callingUserId = uid / PER_USER_RANGE; in shouldAllowLookupForFuse() local
1365 Log.d(TAG, "CrossUser not enabled. Users: " + callingUserId + " and " + pathUserId); in shouldAllowLookupForFuse()
1369 if (callingUserId != pathUserId && callingUserId != 0 && pathUserId != 0) { in shouldAllowLookupForFuse()
1370 Log.w(TAG, "CrossUser at least one user is 0 check failed. Users: " + callingUserId in shouldAllowLookupForFuse()
1375 if (isWorkProfile(callingUserId) || isWorkProfile(pathUserId)) { in shouldAllowLookupForFuse()
1377 Log.w(TAG, "CrossUser work profile check failed. Users: " + callingUserId + " and " in shouldAllowLookupForFuse()
1382 boolean result = isAppCloneUserPair(pathUserId, callingUserId); in shouldAllowLookupForFuse()
1384 Log.i(TAG, "CrossUser allowed. Users: " + callingUserId + " and " + pathUserId); in shouldAllowLookupForFuse()
1386 Log.w(TAG, "CrossUser isAppCloneUserPair check failed. Users: " + callingUserId in shouldAllowLookupForFuse()