/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
H A D | DisableBluetoothSharingTask.java | 30 public DisableBluetoothSharingTask(int userId) { argument 31 mUserId = userId;
|
H A D | DisableInstallShortcutListenersTask.java | 40 public DisableInstallShortcutListenersTask(Context context, int userId) { argument 41 mUserId = userId;
|
H A D | DeleteNonRequiredAppsTask.java | 100 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 D | NfcPermissions.java | 21 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 D | UserDialogs.java | 47 * @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 D | UserPreference.java | 61 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 D | RestrictedProfilePinDialogFragment.java | 34 boolean checkPassword(String password, int userId); argument
|
H A D | UserSwitchListenerService.java | 44 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 D | AppLoadingTask.java | 76 * @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 D | RestrictedProfileDialogFragment.java | 108 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 D | UninstallAppProgress.java | 73 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 D | ZenModeEventRuleSettings.java | 92 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 D | NotificationStation.java | 235 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 D | AccessPointPreference.java | 214 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 D | ProfileOwnerProvisioningService.java | 366 private boolean startManagedProfile(int userId) { argument 370 return iActivityManager.startUserInBackground(userId);
|
H A D | Utils.java | 64 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 D | CardEmulationManager.java | 93 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 D | PreferredServices.java | 128 void loadDefaultsFromSettings(int userId) { argument 134 userId); 354 public void onUserSwitched(int userId) { argument 355 loadDefaultsFromSettings(userId);
|
H A D | RegisteredAidCache.java | 195 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 D | RegisteredServicesCache.java | 85 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 D | HostEmulationManager.java | 348 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 D | ManageAccountsSettings.java | 209 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 D | AppStateAppOpsBridge.java | 71 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 D | VpnSettings.java | 328 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 D | PermissionApps.java | 400 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);
|