/frameworks/base/core/java/android/app/ |
ApplicationPackageManager.java | 418 throw new NameNotFoundException("No shared userid for user:"+sharedUserName); 429 public List<PackageInfo> getInstalledPackages(int flags, int userId) { 431 ParceledListSlice<PackageInfo> slice = mPM.getInstalledPackages(flags, userId); 442 final int userId = mContext.getUserId(); 445 permissions, flags, userId); 455 final int userId = mContext.getUserId(); 457 ParceledListSlice<ApplicationInfo> slice = mPM.getInstalledApplications(flags, userId); 470 public ResolveInfo resolveActivityAsUser(Intent intent, int flags, int userId) { 476 userId); 491 int flags, int userId) { [all...] |
ActivityManagerNative.java | 94 static public void broadcastStickyIntent(Intent intent, String permission, int userId) { 98 null /*permission*/, AppOpsManager.OP_NONE, false, true, userId); 160 int userId = data.readInt(); 163 profileFile, profileFd, options, userId); 186 int userId = data.readInt(); 189 profileFile, profileFd, options, userId); 210 int userId = data.readInt(); 212 resultTo, resultWho, requestCode, startFlags, config, options, userId); 311 int userId = data.readInt(); 312 Intent intent = registerReceiver(app, packageName, rec, filter, perm, userId); 1717 int userid = data.readInt(); local 1726 int userid = data.readInt(); local 1745 int userid = data.readInt(); local [all...] |
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
KeyguardFaceUnlockView.java | 263 public void onUserSwitching(int userId) { 264 if (DEBUG) Log.d(TAG, "onUserSwitched(" + userId + ")"); 269 // mLockPatternUtils.setCurrentUser(userId); 273 public void onUserSwitchComplete(int userId) { 274 if (DEBUG) Log.d(TAG, "onUserSwitchComplete(" + userId + ")");
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/ |
UsbPermissionActivity.java | 130 final int userId = UserHandle.getUserId(mUid); 131 service.setDevicePackage(mDevice, mPackageName, userId); 140 final int userId = UserHandle.getUserId(mUid); 141 service.setAccessoryPackage(mAccessory, mPackageName, userId);
|
/frameworks/base/test-runner/src/android/test/mock/ |
MockPackageManager.java | 160 public List<PackageInfo> getInstalledPackages(int flags, int userId) { 236 public ResolveInfo resolveActivityAsUser(Intent intent, int flags, int userId) { 248 int flags, int userId) { 265 public List<ResolveInfo> queryBroadcastReceivers(Intent intent, int flags, int userId) { 281 public List<ResolveInfo> queryIntentServicesAsUser(Intent intent, int flags, int userId) { 288 Intent intent, int flags, int userId) { 405 public Resources getResourcesForApplicationAsUser(String appPackageName, int userId) {
|
/packages/apps/Settings/src/com/android/settings/ |
NotificationStation.java | 247 private Resources getResourcesForUserPackage(String pkg, int userId) { 252 if (userId == UserHandle.USER_ALL) { 253 userId = UserHandle.USER_OWNER; 255 r = mPm.getResourcesForApplicationAsUser(pkg, userId); 266 private Drawable loadPackageIconDrawable(String pkg, int userId) { 286 private Drawable loadIconDrawable(String pkg, int userId, int resId) { 287 Resources r = getResourcesForUserPackage(pkg, userId);
|
/frameworks/base/core/java/android/content/pm/ |
PackageManager.java | [all...] |
/frameworks/base/services/java/com/android/server/ |
NotificationManagerService.java | 210 int userid; field in class:NotificationManagerService.NotificationListenerInfo 215 int userid, boolean isSystem) { 218 this.userid = userid; 224 int userid, ServiceConnection connection) { 227 this.userid = userid; 237 if (this.userid == UserHandle.USER_ALL) return true; 238 return (nid == UserHandle.USER_ALL || nid == this.userid); 265 unregisterListener(this.listener, this.userid); [all...] |
/frameworks/base/services/java/com/android/server/connectivity/ |
Vpn.java | 119 IConnectivityManager connService, int userId) { 125 mUserId = userId; 132 if (userId == UserHandle.USER_OWNER) { 138 final int userId = intent.getIntExtra(Intent.EXTRA_USER_HANDLE, 140 if (userId == UserHandle.USER_NULL) return; 143 onUserAdded(userId); 145 onUserRemoved(userId); 500 private void onUserAdded(int userId) { 504 UserInfo user = mgr.getUserInfo(userId); 507 addVpnUserLocked(userId); [all...] |
/frameworks/base/services/java/com/android/server/am/ |
ActiveServices.java | 171 ServiceMap(Looper looper, int userId) { 173 mUserId = userId; 278 int callingPid, int callingUid, int userId) { 299 callingPid, callingUid, userId, true, callerFg); 319 final ServiceMap smap = getServiceMap(r.userId); 321 if (!callerFg && r.app == null && mAm.mStartedUsers.get(r.userId) != null) { 377 Slog.v(TAG, "Not potential delay (user " + r.userId + " not started): " + r); 442 String resolvedType, int userId) { 456 Binder.getCallingPid(), Binder.getCallingUid(), userId, false, false); 548 final int userId = UserHandle.getCallingUserId() [all...] |
BroadcastRecord.java | 49 final int userId; // user id this broadcast was for 88 pw.print(prefix); pw.print(this); pw.print(" to user "); pw.println(userId); 200 userId = _userId; 208 + " u" + userId + " " + intent.getAction() + "}";
|
ActivityStack.java | 341 return r.userId == mCurrentUser 479 final int userId = UserHandle.getUserId(info.applicationInfo.uid); 484 if (task.userId != userId) { 490 if (r == null || r.finishing || r.userId != userId || 536 final int userId = UserHandle.getUserId(info.applicationInfo.uid); 540 if (task.userId != mCurrentUser) { 546 if (!r.finishing && r.intent.getComponent().equals(cls) && r.userId == userId) { [all...] |
ActivityStackSupervisor.java | 206 /** Stack id of the front stack when user switched, indexed by userId. */ 584 String profileFile, ParcelFileDescriptor profileFd, int userId) { 592 | ActivityManagerService.STOCK_PM_FLAGS, userId); 640 Bundle options, int userId) { 652 profileFile, profileFd, userId); 697 realCallingUid, userId, null, null, 0, new Intent[] { intent }, 731 | ActivityManagerService.STOCK_PM_FLAGS, userId); 733 aInfo = mService.getActivityInfoForUser(aInfo, userId); [all...] |
ConnectionRecord.java | 66 sb.append(binding.client.userId);
|
/frameworks/base/core/java/android/os/ |
UserHandle.java | 128 * Returns the uid that is composed from the userId and the appId. 131 public static final int getUid(int userId, int appId) { 133 return userId * PER_USER_RANGE + (appId % PER_USER_RANGE);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
LocationController.java | 153 private boolean isUserLocationRestricted(int userId) { 157 new UserHandle(userId));
|
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
KeyguardServiceWrapper.java | 175 public void setCurrentUser(int userId) { 177 mService.setCurrentUser(userId);
|
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
Pm.java | 273 int userId = UserHandle.USER_OWNER; 294 userId = Integer.parseInt(nextArg()); 310 final List<PackageInfo> packages = getInstalledPackages(mPm, getFlags, userId); 344 private List<PackageInfo> getInstalledPackages(IPackageManager pm, int flags, int userId) 346 ParceledListSlice<PackageInfo> slice = pm.getInstalledPackages(flags, userId); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
StatusBarIconView.java | 175 int userId = icon.user.getIdentifier(); 176 if (userId == UserHandle.USER_ALL) { 177 userId = UserHandle.USER_OWNER; 180 .getResourcesForApplicationAsUser(icon.iconPackage, userId);
|
/frameworks/base/services/java/com/android/server/wm/ |
StackBox.java | 370 void switchUserStacks(int userId) { 372 mStack.switchUser(userId); 375 mFirst.switchUserStacks(userId); 376 mSecond.switchUserStacks(userId);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
AccountManagerServiceTest.java | 204 AuthenticatorDescription type, int userId) { 214 public Collection<ServiceInfo<AuthenticatorDescription>> getAllServices(int userId) { 220 final FileDescriptor fd, final PrintWriter fout, final String[] args, int userId) { 230 public void invalidateCache(int userId) {
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
UserManagerTest.java | 160 private void removeUser(int userId) { 162 mUserManager.removeUser(userId); 163 while (mUserManager.getUserInfo(userId) != null) {
|
/frameworks/base/services/java/com/android/server/media/ |
MediaRouterService.java | 118 public void registerClientAsUser(IMediaRouterClient client, String packageName, int userId) { 129 final int resolvedUserId = ActivityManager.handleIncomingUser(pid, uid, userId, 286 int userId = ActivityManager.getCurrentUser(); 287 if (mCurrentUserId != userId) { 289 mCurrentUserId = userId; // do this first 297 UserRecord newUser = mUserRecords.get(userId); 312 int pid, String packageName, int userId, boolean trusted) { 317 UserRecord userRecord = mUserRecords.get(userId); 319 userRecord = new UserRecord(userId); 330 mUserRecords.put(userId, userRecord) [all...] |
/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/ |
AppSecurityTests.java | 549 private static void removeUserOnDevice(ITestDevice device, int userId) 552 final String output = device.executeShellCommand("pm remove-user " + userId); 559 String pkgName, String testClassName, String testMethodName, int userId) 562 final String cmd = "am instrument --user " + userId + " -w -r -e class " + testClassName
|
/frameworks/base/core/java/android/widget/ |
RemoteViewsAdapter.java | [all...] |