/frameworks/base/core/java/android/os/ |
D | UserHandle.java | 97 return getUserId(uid1) == getUserId(uid2); in isSameUser() 138 return of(getUserId(uid)); in getUserHandleForUid() 145 public static @UserIdInt int getUserId(int uid) { in getUserId() method in UserHandle 155 return getUserId(Binder.getCallingUid()); in getCallingUserId() 225 sb.append(getUserId(uid)); in formatUid() 261 pw.print(getUserId(uid)); in formatUid() 300 return getUserId(Process.myUid()); in myUserId()
|
/frameworks/base/packages/ExtServices/src/android/ext/services/notification/ |
D | Ranker.java | 68 = mUnbundledNotifications.get(sbn.getUserId()); in onNotificationPosted() 72 mUnbundledNotifications.put(sbn.getUserId(), unbundledNotificationsByUser); in onNotificationPosted() 90 true, sbn.getUserId()); in onNotificationPosted() 92 sbn.getUserId()); in onNotificationPosted() 96 maybeUnbundle(sbn, false, sbn.getUserId()); in onNotificationPosted() 106 maybeUnbundle(sbn, true, sbn.getUserId()); in onNotificationRemoved() 122 = mUnbundledNotifications.get(sbn.getUserId()); in maybeUnbundle()
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 132 return getPackageInfoAsUser(packageName, flags, mContext.getUserId()); in getPackageInfo() 223 int[] gids = mPM.getPackageGids(packageName, flags, mContext.getUserId()); in getPackageGids() 236 return getPackageUidAsUser(packageName, flags, mContext.getUserId()); in getPackageUid() 333 return getApplicationInfoAsUser(packageName, flags, mContext.getUserId()); in getApplicationInfo() 383 ActivityInfo ai = mPM.getActivityInfo(className, flags, mContext.getUserId()); in getActivityInfo() 398 ActivityInfo ai = mPM.getReceiverInfo(className, flags, mContext.getUserId()); in getReceiverInfo() 413 ServiceInfo si = mPM.getServiceInfo(className, flags, mContext.getUserId()); in getServiceInfo() 428 ProviderInfo pi = mPM.getProviderInfo(className, flags, mContext.getUserId()); in getProviderInfo() 506 return mPM.checkPermission(permName, pkgName, mContext.getUserId()); in checkPermission() 515 return mPM.isPermissionRevokedByPolicy(permName, pkgName, mContext.getUserId()); in isPermissionRevokedByPolicy() [all …]
|
D | WallpaperManager.java | 292 return peekWallpaperBitmap(context, returnDefault, which, context.getUserId()); in peekWallpaperBitmap() 713 return getBitmapAsUser(mContext.getUserId()); in getBitmap() 741 return getWallpaperFile(which, mContext.getUserId()); in getWallpaperFile() 820 return getWallpaperIdForUser(which, mContext.getUserId()); in getWallpaperId() 1396 clearWallpaper(FLAG_LOCK, mContext.getUserId()); in clearWallpaper() 1397 clearWallpaper(FLAG_SYSTEM, mContext.getUserId()); in clearWallpaper() 1604 clearWallpaper(FLAG_LOCK, mContext.getUserId()); in clear() 1705 return sGlobals.mService.isWallpaperBackupEligible(which, mContext.getUserId()); in isWallpaperBackupEligible()
|
D | ContextImpl.java | 884 getUserId()); in sendBroadcast() 901 null, false, false, getUserId()); in sendBroadcast() 916 null, false, false, getUserId()); in sendBroadcastMultiplePermissions() 933 options, false, false, getUserId()); in sendBroadcast() 950 getUserId()); in sendBroadcast() 967 null, true, false, getUserId()); in sendOrderedBroadcast() 1030 options, true, false, getUserId()); in sendOrderedBroadcast() 1133 getUserId()); in sendStickyBroadcast() 1169 AppOpsManager.OP_NONE, null, true, true, getUserId()); in sendStickyOrderedBroadcast() 1186 mMainThread.getApplicationThread(), intent, getUserId()); in removeStickyBroadcast() [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsAccess.java | 157 || UserHandle.getUserId(uid) == UserHandle.getUserId(callerUid); in isAccessibleToUser() 163 || UserHandle.getUserId(uid) == UserHandle.getUserId(callerUid); in isAccessibleToUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DpmTestBase.java | 135 eq(UserHandle.getUserId(packageUid))); in setUpPackageManagerForFakeAdmin() 162 eq(UserHandle.getUserId(packageUid))); in setUpPackageManagerForFakeAdmin() 165 markPackageAsInstalled(admin.getPackageName(), ai, UserHandle.getUserId(packageUid)); in setUpPackageManagerForFakeAdmin()
|
D | DevicePolicyManagerTestable.java | 35 return UserHandle.getUserId(dpms.context.binder.callingUid); in myUserId()
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 332 final int userId = provider.getUserId(); in onConfigurationChanged() 342 provider.getUserId(), removedProviders); in onConfigurationChanged() 349 provider.getUserId()); in onConfigurationChanged() 475 int providerUserId = provider.getUserId(); in reloadWidgetsMaskedState() 486 provider.info.provider.getPackageName(), provider.getUserId()); in reloadWidgetsMaskedState() 521 int providerUserId = provider.getUserId(); in updateWidgetPackageSuspensionMaskedState() 584 final int providerUserId = provider.getUserId(); in maskWidgetsViewsLocked() 984 null, new UserHandle(provider.getUserId())) in createAppWidgetConfigIntentSender() 1202 componentName, widget.provider.getUserId()); in bindRemoteViewsService() 1889 final int userId = UserHandle.getUserId(key.first); in handleNotifyAppWidgetViewDataChanged() [all …]
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | MediaSessionStack.java | 81 ActivityManager.RECENT_WITH_EXCLUDED, record.getUserId()).getList(); in isFromMostRecentApp() 84 if (recentTask.userId == record.getUserId() && recentTask.baseIntent != null) { in isFromMostRecentApp() 332 if (filterUser && !userIdList.contains(session.getUserId())) { in getPriorityListLocked()
|
D | MediaSessionService.java | 149 mHandler.post(MessageHandler.MSG_SESSIONS_CHANGED, record.getUserId(), 0); in updateSession() 176 mHandler.post(MessageHandler.MSG_SESSIONS_CHANGED, record.getUserId(), 0); in onSessionPlaystateChange() 186 pushRemoteVolumeUpdateLocked(record.getUserId()); in onSessionPlaybackTypeChanged() 309 int userId = session.getUserId(); in destroySessionLocked() 325 mHandler.post(MessageHandler.MSG_SESSIONS_CHANGED, session.getUserId(), 0); in destroySessionLocked() 358 && !isEnabledNotificationListener(compName, UserHandle.getUserId(uid), in enforceMediaPermissions() 521 UserRecord user = mUserRecords.get(record.getUserId()); in rememberMediaButtonReceiverLocked() 528 record.getUserId()); in rememberMediaButtonReceiverLocked()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutUser.java | 138 public int getUserId() { in getUserId() method in ShortcutUser 499 if (s.isPackageInstalled(sl.getPackageName(), getUserId()) in mergeRestoredFile() 500 && !s.shouldBackupApp(sl.getPackageName(), getUserId())) { in mergeRestoredFile() 508 if (s.isPackageInstalled(sp.getPackageName(), getUserId()) in mergeRestoredFile() 509 && !s.shouldBackupApp(sp.getPackageName(), getUserId())) { in mergeRestoredFile()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiConfigurationUtil.java | 41 final int creatorUserId = UserHandle.getUserId(config.creatorUid); in isVisibleToAnyProfile()
|
/frameworks/base/services/core/java/com/android/server/clipboard/ |
D | ClipboardService.java | 171 final int userId = UserHandle.getUserId(callingUid); in setPrimaryClip() 325 ContentProvider.getUserIdFromUri(uri, UserHandle.getUserId(uid))); in checkUriOwnerLocked() 394 grantItemLocked(clipboard.primaryClip.getItemAt(i), pkg, UserHandle.getUserId(uid)); in addActiveOwnerLocked() 402 UserHandle.getUserId(Binder.getCallingUid())); in revokeUriLocked()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | RecentLocationApps.java | 80 int userId = UserHandle.getUserId(uid); in getAppList() 135 int userId = UserHandle.getUserId(uid); in getRequestFromOps()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | CalendarTracker.java | 88 pw.print(prefix); pw.print("u="); pw.println(mUserContext.getUserId()); in dump() 211 final int userId = mUserContext.getUserId(); 264 + " u=" + mUserContext.getUserId());
|
D | ValidateNotificationPeople.java | 127 if (record.getUserId() == UserHandle.USER_ALL) { in process() 235 if (VERBOSE) Slog.i(TAG, "Validating: " + key + " for " + context.getUserId()); in validatePeople() 242 final String cacheKey = getCacheKey(context.getUserId(), handle); in validatePeople() 461 final String cacheKey = getCacheKey(mContext.getUserId(), handle); in work()
|
D | NotificationRecord.java | 190 public int getUserId() { return sbn.getUserId(); } in getUserId() method in NotificationRecord 200 pw.println(prefix + " uid=" + sbn.getUid() + " userId=" + sbn.getUserId()); in dump()
|
/frameworks/base/services/restrictions/java/com/android/server/restrictions/ |
D | RestrictionsManagerService.java | 98 int userHandle = UserHandle.getUserId(callingUid); in requestPermission() 164 int userHandle = UserHandle.getUserId(callingUid); in notifyPermissionResponse()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IntentForwarderActivity.java | 85 int callingUserId = getUserId(); in onCreate() 161 return ipm.canForwardTo(intent, resolvedType, getUserId(), in canForward()
|
/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/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | ApplicationsState.java | 227 int userId = UserHandle.getUserId(info.uid); in doResumeIfNeededLocked() 301 && userId == UserHandle.getUserId(info.uid)) { in getAppInfoLocked() 345 && UserHandle.getUserId(appInfo.uid) == userId) { in indexOfApplicationInfoLocked() 467 int userId = UserHandle.getUserId(info.uid); in getEntryLocked() 792 int userId = UserHandle.getUserId(info.uid); in handleMessage() 941 mCurComputingSizeUserId = UserHandle.getUserId(entry.info.uid); in handleMessage() 1218 new UserHandle(UserHandle.getUserId(info.uid))); in getBadgedIcon() 1299 return UserHandle.getUserId(entry.info.uid) == mCurrentUser; 1324 return UserHandle.getUserId(entry.info.uid) != mCurrentUser;
|
/frameworks/base/services/core/java/com/android/server/job/controllers/ |
D | JobStatus.java | 146 this.sourceUserId = UserHandle.getUserId(callingUid); in JobStatus() 281 public int getUserId() { in getUserId() method in JobStatus 282 return UserHandle.getUserId(callingUid); in getUserId() 488 + ",u" + getUserId() in toString()
|
/frameworks/base/services/core/java/com/android/server/ |
D | HardwarePropertiesManagerService.java | 102 final int userId = UserHandle.getUserId(uid); in enforceHardwarePropertiesRetrievalAllowed()
|
/frameworks/base/services/core/java/com/android/server/vr/ |
D | VrManagerService.java | 162 mCurrentVrService.getUserId(), mCurrentVrModeComponent) in setVrModeAllowedLocked() 348 mCurrentVrService.getUserId(), null); in onEnabledComponentChanged() 606 + mCurrentVrService.getUserId()); in updateCurrentVrServiceLocked() 620 + " for user " + mCurrentVrService.getUserId()); in updateCurrentVrServiceLocked() 985 userId == mCurrentVrService.getUserId(); in isCurrentVrListener()
|