Home
last modified time | relevance | path

Searched refs:callingUser (Results 1 – 17 of 17) sorted by relevance

/packages/modules/AppSearch/service/java/com/android/server/appsearch/util/
DServiceImplHelper.java109 public boolean isUserLocked(@NonNull UserHandle callingUser) { in isUserLocked() argument
112 if (mUnlockedUsersLocked.contains(callingUser)) { in isUserLocked()
117 return !mUserManager.isUserUnlockingOrUnlocked(callingUser); in isUserLocked()
121 public void verifyUserUnlocked(@NonNull UserHandle callingUser) { in verifyUserUnlocked() argument
122 if (isUserLocked(callingUser)) { in verifyUserUnlocked()
123 throw new IllegalStateException(callingUser + " is locked or not running."); in verifyUserUnlocked()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
DAutoGrantPermissionsNotifier.java105 UserHandle callingUser = getUserHandleForUid(mPackageInfo.applicationInfo.uid); in AutoGrantPermissionsNotifier() local
106 mContext = context.createContextAsUser(callingUser, 0); in AutoGrantPermissionsNotifier()
238 UserHandle callingUser = getUserHandleForUid(mPackageInfo.applicationInfo.uid); in getSettingsPermissionIntent() local
244 .putExtra(EXTRA_USER, callingUser) in getSettingsPermissionIntent()
/packages/modules/Bluetooth/service/src/com/android/server/bluetooth/
DBtPermissionUtils.java276 final UserHandle callingUser = UserHandle.getUserHandleForUid(callingUid); in checkIfCallerIsForegroundUser() local
286 parentUser = userManager.getProfileParent(callingUser); in checkIfCallerIsForegroundUser()
295 Objects.equals(callingUser, foregroundUser) in checkIfCallerIsForegroundUser()
306 + callingUser in checkIfCallerIsForegroundUser()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ui/viewmodel/
DResolverRequestReader.kt39 val callingUser = optional(value<UserHandle>(EXTRA_CALLING_USER)) in readResolverRequest() constant
42 ResolverRequest(launch.intent, selectedProfile, callingUser, audioDevice) in readResolverRequest()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/ui/viewmodel/
DResolverRequestTest.kt62 assertThat(result.value.callingUser).isNull() in createActivityModel()
125 assertThat(result.value.callingUser).isEqualTo(UserHandle.of(123)) in createActivityModel()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/
DUtils.java527 UserHandle callingUser = UserHandle.getUserHandleForUid(callingUid); in isPackageNameAccurate() local
531 int packageUid = context.createContextAsUser(callingUser, 0) in isPackageNameAccurate()
782 UserHandle callingUser = UserHandle.getUserHandleForUid(callingUid); in checkCallerIsSystemOrActiveUser() local
784 return (sForegroundUserId == callingUser.getIdentifier()) in checkCallerIsSystemOrActiveUser()
824 UserHandle callingUser = UserHandle.getUserHandleForUid(callingUid); in checkCallerIsSystemOrActiveOrManagedUser() local
830 UserHandle uh = um.getProfileParent(callingUser); in checkCallerIsSystemOrActiveOrManagedUser()
834 return (sForegroundUserId == callingUser.getIdentifier()) in checkCallerIsSystemOrActiveOrManagedUser()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/ui/model/
DResolverRequest.kt45 val callingUser: UserHandle?, constant in com.android.intentresolver.ui.model.ResolverRequest
/packages/services/Telecomm/src/com/android/server/telecom/
DVideoProviderProxy.java584 UserHandle callingUser = UserHandle.getUserHandleForUid(callingUid); in canUseCamera() local
586 if (currentUserHandle != null && !currentUserHandle.equals(callingUser)) { in canUseCamera()
DInCallController.java1853 public void bringToForeground(boolean showDialpad, UserHandle callingUser) { in bringToForeground() argument
1865 && isLockscreenRestricted && !serviceMap.containsKey(callingUser)) { in bringToForeground()
1874 callingUser = hasWorkCalls ? workProfileUser : currentUser; in bringToForeground()
1876 callingUser = currentUser; in bringToForeground()
1879 if (serviceMap.containsKey(callingUser)) { in bringToForeground()
1880 for (IInCallService inCallService : serviceMap.get(callingUser).values()) { in bringToForeground()
DCallAudioManager.java507 Set<UserHandle> silenceRingers(Context context, UserHandle callingUser, in silenceRingers() argument
520 .isCallVisibleForUser(call, callingUser)) { in silenceRingers()
DCallsManager.java5006 UserHandle callingUser, boolean hasCrossUserAccess,
5033 call -> hasCrossUserAccess || isCallVisibleForUser(call, callingUser));
5147 public boolean hasOngoingCalls(UserHandle callingUser, boolean hasCrossUserAccess) {
5150 callingUser, hasCrossUserAccess,
5161 public boolean hasOngoingManagedCalls(UserHandle callingUser, boolean hasCrossUserAccess) {
5164 callingUser, hasCrossUserAccess,
5801 UserHandle callingUser = UserHandle.of(UserHandle.getUserId(uid));
5806 ? userManager.hasUserRestrictionForUser(UserManager.DISALLOW_SMS, callingUser)
5807 : userManager.hasUserRestriction(UserManager.DISALLOW_SMS, callingUser);
DTelecomServiceImpl.java1429 UserHandle callingUser = Binder.getCallingUserHandle();
1432 … mCallsManager.getInCallController().bringToForeground(showDialpad, callingUser);
2793 PhoneAccountHandle phoneAccountUserHandle, UserHandle callingUser) { in isPhoneAccountHandleVisibleToCallingUser() argument
2795 return mPhoneAccountRegistrar.getPhoneAccount(phoneAccountUserHandle, callingUser) in isPhoneAccountHandleVisibleToCallingUser()
/packages/modules/Media/apex/service/java/com/android/server/media/
DMediaCommunicationService.java363 final UserHandle callingUser = UserHandle.getUserHandleForUid(uid); in isTrusted() local
365 || getPackageUidForUser(controllerPackageName, callingUser) != controllerUid) { in isTrusted()
380 callingUser.getIdentifier(), controllerPackageName, controllerUid); in isTrusted()
/packages/services/Car/service/src/com/android/car/user/
DCarUserService.java1317 UserHandle callingUser = Binder.getCallingUserHandle(); in createUser() local
1318 if (mUserManager.hasUserRestrictionForUser(UserManager.DISALLOW_ADD_USER, callingUser)) { in createUser()
1320 callingUser, UserManager.DISALLOW_ADD_USER); in createUser()
1332 callingUser, hasCallerRestrictions)); in createUser()
1372 @NonNull UserHandle callingUser, boolean hasCallerRestrictions) { in handleCreateUser() argument
1409 if (!mUserHandleHelper.isAdminUser(callingUser) in handleCreateUser()
1413 callingUser.getIdentifier()); in handleCreateUser()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java935 UserHandle callingUser = getCallingUserHandle(); in enforceValidCallingUser() local
939 if (!callingUser.isSystem() && callingUser.getIdentifier() != userId) { in enforceValidCallingUser()
940 throw new SecurityException("The calling user " + callingUser.getIdentifier() in enforceValidCallingUser()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java312 UserHandle callingUser = UserHandle.getUserHandleForUid(callingUid); in setUp() local
313 Utils.setForegroundUserId(callingUser.getIdentifier()); in setUp()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/
DAdapterService.java4722 UserHandle callingUser = Binder.getCallingUserHandle(); in startDiscovery() local
4736 if (!Utils.checkCallerHasFineLocation(this, attributionSource, callingUser)) { in startDiscovery()
4741 if (!Utils.checkCallerHasCoarseLocation(this, attributionSource, callingUser)) { in startDiscovery()