/frameworks/base/apex/appsearch/service/java/com/android/server/appsearch/ |
D | AppSearchManagerService.java | 294 private void verifyUserUnlocked(@NonNull UserHandle callingUser) { in verifyUserUnlocked() argument 295 if (isUserLocked(callingUser)) { in verifyUserUnlocked() 296 throw new IllegalStateException(callingUser + " is locked or not running."); in verifyUserUnlocked() 300 private boolean isUserLocked(@NonNull UserHandle callingUser) { in isUserLocked() argument 303 if (mUnlockedUsersLocked.contains(callingUser)) { in isUserLocked() 308 return !mUserManager.isUserUnlockingOrUnlocked(callingUser); in isUserLocked() 335 UserHandle callingUser = handleIncomingUser(userHandle, callingUid); in setSchema() local 342 Context userContext = mContext.createContextAsUser(callingUser, /*flags=*/ 0); in setSchema() 343 verifyUserUnlocked(callingUser); in setSchema() 344 verifyCallingPackage(userContext, callingUser, callingUid, packageName); in setSchema() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | RemoteInputViewTest.java | 180 UserHandle callingUser = Process.myUserHandle(); in testEditorInfoTargetInputMethodUserForCallingUser() local 181 assertEquals(callingUser, getTargetInputMethodUser(callingUser, callingUser)); in testEditorInfoTargetInputMethodUserForCallingUser() 194 UserHandle callingUser = Process.myUserHandle(); in testEditorInfoTargetInputMethodUserForAllUser() local 196 getTargetInputMethodUser(callingUser, UserHandle.ALL)); in testEditorInfoTargetInputMethodUserForAllUser()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | AppTaskImpl.java | 130 int callingUser = UserHandle.getCallingUserId(); in startActivity() local 151 .setUserId(callingUser) in startActivity()
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | SliceManagerService.java | 148 int callingUser = Binder.getCallingUserHandle().getIdentifier(); in getPinnedSlices() local 154 int userId = ContentProvider.getUserIdFromUri(uri, callingUser); in getPinnedSlices() 155 if (userId == callingUser) { in getPinnedSlices()
|
/frameworks/base/services/core/java/com/android/server/media/projection/ |
D | MediaProjectionManagerService.java | 290 final UserHandle callingUser = Binder.getCallingUserHandle(); in createProjection() local 297 ai = mPackageManager.getApplicationInfoAsUser(packageName, 0, callingUser); in createProjection()
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | ContentService.java | 1361 final int callingUser = UserHandle.getCallingUserId(); in enforceCrossUserPermission() local 1362 if (callingUser != userHandle) { in enforceCrossUserPermission() 1377 final int callingUser = UserHandle.getCallingUserId(); in enforceNonFullCrossUserPermission() local 1378 if (callingUser == userHandle) { in enforceNonFullCrossUserPermission()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActiveServices.java | 542 ServiceRecord getServiceByNameLocked(ComponentName name, int callingUser) { in getServiceByNameLocked() argument 545 Slog.v(TAG_MU, "getServiceByNameLocked(" + name + "), callingUser = " + callingUser); in getServiceByNameLocked() 546 return getServiceMapLocked(callingUser).mServicesByInstanceName.get(name); in getServiceByNameLocked() 549 boolean hasBackgroundServicesLocked(int callingUser) { in hasBackgroundServicesLocked() argument 550 ServiceMap smap = mServiceMap.get(callingUser); in hasBackgroundServicesLocked() 593 private ServiceMap getServiceMapLocked(int callingUser) { in getServiceMapLocked() argument 594 ServiceMap smap = mServiceMap.get(callingUser); in getServiceMapLocked() 596 smap = new ServiceMap(mAm.mHandler.getLooper(), callingUser); in getServiceMapLocked() 597 mServiceMap.put(callingUser, smap); in getServiceMapLocked() 602 ArrayMap<ComponentName, ServiceRecord> getServicesLocked(int callingUser) { in getServicesLocked() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | BluetoothManagerService.java | 2471 int callingUser = UserHandle.getCallingUserId(); in checkIfCallerIsForegroundUser() local 2475 UserInfo ui = um.getProfileParent(callingUser); in checkIfCallerIsForegroundUser() 2481 valid = (callingUser == foregroundUser) || parentUser == foregroundUser in checkIfCallerIsForegroundUser() 2485 + callingUser + " parentUser=" + parentUser + " foregroundUser=" in checkIfCallerIsForegroundUser()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SMSDispatcher.java | 2354 UserHandle callingUser = UserHandle.getUserHandleForUid(Binder.getCallingUid()); in getSmsTracker() local 2355 final int userId = callingUser.getIdentifier(); in getSmsTracker() 2356 PackageManager pm = mContext.createContextAsUser(callingUser, 0).getPackageManager(); in getSmsTracker()
|
/frameworks/base/services/core/java/com/android/server/wallpaper/ |
D | WallpaperManagerService.java | 2502 final UserHandle callingUser = Binder.getCallingUserHandle(); in removeOnLocalColorsChangedListener() local 2503 if (callingUser.getIdentifier() != userId) { in removeOnLocalColorsChangedListener()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | AppOpsService.java | 2495 final int callingUser = UserHandle.getUserId(callingUid); in enforceManageAppOpsModes() local 2497 if (mProfileOwners != null && mProfileOwners.get(callingUser, -1) == callingUid) { in enforceManageAppOpsModes() 2498 if (targetUid >= 0 && callingUser == UserHandle.getUserId(targetUid)) { in enforceManageAppOpsModes()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 26919 int callingUser = UserHandle.getUserId(Binder.getCallingUid()); 26922 /*userId*/ callingUser); 26932 int callingUser = UserHandle.getUserId(Binder.getCallingUid()); 26933 PackageInfo pInfo = getPackageInfo(packageName, 0, callingUser); 26954 int callingUser = UserHandle.getCallingUserId(); 26955 ApplicationInfo appInfo = getApplicationInfo(packageName, 0, callingUser); 26966 int callingUser = UserHandle.getUserId(Binder.getCallingUid()); 26969 ApplicationInfo appInfo = getApplicationInfo(packageNames[i], 0, callingUser); 26977 int callingUser = UserHandle.getUserId(Binder.getCallingUid()); 26980 /*userId*/ callingUser);
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 3812 final int callingUser = UserHandle.getUserId(callingUid); 3816 enforceDeletingChannelHasNoFgService(pkg, callingUser, channelId); 3818 callingUser, REASON_CHANNEL_REMOVED, null); 3823 mArchive.removeChannelNotifications(pkg, callingUser, channelId);
|