/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/ |
D | ExtrasProvisioningDataParser.java | 19 import static android.app.admin.DevicePolicyManager.ACTION_ESTABLISH_NETWORK_CONNECTION; 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_FINANCED_DEVICE; 21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE; 22 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO… 23 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE; 25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE; 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ALLOW_OFFLINE; 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME; 28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION… [all …]
|
D | ParserUtils.java | 19 import static android.app.admin.DevicePolicyManager.ACTION_ESTABLISH_NETWORK_CONNECTION; 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_FINANCED_DEVICE; 21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE; 22 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO… 23 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_TRIGGER; 25 import static android.app.admin.DevicePolicyManager.FLAG_SUPPORTED_MODES_DEVICE_OWNER; 26 import static android.app.admin.DevicePolicyManager.FLAG_SUPPORTED_MODES_ORGANIZATION_OWNED; 27 import static android.app.admin.DevicePolicyManager.FLAG_SUPPORTED_MODES_PERSONALLY_OWNED; 28 import static android.app.admin.DevicePolicyManager.MIME_TYPE_PROVISIONING_NFC; [all …]
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | EnterprisePrivacySettings.java | 19 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_ACCESS_CAMERA; 20 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_ACCESS_LOCATION; 21 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_ACCESS_MICROPHO… 22 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_APPS_INSTALLED; 23 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_SET_CURRENT_INP… 24 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_SET_DEFAULT_APP… 25 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_ACTION_SET_HTTP_PROXY; 26 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_CAN_LOCK_DEVICE; 27 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_CAN_SEE_APPS_WARNING; 28 import static android.app.admin.DevicePolicyResources.Strings.Settings.ADMIN_CAN_SEE_BUG_REPORT_WAR… [all …]
|
D | ActionDisabledByAdminDialogHelper.java | 19 import static android.app.admin.DevicePolicyResources.Strings.Settings.DISABLED_BY_IT_ADMIN_TITLE; 24 import android.app.admin.DevicePolicyManager; 81 private @UserIdInt int getEnforcementAdminUserId(@NonNull EnforcedAdmin admin) { in getEnforcementAdminUserId() argument 82 return admin.user == null ? UserHandle.USER_NULL : admin.user.getIdentifier(); in getEnforcementAdminUserId() 113 public void updateDialog(String restriction, EnforcedAdmin admin) { in updateDialog() argument 114 if (mEnforcedAdmin.equals(admin) && Objects.equals(mRestriction, restriction)) { in updateDialog() 117 mEnforcedAdmin = admin; in updateDialog() 125 ComponentName admin = enforcedAdmin.component; in initializeDialogViews() local 126 if (admin == null) { in initializeDialogViews() 131 setAdminSupportIcon(root, admin, userId); in initializeDialogViews() [all …]
|
D | ActionDisabledByAdminDialog.java | 20 import android.app.admin.DevicePolicyManager; 49 final EnforcedAdmin admin = getAdminDetailsFromIntent(intent); in onNewIntent() local 51 mDialogHelper.updateDialog(restriction, admin); in onNewIntent() 56 final EnforcedAdmin admin = new EnforcedAdmin(null, UserHandle.of(UserHandle.myUserId())); in getAdminDetailsFromIntent() local 58 return admin; in getAdminDetailsFromIntent() 60 admin.component = intent.getParcelableExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN); in getAdminDetailsFromIntent() 64 if (admin.component == null) { in getAdminDetailsFromIntent() 69 admin.component = adminDetails.getParcelable( in getAdminDetailsFromIntent() 75 admin.user = intent.getParcelableExtra(Intent.EXTRA_USER); in getAdminDetailsFromIntent() 81 admin.user = null; in getAdminDetailsFromIntent() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowDevicePolicyManager.java | 3 import static android.app.admin.DevicePolicyManager.DEVICE_OWNER_TYPE_DEFAULT; 4 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED; 9 import android.app.admin.DevicePolicyManager; 10 import android.app.admin.DevicePolicyManager.DeviceOwnerType; 11 import android.app.admin.PasswordMetrics; 12 import android.app.admin.PasswordPolicy; 37 public void setShortSupportMessageForUser(ComponentName admin, int userHandle, String message) { in setShortSupportMessageForUser() argument 38 mSupportMessagesMap.put(Objects.hash(admin, userHandle), message); in setShortSupportMessageForUser() 42 protected @Nullable CharSequence getShortSupportMessageForUser(@NonNull ComponentName admin, in getShortSupportMessageForUser() argument 44 return mSupportMessagesMap.get(Objects.hash(admin, userHandle)); in getShortSupportMessageForUser() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/ |
D | EnterpriseUtils.java | 21 import android.app.admin.DeviceAdminInfo; 22 import android.app.admin.DevicePolicyManager; 81 public static DeviceAdminInfo getDeviceAdminInfo(Context context, ComponentName admin) { in getDeviceAdminInfo() argument 82 LOG.d("getDeviceAdminInfo()(): " + admin.flattenToShortString()); in getDeviceAdminInfo() 86 ai = context.getPackageManager().getReceiverInfo(admin, PackageManager.GET_META_DATA); in getDeviceAdminInfo() 88 LOG.v("Unable to get activity info for " + admin.flattenToShortString() + ": " + e); in getDeviceAdminInfo() 95 LOG.v("Unable to retrieve device policy for " + admin.flattenToShortString() + ": ", in getDeviceAdminInfo() 215 EnforcedAdmin admin = new EnforcedAdmin(null, context.getUser()); in getEnforcedAdminFromIntent() local 217 return admin; in getEnforcedAdminFromIntent() 219 admin.component = intent.getParcelableExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN); in getEnforcedAdminFromIntent() [all …]
|
D | DeviceAdminAddFragment.java | 26 import android.app.admin.DeviceAdminInfo; 27 import android.app.admin.DeviceAdminReceiver; 28 import android.app.admin.DevicePolicyManager; 102 ComponentName admin = (ComponentName) in onAttach() local 104 LOG.d("Admin using " + DevicePolicyManager.EXTRA_DEVICE_ADMIN + ": " + admin); in onAttach() 105 if (admin == null) { in onAttach() 117 admin = getAdminWithinPackage(context, adminPackage); in onAttach() 118 if (admin == null) { in onAttach() 126 setPackageToUninstall(adminPackage, admin); in onAttach() 131 if (!isValidAdmin(context, admin)) { in onAttach() [all …]
|
D | ActionDisabledByAdminDialogFragment.java | 22 import android.app.admin.DevicePolicyManager; 159 private static @UserIdInt int getEnforcementAdminUserId(@Nullable EnforcedAdmin admin) { in getEnforcementAdminUserId() argument 160 return admin == null || admin.user == null ? UserHandle.USER_NULL in getEnforcementAdminUserId() 161 : admin.user.getIdentifier(); in getEnforcementAdminUserId() 166 ComponentName admin = null; in initializeDialogViews() local 169 admin = enforcedAdmin.component; in initializeDialogViews() 170 if (admin == null) { in initializeDialogViews() 178 admin = null; in initializeDialogViews() 193 ComponentName admin = enforcedAdmin.component; in isNotValidEnforcedAdmin() local 195 if (isNotCurrentUserOrProfile(context, admin, userId) in isNotValidEnforcedAdmin() [all …]
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/settingslib/ |
D | RestrictedLockUtilsInternal.java | 19 import static android.app.admin.DevicePolicyManager.KEYGUARD_DISABLE_FEATURES_NONE; 20 import static android.app.admin.DevicePolicyManager.PROFILE_KEYGUARD_FEATURES_AFFECT_OWNER; 26 import android.app.admin.DevicePolicyManager; 144 final LockSettingCheck check = (dpm, admin, checkUser) -> { in checkIfKeyguardFeaturesDisabled() 145 int effectiveFeatures = dpm.getKeyguardDisabledFeatures(admin, checkUser); in checkIfKeyguardFeaturesDisabled() 191 for (ComponentName admin : admins) { in findEnforcedAdmin() 192 if (check.isEnforcing(dpm, admin, userId)) { in findEnforcedAdmin() 194 enforcedAdmin = new EnforcedAdmin(admin, user); in findEnforcedAdmin() 251 EnforcedAdmin admin = getProfileOrDeviceOwner(context, getUserHandleOf(userId)); in checkIfInputMethodDisallowed() local 253 if (admin != null) { in checkIfInputMethodDisallowed() [all …]
|
D | RestrictedLockUtils.java | 19 import android.app.admin.DevicePolicyManager; 76 public static void sendShowAdminSupportDetailsIntent(Context context, EnforcedAdmin admin) { in sendShowAdminSupportDetailsIntent() argument 77 final Intent intent = getShowAdminSupportDetailsIntent(context, admin); in sendShowAdminSupportDetailsIntent() 79 if (admin != null) { in sendShowAdminSupportDetailsIntent() 80 if (admin.user != null in sendShowAdminSupportDetailsIntent() 81 && isCurrentUserOrProfile(context, admin.user.getIdentifier())) { in sendShowAdminSupportDetailsIntent() 82 targetUserId = admin.user.getIdentifier(); in sendShowAdminSupportDetailsIntent() 84 intent.putExtra(DevicePolicyManager.EXTRA_RESTRICTION, admin.enforcedRestriction); in sendShowAdminSupportDetailsIntent() 89 public static Intent getShowAdminSupportDetailsIntent(Context context, EnforcedAdmin admin) { in getShowAdminSupportDetailsIntent() argument 91 if (admin != null) { in getShowAdminSupportDetailsIntent() [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/networkconnection/ |
D | EstablishNetworkConnectionViewModelTest.java | 19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO… 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 21 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME; 22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME; 23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_USE_MOBILE_DATA; 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_ANONYMOUS_IDENTITY; 25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_DOMAIN; 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_EAP_METHOD; 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_HIDDEN; 28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_IDENTITY; [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/ |
D | ExtrasProvisioningDataParserTest.java | 18 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_FINANCED_DEVICE; 19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE; 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO… 21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE; 23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE; 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME; 25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION… 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSU… 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOA… [all …]
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/ |
D | ActionDisabledByAdminDialog.java | 20 import android.app.admin.DevicePolicyManager; 52 final EnforcedAdmin admin = getAdminDetailsFromIntent(intent); in onNewIntent() local 54 mDialogHelper.updateDialog(restriction, admin); in onNewIntent() 59 final EnforcedAdmin admin = new EnforcedAdmin(null, UserHandle.of(UserHandle.myUserId())); in getAdminDetailsFromIntent() local 61 return admin; in getAdminDetailsFromIntent() 63 admin.component = intent.getParcelableExtra(DevicePolicyManager.EXTRA_DEVICE_ADMIN); in getAdminDetailsFromIntent() 66 admin.user = intent.getParcelableExtra(Intent.EXTRA_USER); in getAdminDetailsFromIntent() 70 admin.user = null; in getAdminDetailsFromIntent() 72 admin.user = UserHandle.of(userId); in getAdminDetailsFromIntent() 75 return admin; in getAdminDetailsFromIntent()
|
D | ActionDisabledByAdminDialogHelper.java | 23 import android.app.admin.DevicePolicyManager; 59 private @UserIdInt int getEnforcementAdminUserId(@NonNull EnforcedAdmin admin) { in getEnforcementAdminUserId() argument 60 if (admin.user == null) { in getEnforcementAdminUserId() 63 return admin.user.getIdentifier(); in getEnforcementAdminUserId() 100 public void updateDialog(String restriction, EnforcedAdmin admin) { in updateDialog() argument 101 if (mEnforcedAdmin.equals(admin) && Objects.equals(mRestriction, restriction)) { in updateDialog() 104 mEnforcedAdmin = admin; in updateDialog() 110 private void initializeDialogViews(View root, ComponentName admin, int userId, in initializeDialogViews() argument 112 if (admin == null) { in initializeDialogViews() 125 setAdminSupportDetails(mActivity, root, new EnforcedAdmin(admin, user)); in initializeDialogViews()
|
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/parser/ |
D | ParserUtilsTest.java | 19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_FINANCED_DEVICE; 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE; 21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO… 22 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_TRIGGER; 24 import static android.app.admin.DevicePolicyManager.FLAG_SUPPORTED_MODES_DEVICE_OWNER; 25 import static android.app.admin.DevicePolicyManager.FLAG_SUPPORTED_MODES_ORGANIZATION_OWNED; 26 import static android.app.admin.DevicePolicyManager.FLAG_SUPPORTED_MODES_PERSONALLY_OWNED; 27 import static android.app.admin.DevicePolicyManager.MIME_TYPE_PROVISIONING_NFC; 28 import static android.app.admin.DevicePolicyManager.PROVISIONING_MODE_FULLY_MANAGED_DEVICE; [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/ |
D | WifiInfo.java | 19 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_ANONYMOUS_IDENTITY; 20 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_CA_CERTIFICATE; 21 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_DOMAIN; 22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_EAP_METHOD; 23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_HIDDEN; 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_IDENTITY; 25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_PAC_URL; 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_PASSWORD; 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_PHASE2_AUTH; 28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_WIFI_PROXY_BYPASS; [all …]
|
D | ProvisioningParams.java | 19 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE; 20 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE; 21 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME; 22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME; 23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DISCLAIMERS; 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_KEEP_ACCOUNT_ON_MIGRATION; 25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLE… 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_LOCALE; 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_LOCAL_TIME; 28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ORGANIZATION_NAME; [all …]
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/ |
D | PreProvisioningActivityController.java | 19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_FINANCED_DEVICE; 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE; 21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO… 22 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE; 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE; 25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ALLOWED_PROVISIONING_MODES; 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DISCLAIMERS; 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_IMEI; 28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_KEEP_ACCOUNT_ON_MIGRATION; [all …]
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | ScreenTimeoutPreferenceController.java | 19 import static android.app.admin.DevicePolicyResources.Strings.Settings.DISABLED_BY_IT_ADMIN_TITLE; 24 import android.app.admin.DevicePolicyManager; 61 final RestrictedLockUtils.EnforcedAdmin admin = getPreferenceDisablingAdmin(maxTimeout); in updateState() local 62 if (admin != null) { in updateState() 68 ((RestrictedPreference) preference).setDisabledByAdmin(admin); in updateState() 98 RestrictedLockUtils.EnforcedAdmin admin = null; in getPreferenceDisablingAdmin() local 100 admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced( in getPreferenceDisablingAdmin() 103 if (admin == null && getLargestTimeout(maxTimeout) == null) { in getPreferenceDisablingAdmin() 104 admin = RestrictedLockUtilsInternal.checkIfMaximumTimeToLockIsSet(mContext); in getPreferenceDisablingAdmin() 107 return admin; in getPreferenceDisablingAdmin()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/ |
D | DeviceAdminAddFragmentTest.java | 20 import static android.app.admin.DeviceAdminInfo.USES_ENCRYPTED_STORAGE; 21 import static android.app.admin.DeviceAdminInfo.USES_POLICY_EXPIRE_PASSWORD; 22 import static android.app.admin.DeviceAdminInfo.USES_POLICY_FORCE_LOCK; 23 import static android.app.admin.DeviceAdminInfo.USES_POLICY_LIMIT_PASSWORD; 24 import static android.app.admin.DeviceAdminInfo.USES_POLICY_RESET_PASSWORD; 25 import static android.app.admin.DeviceAdminInfo.USES_POLICY_WATCH_LOGIN; 26 import static android.app.admin.DeviceAdminInfo.USES_POLICY_WIPE_DATA; 27 import static android.app.admin.DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN; 28 import static android.app.admin.DevicePolicyManager.EXTRA_ADD_EXPLANATION; 29 import static android.app.admin.DevicePolicyManager.EXTRA_DEVICE_ADMIN; [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | ChooseLockPasswordTest.java | 19 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_HIGH; 20 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_LOW; 21 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_MEDIUM; 22 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_NONE; 23 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_ALPHABETIC; 24 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC; 25 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_COMPLEX; 26 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_NUMERIC; 27 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_NUMERIC_COMPLEX; 28 import static android.app.admin.DevicePolicyManager.PASSWORD_QUALITY_SOMETHING; [all …]
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/finalization/ |
D | UserProvisioningStateHelperTest.java | 19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE; 20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE; 21 import static android.app.admin.DevicePolicyManager.STATE_USER_PROFILE_COMPLETE; 22 import static android.app.admin.DevicePolicyManager.STATE_USER_PROFILE_FINALIZED; 23 import static android.app.admin.DevicePolicyManager.STATE_USER_SETUP_COMPLETE; 24 import static android.app.admin.DevicePolicyManager.STATE_USER_SETUP_FINALIZED; 25 import static android.app.admin.DevicePolicyManager.STATE_USER_SETUP_INCOMPLETE; 26 import static android.app.admin.DevicePolicyManager.STATE_USER_UNMANAGED; 34 import android.app.admin.DevicePolicyManager;
|
/packages/apps/Settings/tests/unit/src/com/android/settings/biometrics/ |
D | ParentalControlsUtilsTest.java | 28 import android.app.admin.DevicePolicyManager; 92 RestrictedLockUtils.EnforcedAdmin admin = getEnforcedAdminForCombination( in testEnforcedAdmin_whenDpmDisablesBiometricsAndSupervisionComponentExists() local 95 assertNotNull(admin); in testEnforcedAdmin_whenDpmDisablesBiometricsAndSupervisionComponentExists() 96 assertEquals(UserManager.DISALLOW_BIOMETRIC, admin.enforcedRestriction); in testEnforcedAdmin_whenDpmDisablesBiometricsAndSupervisionComponentExists() 97 assertEquals(mSupervisionComponentName, admin.component); in testEnforcedAdmin_whenDpmDisablesBiometricsAndSupervisionComponentExists() 104 RestrictedLockUtils.EnforcedAdmin admin = getEnforcedAdminForCombination( in testNoEnforcedAdmin_whenNoSupervisionComponent() local 107 assertNull(admin); in testNoEnforcedAdmin_whenNoSupervisionComponent()
|
/packages/apps/Settings/src/com/android/settings/password/ |
D | SetNewPasswordActivity.java | 20 import static android.app.admin.DevicePolicyManager.ACTION_SET_NEW_PARENT_PROFILE_PASSWORD; 21 import static android.app.admin.DevicePolicyManager.ACTION_SET_NEW_PASSWORD; 22 import static android.app.admin.DevicePolicyManager.EXTRA_DEVICE_PASSWORD_REQUIREMENT_ONLY; 23 import static android.app.admin.DevicePolicyManager.EXTRA_PASSWORD_COMPLEXITY; 24 import static android.app.admin.DevicePolicyManager.PASSWORD_COMPLEXITY_NONE; 33 import android.app.admin.DevicePolicyManager; 34 import android.app.admin.DevicePolicyManager.PasswordComplexity; 35 import android.app.admin.PasswordMetrics;
|