/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImplTest.java | 74 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/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 49 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/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 50 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/ |
D | LockUnificationPreferenceController.java | 63 private static final int MY_USER_ID = UserHandle.myUserId(); field in LockUnificationPreferenceController 92 mProfileUserId = Utils.getManagedProfileId(mUm, MY_USER_ID); in LockUnificationPreferenceController() 128 title, true /* returnCredentials */, MY_USER_ID)) { in onPreferenceChange() 188 UNIFY_LOCK_CONFIRM_DEVICE_REQUEST, title, true, MY_USER_ID)) { 228 mCurrentProfilePassword, mCurrentDevicePassword, MY_USER_ID); 233 mLockPatternUtils.setVisiblePatternEnabled(profilePatternVisibility, MY_USER_ID);
|
D | OwnerInfoPreferenceController.java | 42 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()
|
D | ShowPasswordPreferenceController.java | 31 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/screenlock/ |
D | LockScreenPreferenceController.java | 37 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()
|
D | ScreenLockSettings.java | 45 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/security/screenlock/ |
D | ScreenLockSettings.java | 40 private static final int MY_USER_ID = UserHandle.myUserId(); field in ScreenLockSettings 73 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers() 75 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers() 77 context, MY_USER_ID, lockPatternUtils)); in buildPreferenceControllers()
|
D | LockScreenPreferenceController.java | 35 private static final int MY_USER_ID = UserHandle.myUserId(); field in LockScreenPreferenceController
|
/packages/apps/Settings/src/com/android/settings/security/ |
D | OwnerInfoPreferenceController.java | 42 private static final int MY_USER_ID = UserHandle.myUserId(); field in OwnerInfoPreferenceController 101 mOwnerInfoPref.setEnabled(!mLockPatternUtils.isLockScreenDisabled(MY_USER_ID)); in updateEnableState() 132 return mLockPatternUtils.isOwnerInfoEnabled(MY_USER_ID); in isOwnerInfoEnabled() 137 return mLockPatternUtils.getOwnerInfo(MY_USER_ID); in getOwnerInfo()
|
D | LockUnificationPreferenceController.java | 64 private static final int MY_USER_ID = UserHandle.myUserId(); field in LockUnificationPreferenceController 93 mProfileUserId = Utils.getManagedProfileId(mUm, MY_USER_ID); in LockUnificationPreferenceController() 125 title, true /* returnCredentials */, MY_USER_ID)) { in onPreferenceChange()
|
D | ShowPasswordPreferenceController.java | 31 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/utils/ |
D | ContentCaptureUtils.java | 33 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/ |
D | ContentCaptureUtils.java | 33 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/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/ |
D | CrossProfileAppsPregrantControllerTest.java | 54 private static final int MY_USER_ID = 0; field in CrossProfileAppsPregrantControllerTest 155 MY_USER_ID, OTHER_USER_ID, /* profileName= */"otherUser", FLAG_MANAGED_PROFILE); in setRunningOnParentProfile() 160 MY_USER_ID, OTHER_USER_ID, /* profileName= */"otherUser", FLAG_MANAGED_PROFILE); in setRunningOnManagedProfile()
|
/packages/apps/Settings/src/com/android/settings/security/trustagent/ |
D | ManageTrustAgentsPreferenceController.java | 35 private static final int MY_USER_ID = UserHandle.myUserId(); field in ManageTrustAgentsPreferenceController 57 if (!mLockPatternUtils.isSecure(MY_USER_ID)) { in updateState()
|
D | TrustAgentListPreferenceController.java | 60 private static final int MY_USER_ID = UserHandle.myUserId(); field in TrustAgentListPreferenceController 199 final boolean hasSecurity = mLockPatternUtils.isSecure(MY_USER_ID); in updateTrustAgents()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/ |
D | SilentStatusBarPreferenceController.java | 32 private static final int MY_USER_ID = UserHandle.myUserId(); field in SilentStatusBarPreferenceController
|