/frameworks/base/telephony/java/android/telephony/ |
H A D | LocationAccessPolicy.java | 113 final int callingUserId = UserHandle.getUserId(uid); 114 if (callingUserId == currentUser) { 120 if (user.id == callingUserId) {
|
/frameworks/base/services/core/java/com/android/server/search/ |
H A D | Searchables.java | 468 final int callingUserId = UserHandle.getCallingUserId(); 470 if (pm.canAccessComponent(callingUid, info.getSearchActivity(), callingUserId)) { 484 final int callingUserId = UserHandle.getCallingUserId(); 487 callingUid, info.activityInfo.getComponentName(), callingUserId)) { 500 final int callingUserId = UserHandle.getCallingUserId(); 502 && pm.canAccessComponent(callingUid, mCurrentGlobalSearchActivity, callingUserId)) { 514 final int callingUserId = UserHandle.getCallingUserId(); 516 && pm.canAccessComponent(callingUid, mWebSearchActivity, callingUserId)) {
|
/frameworks/base/core/java/android/os/ |
H A D | UserManagerInternal.java | 192 * Checks if the {@code callingUserId} and {@code targetUserId} are same or in same group 193 * and that the {@code callingUserId} is not a managed profile and 196 * @return TRUE if the {@code callingUserId} can access {@code targetUserId}. FALSE 202 public abstract boolean isProfileAccessible(int callingUserId, int targetUserId, argument
|
/frameworks/base/core/java/com/android/internal/app/ |
H A D | IntentForwarderActivity.java | 84 final int callingUserId = getUserId(); 91 innerIntent.prepareToLeaveUser(callingUserId); 93 newIntent.prepareToLeaveUser(callingUserId); 132 + callingUserId + " to user " + targetUserId);
|
/frameworks/av/services/oboeservice/ |
H A D | AAudioService.cpp | 188 const uid_t callingUserId = IPCThreadState::self()->getCallingUid(); local 190 bool callerOwnsIt = callingUserId == ownerUserId; 191 bool serverCalling = callingUserId == mAudioClient.clientUid; 196 callingUserId, streamHandle, ownerUserId);
|
/frameworks/base/core/java/android/app/ |
H A D | UiAutomationConnection.java | 180 int callingUserId = UserHandle.getCallingUserId(); 183 IBinder token = mAccessibilityManager.getWindowToken(windowId, callingUserId); 200 int callingUserId = UserHandle.getCallingUserId(); 203 IBinder token = mAccessibilityManager.getWindowToken(windowId, callingUserId);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | CrossProfileAppsServiceImpl.java | 122 String callingPackage, @UserIdInt int callingUserId) { 126 mInjector.getUserManager().getEnabledProfileIds(callingUserId); 130 if (userId == callingUserId) { 121 getTargetUserProfilesUnchecked( String callingPackage, @UserIdInt int callingUserId) argument
|
H A D | ShortcutRequestPinProcessor.java | 218 public boolean isRequestPinItemSupported(int callingUserId, int requestType) { argument 219 return getRequestPinConfirmationActivity(callingUserId, requestType) != null; 417 int callingUserId, int requestType) { 419 final int launcherUserId = mService.getParentOrSelfUserId(callingUserId); 416 getRequestPinConfirmationActivity( int callingUserId, int requestType) argument
|
H A D | UserManagerService.java | 1071 int callingUserId = UserHandle.getCallingUserId(); 1072 if (callingUserId != userId && !hasManageUsersPermission()) { 1073 if (!isSameProfileGroupNoChecks(callingUserId, userId)) { 1087 int callingUserId = UserHandle.getCallingUserId(); 1088 if (callingUserId != userId && !hasManageUsersPermission()) { 1089 if (!isSameProfileGroupNoChecks(callingUserId, userId)) { 1143 int callingUserId = UserHandle.getCallingUserId(); 1144 if (callingUserId == userId || isSameProfileGroupNoChecks(callingUserId, userId) || 1157 int callingUserId 3954 isProfileAccessible(int callingUserId, int targetUserId, String debugMsg, boolean throwSecurityException) argument [all...] |
H A D | LauncherAppsService.java | 241 final int callingUserId = injectCallingUserId(); 243 if (targetUserId == callingUserId) return true; 247 final UserInfo callingUserInfo = mUm.getUserInfo(callingUserId); 250 + targetUserId + " from " + callingUserId + " not allowed");
|
H A D | PackageManagerService.java | 4292 final int callingUserId = UserHandle.getUserId(callingUid); 4293 final boolean canViewInstantApps = canViewInstantApps(callingUid, callingUserId); 4298 final boolean targetIsInstantApp = ps.getInstantApp(callingUserId); 4301 || mInstantAppRegistry.isInstantAccessGranted(callingUserId, 4319 final int callingUserId = UserHandle.getUserId(callingUid); 4320 final boolean canViewInstantApps = canViewInstantApps(callingUid, callingUserId); 4327 ps != null && ps.getInstantApp(callingUserId); 4330 || mInstantAppRegistry.isInstantAccessGranted(callingUserId, 4952 final int callingUserId = UserHandle.getUserId(callingUid); 4953 if (ActivityManager.getCurrentUser() != callingUserId) { [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/ |
H A D | WifiPermissionsUtil.java | 242 int callingUserId = mWifiPermissionsWrapper.getCallingUserId(uid); 243 if (callingUserId == currentUser) { 248 if (user.id == callingUserId) {
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | TextServicesManagerService.java | 328 mSpellCheckerOwnerUserIdMap = new LazyIntToIntMap(callingUserId -> { 332 final UserInfo parent = mUserManager.getProfileParent(callingUserId); 333 return (parent != null) ? parent.id : callingUserId; 338 return callingUserId; 598 int callingUserId = UserHandle.getCallingUserId(); 601 final TextServicesData tsd = getDataFromCallingUserIdLocked(callingUserId); 672 int callingUserId = UserHandle.getCallingUserId(); 675 final TextServicesData tsd = getDataFromCallingUserIdLocked(callingUserId); 770 * @param callingUserId user ID of the calling process 775 private TextServicesData getDataFromCallingUserIdLocked(@UserIdInt int callingUserId) { argument [all...] |
H A D | MmsServiceBroker.java | 508 final int callingUserId = UserHandle.getCallingUserId(); 509 if (callingUserId != UserHandle.USER_SYSTEM) { 510 contentUri = ContentProvider.maybeAddUserId(contentUri, callingUserId);
|
/frameworks/base/core/java/android/content/pm/ |
H A D | ShortcutServiceInternal.java | 83 public abstract boolean isRequestPinItemSupported(int callingUserId, int requestType); argument
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsProvider.java | 1020 final int callingUserId = resolveCallingUserIdEnforcingPermissionsLocked(requestingUserId); 1025 name, callingUserId, value, Binder.getCallingUid())) { 1074 final int callingUserId = resolveCallingUserIdEnforcingPermissionsLocked(userId); 1079 final int ssaidUserId = resolveOwningUserIdForSecureSettingLocked(callingUserId, 1084 List<String> names = getSettingsNamesLocked(SETTINGS_TYPE_SECURE, callingUserId); 1094 final int owningUserId = resolveOwningUserIdForSecureSettingLocked(callingUserId, 1097 if (!isSecureSettingAccessible(name, callingUserId, owningUserId)) { 1129 final int callingUserId = resolveCallingUserIdEnforcingPermissionsLocked(requestingUserId); 1135 final int owningUserId = resolveOwningUserIdForSecureSettingLocked(callingUserId, name); 1137 if (!isSecureSettingAccessible(name, callingUserId, owningUserI 1552 isSecureSettingAccessible(String name, int callingUserId, int owningUserId) argument 1577 isLocationProvidersAllowedRestricted(String name, int callingUserId, int owningUserId) argument [all...] |
H A D | SettingsState.java | 1129 final int callingUserId = UserHandle.getUserId(callingUid); 1136 callingUserId); 1164 packageName, PackageManager.GET_SIGNATURES, callingUserId);
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
H A D | DevicePolicyManagerService.java | 5123 final int callingUserId = mInjector.userHandleGetCallingUserId(); 5136 callingUserId, "set FLAG_EVICT_CREDENTIAL_ENCRYPTION_KEY"); 5137 if (!isProfileOwner(adminComponent, callingUserId)) { 5149 mUserManager.evictCredentialEncryptionKey(callingUserId); 5153 final int userToLock = (parent || !isSeparateProfileChallengeEnabled(callingUserId) 5154 ? UserHandle.USER_ALL : callingUserId); 5170 parent ? getProfileParentId(callingUserId) : callingUserId; 5172 adminComponent.getPackageName(), callingUserId, affectedUserId); 8345 int callingUserId 9744 getManagedUserId(int callingUserId) argument 11006 checkManagedProfileProvisioningPreCondition(String packageName, int callingUserId) argument 11076 checkManagedUserProvisioningPreCondition(int callingUserId) argument 11097 checkManagedShareableDeviceProvisioningPreCondition(int callingUserId) argument 12745 prepareTransfer(ComponentName admin, ComponentName target, PersistableBundle bundle, int callingUserId, String adminType) argument 12753 postTransfer(String broadcast, int callingUserId) argument 12758 notifyAffiliatedProfileTransferOwnershipComplete(int callingUserId) argument [all...] |
/frameworks/base/services/core/java/com/android/server/dreams/ |
H A D | DreamManagerService.java | 562 final int callingUserId = UserHandle.getCallingUserId(); 564 if (callingUserId != currentUserId) { 567 + " user is active: callingUserId=" + callingUserId 573 testDreamInternal(dream, callingUserId);
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | UserController.java | 1451 final int callingUserId = UserHandle.getUserId(callingUid); 1452 if (callingUserId == userId) { 1467 && callingUserId == getCurrentUserId() 1468 && isSameProfileGroup(callingUserId, targetUserId)) { 1489 allow = isSameProfileGroup(callingUserId, targetUserId); 1497 targetUserId = callingUserId; 1802 boolean isSameProfileGroup(int callingUserId, int targetUserId) { argument 1803 if (callingUserId == targetUserId) { 1807 int callingProfile = mUserProfileGroupIds.get(callingUserId,
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
H A D | FingerprintService.java | 861 private void startAuthentication(IBinder token, long opId, int callingUserId, int groupId, argument 1177 final int callingUserId = UserHandle.getCallingUserId(); 1181 callingUserId)) { 1201 startAuthentication(token, opId, callingUserId, groupId, receiver, 1211 final int callingUserId = UserHandle.getCallingUserId(); 1214 callingUserId)) {
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
H A D | ClipboardService.java | 483 int callingUserId = UserHandle.getCallingUserId(); 488 return keyguardManager != null && keyguardManager.isDeviceLocked(callingUserId);
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
H A D | UsageStatsService.java | 711 final int callingUserId = UserHandle.getUserId(callingUid); 714 callingUserId) != callingUid) { 816 final int callingUserId = UserHandle.getUserId(callingUid); 821 return UsageStatsService.this.queryEventsForPackage(callingUserId, beginTime,
|
/frameworks/base/core/java/android/content/ |
H A D | ContentProvider.java | 609 final int callingUserId = UserHandle.getUserId(uid); 611 ? maybeAddUserId(uri, callingUserId) : uri;
|
/frameworks/base/services/print/java/com/android/server/print/ |
H A D | PrintManagerService.java | 145 final int callingUserId = UserHandle.getCallingUserId(); 148 disabledMessage = dpmi.getPrintingDisabledReasonForUser(callingUserId);
|