/frameworks/base/core/java/android/content/ |
D | ContentService.java | 29 import android.os.UserId; 168 int userId = UserId.getCallingUserId(); in notifyChange() 236 int userId = UserId.getCallingUserId(); in requestSync() 259 int userId = UserId.getCallingUserId(); in cancelSync() 294 int userId = UserId.getCallingUserId(); in getSyncAutomatically() 312 int userId = UserId.getCallingUserId(); in setSyncAutomatically() 330 int userId = UserId.getCallingUserId(); in addPeriodicSync() 344 int userId = UserId.getCallingUserId(); in removePeriodicSync() 358 int userId = UserId.getCallingUserId(); in getPeriodicSyncs() 372 int userId = UserId.getCallingUserId(); in getIsSyncable() [all …]
|
D | SyncManager.java | 55 import android.os.UserId; 176 cancelActiveSync(null /* any account */, UserId.USER_ALL, 197 scheduleSync(null /* account */, UserId.USER_ALL, null /* authority */, 285 scheduleSync(null, UserId.USER_ALL, null, null, 0 /* no delay */, in onAccountsUpdated() 369 scheduleSync(null, UserId.USER_ALL, type.authority, null, 0 /* no delay */, in SyncManager() 515 if (requestedAccount != null && userId != UserId.USER_ALL) { in scheduleSync() 2178 if (userId != UserId.USER_ALL
|
/frameworks/base/core/java/android/app/ |
D | ApplicationPackageManager.java | 53 import android.os.UserId; 72 PackageInfo pi = mPM.getPackageInfo(packageName, flags, UserId.myUserId()); in getPackageInfo() 202 ApplicationInfo ai = mPM.getApplicationInfo(packageName, flags, UserId.myUserId()); in getApplicationInfo() 217 ActivityInfo ai = mPM.getActivityInfo(className, flags, UserId.myUserId()); in getActivityInfo() 232 ActivityInfo ai = mPM.getReceiverInfo(className, flags, UserId.myUserId()); in getReceiverInfo() 247 ServiceInfo si = mPM.getServiceInfo(className, flags, UserId.myUserId()); in getServiceInfo() 262 ProviderInfo pi = mPM.getProviderInfo(className, flags, UserId.myUserId()); in getProviderInfo() 427 int userId = UserId.getUserId(Process.myUid()); in getInstalledApplications() 451 flags, UserId.myUserId()); in resolveActivity() 465 UserId.myUserId()); in queryIntentActivities() [all …]
|
D | LoadedApk.java | 40 import android.os.UserId; 123 if (!UserId.isSameUser(aInfo.uid, myUid) && !Process.isIsolated()) { in LoadedApk() 124 aInfo.dataDir = PackageManager.getDataDirForUser(UserId.getUserId(myUid), in LoadedApk() 198 PackageManager.GET_SHARED_LIBRARY_FILES, UserId.myUserId()); in getLibrariesFor() 361 pi = pm.getPackageInfo(mPackageName, 0, UserId.myUserId()); in initializeJavaContextClassLoader()
|
D | ActivityManager.java | 43 import android.os.UserId; 1817 if (UserId.isIsolated(uid)) { in checkComponentPermission() 1822 if (owningUid >= 0 && UserId.isSameApp(uid, owningUid)) { in checkComponentPermission()
|
/frameworks/base/core/java/android/os/ |
D | UserId.java | 22 public final class UserId { class 66 uid = UserId.getAppId(uid); in isApp()
|
D | Binder.java | 85 if (UserId.MU_ENABLED) { in getOrigCallingUid() 100 return UserId.getUserId(getOrigCallingUid()); in getOrigCallingUser()
|
D | Process.java | 638 int uid = UserId.getAppId(myUid()); in isIsolated()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockSettingsService.java | 27 import android.os.UserId; 99 if (UserId.getAppId(callingUid) != android.os.Process.SYSTEM_UID) { in checkWritePermission() 107 if (UserId.getAppId(callingUid) != android.os.Process.SYSTEM_UID) { in checkPasswordReadPermission() 115 if (UserId.getAppId(callingUid) != android.os.Process.SYSTEM_UID in checkReadPermission() 116 && UserId.getUserId(callingUid) != userId) { in checkReadPermission()
|
D | LockPatternUtils.java | 37 import android.os.UserId; 249 return UserId.getUserId(callingUid); in getCurrentOrCallingUserId()
|
/frameworks/base/services/java/com/android/server/ |
D | ClipboardService.java | 39 import android.os.UserId; 118 return getClipboard(UserId.getCallingUserId()); in getClipboard() 261 if (!UserId.isSameApp(pi.applicationInfo.uid, uid)) { in addActiveOwnerLocked()
|
D | WallpaperManagerService.java | 50 import android.os.UserId; 486 clearWallpaperLocked(false, UserId.getCallingUserId()); in clearWallpaper() 523 int userId = UserId.getCallingUserId(); in setDimensionHints() 554 WallpaperData wallpaper = mWallpaperMap.get(UserId.getCallingUserId()); in getWidthHint() 561 WallpaperData wallpaper = mWallpaperMap.get(UserId.getCallingUserId()); in getHeightHint() 576 wallpaperUserId = UserId.getUserId(callingUid); in getWallpaper() 599 int userId = UserId.getCallingUserId(); in getWallpaperInfo() 611 int userId = UserId.getCallingUserId(); in setWallpaper() 654 int userId = UserId.getCallingUserId(); in setWallpaperComponent()
|
D | AppWidgetServiceImpl.java | 45 import android.os.UserId; 576 if (!UserId.isSameApp(callingUid, getUidForPackage(packageName))) { in callerHasBindAppWidgetPermission() 648 int userId = UserId.getUserId(id.provider.uid); in bindRemoteViewsService() 739 int userId = UserId.getUserId(id.provider.uid); in destroyRemoteViewsService() 1006 int userId = UserId.getUserId(id.provider.uid); in notifyAppWidgetViewDataChangedInstanceLocked() 1355 if (!UserId.isSameApp(callingUid, packageUid)) { in enforceCallingUid()
|
/frameworks/base/services/java/com/android/server/am/ |
D | TaskRecord.java | 22 import android.os.UserId; 104 userId = UserId.getUserId(info.applicationInfo.uid); in setIntent()
|
D | ProviderMap.java | 23 import android.os.UserId; 101 final int userId = UserId.getUserId(record.appInfo.uid); in putProviderByName() 114 final int userId = UserId.getUserId(record.appInfo.uid); in putProviderByClass()
|
D | ProcessRecord.java | 33 import android.os.UserId; 311 userId = UserId.getUserId(_uid); in ProcessRecord() 394 sb.append(UserId.getAppId(uid) - Process.FIRST_ISOLATED_UID); in toShortString()
|
D | PendingIntentRecord.java | 28 import android.os.UserId; 262 requiredPermission, (finishedReceiver != null), false, UserId in sendInner()
|
D | BroadcastQueue.java | 36 import android.os.UserId; 724 int targetUserId = isSingleton ? 0 : UserId.getUserId(r.callingUid); in processNextBroadcast() 728 if (DEBUG_MU && r.callingUid > UserId.PER_USER_RANGE) { in processNextBroadcast() 737 r.curComponent.getPackageName(), false, UserId.getUserId(r.callingUid)); in processNextBroadcast()
|
D | ServiceRecord.java | 34 import android.os.UserId; 299 userId = UserId.getUserId(appInfo.uid); in ServiceRecord()
|
D | ActivityManagerService.java | 113 import android.os.UserId; 1117 UserId.getUserId(uid)); 1859 if (UserId.isSameUser(procs.keyAt(i), uid)) return procs.valueAt(i); in getProcessRecordLocked() 2225 if (UserId.isIsolated(Binder.getCallingUid())) { in enforceNotIsolatedCaller() 2458 UserId.getCallingUserId()); in startNextMatchingActivity() 2563 options, UserId.getUserId(uid)); in startActivitiesInPackage() 3429 int userId = UserId.getCallingUserId(); in killBackgroundProcesses() 3503 final int userId = UserId.getCallingUserId(); in forceStopPackage() 3639 forceStopPackageLocked(packageName, uid, false, false, true, false, UserId.getUserId(uid)); in forceStopPackageLocked() 3649 MY_PID, Process.SYSTEM_UID, UserId.getUserId(uid)); in forceStopPackageLocked() [all …]
|
/frameworks/base/services/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 115 import android.os.UserId; 428 final int appId = UserId.getAppId(uid); 1190 final int appId = UserId.getAppId(uid); in readPolicyLocked() 1191 if (UserId.isApp(appId)) { in readPolicyLocked() 1200 if (UserId.isApp(appId)) { in readPolicyLocked() 1306 if (!UserId.isApp(appId)) { in setAppPolicy() 1700 final int appId = UserId.getAppId(app.uid); in updateRulesForRestrictBackgroundLocked() 1711 final int uid = UserId.getUid(user.id, appId); in updateRulesForAppLocked() 1719 || UserId.isApp(uid)) { in isUidValidForRules() 1729 final int appId = UserId.getAppId(uid); in updateRulesForUidLocked()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkPolicyManagerServiceTest.java | 74 import android.os.UserId; 141 private static final int UID_A = UserId.getUid(USER_ID, APP_ID_A); 142 private static final int UID_B = UserId.getUid(USER_ID, APP_ID_B); 143 private static final int UID_A_GUEST = UserId.getUid(USER_ID_GUEST, APP_ID_A); 144 private static final int UID_B_GUEST = UserId.getUid(USER_ID_GUEST, APP_ID_B);
|
/frameworks/base/services/java/com/android/server/pm/ |
D | UserManager.java | 28 import android.os.UserId; 392 mInstaller.createUserData(packageName, UserId.getUid(userId, uid), in installPackageForAllUsers()
|
D | PackageManagerService.java | 102 import android.os.UserId; 683 extras, null, null, UserId.USER_ALL); in doHandleMessage() 687 extras, null, null, UserId.USER_ALL); in doHandleMessage() 691 UserId.USER_ALL); in doHandleMessage() 1605 return UserId.getUid(userId, p.applicationInfo.uid); in getPackageUid() 1612 return p != null ? UserId.getUid(userId, p.applicationInfo.uid) : -1; in getPackageUid() 1936 if (UserId.getUserId(uid) == userId || uid == Process.SYSTEM_UID || uid == 0) in checkValidCaller() 1965 Object obj = mSettings.getUserIdLPr(UserId.getAppId(uid)); in checkUidPermission() 1999 if (bp.uid == UserId.getAppId(Binder.getCallingUid())) { in checkPermissionTreeLP() 2202 uid1 = UserId.getAppId(uid1); in checkUidSignatures() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | AppCacheTest.java | 27 import android.os.UserId; 722 UserId.myUserId()); in getDataDir() 751 getPm().clearApplicationUserData(mContext.getPackageName(), null, UserId.myUserId()); in testClearApplicationUserDataNoObserver()
|