/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/ |
D | ExtrasProvisioningDataParser.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_DEVICE_ADMIN_COMPONENT_NAME; 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION… 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSU… 28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOA… [all …]
|
D | PropertiesProvisioningDataParser.java | 19 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE; 20 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME; 21 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION… 22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSU… 23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOA… 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOA… 25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME; 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECK… 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLE… 28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_LOCALE; [all …]
|
D | ParserUtils.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/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/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 …]
|
D | PropertiesProvisioningDataParserTest.java | 18 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE; 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_MINIMUM_VERSION… 23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSU… 24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOA… 25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOA… 26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME; 27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECK… [all …]
|
/packages/apps/Settings/src/com/android/settings/enterprise/ |
D | ActionDisabledByAdminDialogHelper.java | 22 import android.app.admin.DevicePolicyManager; 72 private @UserIdInt int getEnforcementAdminUserId(@NonNull EnforcedAdmin admin) { in getEnforcementAdminUserId() argument 73 return admin.user == null ? UserHandle.USER_NULL : admin.user.getIdentifier(); in getEnforcementAdminUserId() 104 public void updateDialog(String restriction, EnforcedAdmin admin) { in updateDialog() argument 105 if (mEnforcedAdmin.equals(admin) && Objects.equals(mRestriction, restriction)) { in updateDialog() 108 mEnforcedAdmin = admin; in updateDialog() 116 ComponentName admin = enforcedAdmin.component; in initializeDialogViews() local 117 if (admin == null) { in initializeDialogViews() 122 setAdminSupportIcon(root, admin, userId); in initializeDialogViews() 124 if (isNotCurrentUserOrProfile(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() 63 admin.user = intent.getParcelableExtra(Intent.EXTRA_USER); in getAdminDetailsFromIntent() 67 admin.user = null; in getAdminDetailsFromIntent() 69 admin.user = UserHandle.of(userId); in getAdminDetailsFromIntent() 72 return admin; in getAdminDetailsFromIntent()
|
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/ |
D | ActionDisabledByAdminDialogFragment.java | 22 import android.app.admin.DevicePolicyManager; 123 private static @UserIdInt int getEnforcementAdminUserId(@Nullable EnforcedAdmin admin) { in getEnforcementAdminUserId() argument 124 return admin == null || admin.user == null ? UserHandle.USER_NULL in getEnforcementAdminUserId() 125 : admin.user.getIdentifier(); in getEnforcementAdminUserId() 130 ComponentName admin = null; in initializeDialogViews() local 133 admin = enforcedAdmin.component; in initializeDialogViews() 134 if (admin == null) { in initializeDialogViews() 141 if (isNotCurrentUserOrProfile(context, admin, userId)) { in initializeDialogViews() 142 admin = null; in initializeDialogViews() 144 setAdminSupportIcon(context, builder, admin, userId); in initializeDialogViews() [all …]
|
D | DeviceAdminAddActionPreferenceController.java | 66 ComponentName admin = mDeviceAdminInfo.getComponent(); in handlePreferenceClicked() local 68 mLogger.i("Deactivating " + admin.flattenToShortString()); in handlePreferenceClicked() 69 mDpm.removeActiveAdmin(admin); in handlePreferenceClicked() 71 mLogger.i("Activating " + admin.flattenToShortString()); in handlePreferenceClicked() 73 mDpm.setActiveAdmin(admin, /* refreshing= */ false); in handlePreferenceClicked() 82 ComponentName admin = mDeviceAdminInfo.getComponent(); in setIsActive() local 83 if (isProfileOrDeviceOwner(admin)) { in setIsActive() 85 mLogger.d("updateState(): " + admin.toShortString() + " is PO or DO"); in setIsActive() 88 mIsActive = mDpm.isAdminActive(admin); in setIsActive()
|
D | DeviceAdminAddFragment.java | 23 import android.app.admin.DeviceAdminInfo; 24 import android.app.admin.DevicePolicyManager; 53 ComponentName admin = (ComponentName) in onAttach() local 55 LOG.d("Admin using " + DevicePolicyManager.EXTRA_DEVICE_ADMIN + ": " + admin); in onAttach() 56 if (admin == null) { in onAttach() 68 admin = getAdminWithinPackage(context, adminPackage); in onAttach() 69 if (admin == null) { in onAttach() 76 DeviceAdminInfo deviceAdminInfo = getDeviceAdminInfo(context, admin); in onAttach() 77 LOG.d("Admin: " + admin + " DeviceAdminInfo: " + deviceAdminInfo); in onAttach() 81 + admin.flattenToShortString()); in onAttach()
|
D | EnterpriseUtils.java | 19 import android.app.admin.DeviceAdminInfo; 20 import android.app.admin.DevicePolicyManager; 59 public static DeviceAdminInfo getDeviceAdminInfo(Context context, ComponentName admin) { in getDeviceAdminInfo() argument 60 LOG.d("getDeviceAdminInfo()(): " + admin.flattenToShortString()); in getDeviceAdminInfo() 64 ai = context.getPackageManager().getReceiverInfo(admin, PackageManager.GET_META_DATA); in getDeviceAdminInfo() 66 LOG.v("Unable to get activity info for " + admin.flattenToShortString() + ": " + e); in getDeviceAdminInfo() 73 LOG.v("Unable to retrieve device policy for " + admin.flattenToShortString() + ": ", in getDeviceAdminInfo()
|
/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/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() 98 public void updateDialog(String restriction, EnforcedAdmin admin) { in updateDialog() argument 99 if (mEnforcedAdmin.equals(admin) && Objects.equals(mRestriction, restriction)) { in updateDialog() 102 mEnforcedAdmin = admin; in updateDialog() 108 private void initializeDialogViews(View root, ComponentName admin, int userId, in initializeDialogViews() argument 110 if (admin == null) { in initializeDialogViews() 123 setAdminSupportDetails(mActivity, root, new EnforcedAdmin(admin, user)); in initializeDialogViews()
|
/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.CODE_CANNOT_ADD_MANAGED_PROFILE; 24 import static android.app.admin.DevicePolicyManager.CODE_HAS_DEVICE_OWNER; 25 import static android.app.admin.DevicePolicyManager.CODE_MANAGED_USERS_NOT_SUPPORTED; 26 import static android.app.admin.DevicePolicyManager.CODE_NOT_SYSTEM_USER; 27 import static android.app.admin.DevicePolicyManager.CODE_OK; 28 import static android.app.admin.DevicePolicyManager.CODE_PROVISIONING_NOT_ALLOWED_FOR_NON_DEVELOPER… [all …]
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/ |
D | EnterpriseUtilsTest.java | 23 import android.app.admin.DeviceAdminInfo; 32 ComponentName admin = getAdminWithinPackage(mSpiedContext, mPackageName); in testGetAdminWithinPackage_notFound() local 34 assertWithMessage("Admin for %s", mPackageName).that(admin).isNull(); in testGetAdminWithinPackage_notFound() 41 ComponentName admin = getAdminWithinPackage(mSpiedContext, mPackageName); in testGetAdminWithinPackage_found() local 43 assertWithMessage("Admin for %s", mPackageName).that(admin).isEqualTo(mDefaultAdmin); in testGetAdminWithinPackage_found() 48 ComponentName admin = new ComponentName("Bond", "James Bond"); in testGetDeviceAdminInfo_notFound() local 50 DeviceAdminInfo info = getDeviceAdminInfo(mSpiedContext, admin); in testGetDeviceAdminInfo_notFound() 52 assertWithMessage("Device admin for %s", admin).that(info).isNull(); in testGetDeviceAdminInfo_notFound()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/admin/ |
D | PerUserCarDevicePolicyServiceTest.java | 16 package com.android.car.admin; 18 import static android.app.admin.DevicePolicyManager.ACTION_SHOW_NEW_USER_DISCLAIMER; 20 import static com.android.car.admin.PerUserCarDevicePolicyService.NEW_USER_DISCLAIMER_STATUS_ACKED; 21 import static com.android.car.admin.PerUserCarDevicePolicyService.NEW_USER_DISCLAIMER_STATUS_NEVER_… 22 import static com.android.car.admin.PerUserCarDevicePolicyService.NEW_USER_DISCLAIMER_STATUS_NOTIFI… 23 import static com.android.car.admin.PerUserCarDevicePolicyService.NEW_USER_DISCLAIMER_STATUS_RECEIV… 24 import static com.android.car.admin.PerUserCarDevicePolicyService.NEW_USER_DISCLAIMER_STATUS_SHOWN; 25 import static com.android.car.admin.PerUserCarDevicePolicyService.newUserDisclaimerStatusToString; 37 import android.app.admin.DevicePolicyManager; 43 import com.android.car.admin.PerUserCarDevicePolicyService.NewUserDisclaimerStatus;
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | ScreenTimeoutPreferenceController.java | 23 import android.app.admin.DevicePolicyManager; 60 final RestrictedLockUtils.EnforcedAdmin admin = getPreferenceDisablingAdmin(maxTimeout); in updateState() local 61 if (admin != null) { in updateState() 64 ((RestrictedPreference) preference).setDisabledByAdmin(admin); in updateState() 94 RestrictedLockUtils.EnforcedAdmin admin = null; in getPreferenceDisablingAdmin() local 96 admin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced( in getPreferenceDisablingAdmin() 99 if (admin == null && getLargestTimeout(maxTimeout) == null) { in getPreferenceDisablingAdmin() 100 admin = RestrictedLockUtilsInternal.checkIfMaximumTimeToLockIsSet(mContext); in getPreferenceDisablingAdmin() 103 return admin; in getPreferenceDisablingAdmin()
|
/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/robotests/src/com/android/settings/enterprise/ |
D | ActionDisabledByAdminDialogHelperTest.java | 19 import static android.app.admin.DevicePolicyManager.DEVICE_OWNER_TYPE_FINANCED; 31 import android.app.admin.DevicePolicyManager; 145 final EnforcedAdmin admin = new EnforcedAdmin(component, UserHandle.of(123)); in testSetAdminSupportDetails() local 151 mHelper.setAdminSupportDetails(mActivity, view, admin); in testSetAdminSupportDetails() 153 assertNotNull(admin.component); in testSetAdminSupportDetails() 166 final EnforcedAdmin admin = new EnforcedAdmin(component, UserHandle.of(123)); in testSetAdminSupportDetails_shortSupportMessageIsNull() local 172 mHelper.setAdminSupportDetails(mActivity, view, admin); in testSetAdminSupportDetails_shortSupportMessageIsNull() 174 assertNotNull(admin.component); in testSetAdminSupportDetails_shortSupportMessageIsNull() 188 final EnforcedAdmin admin = new EnforcedAdmin(component, UserHandle.of(123)); in testSetAdminSupportDetailsNotAdmin() local 194 mHelper.setAdminSupportDetails(mActivity, textView, admin); in testSetAdminSupportDetailsNotAdmin() [all …]
|
/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()
|