/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | PasswordRequirementsTest.java | 41 ADMIN_RECEIVER_COMPONENT, PASSWORD_QUALITY_SOMETHING); in testPasswordConstraintsDoesntThrowAndPreservesValuesPreR() 43 mDevicePolicyManager.setPasswordMinimumLength(ADMIN_RECEIVER_COMPONENT, TEST_VALUE); in testPasswordConstraintsDoesntThrowAndPreservesValuesPreR() 44 mDevicePolicyManager.setPasswordMinimumNumeric(ADMIN_RECEIVER_COMPONENT, TEST_VALUE); in testPasswordConstraintsDoesntThrowAndPreservesValuesPreR() 45 mDevicePolicyManager.setPasswordMinimumLetters(ADMIN_RECEIVER_COMPONENT, TEST_VALUE); in testPasswordConstraintsDoesntThrowAndPreservesValuesPreR() 46 mDevicePolicyManager.setPasswordMinimumUpperCase(ADMIN_RECEIVER_COMPONENT, TEST_VALUE); in testPasswordConstraintsDoesntThrowAndPreservesValuesPreR() 47 mDevicePolicyManager.setPasswordMinimumLowerCase(ADMIN_RECEIVER_COMPONENT, TEST_VALUE); in testPasswordConstraintsDoesntThrowAndPreservesValuesPreR() 48 mDevicePolicyManager.setPasswordMinimumNonLetter(ADMIN_RECEIVER_COMPONENT, TEST_VALUE); in testPasswordConstraintsDoesntThrowAndPreservesValuesPreR() 49 mDevicePolicyManager.setPasswordMinimumSymbols(ADMIN_RECEIVER_COMPONENT, TEST_VALUE); in testPasswordConstraintsDoesntThrowAndPreservesValuesPreR() 53 ADMIN_RECEIVER_COMPONENT, PASSWORD_QUALITY_UNSPECIFIED); in testPasswordConstraintsDoesntThrowAndPreservesValuesPreR() 55 mDevicePolicyManager.getPasswordMinimumLength(ADMIN_RECEIVER_COMPONENT)); in testPasswordConstraintsDoesntThrowAndPreservesValuesPreR() [all …]
|
D | DevicePolicyLoggingTest.java | 54 mDevicePolicyManager.setPasswordQuality(ADMIN_RECEIVER_COMPONENT, in testPasswordMethodsLogged() 56 mDevicePolicyManager.setPasswordMinimumLength(ADMIN_RECEIVER_COMPONENT, 13); in testPasswordMethodsLogged() 57 mDevicePolicyManager.setPasswordMinimumNumeric(ADMIN_RECEIVER_COMPONENT, 14); in testPasswordMethodsLogged() 58 mDevicePolicyManager.setPasswordMinimumNonLetter(ADMIN_RECEIVER_COMPONENT, 15); in testPasswordMethodsLogged() 59 mDevicePolicyManager.setPasswordMinimumLetters(ADMIN_RECEIVER_COMPONENT, 16); in testPasswordMethodsLogged() 60 mDevicePolicyManager.setPasswordMinimumLowerCase(ADMIN_RECEIVER_COMPONENT, 17); in testPasswordMethodsLogged() 61 mDevicePolicyManager.setPasswordMinimumUpperCase(ADMIN_RECEIVER_COMPONENT, 18); in testPasswordMethodsLogged() 62 mDevicePolicyManager.setPasswordMinimumSymbols(ADMIN_RECEIVER_COMPONENT, 19); in testPasswordMethodsLogged() 63 mDevicePolicyManager.setPasswordQuality(ADMIN_RECEIVER_COMPONENT, in testPasswordMethodsLogged() 74 ADMIN_RECEIVER_COMPONENT, KEYGUARD_DISABLE_FEATURES_NONE); in testSetKeyguardDisabledFeaturesLogged() [all …]
|
D | TimeManagementTest.java | 43 mDevicePolicyManager.setAutoTimeZoneEnabled(ADMIN_RECEIVER_COMPONENT, true); in testSetAutoTimeZoneEnabled() 45 assertThat(mDevicePolicyManager.getAutoTimeZoneEnabled(ADMIN_RECEIVER_COMPONENT)).isTrue(); in testSetAutoTimeZoneEnabled() 47 mDevicePolicyManager.setAutoTimeZoneEnabled(ADMIN_RECEIVER_COMPONENT, false); in testSetAutoTimeZoneEnabled() 49 assertThat(mDevicePolicyManager.getAutoTimeZoneEnabled(ADMIN_RECEIVER_COMPONENT)).isFalse(); in testSetAutoTimeZoneEnabled() 53 mDevicePolicyManager.setAutoTimeEnabled(ADMIN_RECEIVER_COMPONENT, false); in testSetTime() 57 assertThat(mDevicePolicyManager.setTime(ADMIN_RECEIVER_COMPONENT, in testSetTime() 62 mDevicePolicyManager.setAutoTimeEnabled(ADMIN_RECEIVER_COMPONENT, true); in testSetTime_failWhenAutoTimeEnabled() 64 assertThat(mDevicePolicyManager.setTime(ADMIN_RECEIVER_COMPONENT, 0)).isFalse(); in testSetTime_failWhenAutoTimeEnabled() 68 mDevicePolicyManager.setAutoTimeZoneEnabled(ADMIN_RECEIVER_COMPONENT, false); in testSetTimeZone() 71 mDevicePolicyManager.setTimeZone(ADMIN_RECEIVER_COMPONENT, "Singapore")).isTrue(); in testSetTimeZone() [all …]
|
D | KeyguardDisabledFeaturesTest.java | 26 mDevicePolicyManager.setKeyguardDisabledFeatures(ADMIN_RECEIVER_COMPONENT, in testSetKeyguardDisabledFeatures() 31 ADMIN_RECEIVER_COMPONENT)).isEqualTo( in testSetKeyguardDisabledFeatures() 35 mDevicePolicyManager.setKeyguardDisabledFeatures(ADMIN_RECEIVER_COMPONENT, in testSetKeyguardDisabledFeatures() 40 ADMIN_RECEIVER_COMPONENT)).isEqualTo( in testSetKeyguardDisabledFeatures() 47 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in testSetKeyguardDisabledFeatures_onParentSilentIgnoreWhenCallerIsNotOrgOwnedPO() 49 parentDevicePolicyManager.setKeyguardDisabledFeatures(ADMIN_RECEIVER_COMPONENT, in testSetKeyguardDisabledFeatures_onParentSilentIgnoreWhenCallerIsNotOrgOwnedPO() 53 ADMIN_RECEIVER_COMPONENT)).isEqualTo(0); in testSetKeyguardDisabledFeatures_onParentSilentIgnoreWhenCallerIsNotOrgOwnedPO() 58 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in testSetKeyguardDisabledFeatures_onParent() 60 parentDevicePolicyManager.setKeyguardDisabledFeatures(ADMIN_RECEIVER_COMPONENT, in testSetKeyguardDisabledFeatures_onParent() 65 ADMIN_RECEIVER_COMPONENT)).isEqualTo( in testSetKeyguardDisabledFeatures_onParent() [all …]
|
D | InputMethodsTest.java | 35 mDevicePolicyManager.setPermittedInputMethods(ADMIN_RECEIVER_COMPONENT, null); in testPermittedInputMethods() 37 mDevicePolicyManager.getPermittedInputMethods(ADMIN_RECEIVER_COMPONENT)).isNull(); in testPermittedInputMethods() 40 mDevicePolicyManager.setPermittedInputMethods(ADMIN_RECEIVER_COMPONENT, new ArrayList<>()); in testPermittedInputMethods() 42 mDevicePolicyManager.getPermittedInputMethods(ADMIN_RECEIVER_COMPONENT)).isEmpty(); in testPermittedInputMethods() 46 mDevicePolicyManager.setPermittedInputMethods(ADMIN_RECEIVER_COMPONENT, packages); in testPermittedInputMethods() 48 mDevicePolicyManager.getPermittedInputMethods(ADMIN_RECEIVER_COMPONENT)) in testPermittedInputMethods() 54 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in testPermittedInputMethodsOnParent() 56 parentDevicePolicyManager.setPermittedInputMethods(ADMIN_RECEIVER_COMPONENT, null); in testPermittedInputMethodsOnParent() 58 ADMIN_RECEIVER_COMPONENT)).isNull(); in testPermittedInputMethodsOnParent() 61 parentDevicePolicyManager.setPermittedInputMethods(ADMIN_RECEIVER_COMPONENT, in testPermittedInputMethodsOnParent() [all …]
|
D | ScreenCaptureDisabledTest.java | 35 mDevicePolicyManager.setScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT, false); in testSetScreenCaptureDisabled_false() 37 ADMIN_RECEIVER_COMPONENT.flattenToShortString()) in testSetScreenCaptureDisabled_false() 38 .that(mDevicePolicyManager.getScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT)) in testSetScreenCaptureDisabled_false() 45 mDevicePolicyManager.setScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT, true); in testSetScreenCaptureDisabled_true() 47 ADMIN_RECEIVER_COMPONENT.flattenToShortString()) in testSetScreenCaptureDisabled_true() 48 .that(mDevicePolicyManager.getScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT)) in testSetScreenCaptureDisabled_true() 56 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in testSetScreenCaptureDisabledOnParent_false() 57 parentDevicePolicyManager.setScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT, false); in testSetScreenCaptureDisabledOnParent_false() 59 ADMIN_RECEIVER_COMPONENT.flattenToShortString()) in testSetScreenCaptureDisabledOnParent_false() 61 .getScreenCaptureDisabled(ADMIN_RECEIVER_COMPONENT)) in testSetScreenCaptureDisabledOnParent_false() [all …]
|
D | PasswordMinimumRestrictionsTest.java | 53 mParentDpm = mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in setUp() 55 mDevicePolicyManager.getPasswordQuality(ADMIN_RECEIVER_COMPONENT); in setUp() 56 mParentPreviousPasswordQuality = mParentDpm.getPasswordQuality(ADMIN_RECEIVER_COMPONENT); in setUp() 57 mDevicePolicyManager.setPasswordQuality(ADMIN_RECEIVER_COMPONENT, PASSWORD_QUALITY_COMPLEX); in setUp() 58 mParentDpm.setPasswordQuality(ADMIN_RECEIVER_COMPONENT, PASSWORD_QUALITY_COMPLEX); in setUp() 61 .add(invokeGetMethod(method, mDevicePolicyManager, ADMIN_RECEIVER_COMPONENT)); in setUp() 63 .add(invokeGetMethod(method, mParentDpm, ADMIN_RECEIVER_COMPONENT)); in setUp() 70 invokeSetMethod(METHOD_LIST[i], mDevicePolicyManager, ADMIN_RECEIVER_COMPONENT, in tearDown() 72 invokeSetMethod(METHOD_LIST[i], mParentDpm, ADMIN_RECEIVER_COMPONENT, in tearDown() 75 mDevicePolicyManager.setPasswordQuality(ADMIN_RECEIVER_COMPONENT, in tearDown() [all …]
|
D | ApplicationHiddenParentTest.java | 40 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in setUp() 44 …assertThat(mDevicePolicyManager.isProfileOwnerApp(ADMIN_RECEIVER_COMPONENT.getPackageName())).isTr… in setUp() 50 mParentDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, in tearDown() 59 assertThat(mParentDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden_systemPackage() 61 assertThat(mParentDevicePolicyManager.isApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden_systemPackage() 66 assertThat(mParentDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden_systemPackage() 68 assertThat(mParentDevicePolicyManager.isApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden_systemPackage() 75 mParentDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden_nonSystemPackage() 77 mParentDevicePolicyManager.isApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden_nonSystemPackage() 81 mParentDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden_nonSystemPackage() [all …]
|
D | AlwaysOnVpnUnsupportedTest.java | 36 mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testAssertNoAlwaysOnVpn() 40 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, null, false); in testClearAlwaysOnVpn() 42 mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testClearAlwaysOnVpn() 47 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, true); in testSetSupportedVpnAlwaysOn() 49 VPN_PACKAGE, mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testSetSupportedVpnAlwaysOn() 55 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, true); in testSetUnsupportedVpnAlwaysOn() 60 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testSetUnsupportedVpnAlwaysOn()
|
D | ApplicationHiddenTest.java | 62 mDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, PACKAGE_TO_HIDE, false); in tearDown() 67 assertWithMessage("setApplicationHidden(%s, %s, true)", ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden() 69 .that(mDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden() 72 assertWithMessage("isApplicationHidden(%s, %s)", ADMIN_RECEIVER_COMPONENT, PACKAGE_TO_HIDE) in testSetApplicationHidden() 74 .isApplicationHidden(ADMIN_RECEIVER_COMPONENT, PACKAGE_TO_HIDE)) in testSetApplicationHidden() 77 assertWithMessage("setApplicationHidden(%s, %s, false)", ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden() 79 .that(mDevicePolicyManager.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, in testSetApplicationHidden() 82 assertWithMessage("isApplicationHidden(%s, %s)", ADMIN_RECEIVER_COMPONENT, PACKAGE_TO_HIDE) in testSetApplicationHidden() 84 .isApplicationHidden(ADMIN_RECEIVER_COMPONENT, PACKAGE_TO_HIDE)) in testSetApplicationHidden() 90 assertWithMessage("setApplicationHidden(%s, %s, true)", ADMIN_RECEIVER_COMPONENT, in testCannotHideActiveAdmin() [all …]
|
D | DelegatedCertInstallerHelper.java | 42 assertTrue(mDevicePolicyManager.getDelegatePackages(ADMIN_RECEIVER_COMPONENT, in testManualSetCertInstallerDelegate() 44 assertTrue(mDevicePolicyManager.getDelegatePackages(ADMIN_RECEIVER_COMPONENT, in testManualSetCertInstallerDelegate() 50 assertFalse(mDevicePolicyManager.getDelegatePackages(ADMIN_RECEIVER_COMPONENT, in testManualClearCertInstallerDelegate() 52 assertFalse(mDevicePolicyManager.getDelegatePackages(ADMIN_RECEIVER_COMPONENT, in testManualClearCertInstallerDelegate() 57 KeyGenerationUtils.generateRsaKey(mDevicePolicyManager, ADMIN_RECEIVER_COMPONENT, in testManualGenerateKeyAndGrantAccess() 59 assertTrue(mDevicePolicyManager.grantKeyPairToApp(ADMIN_RECEIVER_COMPONENT, in testManualGenerateKeyAndGrantAccess() 64 assertTrue(mDevicePolicyManager.revokeKeyPairFromApp(ADMIN_RECEIVER_COMPONENT, in testManualRemoveKeyGrant() 70 .removeKeyPair(ADMIN_RECEIVER_COMPONENT, PRE_SELECTED_ALIAS)); in testManualClearGeneratedKey()
|
D | AffiliationTest.java | 19 import static com.android.cts.deviceandprofileowner.BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT; 72 mDevicePolicyManager.setLockTaskPackages(ADMIN_RECEIVER_COMPONENT, packages); in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated() 74 mDevicePolicyManager.getLockTaskPackages(ADMIN_RECEIVER_COMPONENT)); in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated() 79 mDevicePolicyManager.getAffiliationIds(ADMIN_RECEIVER_COMPONENT); in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated() 89 mDevicePolicyManager.getLockTaskPackages(ADMIN_RECEIVER_COMPONENT).length); in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated() 92 mDevicePolicyManager.setAffiliationIds(ADMIN_RECEIVER_COMPONENT, in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated() 98 mDevicePolicyManager.setAffiliationIds(ADMIN_RECEIVER_COMPONENT, ids); in setAffiliationIds() 99 assertEquals(ids, mDevicePolicyManager.getAffiliationIds(ADMIN_RECEIVER_COMPONENT)); in setAffiliationIds() 104 mDevicePolicyManager.setLockTaskPackages(ADMIN_RECEIVER_COMPONENT, new String[0]); in checkLockTaskMethodsThrow() 109 mDevicePolicyManager.getLockTaskPackages(ADMIN_RECEIVER_COMPONENT); in checkLockTaskMethodsThrow()
|
D | UnavailableSecureLockScreenTest.java | 43 … assertFalse(mDevicePolicyManager.setResetPasswordToken(ADMIN_RECEIVER_COMPONENT, TOKEN)); in testResetWithTokenAndPasswordSufficiency() 44 assertFalse(mDevicePolicyManager.resetPasswordWithToken(ADMIN_RECEIVER_COMPONENT, in testResetWithTokenAndPasswordSufficiency() 49 ADMIN_RECEIVER_COMPONENT, DevicePolicyManager.PASSWORD_QUALITY_SOMETHING); in testResetWithTokenAndPasswordSufficiency() 56 ADMIN_RECEIVER_COMPONENT, DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED); in testResetWithTokenAndPasswordSufficiency() 61 mDevicePolicyManager.clearResetPasswordToken(ADMIN_RECEIVER_COMPONENT); in testResetWithTokenAndPasswordSufficiency() 63 ADMIN_RECEIVER_COMPONENT, DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED); in testResetWithTokenAndPasswordSufficiency()
|
D | OrgOwnedProfileOwnerParentTest.java | 23 import static com.android.cts.deviceandprofileowner.BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT; 58 devicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in setUp() 61 assertTrue(devicePolicyManager.isAdminActive(ADMIN_RECEIVER_COMPONENT)); in setUp() 63 devicePolicyManager.isProfileOwnerApp(ADMIN_RECEIVER_COMPONENT.getPackageName())); in setUp() 64 assertTrue(devicePolicyManager.isManagedProfile(ADMIN_RECEIVER_COMPONENT)); in setUp() 122 mParentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in testAddGetAndClearUserRestriction_onParent() 125 ADMIN_RECEIVER_COMPONENT); in testAddGetAndClearUserRestriction_onParent() 128 mParentDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in testAddGetAndClearUserRestriction_onParent() 130 restrictions = mParentDevicePolicyManager.getUserRestrictions(ADMIN_RECEIVER_COMPONENT); in testAddGetAndClearUserRestriction_onParent() 143 () -> mParentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testUnableToAddBaseUserRestriction() [all …]
|
D | UserRestrictionsParentTest.java | 19 import static com.android.cts.deviceandprofileowner.BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT; 105 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in testAddUserRestrictionDisallowConfigDateTime_onParent() 108 parentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testAddUserRestrictionDisallowConfigDateTime_onParent() 130 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in testAddUserRestrictionDisallowAddUser_onParent() 133 parentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testAddUserRestrictionDisallowAddUser_onParent() 143 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in testClearUserRestrictionDisallowAddUser() 145 parentDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testClearUserRestrictionDisallowAddUser() 151 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in testAddUserRestrictionCameraDisabled_onParent() 152 parentDevicePolicyManager.setCameraDisabled(ADMIN_RECEIVER_COMPONENT, true); in testAddUserRestrictionCameraDisabled_onParent() 154 parentDevicePolicyManager.getCameraDisabled(ADMIN_RECEIVER_COMPONENT); in testAddUserRestrictionCameraDisabled_onParent() [all …]
|
D | DevicePolicyLoggingParentTest.java | 31 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in setUp() 35 mParentDevicePolicyManager.setCameraDisabled(ADMIN_RECEIVER_COMPONENT, true); in testCameraDisabledLogged() 36 mParentDevicePolicyManager.setCameraDisabled(ADMIN_RECEIVER_COMPONENT, false); in testCameraDisabledLogged() 40 mParentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testUserRestrictionLogged() 42 mParentDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testUserRestrictionLogged()
|
D | DelegatedCertInstallerTest.java | 113 mDevicePolicyManager.uninstallCaCert(ADMIN_RECEIVER_COMPONENT, in tearDown() 117 mDevicePolicyManager.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in tearDown() 128 mDevicePolicyManager.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, in testCaCertsOperations() 131 mDevicePolicyManager.getCertInstallerPackage(ADMIN_RECEIVER_COMPONENT)); in testCaCertsOperations() 140 ADMIN_RECEIVER_COMPONENT, cert)); in testCaCertsOperations() 155 ADMIN_RECEIVER_COMPONENT, cert)); in testCaCertsOperations() 163 mDevicePolicyManager.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in testCaCertsOperations() 173 mDevicePolicyManager.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, null); in testInstallKeyPair() 180 mDevicePolicyManager.setCertInstallerPackage(ADMIN_RECEIVER_COMPONENT, in testInstallKeyPair() 183 mDevicePolicyManager.getCertInstallerPackage(ADMIN_RECEIVER_COMPONENT)); in testInstallKeyPair() [all …]
|
D | AccessibilityServicesTest.java | 32 mDevicePolicyManager.setPermittedAccessibilityServices(ADMIN_RECEIVER_COMPONENT, null); in testPermittedAccessibilityServices() 34 getPermittedAccessibilityServices(ADMIN_RECEIVER_COMPONENT)) in testPermittedAccessibilityServices() 38 mDevicePolicyManager.setPermittedAccessibilityServices(ADMIN_RECEIVER_COMPONENT, in testPermittedAccessibilityServices() 41 getPermittedAccessibilityServices(ADMIN_RECEIVER_COMPONENT)) in testPermittedAccessibilityServices() 46 mDevicePolicyManager.setPermittedAccessibilityServices(ADMIN_RECEIVER_COMPONENT, packages); in testPermittedAccessibilityServices() 48 getPermittedAccessibilityServices(ADMIN_RECEIVER_COMPONENT)) in testPermittedAccessibilityServices()
|
D | AlwaysOnVpnMultiStageTest.java | 60 mDevicePolicyManager.getAlwaysOnVpnLockdownWhitelist(ADMIN_RECEIVER_COMPONENT); in testAlwaysOnSetAfterReboot() 62 mDevicePolicyManager.isAlwaysOnVpnLockdownEnabled(ADMIN_RECEIVER_COMPONENT)); in testAlwaysOnSetAfterReboot() 71 ADMIN_RECEIVER_COMPONENT)); in testNetworkBlocked() 90 if (mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT) == null) { in testAlwaysOnVpnDisabled() 97 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testAlwaysOnVpnDisabled() 102 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testSetNonExistingPackage() 106 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, in testSetNonExistingPackage() 113 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testSetNonExistingPackage() 117 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, null, false); in testCleanup()
|
D | StorageEncryptionTest.java | 40 private static final ComponentName ADMIN_RECEIVER_COMPONENT = field in StorageEncryptionTest 41 BaseDeviceAdminTest.ADMIN_RECEIVER_COMPONENT; 63 assertThat(mDevicePolicyManager.setStorageEncryption(ADMIN_RECEIVER_COMPONENT, true)) in testSetStorageEncryption_enabled() 66 assertThat(mDevicePolicyManager.getStorageEncryption(ADMIN_RECEIVER_COMPONENT)) in testSetStorageEncryption_enabled() 74 assertThat(mDevicePolicyManager.setStorageEncryption(ADMIN_RECEIVER_COMPONENT, false)) in testSetStorageEncryption_disabled() 77 assertThat(mDevicePolicyManager.getStorageEncryption(ADMIN_RECEIVER_COMPONENT)).isFalse(); in testSetStorageEncryption_disabled()
|
D | AudioRestrictionTest.java | 44 return mDevicePolicyManager.isMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT); 69 mDevicePolicyManager.isMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT); in testDisallowAdjustVolume_muted() 73 mDevicePolicyManager.setMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT, false); in testDisallowAdjustVolume_muted() 78 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume_muted() 83 mDevicePolicyManager.setMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT, false); in testDisallowAdjustVolume_muted() 85 assertTrue(mDevicePolicyManager.isMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT)); in testDisallowAdjustVolume_muted() 87 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume_muted() 89 mDevicePolicyManager.setMasterVolumeMuted(ADMIN_RECEIVER_COMPONENT, initVolumeMuted); in testDisallowAdjustVolume_muted() 112 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume() 121 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowAdjustVolume() [all …]
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | DevicePolicyManagerParentSupportTest.java | 52 ADMIN_RECEIVER_COMPONENT, passwordHistoryLength); in testSetAndGetPasswordHistoryLength_onParent() 54 mParentDevicePolicyManager.getPasswordHistoryLength(ADMIN_RECEIVER_COMPONENT); in testSetAndGetPasswordHistoryLength_onParent() 77 ADMIN_RECEIVER_COMPONENT, passwordExpirationTimeout); in testSetAndGetPasswordExpirationTimeout_onParent() 79 mParentDevicePolicyManager.getPasswordExpirationTimeout(ADMIN_RECEIVER_COMPONENT); in testSetAndGetPasswordExpirationTimeout_onParent() 92 ADMIN_RECEIVER_COMPONENT, passwordExpirationTimeout); in testGetPasswordExpiration_onParent() 94 mParentDevicePolicyManager.getPasswordExpiration(ADMIN_RECEIVER_COMPONENT); in testGetPasswordExpiration_onParent() 133 mParentDevicePolicyManager.setPasswordQuality(ADMIN_RECEIVER_COMPONENT, quality); in setPasswordQuality() 138 ADMIN_RECEIVER_COMPONENT, PASSWORD_QUALITY_UNSPECIFIED); in testIsActivePasswordSufficient_onParent_respectsProfileQualityWhenUnified() 141 ADMIN_RECEIVER_COMPONENT, PASSWORD_QUALITY_NUMERIC_COMPLEX); in testIsActivePasswordSufficient_onParent_respectsProfileQualityWhenUnified() 146 ADMIN_RECEIVER_COMPONENT, PASSWORD_QUALITY_UNSPECIFIED); in testIsActivePasswordSufficient_onParent_respectsProfileQualityWhenUnified() [all …]
|
D | OrganizationInfoTest.java | 27 int defaultColor = mDevicePolicyManager.getOrganizationColor(ADMIN_RECEIVER_COMPONENT); in testDefaultOrganizationColor() 33 int previousColor = mDevicePolicyManager.getOrganizationColor(ADMIN_RECEIVER_COMPONENT); in testSetOrganizationColor() 46 mDevicePolicyManager.setOrganizationColor(ADMIN_RECEIVER_COMPONENT, color); in testSetOrganizationColor() 48 mDevicePolicyManager.getOrganizationColor(ADMIN_RECEIVER_COMPONENT)); in testSetOrganizationColor() 52 mDevicePolicyManager.setOrganizationColor(ADMIN_RECEIVER_COMPONENT, previousColor); in testSetOrganizationColor() 72 ADMIN_RECEIVER_COMPONENT); in testDefaultOrganizationNameIsNull() 78 ADMIN_RECEIVER_COMPONENT); in testSetOrganizationName() 82 mDevicePolicyManager.setOrganizationName(ADMIN_RECEIVER_COMPONENT, name); in testSetOrganizationName() 84 ADMIN_RECEIVER_COMPONENT); in testSetOrganizationName() 87 mDevicePolicyManager.setOrganizationName(ADMIN_RECEIVER_COMPONENT, in testSetOrganizationName()
|
D | ResetPasswordWithTokenTest.java | 52 assertTrue(mDevicePolicyManager.resetPasswordWithToken(ADMIN_RECEIVER_COMPONENT, PASSWORD0, in testSetupWorkProfile() 59 assertTrue(mDevicePolicyManager.isResetPasswordTokenActive(ADMIN_RECEIVER_COMPONENT)); in testResetPasswordBeforeUnlock() 60 assertTrue(mDevicePolicyManager.resetPasswordWithToken(ADMIN_RECEIVER_COMPONENT, PASSWORD1, in testResetPasswordBeforeUnlock() 63 mDevicePolicyManager.setPasswordQuality(ADMIN_RECEIVER_COMPONENT, in testResetPasswordBeforeUnlock() 65 mDevicePolicyManager.setPasswordMinimumLength(ADMIN_RECEIVER_COMPONENT, 6); in testResetPasswordBeforeUnlock() 75 assertTrue(mDevicePolicyManager.isResetPasswordTokenActive(ADMIN_RECEIVER_COMPONENT)); in testClearPasswordBeforeUnlock() 76 assertTrue(mDevicePolicyManager.resetPasswordWithToken(ADMIN_RECEIVER_COMPONENT, null, in testClearPasswordBeforeUnlock() 94 assertTrue(mDevicePolicyManager.setResetPasswordToken(ADMIN_RECEIVER_COMPONENT, token)); in testSetResetPasswordToken() 95 assertTrue(mDevicePolicyManager.isResetPasswordTokenActive(ADMIN_RECEIVER_COMPONENT)); in testSetResetPasswordToken()
|
D | CrossProfileCalendarTest.java | 18 import static com.android.cts.managedprofile.BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT; 50 ADMIN_RECEIVER_COMPONENT); in testCrossProfileCalendarPackage() 54 ADMIN_RECEIVER_COMPONENT, new ArraySet<String>(Arrays.asList(MANAGED_PROFILE_PKG))); in testCrossProfileCalendarPackage() 56 ADMIN_RECEIVER_COMPONENT); in testCrossProfileCalendarPackage() 61 ADMIN_RECEIVER_COMPONENT, Collections.emptySet()); in testCrossProfileCalendarPackage() 63 ADMIN_RECEIVER_COMPONENT); in testCrossProfileCalendarPackage() 73 String adminPackage = ADMIN_RECEIVER_COMPONENT.getPackageName(); in isManagedProfile()
|