Searched refs:callingUser (Results 1 – 7 of 7) sorted by relevance
55 uid_t callingUser = callingUid / PER_USER_RANGE; in isCallerActiveUser() local58 return (foregroundUserId == callingUser) || (systemUiUid == callingUid) || in isCallerActiveUser()67 uid_t callingUser = callingUid / PER_USER_RANGE; in isCallerActiveUserOrManagedProfile() local70 if ((foregroundUserId == callingUser) || (systemUiUid == callingUid) || in isCallerActiveUserOrManagedProfile()74 uid_t parentUser = callingUser; in isCallerActiveUserOrManagedProfile()82 parentUser = um->getProfileParentId(callingUser); in isCallerActiveUserOrManagedProfile()
257 int callingUser = UserHandle.getCallingUserId(); in checkCaller() local259 return (sForegroundUserId == callingUser) || (sSystemUiUid == callingUid) in checkCaller()267 int callingUser = UserHandle.getCallingUserId(); in checkCallerAllowManagedProfiles() local274 UserInfo ui = um.getProfileParent(callingUser); in checkCallerAllowManagedProfiles()278 return (sForegroundUserId == callingUser) || (sForegroundUserId == parentUser) in checkCallerAllowManagedProfiles()
577 UserHandle callingUser = UserHandle.getUserHandleForUid(callingUid); in canUseCamera() local579 if (currentUserHandle != null && !currentUserHandle.equals(callingUser)) { in canUseCamera()
1759 PhoneAccountHandle phoneAccountUserHandle, UserHandle callingUser) { in isPhoneAccountHandleVisibleToCallingUser() argument1760 return mPhoneAccountRegistrar.getPhoneAccount(phoneAccountUserHandle, callingUser) != null; in isPhoneAccountHandleVisibleToCallingUser()
3739 UserHandle callingUser = UserHandle.of(UserHandle.getUserId(uid));3744 && userManager.hasUserRestriction(UserManager.DISALLOW_SMS, callingUser);
1933 UserHandle callingUser = UserHandle.of(UserHandle.getCallingUserId()); in startDiscovery() local1944 if (!Utils.checkCallerHasFineLocation(this, mAppOps, callingPackage, callingUser)) { in startDiscovery()1949 if (!Utils.checkCallerHasCoarseLocation(this, mAppOps, callingPackage, callingUser)) { in startDiscovery()
1940 UserHandle callingUser = UserHandle.of(UserHandle.getCallingUserId()); in startScan() local