/packages/apps/Settings/src/com/android/settings/vpn2/ |
H A D | AppVpnInfo.java | 10 * Holds packageName:userId pairs without any heavyweight fields. 14 public final int userId; field in class:AppVpnInfo 17 public AppVpnInfo(int userId, @NonNull String packageName) { argument 18 this.userId = userId; 28 result = that.userId - userId; 37 return userId == that.userId && Objects.equals(packageName, that.packageName); 44 return Objects.hash(packageName, userId); [all...] |
H A D | VpnUtils.java | 63 final int userId = context.getUserId(); 67 return getConnectivityManager(context).getAlwaysOnVpnPackageForUser(userId) != null 69 Settings.Secure.ALWAYS_ON_VPN_LOCKDOWN, /* default */ 0, userId) != 0; 76 public static String getConnectedPackage(IConnectivityManager service, final int userId) argument 78 final VpnConfig config = service.getVpnConfig(userId); 91 public static boolean isAlwaysOnVpnSet(ConnectivityManagerWrapper cm, final int userId) { argument 92 return cm.getAlwaysOnVpnPackageForUser(userId) != null; 97 int userId = context.getUserId(); 99 LegacyVpnInfo currentLegacyVpn = connectivityService.getLegacyVpnInfo(userId); 102 connectivityService.prepareVpn(null, VpnConfig.LEGACY_VPN, userId); [all...] |
/packages/apps/Settings/src/com/android/settings/password/ |
H A D | IFingerprintManager.java | 31 boolean hasEnrolledFingerprints(int userId); argument 35 void setActiveUser(int userId); argument 38 int userId, EnrollmentCallback callback); 37 enroll(byte [] token, CancellationSignal cancel, int flags, int userId, EnrollmentCallback callback) argument
|
H A D | FingerprintManagerWrapper.java | 44 public boolean hasEnrolledFingerprints(int userId) { argument 45 return mFingerprintManager.hasEnrolledFingerprints(userId); 54 public void setActiveUser(int userId) { argument 55 mFingerprintManager.setActiveUser(userId); 63 int userId, 65 mFingerprintManager.enroll(token, cancel, flags, userId, callback); 59 enroll( byte[] token, CancellationSignal cancel, int flags, int userId, EnrollmentCallback callback) argument
|
/packages/apps/Settings/src/com/android/settings/applications/ |
H A D | IPackageManagerWrapperImpl.java | 40 public ResolveInfo findPersistentPreferredActivity(Intent intent, int userId) argument 42 return mPms.findPersistentPreferredActivity(intent, userId); 46 public PackageInfo getPackageInfo(String packageName, int flags, int userId) argument 48 return mPms.getPackageInfo(packageName, flags, userId); 57 public boolean isPackageAvailable(String packageName, int userId) throws RemoteException { argument 58 return mPms.isPackageAvailable(packageName, userId); 63 String[] permissions, int flags, int userId) throws RemoteException { 64 return mPms.getPackagesHoldingPermissions(permissions, flags, userId); 62 getPackagesHoldingPermissions( String[] permissions, int flags, int userId) argument
|
H A D | PackageManagerWrapperImpl.java | 45 public List<ApplicationInfo> getInstalledApplicationsAsUser(int flags, int userId) { argument 46 return mPm.getInstalledApplicationsAsUser(flags, userId); 55 public List<ResolveInfo> queryIntentActivitiesAsUser(Intent intent, int flags, int userId) { argument 56 return mPm.queryIntentActivitiesAsUser(intent, flags, userId); 65 public ApplicationInfo getApplicationInfoAsUser(String packageName, int i, int userId) argument 67 return mPm.getApplicationInfoAsUser(packageName, i, userId); 71 public boolean setDefaultBrowserPackageNameAsUser(String packageName, int userId) { argument 72 return mPm.setDefaultBrowserPackageNameAsUser(packageName, userId); 76 public String getDefaultBrowserPackageNameAsUser(int userId) { argument 77 return mPm.getDefaultBrowserPackageNameAsUser(userId); 97 deletePackageAsUser(String packageName, IPackageDeleteObserver observer, int flags, int userId) argument [all...] |
H A D | IPackageManagerWrapper.java | 45 ResolveInfo findPersistentPreferredActivity(Intent intent, int userId) throws RemoteException; argument 52 PackageInfo getPackageInfo(String packageName, int flags, int userId) throws RemoteException; argument 66 boolean isPackageAvailable(String packageName, int userId) throws RemoteException; argument 74 String[] permissions, int flags, int userId) throws RemoteException; 73 getPackagesHoldingPermissions( String[] permissions, int flags, int userId) argument
|
H A D | PackageManagerWrapper.java | 49 List<ApplicationInfo> getInstalledApplicationsAsUser(int flags, int userId); argument 63 List<ResolveInfo> queryIntentActivitiesAsUser(Intent intent, int flags, int userId); argument 75 ApplicationInfo getApplicationInfoAsUser(String packageName, int i, int userId) argument 81 boolean setDefaultBrowserPackageNameAsUser(String packageName, int userId); argument 86 String getDefaultBrowserPackageNameAsUser(int userId); argument 108 int userId); 107 deletePackageAsUser(String packageName, IPackageDeleteObserver observer, int flags, int userId) argument
|
/packages/apps/Nfc/src/com/android/nfc/cardemulation/ |
H A D | CardEmulationManager.java | 149 public void onUserSwitched(int userId) { argument 151 mServiceCache.invalidateCache(userId); 152 mPreferredServices.onUserSwitched(userId); 156 mEnabledNfcFServices.onUserSwitched(userId); 158 mNfcFServicesCache.invalidateCache(userId); 190 public void onServicesUpdated(int userId, List<ApduServiceInfo> services) { argument 192 verifyDefaults(userId, services); 194 mAidCache.onServicesUpdated(userId, services); 200 public void onNfcFServicesUpdated(int userId, List<NfcFServiceInfo> services) { argument 202 mT3tIdentifiersCache.onServicesUpdated(userId, service 207 verifyDefaults(int userId, List<ApduServiceInfo> services) argument 237 getDefaultServiceForCategory(int userId, String category, boolean validateInstalled) argument 259 setDefaultServiceForCategoryChecked(int userId, ComponentName service, String category) argument 278 isServiceRegistered(int userId, ComponentName service) argument 292 isNfcFServiceInstalled(int userId, ComponentName service) argument 321 isDefaultServiceForCategory(int userId, ComponentName service, String category) argument 334 isDefaultServiceForAid(int userId, ComponentName service, String aid) argument 345 setDefaultServiceForCategory(int userId, ComponentName service, String category) argument 356 setDefaultForNextTap(int userId, ComponentName service) argument 367 registerAidGroupForService(int userId, ComponentName service, AidGroup aidGroup) argument 379 getAidGroupForService(int userId, ComponentName service, String category) argument 391 removeAidGroupForService(int userId, ComponentName service, String category) argument 403 getServices(int userId, String category) argument 441 getSystemCodeForService(int userId, ComponentName service) argument 453 registerSystemCodeForService(int userId, ComponentName service, String systemCode) argument 466 removeSystemCodeForService(int userId, ComponentName service) argument 478 getNfcid2ForService(int userId, ComponentName service) argument 490 setNfcid2ForService(int userId, ComponentName service, String nfcid2) argument 520 getNfcFServices(int userId) argument [all...] |
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
H A D | SetDevicePolicyTask.java | 68 public void run(int userId) { argument 77 setActiveAdmin(adminComponent, userId); 79 success = setProfileOwner(adminComponent, userId); 83 userId); 110 private void setActiveAdmin(ComponentName component, int userId) { argument 112 mDevicePolicyManager.setActiveAdmin(component, true, userId); 115 private boolean setDeviceOwner(ComponentName component, String owner, int userId) { argument 116 ProvisionLogger.logd("Setting " + component + " as device owner of user " + userId); 118 return mDevicePolicyManager.setDeviceOwner(component, owner, userId); 123 private boolean setProfileOwner(ComponentName component, int userId) { argument [all...] |
H A D | StartManagedProfileTask.java | 66 public void run(int userId) { argument 68 UserUnlockedReceiver unlockedReceiver = new UserUnlockedReceiver(userId); 69 mContext.registerReceiverAsUser(unlockedReceiver, new UserHandle(userId), UNLOCK_FILTER, 72 if (!mIActivityManager.startUserInBackground(userId)) { 73 ProvisionLogger.loge("Unable to start user in background: " + userId); 79 ProvisionLogger.loge("Timeout whilst waiting for unlock of user: " + userId); 84 ProvisionLogger.loge("Exception when starting user in background: " + userId, e); 113 UserUnlockedReceiver(int userId) { argument 114 mUserId = userId;
|
H A D | ManagedProfileSettingsTask.java | 60 public void run(int userId) { argument 63 userId); 67 um.setUserRestriction(UserManager.DISALLOW_WALLPAPER, true, UserHandle.of(userId)); 73 dpm.setOrganizationColorForUser(mProvisioningParams.mainColor, userId); 76 mCrossProfileIntentFiltersSetter.setFilters(UserHandle.myUserId(), userId); 79 mSettingsFacade.setUserSetupCompleted(mContext, userId);
|
H A D | DeleteNonRequiredAppsTask.java | 74 public void run(int userId) { argument 75 Set<String> packagesToDelete = mLogic.getSystemAppsToRemove(userId); 76 mLogic.maybeTakeSystemAppsSnapshot(userId); 79 removeNonInstalledPackages(packagesToDelete, userId); 89 ProvisionLogger.logd("Deleting package [" + packageName + "] as user " + userId); 91 PackageManager.DELETE_SYSTEM_APP, userId); 95 private void removeNonInstalledPackages(Set<String> packages, int userId) { argument 101 userId);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/nonrequiredapps/ |
H A D | NonRequiredAppsLogic.java | 96 public Set<String> getSystemAppsToRemove(int userId) { argument 97 if (!shouldDeleteSystemApps(userId)) { 102 Set<String> newSystemApps = mUtils.getCurrentSystemApps(mIPackageManager, userId); 106 newSystemApps.removeAll(mSnapshot.getSnapshot(userId)); 110 Set<String> packagesToDelete = mProvider.getNonRequiredApps(userId); 118 public void maybeTakeSystemAppsSnapshot(int userId) { argument 119 if (shouldDeleteSystemApps(userId)) { 120 mSnapshot.takeNewSnapshot(userId); 124 private boolean shouldDeleteSystemApps(int userId) { argument 125 @Case int which = getCase(userId); 129 getCase(int userId) argument [all...] |
/packages/apps/Settings/tests/robotests/src/android/util/ |
H A D | IconDrawableFactory.java | 37 public Drawable getBadgedIcon(ApplicationInfo appInfo, int userId) { argument 38 return getBadgedIcon(appInfo, appInfo, userId); 41 public Drawable getBadgedIcon(PackageItemInfo itemInfo, ApplicationInfo appInfo, int userId) { argument
|
/packages/apps/StorageManager/robotests/src/android/util/ |
H A D | IconDrawableFactory.java | 35 public Drawable getBadgedIcon(ApplicationInfo appInfo, int userId) { argument 36 return getBadgedIcon(appInfo, appInfo, userId); 39 public Drawable getBadgedIcon(PackageItemInfo itemInfo, ApplicationInfo appInfo, int userId) { argument
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | DefaultDialerCache.java | 42 String getDefaultDialerApplication(Context context, int userId); argument 43 boolean setDefaultDialerApplication(Context context, String packageName, int userId); argument 53 public String getDefaultDialerApplication(Context context, int userId) { argument 54 return DefaultDialerManager.getDefaultDialerApplication(context, userId); 59 int userId) { 60 return DefaultDialerManager.setDefaultDialerApplication(context, packageName, userId); 166 public String getDefaultDialerApplication(int userId) { argument 167 if (userId == UserHandle.USER_CURRENT) { 168 userId = ActivityManager.getCurrentUser(); 171 if (userId < 58 setDefaultDialerApplication(Context context, String packageName, int userId) argument 189 isDefaultOrSystemDialer(String packageName, int userId) argument 195 setDefaultDialer(String packageName, int userId) argument 207 refreshCacheForUser(int userId) argument 242 removeUserFromCache(int userId) argument [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | SecondaryUserContactsProvider2.java | 27 public SecondaryUserContactsProvider2(int userId) { argument 28 mDbSuffix = "-u" + userId;
|
/packages/apps/Settings/src/com/android/settings/ |
H A D | ConfirmDeviceCredentialActivity.java | 68 int userId = Utils.getCredentialOwnerUserId(this); 71 userId = Utils.getUserIdFromBundle(this, intent.getExtras()); 76 final boolean isManagedProfile = UserManager.get(this).isManagedProfile(userId); 80 title = getTitleFromOrganizationName(userId); 89 && !lockPatternUtils.isSeparateProfileChallengeEnabled(userId)) { 94 0L /* challenge */, userId); 97 title, details, false /* returnCredentials */, true /* isExternal */, userId); 110 private String getTitleFromOrganizationName(int userId) { argument 114 ? dpm.getOrganizationNameForUser(userId) : null;
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/common/ |
H A D | SettingsFacade.java | 35 public void setUserSetupCompleted(Context context, int userId) { argument 36 ProvisionLogger.logd("Setting USER_SETUP_COMPLETE to 1 for user " + userId); 37 Secure.putIntForUser(context.getContentResolver(), USER_SETUP_COMPLETE, 1, userId); 72 public void setProfileContactRemoteSearch(Context context, boolean allowed, int userId) { argument 74 MANAGED_PROFILE_CONTACT_REMOTE_SEARCH, allowed ? 1 : 0, userId);
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
H A D | AccountRestrictionHelper.java | 37 * @param userId The user that we retrieve user restriction of. 40 String userRestriction, @UserIdInt int userId) { 44 if (hasBaseUserRestriction(userRestriction, userId)) { 47 preference.checkRestrictionAndSetDisabled(userRestriction, userId); 51 public boolean hasBaseUserRestriction(String userRestriction, @UserIdInt int userId) { argument 52 return RestrictedLockUtils.hasBaseUserRestriction(mContext, userRestriction, userId); 39 enforceRestrictionOnPreference(RestrictedPreference preference, String userRestriction, @UserIdInt int userId) argument
|
H A D | RemoveUserFragment.java | 30 private static final String ARG_USER_ID = "userId"; 32 static RemoveUserFragment newInstance(int userId) { argument 34 args.putInt(ARG_USER_ID, userId); 42 final int userId = getArguments().getInt(ARG_USER_ID); 43 return UserDialogs.createRemoveDialog(getActivity(), userId, 49 um.removeUser(userId);
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ota/ |
H A D | TaskExecutor.java | 27 public synchronized void execute(int userId, AbstractProvisioningTask task) { argument 28 task.run(userId);
|
/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/tests/robotests/src/com/android/settings/testutils/shadow/ |
H A D | ShadowAccountManager.java | 28 public AuthenticatorDescription[] getAuthenticatorTypesAsUser(int userId) { argument
|