/packages/services/Car/tests/carservice_unit_test/src/com/android/car/trust/ |
D | CarTrustAgentEnrollmentServiceTest.java | 74 private int mUserId; field in CarTrustAgentEnrollmentServiceTest 106 mUserId = new CarUserManagerHelper(mContext).getCurrentProcessUserId(); in setUp() 113 mCarTrustAgentEnrollmentService.onEscrowTokenRemoved(TEST_HANDLE1, mUserId); in tearDown() 114 mCarTrustAgentEnrollmentService.onEscrowTokenRemoved(TEST_HANDLE2, mUserId); in tearDown() 170 mUserId); in testOnEscrowTokenAdded_tokenRequiresActivation() local 174 mUserId)).isEmpty(); in testOnEscrowTokenAdded_tokenRequiresActivation() 176 mUserId)).isFalse(); in testOnEscrowTokenAdded_tokenRequiresActivation() 186 TEST_HANDLE1, /* isTokenActive= */ true, mUserId); in testOnEscrowTokenActiveStateChange_true_addTrustedDevice() 191 mUserId)).containsExactly(DEVICE_INFO1); in testOnEscrowTokenActiveStateChange_true_addTrustedDevice() 193 mUserId)).isTrue(); in testOnEscrowTokenActiveStateChange_true_addTrustedDevice() [all …]
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | ConfirmDeviceCredentialActivity.java | 98 private int mUserId; field in ConfirmDeviceCredentialActivity 124 mTrustManager.setDeviceLockedForUser(mUserId, false); 127 mUserId); 168 mUserId = UserHandle.myUserId(); in onCreate() 171 mUserId = Utils.getUserIdFromBundle(this, intent.getExtras()); in onCreate() 176 final int effectiveUserId = mUserManager.getCredentialOwnerProfile(mUserId); in onCreate() 177 final boolean isManagedProfile = UserManager.get(this).isManagedProfile(mUserId); in onCreate() 181 mTitle = getTitleFromOrganizationName(mUserId); in onCreate() 207 && !lockPatternUtils.isSeparateProfileChallengeEnabled(mUserId)) { in onCreate() 209 if (isBiometricAllowed(effectiveUserId, mUserId)) { in onCreate() [all …]
|
D | ChooseLockGeneric.java | 159 private int mUserId; field in ChooseLockGeneric.ChooseLockGenericFragment 246 mUserId = Utils.getSecureTargetUser( in onCreate() 252 getContext(), mUserId, mRequestedMinComplexity, mLockPatternUtils); in onCreate() 254 && UserManager.get(getActivity()).isManagedProfile(mUserId) in onCreate() 255 && mLockPatternUtils.isSeparateProfileChallengeEnabled(mUserId)) { in onCreate() 259 mManagedPasswordProvider = ManagedLockPasswordProvider.get(getActivity(), mUserId); in onCreate() 265 mUserId), false); in onCreate() 271 UserManager.get(getActivity()).isManagedProfile(mUserId) in onCreate() 272 && !mLockPatternUtils.isSeparateProfileChallengeEnabled(mUserId); in onCreate() 276 getString(R.string.unlock_set_unlock_launch_picker_title), true, mUserId)) { in onCreate() [all …]
|
D | ChooseLockPassword.java | 205 protected int mUserId; field in ChooseLockPassword.ChooseLockPasswordFragment 379 mUserId = Utils.getUserIdFromBundle(getActivity(), intent.getExtras()); in onCreate() 387 mLockPatternUtils.getRequestedPasswordQuality(mUserId)); in onCreate() 403 currentBytes, currentBytes, mRequestedQuality, mUserId); in onCreate() local 488 mUserId); in onViewCreated() 581 return RedactionInterstitial.createStartIntent(context, mUserId); in getRedactionInterstitialIntent() 600 final int dpmPasswordQuality = mLockPatternUtils.getRequestedPasswordQuality(mUserId); in loadDpmPasswordRequirements() 605 mLockPatternUtils.getRequestedMinimumPasswordLength(mUserId)); in loadDpmPasswordRequirements() 607 mPasswordMinLetters = mLockPatternUtils.getRequestedPasswordMinimumLetters(mUserId); in loadDpmPasswordRequirements() 608 mPasswordMinUpperCase = mLockPatternUtils.getRequestedPasswordMinimumUpperCase(mUserId); in loadDpmPasswordRequirements() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/password/ |
D | ConfirmDeviceCredentialActivity.java | 98 private int mUserId; field in ConfirmDeviceCredentialActivity 124 mTrustManager.setDeviceLockedForUser(mUserId, false); 127 mUserId); 168 mUserId = UserHandle.myUserId(); in onCreate() 171 mUserId = Utils.getUserIdFromBundle(this, intent.getExtras()); in onCreate() 176 final int effectiveUserId = mUserManager.getCredentialOwnerProfile(mUserId); in onCreate() 177 final boolean isManagedProfile = UserManager.get(this).isManagedProfile(mUserId); in onCreate() 181 mTitle = getTitleFromOrganizationName(mUserId); in onCreate() 207 && !lockPatternUtils.isSeparateProfileChallengeEnabled(mUserId)) { in onCreate() 209 if (isBiometricAllowed(effectiveUserId, mUserId)) { in onCreate() [all …]
|
D | ChooseLockGeneric.java | 159 private int mUserId; field in ChooseLockGeneric.ChooseLockGenericFragment 238 mUserId = Utils.getSecureTargetUser( in onCreate() 244 getContext(), mUserId, mRequestedMinComplexity, mLockPatternUtils); in onCreate() 246 && UserManager.get(getActivity()).isManagedProfile(mUserId) in onCreate() 247 && mLockPatternUtils.isSeparateProfileChallengeEnabled(mUserId)) { in onCreate() 251 mManagedPasswordProvider = ManagedLockPasswordProvider.get(getActivity(), mUserId); in onCreate() 257 mUserId), false); in onCreate() 263 UserManager.get(getActivity()).isManagedProfile(mUserId) in onCreate() 264 && !mLockPatternUtils.isSeparateProfileChallengeEnabled(mUserId); in onCreate() 268 getString(R.string.unlock_set_unlock_launch_picker_title), true, mUserId)) { in onCreate() [all …]
|
D | ChooseLockPassword.java | 206 protected int mUserId; field in ChooseLockPassword.ChooseLockPasswordFragment 380 mUserId = Utils.getUserIdFromBundle(getActivity(), intent.getExtras()); in onCreate() 388 mLockPatternUtils.getRequestedPasswordQuality(mUserId)); in onCreate() 404 currentBytes, currentBytes, mRequestedQuality, mUserId); in onCreate() local 489 mUserId); in onViewCreated() 582 return RedactionInterstitial.createStartIntent(context, mUserId); in getRedactionInterstitialIntent() 601 final int dpmPasswordQuality = mLockPatternUtils.getRequestedPasswordQuality(mUserId); in loadDpmPasswordRequirements() 606 mLockPatternUtils.getRequestedMinimumPasswordLength(mUserId)); in loadDpmPasswordRequirements() 608 mPasswordMinLetters = mLockPatternUtils.getRequestedPasswordMinimumLetters(mUserId); in loadDpmPasswordRequirements() 609 mPasswordMinUpperCase = mLockPatternUtils.getRequestedPasswordMinimumUpperCase(mUserId); in loadDpmPasswordRequirements() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/ |
D | AccountSyncPreferenceControllerTest.java | 57 private final int mUserId = 3; field in AccountSyncPreferenceControllerTest 58 private final UserHandle mUserHandle = new UserHandle(mUserId); 95 "authority", /* sync= */ true, /* userId= */ mUserId); in refreshUi_notSameAccountType_shouldNotCount() 113 true, /* userId= */ mUserId); in refreshUi_adapterInvisible_shouldNotCount() 146 ContentResolver.setMasterSyncAutomaticallyAsUser(true, mUserId); in refreshUi_masterAutomaticSyncIgnoredAndAccountSyncDisabled_shouldNotCount() 148 false, /* userId= */ mUserId); in refreshUi_masterAutomaticSyncIgnoredAndAccountSyncDisabled_shouldNotCount() 165 ContentResolver.setMasterSyncAutomaticallyAsUser(false, mUserId); in refreshUi_masterAutomaticSyncUsed_shouldCount() 183 true, /* userId= */ mUserId); in refreshUi_automaticSyncEnabled_shouldCount() 208 true, /* userId= */ mUserId); in refreshUi_someEnabled_shouldSetSummary() 212 true, /* userId= */ mUserId); in refreshUi_someEnabled_shouldSetSummary() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarBluetoothService.java | 78 private int mUserId; field in CarBluetoothService 116 mUserId = -1; in CarBluetoothService() 163 mUserId = ActivityManager.getCurrentUser(); in initializeUser() 173 logd("Switched to user " + mUserId); in initializeUser() 181 logd("Destroying user " + mUserId); in destroyUser() 186 mUserId = -1; in destroyUser() 229 if (mUserId == -1) { in createBluetoothProfileDeviceManagers() 235 mContext, mUserId, mCarBluetoothUserService, profileId); in createBluetoothProfileDeviceManagers() 271 if (mUserId == -1) { in createBluetoothProfileInhibitManager() 275 mInhibitManager = new BluetoothProfileInhibitManager(mContext, mUserId, in createBluetoothProfileInhibitManager() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/ |
D | RunningState.java | 149 Log.i(TAG, " UserId " + lhs.mUserId + " with " + rhs.mUserId); 151 if (lhs.mUserId != rhs.mUserId) { 152 if (lhs.mUserId == mMyUserId) return -1; 153 if (rhs.mUserId == mMyUserId) return 1; 154 return lhs.mUserId < rhs.mUserId ? -1 : 1; 340 final int mUserId; field in RunningState.BaseItem 358 mUserId = userId; in BaseItem() 364 Drawable icon = state.mPm.getUserBadgedIcon(unbadgedIcon, new UserHandle(mUserId)); in loadIcon() 499 si = new ServiceItem(mUserId); in updateService() 728 if (object1.mUserId != object2.mUserId) { in compare() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | RunningState.java | 149 Log.i(TAG, " UserId " + lhs.mUserId + " with " + rhs.mUserId); 151 if (lhs.mUserId != rhs.mUserId) { 152 if (lhs.mUserId == mMyUserId) return -1; 153 if (rhs.mUserId == mMyUserId) return 1; 154 return lhs.mUserId < rhs.mUserId ? -1 : 1; 340 final int mUserId; field in RunningState.BaseItem 358 mUserId = userId; in BaseItem() 364 Drawable icon = state.mPm.getUserBadgedIcon(unbadgedIcon, new UserHandle(mUserId)); in loadIcon() 499 si = new ServiceItem(mUserId); in updateService() 728 if (object1.mUserId != object2.mUserId) { in compare() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/defaultapps/ |
D | DefaultAutofillPicker.java | 79 mUserId = UserHandle.myUserId(); in onCreate() 168 mUserId); in newAddServicePreferenceOrNull() 177 context.startActivityAsUser(addNewServiceIntent, UserHandle.of(mUserId)); in newAddServicePreferenceOrNull() 202 AUTOFILL_PROBE, PackageManager.GET_META_DATA, mUserId); in getCandidates() 207 candidates.add(new DefaultAppInfo(context, mPm, mUserId, new ComponentName( in getCandidates() 215 candidates.add(new DefaultAppInfo(context, mPm, mUserId, new ComponentName( in getCandidates() 236 return getDefaultKey(getContext(), mUserId); in getDefaultKey() 252 Settings.Secure.putStringForUser(getContext().getContentResolver(), SETTING, key, mUserId); in setDefaultKey() local 276 private final int mUserId; field in DefaultAutofillPicker.AutofillSettingIntentProvider 281 mUserId = userId; in AutofillSettingIntentProvider() [all …]
|
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/ |
D | DefaultAutofillPicker.java | 79 mUserId = UserHandle.myUserId(); in onCreate() 168 mUserId); in newAddServicePreferenceOrNull() 177 context.startActivityAsUser(addNewServiceIntent, UserHandle.of(mUserId)); in newAddServicePreferenceOrNull() 202 AUTOFILL_PROBE, PackageManager.GET_META_DATA, mUserId); in getCandidates() 207 candidates.add(new DefaultAppInfo(context, mPm, mUserId, new ComponentName( in getCandidates() 215 candidates.add(new DefaultAppInfo(context, mPm, mUserId, new ComponentName( in getCandidates() 236 return getDefaultKey(getContext(), mUserId); in getDefaultKey() 252 Settings.Secure.putStringForUser(getContext().getContentResolver(), SETTING, key, mUserId); in setDefaultKey() local 276 private final int mUserId; field in DefaultAutofillPicker.AutofillSettingIntentProvider 281 mUserId = userId; in AutofillSettingIntentProvider() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/ |
D | UserPreference.java | 64 private int mUserId = USERID_UNKNOWN; field in UserPreference 81 mUserId = userId; in UserPreference() 154 if (mUserId == UserHandle.myUserId()) return Integer.MIN_VALUE; in getSerialNumber() 157 if (mUserId == USERID_UNKNOWN) { in getSerialNumber() 159 } else if (mUserId == USERID_GUEST_DEFAULTS) { in getSerialNumber() 163 .getUserSerialNumber(mUserId); in getSerialNumber() 164 if (mSerialNumber < 0) return mUserId; in getSerialNumber() 170 return mUserId; in getUserId()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserPreference.java | 64 private int mUserId = USERID_UNKNOWN; field in UserPreference 81 mUserId = userId; in UserPreference() 154 if (mUserId == UserHandle.myUserId()) return Integer.MIN_VALUE; in getSerialNumber() 157 if (mUserId == USERID_UNKNOWN) { in getSerialNumber() 159 } else if (mUserId == USERID_GUEST_DEFAULTS) { in getSerialNumber() 163 .getUserSerialNumber(mUserId); in getSerialNumber() 164 if (mSerialNumber < 0) return mUserId; in getSerialNumber() 170 return mUserId; in getUserId()
|
/packages/apps/Settings/src/com/android/settings/ |
D | MonitoringCertInfoActivity.java | 41 private int mUserId; field in MonitoringCertInfoActivity 47 mUserId = getIntent().getIntExtra(Intent.EXTRA_USER_ID, UserHandle.myUserId()); in onCreate() 50 if (mUserId == UserHandle.USER_NULL) { in onCreate() 53 user = UserHandle.of(mUserId); in onCreate() 73 if (dpm.getProfileOwnerAsUser(mUserId) != null) { in onCreate() 75 numberOfCertificates, dpm.getProfileOwnerNameAsUser(mUserId))); in onCreate() 93 intent.putExtra(TrustedCredentialsSettings.ARG_SHOW_NEW_FOR_USER, mUserId); in onClick()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | MonitoringCertInfoActivity.java | 41 private int mUserId; field in MonitoringCertInfoActivity 47 mUserId = getIntent().getIntExtra(Intent.EXTRA_USER_ID, UserHandle.myUserId()); in onCreate() 50 if (mUserId == UserHandle.USER_NULL) { in onCreate() 53 user = UserHandle.of(mUserId); in onCreate() 73 if (dpm.getProfileOwnerAsUser(mUserId) != null) { in onCreate() 75 numberOfCertificates, dpm.getProfileOwnerNameAsUser(mUserId))); in onCreate() 93 intent.putExtra(TrustedCredentialsSettings.ARG_SHOW_NEW_FOR_USER, mUserId); in onClick()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | RedactionInterstitial.java | 101 private int mUserId; field in RedactionInterstitial.RedactionInterstitialFragment 123 mUserId = Utils.getUserIdFromBundle( in onViewCreated() 125 if (UserManager.get(getContext()).isManagedProfile(mUserId)) { in onViewCreated() 172 getActivity(), keyguardNotifications, mUserId); in checkNotificationFeaturesAndSetDisabled() 177 final boolean managedProfile = UserManager.get(getContext()).isManagedProfile(mUserId); in loadFromSettings() 181 getContentResolver(), LOCK_SCREEN_SHOW_NOTIFICATIONS, 0, mUserId) != 0; in loadFromSettings() 183 getContentResolver(), LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 1, mUserId) != 0; in loadFromSettings() 203 LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, show ? 1 : 0, mUserId); in onCheckedChanged() 205 LOCK_SCREEN_SHOW_NOTIFICATIONS, enabled ? 1 : 0, mUserId); in onCheckedChanged()
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | RedactionInterstitial.java | 100 private int mUserId; field in RedactionInterstitial.RedactionInterstitialFragment 122 mUserId = Utils.getUserIdFromBundle( in onViewCreated() 124 if (UserManager.get(getContext()).isManagedProfile(mUserId)) { in onViewCreated() 171 getActivity(), keyguardNotifications, mUserId); in checkNotificationFeaturesAndSetDisabled() 176 final boolean managedProfile = UserManager.get(getContext()).isManagedProfile(mUserId); in loadFromSettings() 180 getContentResolver(), LOCK_SCREEN_SHOW_NOTIFICATIONS, 0, mUserId) != 0; in loadFromSettings() 182 getContentResolver(), LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, 1, mUserId) != 0; in loadFromSettings() 202 LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, show ? 1 : 0, mUserId); in onCheckedChanged() 204 LOCK_SCREEN_SHOW_NOTIFICATIONS, enabled ? 1 : 0, mUserId); in onCheckedChanged()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/screenlock/ |
D | PatternVisiblePreferenceController.java | 34 private final int mUserId; field in PatternVisiblePreferenceController 40 mUserId = userId; in PatternVisiblePreferenceController() 57 mLockPatternUtils.isVisiblePatternEnabled(mUserId)); in updateState() 61 return mLockPatternUtils.isSecure(mUserId) in isPatternLock() 62 && mLockPatternUtils.getKeyguardStoredPasswordQuality(mUserId) in isPatternLock() 68 mLockPatternUtils.setVisiblePatternEnabled((Boolean) newValue, mUserId); in onPreferenceChange() local
|
D | PowerButtonInstantLockPreferenceController.java | 35 private final int mUserId; field in PowerButtonInstantLockPreferenceController 41 mUserId = userId; in PowerButtonInstantLockPreferenceController() 47 if (!mLockPatternUtils.isSecure(mUserId)) { in isAvailable() 50 switch (mLockPatternUtils.getKeyguardStoredPasswordQuality(mUserId)) { in isAvailable() 67 mLockPatternUtils.getPowerButtonInstantlyLocks(mUserId)); in updateState() 78 mLockPatternUtils.setPowerButtonInstantlyLocks((Boolean) newValue, mUserId); in onPreferenceChange() local
|
/packages/apps/Settings/src/com/android/settings/security/screenlock/ |
D | PatternVisiblePreferenceController.java | 34 private final int mUserId; field in PatternVisiblePreferenceController 40 mUserId = userId; in PatternVisiblePreferenceController() 57 mLockPatternUtils.isVisiblePatternEnabled(mUserId)); in updateState() 61 return mLockPatternUtils.isSecure(mUserId) in isPatternLock() 62 && mLockPatternUtils.getKeyguardStoredPasswordQuality(mUserId) in isPatternLock() 68 mLockPatternUtils.setVisiblePatternEnabled((Boolean) newValue, mUserId); in onPreferenceChange() local
|
D | PowerButtonInstantLockPreferenceController.java | 38 private final int mUserId; field in PowerButtonInstantLockPreferenceController 45 mUserId = userId; in PowerButtonInstantLockPreferenceController() 53 if (!mLockPatternUtils.isSecure(mUserId)) { in isAvailable() 56 switch (mLockPatternUtils.getKeyguardStoredPasswordQuality(mUserId)) { in isAvailable() 73 mLockPatternUtils.getPowerButtonInstantlyLocks(mUserId)); in updateState() 92 mLockPatternUtils.setPowerButtonInstantlyLocks((Boolean) newValue, mUserId); in onPreferenceChange() local
|
/packages/apps/Settings/src/com/android/settings/biometrics/face/ |
D | FaceSettings.java | 61 private int mUserId; field in FaceSettings 117 mUserId = getActivity().getIntent().getIntExtra( in onCreate() 133 ((FaceSettingsPreferenceController) controller).setUserId(mUserId); in onCreate() 135 ((FaceSettingsEnrollButtonPreferenceController) controller).setUserId(mUserId); in onCreate() 138 mRemoveController.setUserId(mUserId); in onCreate() 141 if (mUserManager.isManagedProfile(mUserId)) { in onCreate() 154 null, null, challenge, mUserId)) { in onCreate() 169 final boolean hasEnrolled = mFaceManager.hasEnrolledTemplates(mUserId); in onResume() 179 mFaceManager.setActiveUser(mUserId); in onActivityResult()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/ |
D | AppManagementFragment.java | 73 private final int mUserId = UserHandle.myUserId(); field in AppManagementFragment 214 if (mUserId == UserHandle.USER_SYSTEM) { in setAlwaysOnVpnByUI() 227 return mConnectivityManager.setAlwaysOnVpnPackageForUser(mUserId, in setAlwaysOnVpn() 246 mUserId); in updateRestrictedViews() 248 mUserId); in updateRestrictedViews() 250 mUserId); in updateRestrictedViews() 252 if (mConnectivityManager.isAlwaysOnVpnPackageSupportedForUser(mUserId, mPackageName)) { in updateRestrictedViews() 266 return mConnectivityManager.getAlwaysOnVpnPackageForUser(mUserId); in getAlwaysOnVpnPackage() 324 final VpnConfig config = mConnectivityService.getVpnConfig(mUserId); in isAnotherVpnActive()
|