/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 81 return getUserId(uid1) == getUserId(uid2); in isSameUser() 120 public static final int getUserId(int uid) { in getUserId() method in UserHandle 130 return getUserId(Binder.getCallingUid()); in getCallingUserId() 135 int userId = getUserId(Binder.getCallingUid()); in getCallingUserHandle() 192 sb.append(getUserId(uid)); in formatUid() 217 pw.print(getUserId(uid)); in formatUid() 239 return getUserId(Process.myUid()); in myUserId()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 106 PackageInfo pi = mPM.getPackageInfo(packageName, flags, mContext.getUserId()); in getPackageInfo() 269 ApplicationInfo ai = mPM.getApplicationInfo(packageName, flags, mContext.getUserId()); in getApplicationInfo() 306 ActivityInfo ai = mPM.getActivityInfo(className, flags, mContext.getUserId()); in getActivityInfo() 321 ActivityInfo ai = mPM.getReceiverInfo(className, flags, mContext.getUserId()); in getReceiverInfo() 336 ServiceInfo si = mPM.getServiceInfo(className, flags, mContext.getUserId()); in getServiceInfo() 351 ProviderInfo pi = mPM.getProviderInfo(className, flags, mContext.getUserId()); in getProviderInfo() 496 return getInstalledPackages(flags, mContext.getUserId()); in getInstalledPackages() 514 final int userId = mContext.getUserId(); in getPackagesHoldingPermissions() 527 final int userId = mContext.getUserId(); in getInstalledApplications() 538 return resolveActivityAsUser(intent, flags, mContext.getUserId()); in resolveActivity() [all …]
|
D | ContextImpl.java | 1328 getUserId()); in sendBroadcast() 1342 false, false, getUserId()); in sendBroadcast() 1356 getUserId()); in sendBroadcast() 1371 getUserId()); in sendOrderedBroadcast() 1414 true, false, getUserId()); in sendOrderedBroadcast() 1495 getUserId()); in sendStickyBroadcast() 1529 AppOpsManager.OP_NONE, true, true, getUserId()); in sendStickyOrderedBroadcast() 1544 mMainThread.getApplicationThread(), intent, getUserId()); in removeStickyBroadcast() 1617 return registerReceiverInternal(receiver, getUserId(), in registerReceiver() 1821 className, profileFile, 0, arguments, null, null, getUserId(), in startInstrumentation() [all …]
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | JobStatus.java | 141 public int getUserId() { in getUserId() method in JobStatus 142 return UserHandle.getUserId(uId); in getUserId() 226 + ",u" + getUserId() in toString() 256 ", u" + getUserId(); in toShortString()
|
D | ConnectivityController.java | 111 if (js.getUserId() != userId) { in updateTrackedJobs() 156 + context.getUserId()); in onReceive() 167 final int userid = context.getUserId(); in onReceive()
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 287 ensureGroupStateLoadedLocked(provider.getUserId()); in onConfigurationChanged() 292 provider.getUserId(), removedProviders); in onConfigurationChanged() 299 provider.getUserId()); in onConfigurationChanged() 715 new UserHandle(provider.getUserId())) in createAppWidgetConfigIntentSender() 931 componentName, widget.provider.getUserId()); in bindRemoteViewsService() 1609 final int userId = UserHandle.getUserId(key.first); in handleNotifyAppWidgetViewDataChanged() 1689 if (host.getUserId() == profileId) { in scheduleNotifyGroupHostsForProvidersChangedLocked() 2112 UserHandle.getUserId(providerId.uid)); in parseProviderInfoXml() 2236 if (provider.getUserId() != userId) { in onUserStarted() 2412 if (provider.getUserId() != userId) { in writeProfileStateToFileLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationRecord.java | 98 public int getUserId() { return sbn.getUserId(); } in getUserId() method in NotificationRecord 103 pw.println(prefix + " uid=" + sbn.getUid() + " userId=" + sbn.getUserId()); in dump()
|
D | NotificationManagerService.java | 303 && (userId == UserHandle.USER_ALL || nr.getUserId() == userId)) { in filter() 538 Notification.FLAG_FOREGROUND_SERVICE, false, r.getUserId(), 957 cancelAllNotificationsInt(MY_UID, MY_PID, pkg, 0, 0, true, UserHandle.getUserId(uid), in setNotificationsEnabledForPackageImpl() 1256 final int userId = r.sbn.getUserId(); 1507 if (info.enabledAndUserMatches(sbn.getUserId())) { in getActiveNotificationKeys() 1689 if (r.sbn.getPackageName().equals(pkg) && r.sbn.getUserId() == userId) { in enqueueNotificationInternal() 1862 && (record.getUserId() == UserHandle.USER_ALL || in buzzBeepBlinkLocked() 1863 record.getUserId() == currentUser || in buzzBeepBlinkLocked() 1864 mUserProfiles.isCurrentProfile(record.getUserId())) in buzzBeepBlinkLocked() 2420 || r.getUserId() == UserHandle.USER_ALL in notificationMatchesUserId() [all …]
|
D | ValidateNotificationPeople.java | 122 if (record.getUserId() == UserHandle.USER_ALL) { in process() 229 final String cacheKey = getCacheKey(context.getUserId(), handle); in validatePeople() 443 final String cacheKey = getCacheKey(mContext.getUserId(), handle); in work()
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 171 final int userId = UserHandle.getUserId(callingUid); in setPrimaryClip() 317 ContentProvider.getUserIdFromUri(uri, UserHandle.getUserId(uid))); in checkUriOwnerLocked() 386 grantItemLocked(clipboard.primaryClip.getItemAt(i), pkg, UserHandle.getUserId(uid)); in addActiveOwnerLocked() 394 UserHandle.getUserId(Binder.getCallingUid())); in revokeUriLocked()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionService.java | 135 mHandler.post(MessageHandler.MSG_SESSIONS_CHANGED, record.getUserId(), 0); in updateSession() 148 mHandler.post(MessageHandler.MSG_SESSIONS_CHANGED, record.getUserId(), 0); in onSessionPlaystateChange() 158 pushRemoteVolumeUpdateLocked(record.getUserId()); in onSessionPlaybackTypeChanged() 269 int userId = session.getUserId(); in destroySessionLocked() 285 mHandler.post(MessageHandler.MSG_SESSIONS_CHANGED, session.getUserId(), 0); in destroySessionLocked() 317 && !isEnabledNotificationListener(compName, UserHandle.getUserId(uid), in enforceMediaPermissions() 479 UserRecord user = mUserRecords.get(record.getUserId()); in rememberMediaButtonReceiverLocked()
|
D | MediaSessionStack.java | 261 if (userId != UserHandle.USER_ALL && userId != session.getUserId()) { in getPriorityListLocked()
|
/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
D | RestrictionsManagerService.java | 113 int userHandle = UserHandle.getUserId(callingUid); in requestPermission() 179 int userHandle = UserHandle.getUserId(callingUid); in notifyPermissionResponse()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
D | UsbPermissionActivity.java | 130 final int userId = UserHandle.getUserId(mUid); in onDestroy() 140 final int userId = UserHandle.getUserId(mUid); in onDestroy()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbService.java | 226 final int userId = UserHandle.getUserId(uid); in grantDevicePermission() 233 final int userId = UserHandle.getUserId(uid); in grantAccessoryPermission()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IntentForwarderActivity.java | 85 int callingUserId = getUserId(); in onCreate()
|
/frameworks/base/core/java/android/content/ |
D | ContentProvider.java | 463 return UserHandle.getUserId(uid) == context.getUserId() in checkUser() 1783 if (userId != UserHandle.USER_CURRENT && userId != mContext.getUserId()) { in validateIncomingUri() 1785 + mContext.getUserId() + " with a uri belonging to user " + userId); in validateIncomingUri()
|
D | IntentSender.java | 274 return uid > 0 ? new UserHandle(UserHandle.getUserId(uid)) : null; in getCreatorUserHandle()
|
D | ContextWrapper.java | 676 public int getUserId() { in getUserId() method in ContextWrapper 677 return mBase.getUserId(); in getUserId()
|
/frameworks/base/core/java/android/service/notification/ |
D | StatusBarNotification.java | 191 public int getUserId() { in getUserId() method in StatusBarNotification
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProviderMap.java | 105 final int userId = UserHandle.getUserId(record.appInfo.uid); in putProviderByName() 118 final int userId = UserHandle.getUserId(record.appInfo.uid); in putProviderByClass()
|
D | ContentProviderRecord.java | 211 sb.append(UserHandle.getUserId(uid)); in toString()
|
/frameworks/base/services/core/java/com/android/server/ |
D | AppOpsService.java | 224 UserHandle.getUserId(ops.uid)); in systemReady() 448 if (UserHandle.getUserId(callingUid) != UserHandle.getUserId(mUidOps.keyAt(i))) { in resetAllModes() 803 .getApplicationInfo(packageName, 0, UserHandle.getUserId(uid)); in getOpsRawLocked() 872 int userHandle = UserHandle.getUserId(uid); in isOpRestricted() 986 .getApplicationInfo(pkgName, 0, UserHandle.getUserId(uid)); in readUid()
|
/frameworks/base/core/java/android/appwidget/ |
D | AppWidgetProviderInfo.java | 303 return new UserHandle(UserHandle.getUserId(providerInfo.applicationInfo.uid)); in getProfile()
|
/frameworks/base/core/java/android/content/pm/ |
D | RegisteredServicesCache.java | 169 handlePackageEvent(intent, UserHandle.getUserId(uid)); 529 final int userId = UserHandle.getUserId(uid); in readPersistentServicesLocked()
|