/frameworks/base/services/java/com/android/server/am/ |
H A D | ActivityManagerService.java | 530 protected BroadcastFilter newResult(BroadcastFilter filter, int match, int userId) { 531 if (userId == UserHandle.USER_ALL || filter.owningUserId == UserHandle.USER_ALL 532 || userId == filter.owningUserId) { 533 return super.newResult(filter, match, userId); 930 >= Process.FIRST_APPLICATION_UID && proc.userId != mCurrentUserId 1191 new UserHandle(root.userId))); 1197 notification, outId, root.userId); 2207 boolean startHomeActivityLocked(int userId) { argument 2230 resolveActivityInfo(intent, STOCK_PM_FLAGS, userId); 2237 aInfo.applicationInfo = getAppInfoForUser(aInfo.applicationInfo, userId); 2250 resolveActivityInfo(Intent intent, int flags, int userId) argument 2464 startActivityAsUser(IApplicationThread caller, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, String profileFile, ParcelFileDescriptor profileFd, Bundle options, int userId) argument 2476 startActivityAndWait(IApplicationThread caller, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, String profileFile, ParcelFileDescriptor profileFd, Bundle options, int userId) argument 2490 startActivityWithConfig(IApplicationThread caller, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, Configuration config, Bundle options, int userId) argument 2630 startActivityInPackage(int uid, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, Bundle options, int userId) argument 2643 startActivities(IApplicationThread caller, Intent[] intents, String[] resolvedTypes, IBinder resultTo, Bundle options, int userId) argument 2654 startActivitiesInPackage(int uid, Intent[] intents, String[] resolvedTypes, IBinder resultTo, Bundle options, int userId) argument 3427 clearApplicationUserData(final String packageName, final IPackageDataObserver observer, int userId) argument 3475 killBackgroundProcesses(final String packageName, int userId) argument 3553 forceStopPackage(final String packageName, int userId) argument 3739 forceStopUserLocked(int userId) argument 3751 killPackageProcessesLocked(String packageName, int appId, int userId, int minOomAdj, boolean callerWillRestart, boolean allowRestart, boolean doit, boolean evenPersistent, String reason) argument 3817 forceStopPackageLocked(String name, int appId, boolean callerWillRestart, boolean purgeCache, boolean doit, boolean evenPersistent, int userId) argument 4539 getIntentSender(int type, String packageName, IBinder token, String resultWho, int requestCode, Intent[] intents, String[] resolvedTypes, int flags, Bundle options, int userId) argument 4610 getIntentSenderLocked(int type, String packageName, int callingUid, int userId, IBinder token, String resultWho, int requestCode, Intent[] intents, String[] resolvedTypes, int flags, Bundle options) argument 5735 getRecentTasks(int maxNum, int flags, int userId) argument 6369 getContentProviderImpl(IApplicationThread caller, String name, IBinder token, boolean stable, int userId) argument 6633 getContentProvider( IApplicationThread caller, String name, int userId, boolean stable) argument 6648 getContentProviderExternal( String name, int userId, IBinder token) argument 6657 getContentProviderExternalUnchecked(String name, IBinder token, int userId) argument 6693 removeContentProviderExternalUnchecked(String name, IBinder token, int userId) argument 6915 getProviderMimeType(Uri uri, int userId) argument 10898 startService(IApplicationThread caller, Intent service, String resolvedType, int userId) argument 10920 startServiceInPackage(int uid, Intent service, String resolvedType, int userId) argument 10933 stopService(IApplicationThread caller, Intent service, String resolvedType, int userId) argument 10974 handleIncomingUser(int callingPid, int callingUid, int userId, boolean allowAll, boolean requireFull, String name, String callerPackage) argument 11059 bindService(IApplicationThread caller, IBinder token, Intent service, String resolvedType, IServiceConnection connection, int flags, int userId) argument 11266 getStickiesLocked(String action, IntentFilter filter, List cur, int userId) argument 11311 registerReceiver(IApplicationThread caller, String callerPackage, IIntentReceiver receiver, IntentFilter filter, String permission, int userId) argument 11484 sendPackageBroadcastLocked(int cmd, String[] packages, int userId) argument 11567 broadcastIntentLocked(ProcessRecord callerApp, String callerPackage, Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode, String resultData, Bundle map, String requiredPermission, boolean ordered, boolean sticky, int callingPid, int callingUid, int userId) argument 11955 broadcastIntent(IApplicationThread caller, Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode, String resultData, Bundle map, String requiredPermission, boolean serialized, boolean sticky, int userId) argument 11977 broadcastIntentInPackage(String packageName, int uid, Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode, String resultData, Bundle map, String requiredPermission, boolean serialized, boolean sticky, int userId) argument 11993 unbroadcastIntent(IApplicationThread caller, Intent intent, int userId) argument 12083 startInstrumentation(ComponentName className, String profileFile, int flags, Bundle arguments, IInstrumentationWatcher watcher, int userId) argument 13961 profileControl(String process, int userId, boolean start, String path, ParcelFileDescriptor fd, int profileType) argument 14024 findProcessLocked(String process, int userId, String callName) argument 14057 dumpHeap(String process, int userId, boolean managed, String path, ParcelFileDescriptor fd) argument 14123 switchUser(int userId) argument 14417 stopUser(final int userId, final IStopUserCallback callback) argument 14435 stopUserLocked(final int userId, final IStopUserCallback callback) argument 14570 isUserRunning(int userId, boolean orStopped) argument 14585 isUserRunningLocked(int userId, boolean orStopped) argument 14655 userExists(int userId) argument 14676 checkValidCaller(int uid, int userId) argument 14683 applyUserId(int uid, int userId) argument 14687 getAppInfoForUser(ApplicationInfo info, int userId) argument 14696 getActivityInfoForUser(ActivityInfo aInfo, int userId) argument [all...] |
H A D | TaskRecord.java | 41 int userId; // user for which this task was created field in class:TaskRecord 104 userId = UserHandle.getUserId(info.applicationInfo.uid); 109 if (numActivities != 0 || rootWasReset || userId != 0) { 112 pw.print(" userId="); pw.println(userId); 171 sb.append(userId);
|
H A D | ActiveServices.java | 213 int callingPid, int callingUid, int userId) { 229 callingPid, callingUid, userId, true); 268 String resolvedType, int userId) { 282 Binder.getCallingPid(), Binder.getCallingUid(), userId, false); 370 final int userId = UserHandle.getCallingUserId(); 373 ServiceRecord r = findServiceLocked(className, token, userId); 428 IServiceConnection connection, int flags, int userId) { 474 Binder.getCallingPid(), Binder.getCallingUid(), userId, true); 673 IBinder token, int userId) { 674 ServiceRecord r = mServiceMap.getServiceByName(name, userId); 211 startServiceLocked(IApplicationThread caller, Intent service, String resolvedType, int callingPid, int callingUid, int userId) argument 267 stopServiceLocked(IApplicationThread caller, Intent service, String resolvedType, int userId) argument 426 bindServiceLocked(IApplicationThread caller, IBinder token, Intent service, String resolvedType, IServiceConnection connection, int flags, int userId) argument 672 findServiceLocked(ComponentName name, IBinder token, int userId) argument 702 retrieveServiceLocked(Intent service, String resolvedType, int callingPid, int callingUid, int userId, boolean createIfNeeded) argument 1515 collectForceStopServicesLocked(String name, int userId, boolean evenPersistent, boolean doit, HashMap<ComponentName, ServiceRecord> services, ArrayList<ServiceRecord> result) argument 1539 forceStopLocked(String name, int userId, boolean evenPersistent, boolean doit) argument [all...] |
H A D | BroadcastRecord.java | 47 final int userId; // user id this broadcast was for field in class:BroadcastRecord 83 pw.print(prefix); pw.print(this); pw.print(" to user "); pw.println(userId); 187 userId = _userId; 195 + " u" + userId + " " + intent.getAction() + "}";
|
H A D | ActivityStack.java | 425 return r.userId == mCurrentUser 510 final int userId = UserHandle.getUserId(info.applicationInfo.uid); 514 if (!r.finishing && r.task != cp && r.userId == userId 554 final int userId = UserHandle.getUserId(info.applicationInfo.uid); 560 if (r.intent.getComponent().equals(cls) && r.userId == userId) { 583 final boolean switchUserLocked(int userId, UserStartedState uss) { argument 584 mCurrentUser = userId; 594 if (top.userId 3022 resolveActivity(Intent intent, String resolvedType, int startFlags, String profileFile, ParcelFileDescriptor profileFd, int userId) argument 3069 startActivityMayWait(IApplicationThread caller, int callingUid, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, String profileFile, ParcelFileDescriptor profileFd, WaitResult outResult, Configuration config, Bundle options, int userId) argument 3228 startActivities(IApplicationThread caller, int callingUid, Intent[] intents, String[] resolvedTypes, IBinder resultTo, Bundle options, int userId) argument [all...] |
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityManager.java | 177 * @param userId The user id under which to operate. 179 private static void createSingletonInstance(Context context, int userId) { argument 182 sInstance = new AccessibilityManager(context, service, userId); 190 * @param userId User id under which to run. 194 public AccessibilityManager(Context context, IAccessibilityManager service, int userId) { argument 197 mUserId = userId; 200 final int stateFlags = mService.addClient(mClient, userId);
|
/frameworks/base/services/java/com/android/server/ |
H A D | IntentResolverOld.java | 205 boolean defaultOnly, ArrayList<ArrayList<F>> listCut, int userId) { 216 resolvedType, scheme, listCut.get(i), resultList, userId); 223 int userId) { 295 resolvedType, scheme, firstTypeCut, finalList, userId); 299 resolvedType, scheme, secondTypeCut, finalList, userId); 303 resolvedType, scheme, thirdTypeCut, finalList, userId); 307 resolvedType, scheme, schemeCut, finalList, userId); 334 protected boolean isFilterStopped(F filter, int userId) { argument 346 protected R newResult(F filter, int match, int userId) { argument 509 String resolvedType, String scheme, List<F> src, List<R> dest, int userId) { 204 queryIntentFromList(Intent intent, String resolvedType, boolean defaultOnly, ArrayList<ArrayList<F>> listCut, int userId) argument 222 queryIntent(Intent intent, String resolvedType, boolean defaultOnly, int userId) argument 507 buildResolveList(Intent intent, FastImmutableArraySet<String> categories, boolean debug, boolean defaultOnly, String resolvedType, String scheme, List<F> src, List<R> dest, int userId) argument [all...] |
H A D | IntentResolver.java | 216 boolean defaultOnly, ArrayList<F[]> listCut, int userId) { 227 resolvedType, scheme, listCut.get(i), resultList, userId); 234 int userId) { 306 resolvedType, scheme, firstTypeCut, finalList, userId); 310 resolvedType, scheme, secondTypeCut, finalList, userId); 314 resolvedType, scheme, thirdTypeCut, finalList, userId); 318 resolvedType, scheme, schemeCut, finalList, userId); 323 List<R> oldList = mOldResolver.queryIntent(intent, resolvedType, defaultOnly, userId); 355 protected boolean isFilterStopped(F filter, int userId) { argument 369 protected R newResult(F filter, int match, int userId) { argument 215 queryIntentFromList(Intent intent, String resolvedType, boolean defaultOnly, ArrayList<F[]> listCut, int userId) argument 233 queryIntent(Intent intent, String resolvedType, boolean defaultOnly, int userId) argument 534 buildResolveList(Intent intent, FastImmutableArraySet<String> categories, boolean debug, boolean defaultOnly, String resolvedType, String scheme, F[] src, List<R> dest, int userId) argument [all...] |
H A D | TextServicesManagerService.java | 88 int userId = UserHandle.USER_OWNER; 109 userId = ActivityManagerNative.getDefault().getCurrentUser().id; 115 mSettings = new TextServicesSettings(context.getContentResolver(), userId); 118 switchUserLocked(userId); 121 private void switchUserLocked(int userId) { argument 122 mSettings.setCurrentUserId(userId); 139 final int userId = getChangingUserId(); 140 final boolean retval = userId == mSettings.getCurrentUserId(); 142 Slog.d(TAG, "--- ignore this call back from a background user: " + userId); 220 final int userId 915 TextServicesSettings(ContentResolver resolver, int userId) argument 920 setCurrentUserId(int userId) argument [all...] |
H A D | ServiceWatcher.java | 83 List<String> initialPackageNames, Runnable newServiceWork, Handler handler, int userId) { 90 mCurrentUserId = userId; 293 public void switchUser(int userId) { argument 296 mCurrentUserId = userId; 82 ServiceWatcher(Context context, String logTag, String action, List<String> initialPackageNames, Runnable newServiceWork, Handler handler, int userId) argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | UserManagerTest.java | 143 private void removeUser(int userId) { argument 145 mUserManager.removeUser(userId); 146 while (mUserManager.getUserInfo(userId) != null) {
|
/frameworks/base/cmds/am/src/com/android/commands/am/ |
H A D | Am.java | 154 int userId; 156 userId = UserHandle.USER_ALL; 158 userId = UserHandle.USER_CURRENT; 160 userId = Integer.parseInt(arg); 162 return userId; 579 int userId = UserHandle.USER_ALL; 584 userId = parseUserArg(nextArgRequired()); 590 mAm.forceStopPackage(nextArgRequired(), userId); 594 int userId = UserHandle.USER_ALL; 599 userId [all...] |
/frameworks/base/core/java/android/os/ |
H A D | UserHandle.java | 126 * Returns the uid that is composed from the userId and the appId. 129 public static final int getUid(int userId, int appId) { argument 131 return userId * PER_USER_RANGE + (appId % PER_USER_RANGE);
|
/frameworks/base/services/java/com/android/server/location/ |
H A D | LocationBlacklist.java | 119 public void switchUser(int userId) { argument 121 mCurrentUserId = userId;
|
H A D | PassiveProvider.java | 100 public void switchUser(int userId) { argument
|
/frameworks/base/core/java/android/app/ |
H A D | ActivityManagerNative.java | 92 static public void broadcastStickyIntent(Intent intent, String permission, int userId) { argument 96 null /*permission*/, false, true, userId); 155 int userId = data.readInt(); 158 profileFile, profileFd, options, userId); 180 int userId = data.readInt(); 183 profileFile, profileFd, options, userId); 203 int userId = data.readInt(); 205 resultTo, resultWho, requestCode, startFlags, config, options, userId); 304 int userId = data.readInt(); 305 Intent intent = registerReceiver(app, packageName, rec, filter, perm, userId); 1877 startActivityAsUser(IApplicationThread caller, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, String profileFile, ParcelFileDescriptor profileFd, Bundle options, int userId) argument 1912 startActivityAndWait(IApplicationThread caller, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, String profileFile, ParcelFileDescriptor profileFd, Bundle options, int userId) argument 1947 startActivityWithConfig(IApplicationThread caller, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, Configuration config, Bundle options, int userId) argument 2087 registerReceiver(IApplicationThread caller, String packageName, IIntentReceiver receiver, IntentFilter filter, String perm, int userId) argument 2122 broadcastIntent(IApplicationThread caller, Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode, String resultData, Bundle map, String requiredPermission, boolean serialized, boolean sticky, int userId) argument 2149 unbroadcastIntent(IApplicationThread caller, Intent intent, int userId) argument 2324 getRecentTasks(int maxNum, int flags, int userId) argument 2520 getContentProvider(IApplicationThread caller, String name, int userId, boolean stable) argument 2540 getContentProviderExternal(String name, int userId, IBinder token) argument 2637 startService(IApplicationThread caller, Intent service, String resolvedType, int userId) argument 2654 stopService(IApplicationThread caller, Intent service, String resolvedType, int userId) argument 2706 bindService(IApplicationThread caller, IBinder token, Intent service, String resolvedType, IServiceConnection connection, int flags, int userId) argument 2843 startInstrumentation(ComponentName className, String profileFile, int flags, Bundle arguments, IInstrumentationWatcher watcher, int userId) argument 2949 getIntentSender(int type, String packageName, IBinder token, String resultWho, int requestCode, Intent[] intents, String[] resolvedTypes, int flags, Bundle options, int userId) argument 3018 handleIncomingUser(int callingPid, int callingUid, int userId, boolean allowAll, boolean requireFull, String name, String callerPackage) argument 3088 clearApplicationUserData(final String packageName, final IPackageDataObserver observer, final int userId) argument 3376 killBackgroundProcesses(String packageName, int userId) argument 3398 forceStopPackage(String packageName, int userId) argument 3436 profileControl(String process, int userId, boolean start, String path, ParcelFileDescriptor fd, int profileType) argument 3636 getProviderMimeType(Uri uri, int userId) argument 3716 dumpHeap(String process, int userId, boolean managed, String path, ParcelFileDescriptor fd) argument 3739 startActivities(IApplicationThread caller, Intent[] intents, String[] resolvedTypes, IBinder resultTo, Bundle options, int userId) argument [all...] |
H A D | ApplicationPackageManager.java | 412 public List<PackageInfo> getInstalledPackages(int flags, int userId) { argument 420 slice = mPM.getInstalledPackages(flags, lastKey, userId); 433 final int userId = mContext.getUserId(); 441 slice = mPM.getInstalledApplications(flags, lastKey, userId); 457 public ResolveInfo resolveActivityAsUser(Intent intent, int flags, int userId) { argument 463 userId); 478 int flags, int userId) { 484 userId); 526 public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags, int userId) { argument 532 userId); 477 queryIntentActivitiesAsUser(Intent intent, int flags, int userId) argument 557 queryIntentServicesAsUser(Intent intent, int flags, int userId) argument 763 getResourcesForApplicationAsUser(String appPackageName, int userId) argument 1207 addPreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity, int userId) argument [all...] |
/frameworks/base/core/java/android/accounts/ |
H A D | IAccountManager.aidl | 34 Account[] getAccountsAsUser(String accountType, int userId); 58 in Bundle options, boolean expectActivityLaunch, int userId);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
H A D | UsbPermissionActivity.java | 132 final int userId = UserHandle.getUserId(mUid); 133 service.setDevicePackage(mDevice, mPackageName, userId); 142 final int userId = UserHandle.getUserId(mUid); 143 service.setAccessoryPackage(mAccessory, mPackageName, userId);
|
/frameworks/base/core/java/android/content/pm/ |
H A D | PackageManager.java | 1518 * @param userId The user for whom the installed packages are to be listed 1540 public abstract List<PackageInfo> getInstalledPackages(int flags, int userId); argument 1824 * @param userId The user id. 1838 public abstract ResolveInfo resolveActivityAsUser(Intent intent, int flags, int userId); argument 1881 int flags, int userId); 1939 * @param userId The userId of the user being queried. 1951 int flags, int userId); 1992 * @param userId The user id. 2006 int flags, int userId); 1880 queryIntentActivitiesAsUser(Intent intent, int flags, int userId) argument 1950 queryBroadcastReceivers(Intent intent, int flags, int userId) argument 2005 queryIntentServicesAsUser(Intent intent, int flags, int userId) argument 2345 getResourcesForApplicationAsUser(String appPackageName, int userId) argument 2778 addPreferredActivity(IntentFilter filter, int match, ComponentName[] set, ComponentName activity, int userId) argument 2955 getDataDirForUser(int userId, String packageName) argument [all...] |
/frameworks/base/test-runner/src/android/test/mock/ |
H A D | MockPackageManager.java | 144 public List<PackageInfo> getInstalledPackages(int flags, int userId) { argument 220 public ResolveInfo resolveActivityAsUser(Intent intent, int flags, int userId) { argument 232 int flags, int userId) { 249 public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags, int userId) { argument 265 public List<ResolveInfo> queryIntentServicesAsUser(Intent intent, int flags, int userId) { argument 377 public Resources getResourcesForApplicationAsUser(String appPackageName, int userId) { argument 231 queryIntentActivitiesAsUser(Intent intent, int flags, int userId) argument
|
/frameworks/base/core/tests/coretests/src/android/accounts/ |
H A D | AccountManagerServiceTest.java | 202 AuthenticatorDescription type, int userId) { 212 public Collection<ServiceInfo<AuthenticatorDescription>> getAllServices(int userId) { argument 218 final FileDescriptor fd, final PrintWriter fout, final String[] args, int userId) { 228 public void invalidateCache(int userId) { argument 201 getServiceInfo( AuthenticatorDescription type, int userId) argument 217 dump( final FileDescriptor fd, final PrintWriter fout, final String[] args, int userId) argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
H A D | StatusBarIconView.java | 169 int userId = icon.user.getIdentifier(); 170 if (userId == UserHandle.USER_ALL) { 171 userId = UserHandle.USER_OWNER; 174 .getResourcesForApplicationAsUser(icon.iconPackage, userId);
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | LockPatternUtils.java | 251 public void setCurrentUser(int userId) { argument 252 sCurrentUserId = userId; 267 public void removeUser(int userId) { argument 269 getLockSettings().removeUser(userId); 271 Log.e(TAG, "Couldn't remove lock settings for user " + userId); 293 final int userId = getCurrentOrCallingUserId(); 295 final boolean matched = getLockSettings().checkPattern(patternToHash(pattern), userId); 296 if (matched && (userId == UserHandle.USER_OWNER)) { 312 final int userId = getCurrentOrCallingUserId(); 315 userId); [all...] |
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
H A D | Pm.java | 251 int userId = UserHandle.USER_OWNER; 272 userId = Integer.parseInt(nextArg()); 288 final List<PackageInfo> packages = getInstalledPackages(mPm, getFlags, userId); 322 private List<PackageInfo> getInstalledPackages(IPackageManager pm, int flags, int userId) argument 330 slice = pm.getInstalledPackages(flags, lastKey, userId); 1013 int userId; 1020 userId = Integer.parseInt(arg); 1026 if (mUm.removeUser(userId)) { 1029 System.err.println("Error: couldn't remove user id " + userId); 1134 int userId [all...] |