Home
last modified time | relevance | path

Searched refs:mUserId (Results 1 – 25 of 180) sorted by relevance

12345678

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/trust/
DCarTrustAgentEnrollmentServiceTest.java74 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/
DConfirmDeviceCredentialActivity.java98 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 …]
DChooseLockGeneric.java159 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 …]
DChooseLockPassword.java205 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/
DConfirmDeviceCredentialActivity.java98 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 …]
DChooseLockGeneric.java159 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 …]
DChooseLockPassword.java206 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/
DAccountSyncPreferenceControllerTest.java57 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/
DCarBluetoothService.java89 private int mUserId; field in CarBluetoothService
133 mUserId = -1; in CarBluetoothService()
180 mUserId = ActivityManager.getCurrentUser(); in initializeUser()
190 logd("Switched to user " + mUserId); in initializeUser()
199 logd("Destroying user " + mUserId); in destroyUser()
206 mUserId = -1; in destroyUser()
254 if (mUserId == -1) { in createBluetoothProfileDeviceManagers()
267 deviceManager = BluetoothProfileDeviceManager.create(mContext, mUserId, in createBluetoothProfileDeviceManagers()
308 if (mUserId == -1) { in createBluetoothProfileInhibitManager()
312 mInhibitManager = new BluetoothProfileInhibitManager(mContext, mUserId, in createBluetoothProfileInhibitManager()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DRunningState.java149 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/
DRunningState.java149 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/
DDefaultAutofillPicker.java79 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/biometrics/face/
DFaceSettings.java62 private int mUserId; field in FaceSettings
122 mUserId = getActivity().getIntent().getIntExtra( in onCreate()
126 if (mUserManager.getUserInfo(mUserId).isManagedProfile()) { in onCreate()
146 ((FaceSettingsPreferenceController) controller).setUserId(mUserId); in onCreate()
148 ((FaceSettingsEnrollButtonPreferenceController) controller).setUserId(mUserId); in onCreate()
151 mRemoveController.setUserId(mUserId); in onCreate()
154 if (mUserManager.isManagedProfile(mUserId)) { in onCreate()
169 mLockscreenController.setUserId(mUserId); in onAttach()
186 null, null, challenge, mUserId, true /* foregroundOnly */)) { in onResume()
195 final boolean hasEnrolled = mFaceManager.hasEnrolledTemplates(mUserId); in onResume()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultAutofillPicker.java79 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/users/
DUserPreference.java64 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/users/
DUserPreference.java64 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/
DMonitoringCertInfoActivity.java41 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/
DMonitoringCertInfoActivity.java41 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/
DRedactionInterstitial.java101 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/
DRedactionInterstitial.java100 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/
DPatternVisiblePreferenceController.java34 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
DPowerButtonInstantLockPreferenceController.java35 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/
DPatternVisiblePreferenceController.java34 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
DPowerButtonInstantLockPreferenceController.java38 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/vpn2/
DAppManagementFragment.java74 private final int mUserId = UserHandle.myUserId(); field in AppManagementFragment
215 if (mUserId == UserHandle.USER_SYSTEM) { in setAlwaysOnVpnByUI()
228 return mConnectivityManager.setAlwaysOnVpnPackageForUser(mUserId, in setAlwaysOnVpn()
247 mUserId); in updateRestrictedViews()
249 mUserId); in updateRestrictedViews()
251 mUserId); in updateRestrictedViews()
253 if (mConnectivityManager.isAlwaysOnVpnPackageSupportedForUser(mUserId, mPackageName)) { in updateRestrictedViews()
267 return mConnectivityManager.getAlwaysOnVpnPackageForUser(mUserId); in getAlwaysOnVpnPackage()
325 final VpnConfig config = mConnectivityService.getVpnConfig(mUserId); in isAnotherVpnActive()

12345678