/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
D | CardEmulationManager.java | 139 public void onUserSwitched(int userId) { in onUserSwitched() argument 141 mServiceCache.invalidateCache(userId); in onUserSwitched() 142 mPreferredServices.onUserSwitched(userId); in onUserSwitched() 146 mEnabledNfcFServices.onUserSwitched(userId); in onUserSwitched() 147 mNfcFServicesCache.invalidateCache(userId); in onUserSwitched() 179 public void onServicesUpdated(int userId, List<ApduServiceInfo> services) { in onServicesUpdated() argument 181 verifyDefaults(userId, services); in onServicesUpdated() 183 mAidCache.onServicesUpdated(userId, services); in onServicesUpdated() 189 public void onNfcFServicesUpdated(int userId, List<NfcFServiceInfo> services) { in onNfcFServicesUpdated() argument 191 mT3tIdentifiersCache.onServicesUpdated(userId, services); in onNfcFServicesUpdated() [all …]
|
D | RegisteredServicesCache.java | 85 void onServicesUpdated(int userId, final List<ApduServiceInfo> services); in onServicesUpdated() argument 107 private UserServices findOrCreateUserLocked(int userId) { in findOrCreateUserLocked() argument 108 UserServices services = mUserServices.get(userId); in findOrCreateUserLocked() 111 mUserServices.put(userId, services); in findOrCreateUserLocked() 185 public boolean hasService(int userId, ComponentName service) { in hasService() argument 186 return getService(userId, service) != null; in hasService() 189 public ApduServiceInfo getService(int userId, ComponentName service) { in getService() argument 191 UserServices userServices = findOrCreateUserLocked(userId); in getService() 196 public List<ApduServiceInfo> getServices(int userId) { in getServices() argument 199 UserServices userServices = findOrCreateUserLocked(userId); in getServices() [all …]
|
D | RegisteredNfcFServicesCache.java | 78 void onNfcFServicesUpdated(int userId, final List<NfcFServiceInfo> services); in onNfcFServicesUpdated() argument 113 private UserServices findOrCreateUserLocked(int userId) { in findOrCreateUserLocked() argument 114 UserServices userServices = mUserServices.get(userId); in findOrCreateUserLocked() 117 mUserServices.put(userId, userServices); in findOrCreateUserLocked() 194 public boolean hasService(int userId, ComponentName componentName) { in hasService() argument 195 return getService(userId, componentName) != null; in hasService() 198 public NfcFServiceInfo getService(int userId, ComponentName componentName) { in getService() argument 200 UserServices userServices = findOrCreateUserLocked(userId); in getService() 205 public List<NfcFServiceInfo> getServices(int userId) { in getServices() argument 208 UserServices userServices = findOrCreateUserLocked(userId); in getServices() [all …]
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | AppVpnInfo.java | 14 public final int userId; field in AppVpnInfo 17 public AppVpnInfo(int userId, @NonNull String packageName) { in AppVpnInfo() argument 18 this.userId = userId; in AppVpnInfo() 28 result = that.userId - userId; in compareTo() 37 return userId == that.userId && Objects.equals(packageName, that.packageName); in equals() 44 return Objects.hash(packageName, userId); in hashCode()
|
D | AppDialogFragment.java | 134 final int userId = getUserId(); in onForget() local 136 mService.setVpnPackageAuthorization(mPackageInfo.packageName, userId, false); in onForget() 140 " for user " + userId, e); in onForget() 152 final int userId = getUserId(); in onDisconnect() local 154 if (mPackageInfo.packageName.equals(getConnectedPackage(mService, userId))) { in onDisconnect() 155 mService.setAlwaysOnVpnPackage(userId, null, /* lockdownEnabled */ false); in onDisconnect() 156 mService.prepareVpn(mPackageInfo.packageName, VpnConfig.LEGACY_VPN, userId); in onDisconnect() 160 " for user " + userId, e); in onDisconnect() 173 private static String getConnectedPackage(IConnectivityManager service, final int userId) in getConnectedPackage() argument 175 final VpnConfig config = service.getVpnConfig(userId); in getConnectedPackage()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
D | PreBootListener.java | 113 private void installTelecomAsUser(int userId) { in installTelecomAsUser() argument 115 mPackageManager.installExistingPackageAsUser(TELECOM_PACKAGE, userId); in installTelecomAsUser() 125 private void resetCrossProfileIntentFilters(int userId) { in resetCrossProfileIntentFilters() argument 126 List<UserInfo> profiles = mUserManager.getProfiles(userId); in resetCrossProfileIntentFilters() 132 mPackageManager.clearCrossProfileIntentFilters(userId); in resetCrossProfileIntentFilters() 141 mPackageManager, userId, profile.id); in resetCrossProfileIntentFilters() 145 void runManagedProfileDisablingTasks(int userId, Context context) { in runManagedProfileDisablingTasks() argument 146 ComponentName profileOwner = mDevicePolicyManager.getProfileOwnerAsUser(userId); in runManagedProfileDisablingTasks() 149 ProvisionLogger.loge("No profile owner on managed profile " + userId); in runManagedProfileDisablingTasks() 153 = new DisableInstallShortcutListenersTask(context, userId); in runManagedProfileDisablingTasks() [all …]
|
/packages/apps/Settings/src/com/android/settings/ |
D | ShowAdminSupportDetailsDialog.java | 65 initializeDialogViews(mDialogView, mEnforcedAdmin.component, mEnforcedAdmin.userId); in onCreate() 78 initializeDialogViews(mDialogView, mEnforcedAdmin.component, mEnforcedAdmin.userId); in onNewIntent() 90 admin.userId = intent.getIntExtra(Intent.EXTRA_USER_ID, UserHandle.myUserId()); in getAdminDetailsFromIntent() 107 private void initializeDialogViews(View root, ComponentName admin, int userId) { in initializeDialogViews() argument 110 || !RestrictedLockUtils.isCurrentUserOrProfile(this, userId)) { in initializeDialogViews() 116 userId); in initializeDialogViews() 123 icon, new UserHandle(userId)); in initializeDialogViews() 130 setAdminSupportDetails(this, root, new EnforcedAdmin(admin, userId), true); in initializeDialogViews() 144 activity, enforcedAdmin.userId)) { in setAdminSupportDetails() 147 if (enforcedAdmin.userId == UserHandle.USER_NULL) { in setAdminSupportDetails() [all …]
|
D | ChooseLockSettingsHelper.java | 95 boolean returnCredentials, int userId) { in launchConfirmationActivity() argument 97 returnCredentials, false, false, 0, Utils.enforceSameOwner(mActivity, userId)); in launchConfirmationActivity() 138 boolean returnCredentials, boolean external, int userId) { in launchConfirmationActivity() argument 140 returnCredentials, external, false, 0, Utils.enforceSameOwner(mActivity, userId)); in launchConfirmationActivity() 173 long challenge, int userId) { in launchConfirmationActivity() argument 175 true, false, true, challenge, Utils.enforceSameOwner(mActivity, userId)); in launchConfirmationActivity() 194 @Nullable CharSequence description, boolean external, long challenge, int userId) { in launchConfirmationActivityWithExternalAndChallenge() argument 196 external, true, challenge, Utils.enforceSameOwner(mActivity, userId)); in launchConfirmationActivityWithExternalAndChallenge() 202 long challenge, int userId) { in launchConfirmationActivity() argument 203 final int effectiveUserId = UserManager.get(mActivity).getCredentialOwnerProfile(userId); in launchConfirmationActivity() [all …]
|
D | ConfirmDeviceCredentialActivity.java | 68 int userId = Utils.getCredentialOwnerUserId(this); in onCreate() local 71 userId = Utils.getUserIdFromBundle(this, intent.getExtras()); in onCreate() 76 final boolean isManagedProfile = Utils.isManagedProfile(UserManager.get(this), userId); in onCreate() 80 title = getTitleFromOrganizationName(userId); in onCreate() 89 && !lockPatternUtils.isSeparateProfileChallengeEnabled(userId)) { in onCreate() 94 0L /* challenge */, userId); in onCreate() 97 title, details, false /* returnCredentials */, true /* isExternal */, userId); in onCreate() 110 private String getTitleFromOrganizationName(int userId) { in getTitleFromOrganizationName() argument 114 ? dpm.getOrganizationNameForUser(userId) : null; in getTitleFromOrganizationName()
|
D | ChooseLockGeneric.java | 551 boolean requirePasswordToDecrypt, boolean confirmCredentials, int userId) { in getLockPasswordIntent() argument 553 maxLength, requirePasswordToDecrypt, confirmCredentials, userId); in getLockPasswordIntent() 558 boolean requirePasswordToDecrypt, long challenge, int userId) { in getLockPasswordIntent() argument 560 maxLength, requirePasswordToDecrypt, challenge, userId); in getLockPasswordIntent() 564 int maxLength, boolean requirePasswordToDecrypt, String password, int userId) { in getLockPasswordIntent() argument 566 requirePasswordToDecrypt, password, userId); in getLockPasswordIntent() 570 final boolean confirmCredentials, int userId) { in getLockPatternIntent() argument 572 confirmCredentials, userId); in getLockPatternIntent() 576 long challenge, int userId) { in getLockPatternIntent() argument 577 return ChooseLockPattern.createIntent(context, requirePassword, challenge, userId); in getLockPatternIntent() [all …]
|
D | Utils.java | 344 int userId = user != null ? user.id : UserHandle.myUserId(); in copyMeProfilePhoto() local 351 assignDefaultPhoto(context, userId); in copyMeProfilePhoto() 357 um.setUserIcon(userId, icon); in copyMeProfilePhoto() 363 public static void assignDefaultPhoto(Context context, int userId) { in assignDefaultPhoto() argument 365 Bitmap bitmap = getDefaultUserIconAsBitmap(userId); in assignDefaultPhoto() 366 um.setUserIcon(userId, bitmap); in assignDefaultPhoto() 644 public static boolean isManagedProfile(@NonNull UserManager userManager, int userId) { in isManagedProfile() argument 648 UserInfo userInfo = userManager.getUserInfo(userId); in isManagedProfile() 880 public static Bitmap getDefaultUserIconAsBitmap(int userId) { in getDefaultUserIconAsBitmap() argument 883 bitmap = sDarkDefaultUserBitmapCache.get(userId); in getDefaultUserIconAsBitmap() [all …]
|
D | ChooseLockPattern.java | 76 boolean requirePassword, boolean confirmCredentials, int userId) { in createIntent() argument 81 intent.putExtra(Intent.EXTRA_USER_ID, userId); in createIntent() 86 boolean requirePassword, String pattern, int userId) { in createIntent() argument 87 Intent intent = createIntent(context, requirePassword, false, userId); in createIntent() 93 boolean requirePassword, long challenge, int userId) { in createIntent() argument 94 Intent intent = createIntent(context, requirePassword, false, userId); in createIntent() 695 List<LockPatternView.Cell> chosenPattern, String currentPattern, int userId) { in start() argument 696 prepare(utils, credentialRequired, hasChallenge, challenge, userId); in start() 700 mUserId = userId; in start() 710 final int userId = mUserId; in saveAndVerifyInBackground() local [all …]
|
D | SetupChooseLockGeneric.java | 193 boolean requirePasswordToDecrypt, boolean confirmCredentials, int userId) { in getLockPasswordIntent() argument 203 boolean requirePasswordToDecrypt, long challenge, int userId) { in getLockPasswordIntent() argument 212 int maxLength, boolean requirePasswordToDecrypt, String password, int userId) { in getLockPasswordIntent() argument 221 final boolean confirmCredentials, int userId) { in getLockPatternIntent() argument 230 long challenge, int userId) { in getLockPatternIntent() argument 239 final String pattern, int userId) { in getLockPatternIntent() argument
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
D | PrivateVolumeSettings.java | 269 private void addDetailItems(PreferenceGroup category, boolean showShared, int userId) { in addDetailItems() argument 272 addItem(category, itemsToAdd[i], null, userId); in addDetailItems() 276 private void addItem(PreferenceGroup group, int titleRes, CharSequence title, int userId) { in addItem() argument 292 item.userHandle = userId; in addItem() 417 final int userId = (pref instanceof StorageItemPreference ? in onPreferenceTreeClick() local 478 if (userId == -1) { in onPreferenceTreeClick() 481 getActivity().startActivityAsUser(intent, new UserHandle(userId)); in onPreferenceTreeClick() 501 final int userId = item.userHandle; in updateDetails() local 510 updatePreference(item, details.appsSize.get(userId)); in updateDetails() 513 final long imagesSize = totalValues(details, userId, in updateDetails() [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
D | Utils.java | 103 public Set<String> getCurrentSystemApps(IPackageManager ipm, int userId) { in getCurrentSystemApps() argument 108 PackageManager.GET_UNINSTALLED_PACKAGES, userId).getList(); in getCurrentSystemApps() 126 public void disableComponent(ComponentName toDisable, int userId) { in disableComponent() argument 131 userId); in disableComponent() 140 public void enableComponent(ComponentName toEnable, int userId) { in enableComponent() argument 145 userId); in enableComponent() 157 int enabledSetting, int userId) { in setComponentEnabledSetting() argument 161 userId); in setComponentEnabledSetting() 335 public void markUserSetupComplete(Context context, int userId) { in markUserSetupComplete() argument 336 ProvisionLogger.logd("Setting USER_SETUP_COMPLETE to 1 for user " + userId); in markUserSetupComplete() [all …]
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | ManageAccountsSettings.java | 211 final int userId = mUserHandle.getIdentifier(); in requestOrCancelSyncForAccounts() local 212 SyncAdapterType[] syncAdapters = ContentResolver.getSyncAdapterTypesAsUser(userId); in requestOrCancelSyncForAccounts() 226 userId)) { in requestOrCancelSyncForAccounts() 228 ContentResolver.requestSyncAsUser(account, sa.authority, userId, in requestOrCancelSyncForAccounts() 231 ContentResolver.cancelSyncAsUser(account, sa.authority, userId); in requestOrCancelSyncForAccounts() 257 final int userId = mUserHandle.getIdentifier(); in showSyncState() local 260 List<SyncInfo> currentSyncs = ContentResolver.getCurrentSyncsAsUser(userId); in showSyncState() 266 final SyncAdapterType[] syncAdapters = ContentResolver.getSyncAdapterTypesAsUser(userId); in showSyncState() 290 userId); in showSyncState() 291 boolean syncEnabled = isSyncEnabled(userId, account, authority); in showSyncState() [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/ |
D | AppManagementFragment.java | 127 final int userId = UserHandle.getUserId(mEntry.info.uid); in onActivityResult() local 128 mApplicationsState.removePackage(mPackageName, userId); in onActivityResult() 135 final int userId = UserHandle.getUserId(mEntry.info.uid); in onActivityResult() local 136 mApplicationsState.requestSize(mPackageName, userId); in onActivityResult() 282 final int userId = UserHandle.getUserId(mEntry.info.uid); in dataCleared() local 283 mApplicationsState.requestSize(mPackageName, userId); in dataCleared() 310 final int userId = UserHandle.getUserId(mEntry.info.uid); in cacheCleared() local 311 mApplicationsState.requestSize(mPackageName, userId); in cacheCleared() 341 final int userId = UserHandle.getUserId(mEntry.info.uid); in onPackageListChanged() local 342 mEntry = mApplicationsState.getEntry(mPackageName, userId); in onPackageListChanged()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | AccountSyncFragment.java | 156 final int userId = mUserHandle.getIdentifier(); in onPreferenceTreeClick() local 162 authority, userId); in onPreferenceTreeClick() 165 ContentResolver.setSyncAutomaticallyAsUser(account, authority, syncOn, userId); in onPreferenceTreeClick() 169 if (!ContentResolver.getMasterSyncAutomaticallyAsUser(userId) || !syncOn) { in onPreferenceTreeClick() 278 final int userId = mUserHandle.getIdentifier(); in onSyncStateUpdated() local 279 List<SyncInfo> currentSyncs = ContentResolver.getCurrentSyncsAsUser(userId); in onSyncStateUpdated() 295 SyncStatusInfo status = ContentResolver.getSyncStatusAsUser(account, authority, userId); in onSyncStateUpdated() 297 userId); in onSyncStateUpdated() 327 int syncState = ContentResolver.getIsSyncableAsUser(account, authority, userId); in onSyncStateUpdated() 336 userId); in onSyncStateUpdated()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | ZenModeEventRuleSettings.java | 101 values.add(key(mEvent.userId, eventCalendar)); in reloadCalendar() 120 mEvent.userId = Integer.parseInt(calendarKey.substring(0, i)); in onCreateInternal() 213 ci.userId = context.getUserId(); in addCalendars() 224 return key(calendar.userId, calendar.name); in key() 228 return key(event.userId, event.calendar); in key() 231 private static String key(int userId, String calendar) { in key() argument 232 return EventInfo.resolveUserId(userId) + ":" + (calendar == null ? "" : calendar); in key() 244 public int userId; field in ZenModeEventRuleSettings.CalendarInfo
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserSettings.java | 397 private void onRemoveUserClicked(int userId) { in onRemoveUserClicked() argument 400 mRemovingUserId = userId; in onRemoveUserClicked() 420 private void onManageUserClicked(int userId, boolean newUser) { in onManageUserClicked() argument 422 if (userId == UserPreference.USERID_GUEST_DEFAULTS) { in onManageUserClicked() 430 UserInfo info = mUserManager.getUserInfo(userId); in onManageUserClicked() 433 extras.putInt(RestrictedProfileSettings.EXTRA_USER_ID, userId); in onManageUserClicked() 444 extras.putInt(UserDetailsSettings.EXTRA_USER_ID, userId); in onManageUserClicked() 455 private void onUserCreated(int userId) { in onUserCreated() argument 456 mAddedUserId = userId; in onUserCreated() 458 if (mUserManager.getUserInfo(userId).isRestricted()) { in onUserCreated() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | AppStateAppOpsBridge.java | 69 private boolean isThisUserAProfileOfCurrentUser(final int userId) { in isThisUserAProfileOfCurrentUser() argument 72 if (mProfiles.get(i).getIdentifier() == userId) { in isThisUserAProfileOfCurrentUser() 135 int userId = UserHandle.getUserId(app.info.uid); in loadAllExtraInfo() local 136 ArrayMap<String, PermissionState> userMap = entries.get(userId); in loadAllExtraInfo() 229 final int userId = UserHandle.getUserId(packageOp.getUid()); in loadAppOpsStates() local 230 if (!isThisUserAProfileOfCurrentUser(userId)) { in loadAppOpsStates() 235 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(userId); in loadAppOpsStates() 242 + " of user " + userId + " but package doesn't exist or did not request " in loadAppOpsStates()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryEntry.java | 166 UserInfo info = um.getUserInfo(sipper.userId); in BatteryEntry() 256 final int userId = UserHandle.getUserId(uid); in loadNameAndIcon() local 260 0 /* no flags */, userId); in loadNameAndIcon() 263 + packageLabels[i] + ", user " + userId); in loadNameAndIcon() 277 + packageLabels[i] + ", user " + userId, e); in loadNameAndIcon() 287 … final PackageInfo pi = ipm.getPackageInfo(pkgName, 0 /* no flags */, userId); in loadNameAndIcon() 290 + pkgName + ", user " + userId); in loadNameAndIcon() 307 + pkgName + ", user " + userId, e); in loadNameAndIcon()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | SecurityFragment.java | 332 public boolean checkPassword(String password, int userId) { in checkPassword() argument 334 return getLockSettings().checkPassword(password, userId).getResponseCode() in checkPassword() 409 private static void switchUserNow(int userId) { in switchUserNow() argument 411 ActivityManagerNative.getDefault().switchUser(userId); in switchUserNow() 472 int userId = restrictedUserInfo.id; in doInBackground() local 473 UserHandle user = new UserHandle(userId); in doInBackground() 476 mUserManager.setUserIcon(userId, bitmap); in doInBackground() 490 int userId = result.id; in onPostExecute() local 495 AppRestrictionsFragment.newInstance(userId, true); in onPostExecute()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
D | DeleteNonRequiredAppsTask.java | 109 boolean newProfile, int userId, boolean leaveAllSystemAppsEnabled, Callback callback) { in DeleteNonRequiredAppsTask() argument 111 provisioningType, newProfile, userId, leaveAllSystemAppsEnabled, callback); in DeleteNonRequiredAppsTask() 116 String mdmPackageName, int provisioningType, boolean newProfile, int userId, in DeleteNonRequiredAppsTask() argument 123 mUserId = userId; in DeleteNonRequiredAppsTask() 252 public static boolean shouldDeleteNonRequiredApps(Context context, int userId) { in shouldDeleteNonRequiredApps() argument 253 return getSystemAppsFile(context, userId).exists(); in shouldDeleteNonRequiredApps() 256 static File getSystemAppsFile(Context context, int userId) { in getSystemAppsFile() argument 258 + File.separator + "user" + userId + ".xml"); in getSystemAppsFile()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | UserSwitchListenerService.java | 87 static void setBootUser(Context context, int userId) { in setBootUser() argument 90 editor.putInt(ON_BOOT_USER_ID_PREFERENCE, userId); in setBootUser() 100 private static void switchUserNow(int userId) { in switchUserNow() argument 102 ActivityManagerNative.getDefault().switchUser(userId); in switchUserNow()
|