Home
last modified time | relevance | path

Searched refs:getUserId (Results 1 – 25 of 134) sorted by relevance

123456

/frameworks/base/core/java/android/os/
DUserHandle.java97 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/
DRanker.java68 = 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/
DApplicationPackageManager.java132 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 …]
DWallpaperManager.java292 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()
DContextImpl.java884 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/
DNetworkStatsAccess.java157 || 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/
DDpmTestBase.java135 eq(UserHandle.getUserId(packageUid))); in setUpPackageManagerForFakeAdmin()
162 eq(UserHandle.getUserId(packageUid))); in setUpPackageManagerForFakeAdmin()
165 markPackageAsInstalled(admin.getPackageName(), ai, UserHandle.getUserId(packageUid)); in setUpPackageManagerForFakeAdmin()
DDevicePolicyManagerTestable.java35 return UserHandle.getUserId(dpms.context.binder.callingUid); in myUserId()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java332 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/
DMediaSessionStack.java81 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()
DMediaSessionService.java149 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/
DShortcutUser.java138 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/
DWifiConfigurationUtil.java41 final int creatorUserId = UserHandle.getUserId(config.creatorUid); in isVisibleToAnyProfile()
/frameworks/base/services/core/java/com/android/server/clipboard/
DClipboardService.java171 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/
DRecentLocationApps.java80 int userId = UserHandle.getUserId(uid); in getAppList()
135 int userId = UserHandle.getUserId(uid); in getRequestFromOps()
/frameworks/base/services/core/java/com/android/server/notification/
DCalendarTracker.java88 pw.print(prefix); pw.print("u="); pw.println(mUserContext.getUserId()); in dump()
211 final int userId = mUserContext.getUserId();
264 + " u=" + mUserContext.getUserId());
DValidateNotificationPeople.java127 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()
DNotificationRecord.java190 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/
DRestrictionsManagerService.java98 int userHandle = UserHandle.getUserId(callingUid); in requestPermission()
164 int userHandle = UserHandle.getUserId(callingUid); in notifyPermissionResponse()
/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java85 int callingUserId = getUserId(); in onCreate()
161 return ipm.canForwardTo(intent, resolvedType, getUserId(), in canForward()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbPermissionActivity.java130 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/
DApplicationsState.java227 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/
DJobStatus.java146 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/
DHardwarePropertiesManagerService.java102 final int userId = UserHandle.getUserId(uid); in enforceHardwarePropertiesRetrievalAllowed()
/frameworks/base/services/core/java/com/android/server/vr/
DVrManagerService.java162 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()

123456