Searched refs:userId (Results 201 - 225 of 392) sorted by relevance

1234567891011>>

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserManagerTest.java63 for (Integer userId : usersToRemove) {
64 removeUser(userId);
242 private void removeUser(int userId) { argument
244 mUserManager.removeUser(userId);
246 while (mUserManager.getUserInfo(userId) != null) {
254 fail("Timeout waiting for removeUser. userId = " + userId);
/frameworks/base/core/java/android/app/
H A DINotificationManager.aidl40 void cancelAllNotifications(String pkg, int userId);
45 in Notification notification, inout int[] idReceived, int userId);
46 void cancelNotificationWithTag(String pkg, String tag, int id, int userId);
112 ParceledListSlice getAppActiveNotifications(String callingPkg, int userId);
H A DActivityManagerNative.java100 static public void broadcastStickyIntent(Intent intent, String permission, int userId) { argument
101 broadcastStickyIntent(intent, permission, AppOpsManager.OP_NONE, userId);
109 int userId) {
113 null /*permission*/, appOp, null, false, true, userId);
188 int userId = data.readInt();
190 resultTo, resultWho, requestCode, startFlags, profilerInfo, options, userId);
213 int userId = data.readInt();
216 ignoreTargetSecurity, userId);
238 int userId = data.readInt();
240 resultTo, resultWho, requestCode, startFlags, profilerInfo, options, userId);
108 broadcastStickyIntent(Intent intent, String permission, int appOp, int userId) argument
3078 startActivityAsUser(IApplicationThread caller, String callingPackage, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, ProfilerInfo profilerInfo, Bundle options, int userId) argument
3113 startActivityAsCaller(IApplicationThread caller, String callingPackage, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, ProfilerInfo profilerInfo, Bundle options, boolean ignoreTargetSecurity, int userId) argument
3149 startActivityAndWait(IApplicationThread caller, String callingPackage, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, ProfilerInfo profilerInfo, Bundle options, int userId) argument
3184 startActivityWithConfig(IApplicationThread caller, String callingPackage, Intent intent, String resolvedType, IBinder resultTo, String resultWho, int requestCode, int startFlags, Configuration config, Bundle options, int userId) argument
3248 startVoiceActivity(String callingPackage, int callingPid, int callingUid, Intent intent, String resolvedType, IVoiceInteractionSession session, IVoiceInteractor interactor, int startFlags, ProfilerInfo profilerInfo, Bundle options, int userId) argument
3449 registerReceiver(IApplicationThread caller, String packageName, IIntentReceiver receiver, IntentFilter filter, String perm, int userId) argument
3484 broadcastIntent(IApplicationThread caller, Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode, String resultData, Bundle map, String[] requiredPermissions, int appOp, Bundle options, boolean serialized, boolean sticky, int userId) argument
3513 unbroadcastIntent(IApplicationThread caller, Intent intent, int userId) argument
3743 getRecentTasks(int maxNum, int flags, int userId) argument
4159 getContentProvider(IApplicationThread caller, String name, int userId, boolean stable) argument
4179 getContentProviderExternal(String name, int userId, IBinder token) argument
4289 startService(IApplicationThread caller, Intent service, String resolvedType, String callingPackage, int userId) argument
4307 stopService(IApplicationThread caller, Intent service, String resolvedType, int userId) argument
4359 bindService(IApplicationThread caller, IBinder token, Intent service, String resolvedType, IServiceConnection connection, int flags, String callingPackage, int userId) argument
4453 bindBackupAgent(String packageName, int backupRestoreMode, int userId) argument
4500 startInstrumentation(ComponentName className, String profileFile, int flags, Bundle arguments, IInstrumentationWatcher watcher, IUiAutomationConnection connection, int userId, String instructionSet) argument
4609 getIntentSender(int type, String packageName, IBinder token, String resultWho, int requestCode, Intent[] intents, String[] resolvedTypes, int flags, Bundle options, int userId) argument
4678 handleIncomingUser(int callingPid, int callingUid, int userId, boolean allowAll, boolean requireFull, String name, String callerPackage) argument
4764 clearApplicationUserData(final String packageName, final IPackageDataObserver observer, final int userId) argument
4779 checkUriPermission(Uri uri, int pid, int uid, int mode, int userId, IBinder callerToken) argument
4797 grantUriPermission(IApplicationThread caller, String targetPkg, Uri uri, int mode, int userId) argument
4812 revokeUriPermission(IApplicationThread caller, Uri uri, int mode, int userId) argument
4828 takePersistableUriPermission(Uri uri, int mode, int userId) argument
4843 releasePersistableUriPermission(Uri uri, int mode, int userId) argument
4876 getGrantedUriPermissions(String packageName, int userId) argument
4894 clearGrantedUriPermissions(String packageName, int userId) argument
5154 killBackgroundProcesses(String packageName, int userId) argument
5176 killPackageDependents(String packageName, int userId) argument
5188 forceStopPackage(String packageName, int userId) argument
5226 profileControl(String process, int userId, boolean start, ProfilerInfo profilerInfo, int profileType) argument
5295 killApplication(String pkg, int appId, int userId, String reason) argument
5510 getProviderMimeType(Uri uri, int userId) argument
5569 revokeUriPermissionFromOwner(IBinder owner, Uri uri, int mode, int userId) argument
5589 checkGrantUriPermission(int callingUid, String targetPkg, Uri uri, int modeFlags, int userId) argument
5607 dumpHeap(String process, int userId, boolean managed, String path, ParcelFileDescriptor fd) argument
5630 startActivities(IApplicationThread caller, String callingPackage, Intent[] intents, String[] resolvedTypes, IBinder resultTo, Bundle options, int userId) argument
5757 unlockUser(int userId, byte[] token, byte[] secret, IProgressListener listener) argument
6211 killUid(int appId, int userId, String reason) argument
6571 getTaskDescriptionIcon(String filename, int userId) argument
6735 updateLockTaskPackages(int userId, String[] packages) argument
6776 setProcessMemoryTrimLevel(String process, int userId, int level) argument
6974 notifyLockedProfile(@serIdInt int userId) argument
[all...]
/frameworks/base/core/java/android/os/storage/
H A DStorageManager.java838 public static @Nullable StorageVolume getStorageVolume(File file, int userId) { argument
839 return getStorageVolume(getVolumeList(userId, 0), file);
912 public static @NonNull StorageVolume[] getVolumeList(int userId, int flags) { argument
930 PackageManager.MATCH_DEBUG_TRIAGED_MISSING, userId);
1014 public void createUserKey(int userId, int serialNumber, boolean ephemeral) { argument
1016 mMountService.createUserKey(userId, serialNumber, ephemeral);
1023 public void destroyUserKey(int userId) { argument
1025 mMountService.destroyUserKey(userId);
1032 public void unlockUserKey(int userId, int serialNumber, byte[] token, byte[] secret) { argument
1034 mMountService.unlockUserKey(userId, serialNumbe
1041 lockUserKey(int userId) argument
1050 prepareUserStorage(String volumeUuid, int userId, int serialNumber, int flags) argument
1059 destroyUserStorage(String volumeUuid, int userId, int flags) argument
1068 isUserKeyUnlocked(int userId) argument
[all...]
H A DIMountService.java1203 public void createUserKey(int userId, int serialNumber, boolean ephemeral) argument
1209 _data.writeInt(userId);
1221 public void destroyUserKey(int userId) throws RemoteException { argument
1226 _data.writeInt(userId);
1236 public void addUserKeyAuth(int userId, int serialNumber, argument
1242 _data.writeInt(userId);
1255 public void fixateNewestUserKeyAuth(int userId) throws RemoteException { argument
1260 _data.writeInt(userId);
1270 public void unlockUserKey(int userId, int serialNumber, argument
1276 _data.writeInt(userId);
1289 lockUserKey(int userId) argument
1304 isUserKeyUnlocked(int userId) argument
1322 prepareUserStorage( String volumeUuid, int userId, int serialNumber, int flags) argument
1342 destroyUserStorage(String volumeUuid, int userId, int flags) argument
2474 createUserKey(int userId, int serialNumber, boolean ephemeral) argument
2476 destroyUserKey(int userId) argument
2477 addUserKeyAuth(int userId, int serialNumber, byte[] token, byte[] secret) argument
2479 fixateNewestUserKeyAuth(int userId) argument
2481 unlockUserKey(int userId, int serialNumber, byte[] token, byte[] secret) argument
2483 lockUserKey(int userId) argument
2484 isUserKeyUnlocked(int userId) argument
2486 prepareUserStorage(String volumeUuid, int userId, int serialNumber, int flags) argument
2488 destroyUserStorage(String volumeUuid, int userId, int flags) argument
[all...]
H A DVolumeInfo.java271 public boolean isVisibleForRead(int userId) { argument
273 if (isPrimary() && mountUserId != userId) {
286 public boolean isVisibleForWrite(int userId) { argument
287 if (type == TYPE_PUBLIC && mountUserId == userId) {
304 public File getPathForUser(int userId) { argument
310 return new File(path, Integer.toString(userId));
320 public File getInternalPathForUser(int userId) { argument
325 return getPathForUser(userId);
329 public StorageVolume buildStorageVolume(Context context, int userId, boolean reportUnmounted) { argument
338 File userPath = getPathForUser(userId);
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
H A DRestrictedPreference.java89 public void checkRestrictionAndSetDisabled(String userRestriction, int userId) { argument
90 mHelper.checkRestrictionAndSetDisabled(userRestriction, userId);
H A DRestrictedPreferenceHelper.java131 * @param userId user to check the restriction for.
133 public void checkRestrictionAndSetDisabled(String userRestriction, int userId) { argument
135 userRestriction, userId);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
H A DAppRestrictionsHelper.java89 final int userId = mUser.getIdentifier();
90 if (!mUserManager.getUserInfo(userId).isRestricted() && userId != UserHandle.myUserId()) {
103 final int userId = mUser.getIdentifier();
108 PackageManager.MATCH_UNINSTALLED_PACKAGES, userId);
119 mIPm.setApplicationHiddenSettingAsUser(packageName, false, userId);
130 ApplicationInfo info = mIPm.getApplicationInfo(packageName, 0, userId);
140 mIPm.setApplicationHiddenSettingAsUser(packageName, true, userId);
/frameworks/base/services/core/java/com/android/server/am/
H A DBroadcastRecord.java54 final int userId; // user id this broadcast was for field in class:BroadcastRecord
103 pw.print(prefix); pw.print(this); pw.print(" to user "); pw.println(userId);
242 userId = _userId;
248 String packageName, Set<String> filterByClasses, int userId, boolean doit) {
249 if ((userId != UserHandle.USER_ALL && this.userId != userId) || receivers == null) {
284 + " u" + userId + " " + intent.getAction() + "}";
247 cleanupDisabledPackageReceiversLocked( String packageName, Set<String> filterByClasses, int userId, boolean doit) argument
H A DActiveServices.java193 ServiceMap(Looper looper, int userId) { argument
195 mUserId = userId;
307 int callingPid, int callingUid, String callingPackage, final int userId)
329 callingPid, callingUid, userId, true, callerFg, false);
340 if (!mAm.mUserController.exists(r.userId)) {
341 Slog.w(TAG, "Trying to start service with non-existent user! " + r.userId);
365 callingUid, r.packageName, service, service.getFlags(), null, r.userId);
373 callingUid, service, callerFg, userId)) {
387 final ServiceMap smap = getServiceMap(r.userId);
390 && mAm.mUserController.hasStartedUserState(r.userId)) {
306 startServiceLocked(IApplicationThread caller, Intent service, String resolvedType, int callingPid, int callingUid, String callingPackage, final int userId) argument
455 requestStartTargetPermissionsReviewIfNeededLocked(ServiceRecord r, String callingPackage, int callingUid, Intent service, boolean callerFg, final int userId) argument
556 stopServiceLocked(IApplicationThread caller, Intent service, String resolvedType, int userId) argument
819 bindServiceLocked(IApplicationThread caller, IBinder token, Intent service, String resolvedType, final IServiceConnection connection, int flags, String callingPackage, final int userId) argument
1214 findServiceLocked(ComponentName name, IBinder token, int userId) argument
1244 retrieveServiceLocked(Intent service, String resolvedType, String callingPackage, int callingPid, int callingUid, int userId, boolean createIfNeeded, boolean callingFromFg, boolean isBindExternal) argument
2430 bringDownDisabledPackageServicesLocked(String packageName, Set<String> filterByClasses, int userId, boolean evenPersistent, boolean killProcess, boolean doit) argument
[all...]
/frameworks/base/services/core/java/com/android/server/fingerprint/
H A DClientMonitor.java53 * @param userId target user id for operation
60 IFingerprintServiceReceiver receiver, int userId, int groupId,boolean restricted,
66 mTargetUserId = userId;
59 ClientMonitor(Context context, long halDeviceId, IBinder token, IFingerprintServiceReceiver receiver, int userId, int groupId,boolean restricted, String owner) argument
H A DEnrollClient.java41 IFingerprintServiceReceiver receiver, int userId, int groupId, byte [] cryptoToken,
43 super(context, halDeviceId, token, receiver, userId, groupId, restricted, owner);
40 EnrollClient(Context context, long halDeviceId, IBinder token, IFingerprintServiceReceiver receiver, int userId, int groupId, byte [] cryptoToken, boolean restricted, String owner) argument
H A DFingerprintsUserState.java63 public FingerprintsUserState(Context ctx, int userId) { argument
64 mFile = getFileForUser(userId);
136 private static File getFileForUser(int userId) { argument
137 return new File(Environment.getUserSystemDirectory(userId), FINGERPRINT_FILE);
/frameworks/base/services/core/java/com/android/server/location/
H A DLocationBlacklist.java119 public void switchUser(int userId) { argument
121 mCurrentUserId = userId;
/frameworks/base/services/core/java/com/android/server/notification/
H A DManagedServices.java336 for (int userId : userIds) {
338 registerServiceLocked(component, userId);
340 unregisterServiceLocked(component, userId);
368 int userId) {
373 userId);
389 int userId) {
405 userId);
424 protected Set<ComponentName> queryPackageForServices(String packageName, int userId) { argument
434 userId);
456 private void updateSettingsAccordingToInstalledServices(String setting, int userId) { argument
367 loadComponentNamesFromSetting(String settingName, int userId) argument
387 storeComponentsToSetting(Set<ComponentName> components, String settingName, int userId) argument
934 isCurrentProfile(int userId) argument
[all...]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiConfigManagerTest.java112 for (int userId : USER_IDS) {
116 USER_PROFILES.get(userId))) {
120 VISIBLE_CONFIGS.put(userId, configs);
161 for (int userId : USER_IDS) {
162 when(mUserManager.getProfiles(userId)).thenReturn(USER_PROFILES.get(userId));
323 for (int userId : USER_IDS) {
324 switchUser(userId);
329 USER_PROFILES.get(userId))) {
345 for (int userId
[all...]
/frameworks/base/core/java/android/app/admin/
H A DIDevicePolicyManager.aidl126 boolean setDeviceOwner(in ComponentName who, String ownerName, int userId);
182 List getPermittedAccessibilityServicesForUser(int userId);
183 boolean isAccessibilityServicePermittedByAdmin(in ComponentName admin, String packageName, int userId);
188 boolean isInputMethodPermittedByAdmin(in ComponentName admin, String packageName, int userId);
202 String[] getAccountTypesWithManagementDisabledAsUser(int userId);
214 void notifyLockTaskModeChanged(boolean isEnabled, String pkg, int userId);
221 boolean getCrossProfileCallerIdDisabledForUser(int userId);
224 boolean getCrossProfileContactsSearchDisabledForUser(int userId);
229 boolean getBluetoothContactSharingDisabledForUser(int userId);
234 in ComponentName agent, int userId, boolea
[all...]
/frameworks/base/core/java/android/os/
H A DIUserManager.aidl49 int[] getProfileIds(int userId, boolean enabledOnly);
83 boolean isManagedProfile(int userId);
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DAppsQueryHelperTests.java108 protected List<ApplicationInfo> getAllApps(int userId) { argument
127 protected List<ResolveInfo> queryIntentActivitiesAsUser(Intent intent, int userId) { argument
140 protected List<PackageInfo> getPackagesHoldingPermission(String perm, int userId) { argument
149 protected List<ResolveInfo> queryIntentServicesAsUser(Intent intent, int userId) { argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
H A DUserAdapter.java63 final int userId = userInfo.id;
64 if (um.getUserIcon(userId) != null) {
65 icon = new BitmapDrawable(context.getResources(), um.getUserIcon(userId));
67 icon = UserIcons.getDefaultUserIcon(userId, /* light= */ false);
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/
H A DAccessPointPreference.java214 private Drawable getUserBadge(int userId) { argument
215 int index = mBadges.indexOfKey(userId);
217 Drawable badge = mPm.getUserBadgeForDensity(new UserHandle(userId), 0 /* dpi */);
218 mBadges.put(userId, badge);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DUserInfoController.java130 final int userId = userInfo.id;
149 Bitmap rawAvatar = um.getUserIcon(userId);
152 .setIcon(rawAvatar).setBadgeIfManagedUser(mContext, userId).bake();
154 avatar = UserIcons.getDefaultUserIcon(isGuest? UserHandle.USER_NULL : userId,
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
H A DUsbPermissionActivity.java130 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/tools/layoutlib/bridge/src/android/view/accessibility/
H A DAccessibilityManager.java110 public AccessibilityManager(Context context, IAccessibilityManager service, int userId) { argument

Completed in 1575 milliseconds

1234567891011>>