Home
last modified time | relevance | path

Searched refs:MY_USER_ID (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImplTest.java74 private final int MY_USER_ID = UserHandle.myUserId(); field in EnterprisePrivacyFeatureProviderImplTest
75 private final int MANAGED_PROFILE_USER_ID = MY_USER_ID + 1;
97 when(mUserManager.getProfiles(MY_USER_ID)).thenReturn(mProfiles); in setUp()
98 mProfiles.add(new UserInfo(MY_USER_ID, "", "", 0 /* flags */)); in setUp()
204 when(mConnectivityManger.getAlwaysOnVpnPackageForUser(MY_USER_ID)).thenReturn(null); in testIsAlwaysOnVpnSetInCurrentUser()
207 when(mConnectivityManger.getAlwaysOnVpnPackageForUser(MY_USER_ID)) in testIsAlwaysOnVpnSetInCurrentUser()
240 when(mDevicePolicyManager.getProfileOwnerAsUser(MY_USER_ID)).thenReturn(null); in testGetMaximumFailedPasswordsForWipeInCurrentUser()
241 when(mDevicePolicyManager.getMaximumFailedPasswordsForWipe(OWNER, MY_USER_ID)) in testGetMaximumFailedPasswordsForWipeInCurrentUser()
245 when(mDevicePolicyManager.getProfileOwnerAsUser(MY_USER_ID)).thenReturn(OWNER); in testGetMaximumFailedPasswordsForWipeInCurrentUser()
249 when(mDevicePolicyManager.getProfileOwnerAsUser(MY_USER_ID)).thenReturn(null); in testGetMaximumFailedPasswordsForWipeInCurrentUser()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java49 private static final int MY_USER_ID = UserHandle.myUserId(); field in EnterprisePrivacyFeatureProviderImpl
71 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getManagedProfileUserId()
144 return VpnUtils.isAlwaysOnVpnSet(mCm, MY_USER_ID); in isAlwaysOnVpnSetInCurrentUser()
163 owner = mDpm.getProfileOwnerAsUser(MY_USER_ID); in getMaximumFailedPasswordsBeforeWipeInCurrentUser()
168 return mDpm.getMaximumFailedPasswordsForWipe(owner, MY_USER_ID); in getMaximumFailedPasswordsBeforeWipeInCurrentUser()
190 Settings.Secure.DEFAULT_INPUT_METHOD, MY_USER_ID); in getImeLabelIfOwnerSet()
195 return mPm.getApplicationInfoAsUser(packageName, 0 /* flags */, MY_USER_ID) in getImeLabelIfOwnerSet()
204 final List<String> certs = mDpm.getOwnerInstalledCaCerts(new UserHandle(MY_USER_ID)); in getNumberOfOwnerInstalledCaCertsForCurrentUser()
227 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java50 private static final int MY_USER_ID = UserHandle.myUserId(); field in EnterprisePrivacyFeatureProviderImpl
133 return VpnUtils.isAlwaysOnVpnSet(mCm, MY_USER_ID); in isAlwaysOnVpnSetInCurrentUser()
152 owner = mDpm.getProfileOwnerAsUser(MY_USER_ID); in getMaximumFailedPasswordsBeforeWipeInCurrentUser()
157 return mDpm.getMaximumFailedPasswordsForWipe(owner, MY_USER_ID); in getMaximumFailedPasswordsBeforeWipeInCurrentUser()
179 Settings.Secure.DEFAULT_INPUT_METHOD, MY_USER_ID); in getImeLabelIfOwnerSet()
184 return mPm.getApplicationInfoAsUser(packageName, 0 /* flags */, MY_USER_ID) in getImeLabelIfOwnerSet()
193 final List<String> certs = mDpm.getOwnerInstalledCaCerts(new UserHandle(MY_USER_ID)); in getNumberOfOwnerInstalledCaCertsForCurrentUser()
216 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getNumberOfActiveDeviceAdminsForCurrentUserAndManagedProfile()
257 for (final UserInfo userInfo : mUm.getProfiles(MY_USER_ID)) { in getManagedProfileUserInfo()
/packages/apps/Settings/src/com/android/settings/security/
DLockUnificationPreferenceController.java62 private static final int MY_USER_ID = UserHandle.myUserId(); field in LockUnificationPreferenceController
91 mProfileUserId = Utils.getManagedProfileId(mUm, MY_USER_ID); in LockUnificationPreferenceController()
125 title, true /* returnCredentials */, MY_USER_ID)) { in onPreferenceChange()
185 UNIFY_LOCK_CONFIRM_DEVICE_REQUEST, title, true, MY_USER_ID)) {
230 mCurrentDevicePassword, MY_USER_ID);
233 mCurrentProfilePassword, mCurrentDevicePassword, profileQuality, MY_USER_ID);
239 mLockPatternUtils.setVisiblePatternEnabled(profilePatternVisibility, MY_USER_ID);
DOwnerInfoPreferenceController.java42 private static final int MY_USER_ID = UserHandle.myUserId(); field in OwnerInfoPreferenceController
92 mOwnerInfoPref.setEnabled(!mLockPatternUtils.isLockScreenDisabled(MY_USER_ID)); in updateEnableState()
133 return mLockPatternUtils.isOwnerInfoEnabled(MY_USER_ID); in isOwnerInfoEnabled()
138 return mLockPatternUtils.getOwnerInfo(MY_USER_ID); in getOwnerInfo()
DShowPasswordPreferenceController.java31 private static final int MY_USER_ID = UserHandle.myUserId(); field in ShowPasswordPreferenceController
51 mLockPatternUtils.setVisiblePasswordEnabled(isChecked, MY_USER_ID); in setChecked()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DLockUnificationPreferenceController.java62 private static final int MY_USER_ID = UserHandle.myUserId(); field in LockUnificationPreferenceController
91 mProfileUserId = Utils.getManagedProfileId(mUm, MY_USER_ID); in LockUnificationPreferenceController()
125 title, true /* returnCredentials */, MY_USER_ID)) { in onPreferenceChange()
185 UNIFY_LOCK_CONFIRM_DEVICE_REQUEST, title, true, MY_USER_ID)) {
230 mCurrentDevicePassword, MY_USER_ID);
233 mCurrentProfilePassword, mCurrentDevicePassword, profileQuality, MY_USER_ID);
239 mLockPatternUtils.setVisiblePatternEnabled(profilePatternVisibility, MY_USER_ID);
DOwnerInfoPreferenceController.java42 private static final int MY_USER_ID = UserHandle.myUserId(); field in OwnerInfoPreferenceController
92 mOwnerInfoPref.setEnabled(!mLockPatternUtils.isLockScreenDisabled(MY_USER_ID)); in updateEnableState()
133 return mLockPatternUtils.isOwnerInfoEnabled(MY_USER_ID); in isOwnerInfoEnabled()
138 return mLockPatternUtils.getOwnerInfo(MY_USER_ID); in getOwnerInfo()
DShowPasswordPreferenceController.java31 private static final int MY_USER_ID = UserHandle.myUserId(); field in ShowPasswordPreferenceController
51 mLockPatternUtils.setVisiblePasswordEnabled(isChecked, MY_USER_ID); in setChecked()
/packages/apps/Settings/src/com/android/settings/security/screenlock/
DLockScreenPreferenceController.java37 private static final int MY_USER_ID = UserHandle.myUserId(); field in LockScreenPreferenceController
55 if (!mLockPatternUtils.isSecure(MY_USER_ID)) { in getAvailabilityStatus()
56 return mLockPatternUtils.isLockScreenDisabled(MY_USER_ID) in getAvailabilityStatus()
59 return mLockPatternUtils.getKeyguardStoredPasswordQuality(MY_USER_ID) in getAvailabilityStatus()
DScreenLockSettings.java45 private static final int MY_USER_ID = UserHandle.myUserId(); field in ScreenLockSettings
79 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers()
81 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers()
83 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/screenlock/
DLockScreenPreferenceController.java37 private static final int MY_USER_ID = UserHandle.myUserId(); field in LockScreenPreferenceController
55 if (!mLockPatternUtils.isSecure(MY_USER_ID)) { in getAvailabilityStatus()
56 return mLockPatternUtils.isLockScreenDisabled(MY_USER_ID) in getAvailabilityStatus()
59 return mLockPatternUtils.getKeyguardStoredPasswordQuality(MY_USER_ID) in getAvailabilityStatus()
DScreenLockSettings.java45 private static final int MY_USER_ID = UserHandle.myUserId(); field in ScreenLockSettings
79 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers()
81 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers()
83 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers()
/packages/apps/Settings/src/com/android/settings/utils/
DContentCaptureUtils.java33 private static final int MY_USER_ID = UserHandle.myUserId(); field in ContentCaptureUtils
37 Settings.Secure.CONTENT_CAPTURE_ENABLED, 1, MY_USER_ID) == 1; in isEnabledForUser()
43 Settings.Secure.CONTENT_CAPTURE_ENABLED, enabled ? 1 : 0, MY_USER_ID); in setEnabledForUser()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/utils/
DContentCaptureUtils.java33 private static final int MY_USER_ID = UserHandle.myUserId(); field in ContentCaptureUtils
37 Settings.Secure.CONTENT_CAPTURE_ENABLED, 1, MY_USER_ID) == 1; in isEnabledForUser()
43 Settings.Secure.CONTENT_CAPTURE_ENABLED, enabled ? 1 : 0, MY_USER_ID); in setEnabledForUser()
/packages/apps/Settings/src/com/android/settings/security/trustagent/
DManageTrustAgentsPreferenceController.java35 private static final int MY_USER_ID = UserHandle.myUserId(); field in ManageTrustAgentsPreferenceController
57 if (!mLockPatternUtils.isSecure(MY_USER_ID)) { in updateState()
DTrustAgentListPreferenceController.java59 private static final int MY_USER_ID = UserHandle.myUserId(); field in TrustAgentListPreferenceController
155 final boolean hasSecurity = mLockPatternUtils.isSecure(MY_USER_ID); in updateTrustAgents()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DSilentStatusBarPreferenceController.java32 private static final int MY_USER_ID = UserHandle.myUserId(); field in SilentStatusBarPreferenceController