Home
last modified time | relevance | path

Searched refs:MY_USER_ID (Results 1 – 19 of 19) 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/security/
DLockUnificationPreferenceController.java63 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);
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/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/security/screenlock/
DScreenLockSettings.java40 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()
DLockScreenPreferenceController.java35 private static final int MY_USER_ID = UserHandle.myUserId(); field in LockScreenPreferenceController
/packages/apps/Settings/src/com/android/settings/security/
DOwnerInfoPreferenceController.java42 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()
DLockUnificationPreferenceController.java64 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()
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/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/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/
DCrossProfileAppsPregrantControllerTest.java54 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/
DManageTrustAgentsPreferenceController.java35 private static final int MY_USER_ID = UserHandle.myUserId(); field in ManageTrustAgentsPreferenceController
57 if (!mLockPatternUtils.isSecure(MY_USER_ID)) { in updateState()
DTrustAgentListPreferenceController.java60 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/
DSilentStatusBarPreferenceController.java32 private static final int MY_USER_ID = UserHandle.myUserId(); field in SilentStatusBarPreferenceController