Home
last modified time | relevance | path

Searched refs:ADMIN_RECEIVER_COMPONENT (Results 1 – 25 of 71) sorted by relevance

123

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDevicePolicyLoggingTest.java52 ADMIN_RECEIVER_COMPONENT, KEYGUARD_DISABLE_FEATURES_NONE); in testSetKeyguardDisabledFeaturesLogged()
54 ADMIN_RECEIVER_COMPONENT, KEYGUARD_DISABLE_FINGERPRINT); in testSetKeyguardDisabledFeaturesLogged()
56 ADMIN_RECEIVER_COMPONENT, KEYGUARD_DISABLE_TRUST_AGENTS); in testSetKeyguardDisabledFeaturesLogged()
57 mDevicePolicyManager.setKeyguardDisabledFeatures(ADMIN_RECEIVER_COMPONENT, in testSetKeyguardDisabledFeaturesLogged()
63 ADMIN_RECEIVER_COMPONENT, KEYGUARD_DISABLE_SECURE_CAMERA); in testSetKeyguardDisabledSecureCameraLogged()
67 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testSetUserRestrictionLogged()
69 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testSetUserRestrictionLogged()
72 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testSetUserRestrictionLogged()
74 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testSetUserRestrictionLogged()
77 mDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testSetUserRestrictionLogged()
[all …]
DKeyguardDisabledFeaturesTest.java26 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 …]
DInputMethodsTest.java35 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 …]
DPasswordMinimumRestrictionsTest.java53 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 …]
DAlwaysOnVpnUnsupportedTest.java36 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()
DDelegatedCertInstallerHelper.java42 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()
DAffiliationTest.java19 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()
DUnavailableSecureLockScreenTest.java43 … 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()
DUserRestrictionsParentTest.java19 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 …]
DOrgOwnedProfileOwnerParentTest.java23 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()
121 mParentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in testAddGetAndClearUserRestriction_onParent()
124 ADMIN_RECEIVER_COMPONENT); in testAddGetAndClearUserRestriction_onParent()
127 mParentDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, restriction); in testAddGetAndClearUserRestriction_onParent()
129 restrictions = mParentDevicePolicyManager.getUserRestrictions(ADMIN_RECEIVER_COMPONENT); in testAddGetAndClearUserRestriction_onParent()
142 () -> mParentDevicePolicyManager.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testUnableToAddBaseUserRestriction()
[all …]
DDelegatedCertInstallerTest.java113 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 …]
DDevicePolicyLoggingParentTest.java31 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()
DAudioRestrictionTest.java43 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 …]
DAlwaysOnVpnMultiStageTest.java60 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()
DAlwaysOnVpnTest.java59 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in setUp()
65 mDevicePolicyManager.setAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT, null, false); in tearDown()
66 mDevicePolicyManager.setApplicationRestrictions(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, in tearDown()
73 assertNull(mDevicePolicyManager.getAlwaysOnVpnPackage(ADMIN_RECEIVER_COMPONENT)); in testAlwaysOnVpn()
83 ADMIN_RECEIVER_COMPONENT, UserManager.DISALLOW_CONFIG_VPN); in testDisallowConfigVpn()
88 mDevicePolicyManager.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowConfigVpn()
96 mDevicePolicyManager.setApplicationRestrictions(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, in testAllowedApps()
106 mDevicePolicyManager.setApplicationRestrictions(ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, in testDisallowedApps()
121 ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, restrictions); in testVpnLockdownUpdateAllowlist()
162 ADMIN_RECEIVER_COMPONENT, VPN_PACKAGE, restrictions); in testVpnLockdownAllowlistVpnComesUp()
[all …]
DGetPasswordExpirationTest.java31 ADMIN_RECEIVER_COMPONENT, testTimeout); in testGetPasswordExpiration()
35 mDevicePolicyManager.setPasswordExpirationTimeout(ADMIN_RECEIVER_COMPONENT, 0L); in testGetPasswordExpiration()
36 assertThat(mDevicePolicyManager.getPasswordExpiration(ADMIN_RECEIVER_COMPONENT)) in testGetPasswordExpiration()
42 ADMIN_RECEIVER_COMPONENT, TIMEOUT_RESET_TEST); in testGetPasswordExpirationUpdatedAfterPasswordReset_beforeReset()
54 ADMIN_RECEIVER_COMPONENT)) <= tolerance); in checkPasswordExpiration()
DCommonCriteriaModeTest.java23 assertFalse(mDevicePolicyManager.isCommonCriteriaModeEnabled(ADMIN_RECEIVER_COMPONENT)); in testSettingCommonCriteriaMode()
26 mDevicePolicyManager.setCommonCriteriaModeEnabled(ADMIN_RECEIVER_COMPONENT, true); in testSettingCommonCriteriaMode()
27 assertTrue(mDevicePolicyManager.isCommonCriteriaModeEnabled(ADMIN_RECEIVER_COMPONENT)); in testSettingCommonCriteriaMode()
30 mDevicePolicyManager.setCommonCriteriaModeEnabled(ADMIN_RECEIVER_COMPONENT, false); in testSettingCommonCriteriaMode()
DScreenCaptureDisabledTest.java35 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()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DDevicePolicyManagerParentSupportTest.java52 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 …]
DOrganizationInfoTest.java27 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()
DCrossProfileTest.java117 assertThat(mDevicePolicyManager.getCrossProfilePackages(ADMIN_RECEIVER_COMPONENT)) in testGetCrossProfilePackages_notSet_returnsEmpty()
123 ADMIN_RECEIVER_COMPONENT, TEST_CROSS_PROFILE_PACKAGES); in testGetCrossProfilePackages_whenSet_returnsEqual()
124 assertThat(mDevicePolicyManager.getCrossProfilePackages(ADMIN_RECEIVER_COMPONENT)) in testGetCrossProfilePackages_whenSet_returnsEqual()
132 mDevicePolicyManager.setCrossProfilePackages(ADMIN_RECEIVER_COMPONENT, packages1); in testGetCrossProfilePackages_whenSetTwice_returnsLatestNotConcatenated()
133 mDevicePolicyManager.setCrossProfilePackages(ADMIN_RECEIVER_COMPONENT, packages2); in testGetCrossProfilePackages_whenSetTwice_returnsLatestNotConcatenated()
135 assertThat(mDevicePolicyManager.getCrossProfilePackages(ADMIN_RECEIVER_COMPONENT)) in testGetCrossProfilePackages_whenSetTwice_returnsLatestNotConcatenated()
150 ADMIN_RECEIVER_COMPONENT, Sets.newHashSet("com.android.cts.testapps.testapp1")); in testSetCrossProfilePackages_noAsserts()
156 ADMIN_RECEIVER_COMPONENT, ALL_CROSS_PROFILE_PACKAGES); in testSetCrossProfilePackages_firstTime_doesNotResetAnyAppOps()
162 ADMIN_RECEIVER_COMPONENT, ALL_CROSS_PROFILE_PACKAGES); in testSetCrossProfilePackages_unchanged_doesNotResetAnyAppOps()
166 ADMIN_RECEIVER_COMPONENT, ALL_CROSS_PROFILE_PACKAGES); in testSetCrossProfilePackages_unchanged_doesNotResetAnyAppOps()
[all …]
DResetPasswordWithTokenTest.java52 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()
DCrossProfileCalendarTest.java18 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()
DBaseManagedProfileTest.java36 public static final ComponentName ADMIN_RECEIVER_COMPONENT = new ComponentName( field in BaseManagedProfileTest
52 mDevicePolicyManager.getParentProfileInstance(ADMIN_RECEIVER_COMPONENT); in setUp()
55 assertTrue(mDevicePolicyManager.isAdminActive(ADMIN_RECEIVER_COMPONENT)); in setUp()
57 ADMIN_RECEIVER_COMPONENT.getPackageName())); in setUp()
58 assertTrue(mDevicePolicyManager.isManagedProfile(ADMIN_RECEIVER_COMPONENT)); in setUp()
DCrossProfileUtils.java19 import static com.android.cts.managedprofile.BaseManagedProfileTest.ADMIN_RECEIVER_COMPONENT;
68 dpm.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, getIntentFilter(), in testAddParentCanAccessManagedFilters()
77 dpm.addCrossProfileIntentFilter(ADMIN_RECEIVER_COMPONENT, getIntentFilter(), in testAddManagedCanAccessParentFilters()
95 dpm.clearCrossProfileIntentFilters(ADMIN_RECEIVER_COMPONENT); in testRemoveAllFilters()
101 dpm.addUserRestriction(ADMIN_RECEIVER_COMPONENT, in testDisallowCrossProfileCopyPaste()
108 dpm.clearUserRestriction(ADMIN_RECEIVER_COMPONENT, in testAllowCrossProfileCopyPaste()
122 dpm.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, ri.activityInfo.packageName, true); in testDisableAllBrowsers()
130 dpm.setCrossProfilePackages(ADMIN_RECEIVER_COMPONENT, packages); in testSetCrossProfilePackages()

123