Searched defs:userId (Results 1 - 25 of 33) sorted by relevance

12

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
H A DDisableBluetoothSharingTask.java30 public DisableBluetoothSharingTask(int userId) { argument
31 mUserId = userId;
H A DDisableInstallShortcutListenersTask.java40 public DisableInstallShortcutListenersTask(Context context, int userId) { argument
41 mUserId = userId;
H A DDeleteNonRequiredAppsTask.java100 boolean newProfile, int userId, boolean leaveAllSystemAppsEnabled, Callback callback) {
106 mUserId = userId;
225 public static boolean shouldDeleteNonRequiredApps(Context context, int userId) { argument
226 return getSystemAppsFile(context, userId).exists();
229 static File getSystemAppsFile(Context context, int userId) { argument
231 + File.separator + "user" + userId + ".xml");
99 DeleteNonRequiredAppsTask(Context context, String mdmPackageName, int provisioningType, boolean newProfile, int userId, boolean leaveAllSystemAppsEnabled, Callback callback) argument
/packages/apps/Nfc/src/com/android/nfc/
H A DNfcPermissions.java21 public static void validateUserId(int userId) { argument
22 if (userId != UserHandle.getCallingUserId()) {
23 throw new SecurityException("userId passed in is not the calling user.");
/packages/apps/Settings/src/com/android/settings/users/
H A DUserDialogs.java47 * @param removingUserId The userId of the user to remove
82 private static View createRemoveManagedUserDialogView(Context context, int userId) { argument
84 ApplicationInfo mdmApplicationInfo = Utils.getAdminApplicationInfo(context, userId);
95 packageManager.getApplicationIcon(mdmApplicationInfo), new UserHandle(userId));
100 new UserHandle(userId));
H A DUserPreference.java61 UserPreference(Context context, AttributeSet attrs, int userId, argument
70 mUserId = userId;
108 // If the userId is unknown
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
H A DRestrictedProfilePinDialogFragment.java34 boolean checkPassword(String password, int userId); argument
H A DUserSwitchListenerService.java44 ON_BOOT_USER_ID_PREFERENCE = "UserSwitchOnBootBroadcastReceiver.userId";
85 static void setBootUser(Context context, int userId) { argument
88 editor.putInt(ON_BOOT_USER_ID_PREFERENCE, userId);
H A DAppLoadingTask.java76 * @param userId the user ID of the user whose apps should be listed.
81 AppLoadingTask(Context context, int userId, boolean newUser, IPackageManager iPackageManager, argument
84 mUserId = userId;
412 Set<String> excludePackages, int userId) {
441 0, userId);
463 private ApplicationInfo getAppInfoForUser(String packageName, int flags, int userId) { argument
467 userId);
411 addSystemApps(List<SelectableAppInfo> visibleApps, Intent intent, Set<String> excludePackages, int userId) argument
H A DRestrictedProfileDialogFragment.java108 int userId = restrictedUserInfo.id;
109 UserHandle user = new UserHandle(userId);
112 mUserManager.setUserIcon(userId, bitmap);
131 int userId = result.id;
134 getActivity(), userId, true);
282 /* package */ static void switchUserNow(int userId) { argument
284 ActivityManagerNative.getDefault().switchUser(userId);
311 public boolean checkPassword(String password, int userId) { argument
313 return getLockSettings().checkPassword(password, userId).getResponseCode()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
H A DUninstallAppProgress.java73 private boolean isProfileOfOrSame(UserManager userManager, int userId, int profileId) { argument
74 if (userId == profileId) {
78 return parentUser != null && parentUser.id == userId;
/packages/apps/Settings/src/com/android/settings/notification/
H A DZenModeEventRuleSettings.java92 mCalendar.addItem(eventCalendar, key(mEvent.userId, eventCalendar));
109 mEvent.userId = Integer.parseInt(calendarKey.substring(0, i));
198 ci.userId = context.getUserId();
209 return key(calendar.userId, calendar.name);
213 return key(event.userId, event.calendar);
216 private static String key(int userId, String calendar) { argument
217 return EventInfo.resolveUserId(userId) + ":" + (calendar == null ? "" : calendar);
229 public int userId; field in class:ZenModeEventRuleSettings.CalendarInfo
H A DNotificationStation.java235 private Resources getResourcesForUserPackage(String pkg, int userId) { argument
240 if (userId == UserHandle.USER_ALL) {
241 userId = UserHandle.USER_OWNER;
243 r = mPm.getResourcesForApplicationAsUser(pkg, userId);
254 private Drawable loadPackageIconDrawable(String pkg, int userId) { argument
276 private Drawable loadIconDrawable(String pkg, int userId, int resId) { argument
277 Resources r = getResourcesForUserPackage(pkg, userId);
/packages/apps/Settings/src/com/android/settings/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);
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
H A DProfileOwnerProvisioningService.java366 private boolean startManagedProfile(int userId) { argument
370 return iActivityManager.startUserInBackground(userId);
H A DUtils.java64 public static Set<String> getCurrentSystemApps(int userId) { argument
71 PackageManager.GET_UNINSTALLED_PACKAGES, userId).getList();
83 public static void disableComponent(ComponentName toDisable, int userId) { argument
90 userId);
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
H A DCardEmulationManager.java93 public void onUserSwitched(int userId) { argument
94 mServiceCache.invalidateCache(userId);
95 mPreferredServices.onUserSwitched(userId);
114 public void onServicesUpdated(int userId, List<ApduServiceInfo> services) { argument
116 verifyDefaults(userId, services);
118 mAidCache.onServicesUpdated(userId, services);
123 void verifyDefaults(int userId, List<ApduServiceInfo> services) { argument
125 getDefaultServiceForCategory(userId, CardEmulation.CATEGORY_PAYMENT, false);
129 ApduServiceInfo serviceInfo = mServiceCache.getService(userId, defaultPaymentService);
149 setDefaultServiceForCategoryChecked(userId, nul
195 getDefaultServiceForCategory(int userId, String category, boolean validateInstalled) argument
217 setDefaultServiceForCategoryChecked(int userId, ComponentName service, String category) argument
236 isServiceRegistered(int userId, ComponentName service) argument
267 isDefaultServiceForCategory(int userId, ComponentName service, String category) argument
280 isDefaultServiceForAid(int userId, ComponentName service, String aid) argument
291 setDefaultServiceForCategory(int userId, ComponentName service, String category) argument
302 setDefaultForNextTap(int userId, ComponentName service) argument
313 registerAidGroupForService(int userId, ComponentName service, AidGroup aidGroup) argument
325 getAidGroupForService(int userId, ComponentName service, String category) argument
337 removeAidGroupForService(int userId, ComponentName service, String category) argument
349 getServices(int userId, String category) argument
[all...]
H A DPreferredServices.java128 void loadDefaultsFromSettings(int userId) { argument
134 userId);
354 public void onUserSwitched(int userId) { argument
355 loadDefaultsFromSettings(userId);
H A DRegisteredAidCache.java195 public boolean isDefaultServiceForAid(int userId, ComponentName service, String aid) { argument
561 public void onServicesUpdated(int userId, List<ApduServiceInfo> services) { argument
564 if (ActivityManager.getCurrentUser() == userId) {
H A DRegisteredServicesCache.java85 void onServicesUpdated(int userId, final List<ApduServiceInfo> services); argument
107 private UserServices findOrCreateUserLocked(int userId) { argument
108 UserServices services = mUserServices.get(userId);
111 mUserServices.put(userId, services);
185 public boolean hasService(int userId, ComponentName service) { argument
186 return getService(userId, service) != null;
189 public ApduServiceInfo getService(int userId, ComponentName service) { argument
191 UserServices userServices = findOrCreateUserLocked(userId);
196 public List<ApduServiceInfo> getServices(int userId) { argument
199 UserServices userServices = findOrCreateUserLocked(userId);
205 getServicesForCategory(int userId, String category) argument
216 getInstalledServices(int userId) argument
271 invalidateCache(int userId) argument
444 registerAidGroupForService(int userId, int uid, ComponentName componentName, AidGroup aidGroup) argument
496 getAidGroupForService(int userId, int uid, ComponentName componentName, String category) argument
511 removeAidGroupForService(int userId, int uid, ComponentName componentName, String category) argument
[all...]
H A DHostEmulationManager.java348 void bindPaymentServiceLocked(int userId, ComponentName service) { argument
354 Context.BIND_AUTO_CREATE, new UserHandle(userId))) {
/packages/apps/Settings/src/com/android/settings/accounts/
H A DManageAccountsSettings.java209 final int userId = mUserHandle.getIdentifier();
210 SyncAdapterType[] syncAdapters = ContentResolver.getSyncAdapterTypesAsUser(userId);
224 userId)) {
226 ContentResolver.requestSyncAsUser(account, sa.authority, userId,
229 ContentResolver.cancelSyncAsUser(account, sa.authority, userId);
255 final int userId = mUserHandle.getIdentifier();
258 List<SyncInfo> currentSyncs = ContentResolver.getCurrentSyncsAsUser(userId);
264 final SyncAdapterType[] syncAdapters = ContentResolver.getSyncAdapterTypesAsUser(userId);
288 userId);
289 boolean syncEnabled = isSyncEnabled(userId, accoun
349 isSyncEnabled(int userId, Account account, String authority) argument
[all...]
/packages/apps/Settings/src/com/android/settings/applications/
H A DAppStateAppOpsBridge.java71 private boolean isThisUserAProfileOfCurrentUser(final int userId) { argument
74 if (mProfiles.get(i).getIdentifier() == userId) {
136 int userId = UserHandle.getUserId(app.info.uid);
137 ArrayMap<String, PermissionState> userMap = entries.get(userId);
230 final int userId = UserHandle.getUserId(packageOp.getUid());
231 if (!isThisUserAProfileOfCurrentUser(userId)) {
236 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(userId);
243 + " of user " + userId + " but package doesn't exist or did not request "
/packages/apps/Settings/src/com/android/settings/vpn2/
H A DVpnSettings.java328 private static String getVpnIdentifier(int userId, String packageName) { argument
329 return Integer.toString(userId)+ "_" + packageName;
367 int userId = UserHandle.getUserId(pkg.getUid());
368 if (currentProfileIds.get(userId) == null) {
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
H A DPermissionApps.java400 public synchronized List<PackageInfo> getPackages(int userId) { argument
401 List<PackageInfo> ret = mPackageInfoCache.get(userId);
403 ret = mPm.getInstalledPackages(PackageManager.GET_PERMISSIONS, userId);
404 mPackageInfoCache.put(userId, ret);

Completed in 412 milliseconds

12