Home
last modified time | relevance | path

Searched refs:UserId (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/core/java/android/content/
DContentService.java29 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 …]
DSyncManager.java55 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/
DApplicationPackageManager.java53 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 …]
DLoadedApk.java40 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()
DActivityManager.java43 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/
DUserId.java22 public final class UserId { class
66 uid = UserId.getAppId(uid); in isApp()
DBinder.java85 if (UserId.MU_ENABLED) { in getOrigCallingUid()
100 return UserId.getUserId(getOrigCallingUid()); in getOrigCallingUser()
DProcess.java638 int uid = UserId.getAppId(myUid()); in isIsolated()
/frameworks/base/core/java/com/android/internal/widget/
DLockSettingsService.java27 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()
DLockPatternUtils.java37 import android.os.UserId;
249 return UserId.getUserId(callingUid); in getCurrentOrCallingUserId()
/frameworks/base/services/java/com/android/server/
DClipboardService.java39 import android.os.UserId;
118 return getClipboard(UserId.getCallingUserId()); in getClipboard()
261 if (!UserId.isSameApp(pi.applicationInfo.uid, uid)) { in addActiveOwnerLocked()
DWallpaperManagerService.java50 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()
DAppWidgetServiceImpl.java45 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/
DTaskRecord.java22 import android.os.UserId;
104 userId = UserId.getUserId(info.applicationInfo.uid); in setIntent()
DProviderMap.java23 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()
DProcessRecord.java33 import android.os.UserId;
311 userId = UserId.getUserId(_uid); in ProcessRecord()
394 sb.append(UserId.getAppId(uid) - Process.FIRST_ISOLATED_UID); in toShortString()
DPendingIntentRecord.java28 import android.os.UserId;
262 requiredPermission, (finishedReceiver != null), false, UserId in sendInner()
DBroadcastQueue.java36 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()
DServiceRecord.java34 import android.os.UserId;
299 userId = UserId.getUserId(appInfo.uid); in ServiceRecord()
DActivityManagerService.java113 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/
DNetworkPolicyManagerService.java115 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/
DNetworkPolicyManagerServiceTest.java74 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/
DUserManager.java28 import android.os.UserId;
392 mInstaller.createUserData(packageName, UserId.getUid(userId, uid), in installPackageForAllUsers()
DPackageManagerService.java102 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/
DAppCacheTest.java27 import android.os.UserId;
722 UserId.myUserId()); in getDataDir()
751 getPm().clearApplicationUserData(mContext.getPackageName(), null, UserId.myUserId()); in testClearApplicationUserDataNoObserver()

12