Home
last modified time | relevance | path

Searched refs:devicePolicyManager (Results 1 – 25 of 129) sorted by relevance

123456

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DPasswordTest.kt71 deviceState.dpc().devicePolicyManager() in <lambda>()
82 val originalTimeout = deviceState.dpc().devicePolicyManager() in <lambda>()
85 deviceState.dpc().devicePolicyManager() in <lambda>()
91 deviceState.dpc().devicePolicyManager() in <lambda>()
102 val originalTimeout = deviceState.dpc().devicePolicyManager() in <lambda>()
105 deviceState.dpc().devicePolicyManager() in <lambda>()
110 deviceState.dpc().devicePolicyManager() in <lambda>()
127 .devicePolicyManager().currentFailedPasswordAttempts in <lambda>()
135 deviceState.dpc().devicePolicyManager().currentFailedPasswordAttempts in <lambda>()
144 deviceState.dpc().devicePolicyManager() in <lambda>()
[all …]
DPackageSuspensionTest.java66 sDeviceState.dpc().devicePolicyManager().setPackagesSuspended( in isPackageSuspended_packageIsSuspended_returnsTrue()
70 sDeviceState.dpc().devicePolicyManager().isPackageSuspended(mAdmin, testApp) in isPackageSuspended_packageIsSuspended_returnsTrue()
73 sDeviceState.dpc().devicePolicyManager().setPackagesSuspended( in isPackageSuspended_packageIsSuspended_returnsTrue()
84 sDeviceState.dpc().devicePolicyManager().setPackagesSuspended( in isPackageSuspended_packageIsNotSuspended_returnFalse()
87 assertThat(sDeviceState.dpc().devicePolicyManager().isPackageSuspended(mAdmin, testApp)) in isPackageSuspended_packageIsNotSuspended_returnFalse()
98 assertThat(sDeviceState.dpc().devicePolicyManager().setPackagesSuspended( in setPackagesSuspended_suspendSuccessful()
101 assertThat(sDeviceState.dpc().devicePolicyManager().isPackageSuspended( in setPackagesSuspended_suspendSuccessful()
105 sDeviceState.dpc().devicePolicyManager().setPackagesSuspended( in setPackagesSuspended_suspendSuccessful()
119 sDeviceState.dpc().devicePolicyManager().setPackagesSuspended( in setPackagesSuspended_suspendAlreadySuspendedPackage_returnsEmpty()
122 assertThat(sDeviceState.dpc().devicePolicyManager().setPackagesSuspended( in setPackagesSuspended_suspendAlreadySuspendedPackage_returnsEmpty()
[all …]
DTimeTest.java69 boolean originalValue = sDeviceState.dpc().devicePolicyManager().getAutoTimeRequired(); in setAutoTimeRequired_false_setsAutoTimeNotRequired()
72 sDeviceState.dpc().devicePolicyManager().setAutoTimeRequired( in setAutoTimeRequired_false_setsAutoTimeNotRequired()
78 sDeviceState.dpc().devicePolicyManager().setAutoTimeRequired( in setAutoTimeRequired_false_setsAutoTimeNotRequired()
86 boolean originalValue = sDeviceState.dpc().devicePolicyManager().getAutoTimeRequired(); in setAutoTimeRequired_true_setsAutoTimeRequired()
89 sDeviceState.dpc().devicePolicyManager().setAutoTimeRequired( in setAutoTimeRequired_true_setsAutoTimeRequired()
94 sDeviceState.dpc().devicePolicyManager().setAutoTimeRequired( in setAutoTimeRequired_true_setsAutoTimeRequired()
104 () -> sDeviceState.dpc().devicePolicyManager().setAutoTimeRequired( in setAutoTimeRequired_notAllowed_throwsSecurityException()
112 boolean originalValue = sDeviceState.dpc().devicePolicyManager().getAutoTimeRequired(); in setAutoTimeRequired_true_policyDoesNotApply_autoTimeIsNotRequired()
115 sDeviceState.dpc().devicePolicyManager().setAutoTimeRequired( in setAutoTimeRequired_true_policyDoesNotApply_autoTimeIsNotRequired()
120 sDeviceState.dpc().devicePolicyManager().setAutoTimeRequired( in setAutoTimeRequired_true_policyDoesNotApply_autoTimeIsNotRequired()
[all …]
DResetPasswordWithTokenTest.java101 assertThat(sDeviceState.dpc().devicePolicyManager().isResetPasswordTokenActive( in setResetPasswordToken_validToken_passwordTokenSet()
105 …sDeviceState.dpc().devicePolicyManager().clearResetPasswordToken(sDeviceState.dpc().componentName(… in setResetPasswordToken_validToken_passwordTokenSet()
114 assertThat(sDeviceState.dpc().devicePolicyManager().resetPasswordWithToken( in resetPasswordWithToken_validPasswordAndToken_success()
125 assertThat(sDeviceState.dpc().devicePolicyManager().resetPasswordWithToken( in resetPasswordWithToken_badToken_failure()
133 sDeviceState.dpc().devicePolicyManager().resetPasswordWithToken( in resetPasswordWithToken_noPassword_deviceIsNotSecure()
145 sDeviceState.dpc().devicePolicyManager().resetPasswordWithToken( in resetPasswordWithToken_password_deviceIsSecure()
163 sDeviceState.dpc().devicePolicyManager().setPasswordQuality( in resetPasswordWithToken_passwordDoesNotSatisfyRestriction_failure()
174 assertThat(sDeviceState.dpc().devicePolicyManager().resetPasswordWithToken( in resetPasswordWithToken_passwordDoesNotSatisfyRestriction_failure()
190 sDeviceState.dpc().devicePolicyManager().setPasswordQuality( in resetPasswordWithToken_passwordSatisfiesRestriction_success()
201 assertThat(sDeviceState.dpc().devicePolicyManager().resetPasswordWithToken( in resetPasswordWithToken_passwordSatisfiesRestriction_success()
[all …]
DKeyManagementTest.java129 assertThat(sDeviceState.dpc().devicePolicyManager() in installKeyPair_validRsaKeyPair_success()
134 sDeviceState.dpc().devicePolicyManager() in installKeyPair_validRsaKeyPair_success()
143 () -> sDeviceState.dpc().devicePolicyManager().installKeyPair( in installKeyPair_nullPrivateKey_throwException()
152 () -> sDeviceState.dpc().devicePolicyManager().installKeyPair( in installKeyPair_nullCertificate_throwException()
161 () -> sDeviceState.dpc().devicePolicyManager().installKeyPair( in installKeyPair_nullAdminComponent_throwException()
171 sDeviceState.dpc().devicePolicyManager().installKeyPair( in installKeyPair_withAutomatedAccess_aliasIsGranted()
180 sDeviceState.dpc().devicePolicyManager().removeKeyPair( in installKeyPair_withAutomatedAccess_aliasIsGranted()
190 sDeviceState.dpc().devicePolicyManager().installKeyPair( in installKeyPair_withoutAutomatedAccess_aliasIsNotGranted()
199 sDeviceState.dpc().devicePolicyManager().removeKeyPair( in installKeyPair_withoutAutomatedAccess_aliasIsNotGranted()
209 sDeviceState.dpc().devicePolicyManager() in removeKeyPair_validRsaKeyPair_success()
[all …]
DKeyguardTest.java87 .devicePolicyManager().setKeyguardDisabledFeatures( in setKeyguardDisabledFeatures_disableSecureCamera_notPermitted_throwsException()
99 int originalFeatures = sDeviceState.dpc().devicePolicyManager().getKeyguardDisabledFeatures( in setKeyguardDisabledFeatures_disableSecureCamera_featureIsSet()
103 sDeviceState.dpc().devicePolicyManager().setKeyguardDisabledFeatures( in setKeyguardDisabledFeatures_disableSecureCamera_featureIsSet()
109 sDeviceState.dpc().devicePolicyManager().setKeyguardDisabledFeatures( in setKeyguardDisabledFeatures_disableSecureCamera_featureIsSet()
122 int originalFeatures = sDeviceState.dpc().devicePolicyManager().getKeyguardDisabledFeatures( in setKeyguardDisabledFeatures_disableSecureCamera_doesNotApply_featureIsNotSet()
126 sDeviceState.dpc().devicePolicyManager().setKeyguardDisabledFeatures( in setKeyguardDisabledFeatures_disableSecureCamera_doesNotApply_featureIsNotSet()
132 sDeviceState.dpc().devicePolicyManager().setKeyguardDisabledFeatures( in setKeyguardDisabledFeatures_disableSecureCamera_doesNotApply_featureIsNotSet()
146 .devicePolicyManager().setKeyguardDisabledFeatures( in setKeyguardDisabledFeatures_disableSecureNotifications_notPermitted_throwsException()
158 int originalFeatures = sDeviceState.dpc().devicePolicyManager().getKeyguardDisabledFeatures( in setKeyguardDisabledFeatures_disableSecureNotifications_featureIsSet()
162 sDeviceState.dpc().devicePolicyManager().setKeyguardDisabledFeatures( in setKeyguardDisabledFeatures_disableSecureNotifications_featureIsSet()
[all …]
DLockTaskTest.kt102 deviceState.dpc().devicePolicyManager().setLockTaskPackages( in <lambda>()
107 deviceState.dpc().devicePolicyManager() in <lambda>()
111 deviceState.dpc().devicePolicyManager() in <lambda>()
113 deviceState.dpc().devicePolicyManager().setLockTaskFeatures( in <lambda>()
129 deviceState.dpc().devicePolicyManager().setLockTaskPackages( in <lambda>()
152 deviceState.dpc().devicePolicyManager() in <lambda>()
154 deviceState.dpc().devicePolicyManager().setLockTaskFeatures( in <lambda>()
165 deviceState.dpc().devicePolicyManager() in <lambda>()
173 deviceState.dpc().devicePolicyManager() in <lambda>()
177 deviceState.dpc().devicePolicyManager() in <lambda>()
[all …]
DPermissionGrantTest.java188 int existingGrantState = sDeviceState.dpc().devicePolicyManager() in denyPermission_setsGrantState()
192 boolean wasSet = sDeviceState.dpc().devicePolicyManager() in denyPermission_setsGrantState()
200 .that(sDeviceState.dpc().devicePolicyManager().getPermissionGrantState( in denyPermission_setsGrantState()
205 sDeviceState.dpc().devicePolicyManager().setPermissionGrantState( in denyPermission_setsGrantState()
213 int existingGrantState = sDeviceState.dpc().devicePolicyManager() in grantPermission_setsGrantState()
218 boolean wasSet = sDeviceState.dpc().devicePolicyManager() in grantPermission_setsGrantState()
226 .that(sDeviceState.dpc().devicePolicyManager().getPermissionGrantState( in grantPermission_setsGrantState()
231 sDeviceState.dpc().devicePolicyManager().setPermissionGrantState( in grantPermission_setsGrantState()
241 int existingGrantState = sDeviceState.dpc().devicePolicyManager() in denyPermission_permissionIsDenied()
246 sDeviceState.dpc().devicePolicyManager().setPermissionGrantState( in denyPermission_permissionIsDenied()
[all …]
DMtePolicyTest.java65 int originalValue = sDeviceState.dpc().devicePolicyManager().getMtePolicy(); in setMtePolicy_MTE_ENABLED_applies()
68 sDeviceState.dpc().devicePolicyManager().setMtePolicy(MTE_ENABLED); in setMtePolicy_MTE_ENABLED_applies()
69 assertThat(sDeviceState.dpc().devicePolicyManager().getMtePolicy()) in setMtePolicy_MTE_ENABLED_applies()
72 sDeviceState.dpc().devicePolicyManager().setMtePolicy(originalValue); in setMtePolicy_MTE_ENABLED_applies()
81 int originalValue = sDeviceState.dpc().devicePolicyManager().getMtePolicy(); in setMtePolicy_MTE_ENABLED_logsEvent()
84 sDeviceState.dpc().devicePolicyManager().setMtePolicy(MTE_ENABLED); in setMtePolicy_MTE_ENABLED_logsEvent()
94 sDeviceState.dpc().devicePolicyManager().setMtePolicy(originalValue); in setMtePolicy_MTE_ENABLED_logsEvent()
103 int originalValue = sDeviceState.dpc().devicePolicyManager().getMtePolicy(); in setMtePolicy_MTE_DISABLED_applies()
106 sDeviceState.dpc().devicePolicyManager().setMtePolicy(MTE_DISABLED); in setMtePolicy_MTE_DISABLED_applies()
107 assertThat(sDeviceState.dpc().devicePolicyManager().getMtePolicy()) in setMtePolicy_MTE_DISABLED_applies()
[all …]
DApplicationHiddenTest.java108 sDeviceState.dpc().devicePolicyManager().setApplicationHidden( in isApplicationHidden_systemApp_isHidden_returnsTrue()
112 assertThat(sDeviceState.dpc().devicePolicyManager().isApplicationHidden( in isApplicationHidden_systemApp_isHidden_returnsTrue()
115 sDeviceState.dpc().devicePolicyManager().setApplicationHidden( in isApplicationHidden_systemApp_isHidden_returnsTrue()
124 sDeviceState.dpc().devicePolicyManager().setApplicationHidden( in isApplicationHidden_systemApp_isNotHidden_returnsFalse()
128 assertThat(sDeviceState.dpc().devicePolicyManager().isApplicationHidden( in isApplicationHidden_systemApp_isNotHidden_returnsFalse()
131 sDeviceState.dpc().devicePolicyManager().setApplicationHidden( in isApplicationHidden_systemApp_isNotHidden_returnsFalse()
141 assertThrows(Exception.class, () -> sDeviceState.dpc().devicePolicyManager() in isApplicationHidden_notSystemApp_throwsException()
150 assertThrows(Exception.class, () -> sDeviceState.dpc().devicePolicyManager() in isApplicationHidden_notPermitted_throwsException()
159 sDeviceState.dpc().devicePolicyManager().setApplicationHidden( in isApplicationHidden_notSystemApp_isHidden_returnsTrue()
163 assertThat(sDeviceState.dpc().devicePolicyManager().isApplicationHidden( in isApplicationHidden_notSystemApp_isHidden_returnsTrue()
[all …]
DDelegationScopesTest.java87 sDeviceState.dpc().devicePolicyManager().setDelegatedScopes( in getDelegatedScopes_returnsFromSetDelegatedScopes()
91 assertThat(sDeviceState.dpc().devicePolicyManager() in getDelegatedScopes_returnsFromSetDelegatedScopes()
106 sDeviceState.dpc().devicePolicyManager().setDelegatedScopes( in getDelegatedScopes_fromApp_returnsFromSetDelegatedScopes()
111 assertThat(testApp.devicePolicyManager().getDelegatedScopes( in getDelegatedScopes_fromApp_returnsFromSetDelegatedScopes()
124 sDeviceState.dpc().devicePolicyManager().setDelegatedScopes( in getDelegatedScopes_fromApp_passComponentName_throwsException()
130 testApp.devicePolicyManager().getDelegatedScopes( in getDelegatedScopes_fromApp_passComponentName_throwsException()
143 sDeviceState.dpc().devicePolicyManager().setDelegatedScopes( in getDelegatedScopes_fromApp_differentPackage_throwsException()
147 sDeviceState.dpc().devicePolicyManager().setDelegatedScopes( in getDelegatedScopes_fromApp_differentPackage_throwsException()
153 testApp.devicePolicyManager().getDelegatedScopes( in getDelegatedScopes_fromApp_differentPackage_throwsException()
166 sDeviceState.dpc().devicePolicyManager().setDelegatedScopes( in setDelegatedScopes_invalidAdmin_throwsSecurityException()
[all …]
DApplicationRestrictionsTest.java86 sDeviceState.dpc().devicePolicyManager() in setApplicationRestrictions_applicationRestrictionsAreSet()
93 sDeviceState.dpc().devicePolicyManager() in setApplicationRestrictions_applicationRestrictionsAreSet()
102 sDeviceState.dpc().devicePolicyManager().setApplicationRestrictions( in setApplicationRestrictions_applicationRestrictionsAreSet()
113 sDeviceState.dpc().devicePolicyManager() in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions()
120 sDeviceState.dpc().devicePolicyManager() in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions()
124 sDeviceState.dpc().devicePolicyManager() in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions()
133 sDeviceState.dpc().devicePolicyManager().setApplicationRestrictions( in setApplicationRestrictions_applicationRestrictionsAlreadySet_setsNewRestrictions()
147 sDeviceState.dpc().devicePolicyManager() in getApplicationRestrictions_applicationRestrictionsAreSet_returnsApplicationRestrictions()
155 sDeviceState.dpc().devicePolicyManager() in getApplicationRestrictions_applicationRestrictionsAreSet_returnsApplicationRestrictions()
164 .devicePolicyManager() in getApplicationRestrictions_applicationRestrictionsAreSet_returnsApplicationRestrictions()
[all …]
DScreenCaptureDisabledTest.java101 sDeviceState.dpc().devicePolicyManager() in setScreenCaptureDisabled_false_works()
113 sDeviceState.dpc().devicePolicyManager().setScreenCaptureDisabled( in setScreenCaptureDisabled_false_checkWithDPC_works()
116 assertThat(sDeviceState.dpc().devicePolicyManager().getScreenCaptureDisabled( in setScreenCaptureDisabled_false_checkWithDPC_works()
119 sDeviceState.dpc().devicePolicyManager().setScreenCaptureDisabled( in setScreenCaptureDisabled_false_checkWithDPC_works()
129 () -> sDeviceState.dpc().devicePolicyManager() in setScreenCaptureDisabled_false_throwsSecurityException()
139 sDeviceState.dpc().devicePolicyManager().setScreenCaptureDisabled( in setScreenCaptureDisabled_true_works()
145 sDeviceState.dpc().devicePolicyManager().setScreenCaptureDisabled( in setScreenCaptureDisabled_true_works()
156 sDeviceState.dpc().devicePolicyManager().setScreenCaptureDisabled( in setScreenCaptureDisabled_true_checkWithDPC_works()
159 assertThat(sDeviceState.dpc().devicePolicyManager().getScreenCaptureDisabled( in setScreenCaptureDisabled_true_checkWithDPC_works()
162 sDeviceState.dpc().devicePolicyManager().setScreenCaptureDisabled( in setScreenCaptureDisabled_true_checkWithDPC_works()
[all …]
DTrustAgentInfoTest.java74 sDeviceState.dpc().devicePolicyManager().setTrustAgentConfiguration( in setTrustAgentConfiguration_isSet()
78 sDeviceState.dpc().devicePolicyManager().getTrustAgentConfiguration( in setTrustAgentConfiguration_isSet()
85 sDeviceState.dpc().devicePolicyManager().setTrustAgentConfiguration( in setTrustAgentConfiguration_isSet()
97 sDeviceState.dpc().devicePolicyManager().setTrustAgentConfiguration( in setTrustAgentConfiguration_componentNotConfigured_isNotSet()
104 sDeviceState.dpc().devicePolicyManager().setTrustAgentConfiguration( in setTrustAgentConfiguration_componentNotConfigured_isNotSet()
116 sDeviceState.dpc().devicePolicyManager().setTrustAgentConfiguration( in setTrustAgentConfiguration_trustAgentIsEnabled_isNotSet()
125 sDeviceState.dpc().devicePolicyManager().setTrustAgentConfiguration( in setTrustAgentConfiguration_trustAgentIsEnabled_isNotSet()
137 sDeviceState.dpc().devicePolicyManager().setTrustAgentConfiguration( in setTrustAgentConfiguration_trustAgentIsDisabled_isSet()
140 sDeviceState.dpc().devicePolicyManager().setKeyguardDisabledFeatures( in setTrustAgentConfiguration_trustAgentIsDisabled_isSet()
148 sDeviceState.dpc().devicePolicyManager().setKeyguardDisabledFeatures( in setTrustAgentConfiguration_trustAgentIsDisabled_isSet()
[all …]
DWifiTest.java127 () -> sDeviceState.dpc().devicePolicyManager().addUserRestriction( in setUserRestriction_disallowConfigWifi_cannotSet_throwsException()
136 sDeviceState.dpc().devicePolicyManager().addUserRestriction( in setUserRestriction_disallowConfigWifi_isSet()
143 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in setUserRestriction_disallowConfigWifi_isSet()
153 sDeviceState.dpc().devicePolicyManager().addUserRestriction( in setUserRestriction_disallowConfigWifi_isNotSet()
160 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in setUserRestriction_disallowConfigWifi_isNotSet()
197 () -> sDeviceState.dpc().devicePolicyManager().addUserRestriction( in setUserRestriction_disallowChangeWifiState_cannotSet_throwsException()
206 sDeviceState.dpc().devicePolicyManager().addUserRestriction( in setUserRestriction_disallowChangeWifiState_isSet()
212 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in setUserRestriction_disallowChangeWifiState_isSet()
222 sDeviceState.dpc().devicePolicyManager().addUserRestriction( in setUserRestriction_disallowChangeWifiState_isNotSet()
229 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in setUserRestriction_disallowChangeWifiState_isNotSet()
[all …]
DNetworkLoggingTest.kt60 deviceState.dpc().devicePolicyManager() in <lambda>()
73 deviceState.dpc().devicePolicyManager().setNetworkLoggingEnabled( in <lambda>()
77 deviceState.dpc().devicePolicyManager().isNetworkLoggingEnabled( in <lambda>()
82 deviceState.dpc().devicePolicyManager().setNetworkLoggingEnabled( in <lambda>()
94 deviceState.dpc().devicePolicyManager().setNetworkLoggingEnabled( in <lambda>()
98 deviceState.dpc().devicePolicyManager().isNetworkLoggingEnabled( in <lambda>()
113 deviceState.dpc().devicePolicyManager().setNetworkLoggingEnabled( in <lambda>()
124 deviceState.dpc().devicePolicyManager().retrieveNetworkLogs( in <lambda>()
129 deviceState.dpc().devicePolicyManager().setNetworkLoggingEnabled( in <lambda>()
178 deviceState.dpc().devicePolicyManager() in <lambda>()
[all …]
DPasswordComplexityTest.java112 () -> sDeviceState.dpc().devicePolicyManager().getRequiredPasswordComplexity()); in getRequiredPasswordComplexity_notPermitted_throwsException()
120 () -> sDeviceState.dpc().devicePolicyManager() in setRequiredPasswordComplexity_notPermitted_throwsException()
131 int originalRequiredPasswordComplexity = sDeviceState.dpc().devicePolicyManager() in setRequiredPasswordComplexity_requiredComplexityIsSet()
134 sDeviceState.dpc().devicePolicyManager() in setRequiredPasswordComplexity_requiredComplexityIsSet()
137 assertThat(sDeviceState.dpc().devicePolicyManager() in setRequiredPasswordComplexity_requiredComplexityIsSet()
140 sDeviceState.dpc().devicePolicyManager().setRequiredPasswordComplexity( in setRequiredPasswordComplexity_requiredComplexityIsSet()
150 sDeviceState.dpc().devicePolicyManager().getPasswordComplexity()); in getPasswordComplexity_noPermission_throwsSecurityException()
157 assertThat(sDeviceState.dpc().devicePolicyManager().getPasswordComplexity()) in getPasswordComplexity_noPassword_returnsPasswordComplexityNone()
168 assertThat(sDeviceState.dpc().devicePolicyManager().getPasswordComplexity()) in getPasswordComplexity_patternLength4_returnsPasswordComplexityLow()
182 assertThat(sDeviceState.dpc().devicePolicyManager().getPasswordComplexity()) in getPasswordComplexity_patternLength8_returnsPasswordComplexityLow()
[all …]
DDeviceManagementCoexistenceTest.java167 boolean originalValue = sDeviceState.dpc().devicePolicyManager() in getDevicePolicyState_autoTimezoneSet_returnsPolicy()
170 sDeviceState.dpc().devicePolicyManager().setAutoTimeZoneEnabled( in getDevicePolicyState_autoTimezoneSet_returnsPolicy()
179 sDeviceState.dpc().devicePolicyManager().setAutoTimeZoneEnabled( in getDevicePolicyState_autoTimezoneSet_returnsPolicy()
190 int existingGrantState = sDeviceState.dpc().devicePolicyManager() in getDevicePolicyState_permissionGrantStateSet_returnsPolicy()
194 sDeviceState.dpc().devicePolicyManager() in getDevicePolicyState_permissionGrantStateSet_returnsPolicy()
209 sDeviceState.dpc().devicePolicyManager().setPermissionGrantState( in getDevicePolicyState_permissionGrantStateSet_returnsPolicy()
222 sDeviceState.dpc().devicePolicyManager() in getDevicePolicyState_appRestrictionsSet_returnsPolicy()
228 sDeviceState.dpc().devicePolicyManager() in getDevicePolicyState_appRestrictionsSet_returnsPolicy()
250 sDeviceState.dpc().devicePolicyManager().setApplicationRestrictions( in getDevicePolicyState_appRestrictionsSet_returnsPolicy()
265 sDeviceState.dpc().devicePolicyManager().setResetPasswordToken( in getDevicePolicyState_resetPasswordTokenSet_returnsPolicy()
[all …]
DStorageEncryptionTest.java49 assertThat(sDeviceState.dpc().devicePolicyManager().setStorageEncryption( in setStorageEncryption_runOnSystemUser_enable_isEnabled()
53 assertThat(sDeviceState.dpc().devicePolicyManager().getStorageEncryption( in setStorageEncryption_runOnSystemUser_enable_isEnabled()
56 sDeviceState.dpc().devicePolicyManager().setStorageEncryption( in setStorageEncryption_runOnSystemUser_enable_isEnabled()
65 assertThat(sDeviceState.dpc().devicePolicyManager().setStorageEncryption( in setStorageEncryption_runOnNonSystemUser_enable_isNotSupported()
69 assertThat(sDeviceState.dpc().devicePolicyManager().getStorageEncryption( in setStorageEncryption_runOnNonSystemUser_enable_isNotSupported()
72 sDeviceState.dpc().devicePolicyManager().setStorageEncryption( in setStorageEncryption_runOnNonSystemUser_enable_isNotSupported()
81 assertThat(sDeviceState.dpc().devicePolicyManager().setStorageEncryption( in setStorageEncryption_runOnSystemUser_disable_isDisabled()
85 assertThat(sDeviceState.dpc().devicePolicyManager().getStorageEncryption( in setStorageEncryption_runOnSystemUser_disable_isDisabled()
93 assertThat(sDeviceState.dpc().devicePolicyManager().getStorageEncryption( in setStorageEncryption_runOnSystemUser_isNotSupported_isDisabled()
100 assertThat(sDeviceState.dpc().devicePolicyManager().setStorageEncryption( in setStorageEncryption_runOnNonSystemUser_disable_isNotSupported()
[all …]
DPreferentialNetworkServiceTest.java166 sDeviceState.dpc().devicePolicyManager().setPreferentialNetworkServiceEnabled(true); in setPreferentialNetworkServiceEnabled_enableService_issueRequest()
171 sDeviceState.dpc().devicePolicyManager().setPreferentialNetworkServiceEnabled(false); in setPreferentialNetworkServiceEnabled_enableService_issueRequest()
202 sDeviceState.dpc().devicePolicyManager().setPreferentialNetworkServiceEnabled(false); in setPreferentialNetworkServiceEnabled_disableService_noIssueRequest()
207 sDeviceState.dpc().devicePolicyManager().setPreferentialNetworkServiceEnabled(false); in setPreferentialNetworkServiceEnabled_disableService_noIssueRequest()
242 sDeviceState.dpc().devicePolicyManager().setPreferentialNetworkServiceConfigs( in setPreferentialNetworkServiceEnabled_blockingNonEnterprise_noAccess()
251 sDeviceState.dpc().devicePolicyManager().setPreferentialNetworkServiceConfigs( in setPreferentialNetworkServiceEnabled_blockingNonEnterprise_noAccess()
294 () -> sDeviceState.dpc().devicePolicyManager() in setPreferentialNetworkServiceEnabled_enableService_throwsSecurityException()
301 () -> sDeviceState.dpc().devicePolicyManager() in isPreferentialNetworkServiceEnabled_default_throwsSecurityException()
307 assertThat(sDeviceState.dpc().devicePolicyManager().isPreferentialNetworkServiceEnabled()) in isPreferentialNetworkServiceEnabled_default_isTrue()
314 sDeviceState.dpc().devicePolicyManager().setPreferentialNetworkServiceConfigs( in setPreferentialNetworkServiceConfigs_enabled_isSet()
[all …]
DCameraTest.java102 sDeviceState.dpc().devicePolicyManager() in setCameraDisabledTrue_policyDoesNotApply_cameraNotDisabled()
108 sDeviceState.dpc().devicePolicyManager() in setCameraDisabledTrue_policyDoesNotApply_cameraNotDisabled()
118 sDeviceState.dpc().devicePolicyManager() in setCameraDisabledTrue_cameraDisabledLocally()
124 sDeviceState.dpc().devicePolicyManager() in setCameraDisabledTrue_cameraDisabledLocally()
133 sDeviceState.dpc().devicePolicyManager() in setCameraDisabledFalse_cameraEnabledLocally()
145 sDeviceState.dpc().devicePolicyManager() in setCameraDisabledTrue_cameraDisabledAtDPC()
148 assertThat(sDeviceState.dpc().devicePolicyManager() in setCameraDisabledTrue_cameraDisabledAtDPC()
151 sDeviceState.dpc().devicePolicyManager() in setCameraDisabledTrue_cameraDisabledAtDPC()
160 sDeviceState.dpc().devicePolicyManager() in setCameraDisabledFalse_cameraEnabledAtDPC()
163 assertThat(sDeviceState.dpc().devicePolicyManager() in setCameraDisabledFalse_cameraEnabledAtDPC()
[all …]
DTelephonyTest.java93 () -> sDeviceState.dpc().devicePolicyManager().addUserRestriction( in setUserRestriction_disallowConfigCellBroadcasts_cannotSet_throwsException()
102 sDeviceState.dpc().devicePolicyManager().addUserRestriction( in setUserRestriction_disallowConfigCellBroadcasts_isSet()
108 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in setUserRestriction_disallowConfigCellBroadcasts_isSet()
118 sDeviceState.dpc().devicePolicyManager().addUserRestriction( in setUserRestriction_disallowConfigCellBroadcasts_isNotSet()
125 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in setUserRestriction_disallowConfigCellBroadcasts_isNotSet()
153 () -> sDeviceState.dpc().devicePolicyManager().addUserRestriction( in setUserRestriction_disallowConfigMobileNetworks_cannotSet_throwsException()
162 sDeviceState.dpc().devicePolicyManager().addUserRestriction( in setUserRestriction_disallowConfigMobileNetworks_isSet()
168 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in setUserRestriction_disallowConfigMobileNetworks_isSet()
178 sDeviceState.dpc().devicePolicyManager().addUserRestriction( in setUserRestriction_disallowConfigMobileNetworks_isNotSet()
185 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in setUserRestriction_disallowConfigMobileNetworks_isNotSet()
[all …]
DAccountManagementTest.java108 assertThat(sDeviceState.dpc().devicePolicyManager().getAccountTypesWithManagementDisabled()) in getAccountTypesWithManagementDisabled_emptyByDefault()
117 sDeviceState.dpc().devicePolicyManager().setAccountManagementDisabled( in setAccountTypesWithManagementDisabled_invalidAdmin_throwsException()
129 sDeviceState.dpc().devicePolicyManager().setAccountManagementDisabled( in setAccountManagementDisabled_disableAccountType_works()
134 assertThat(sDeviceState.dpc().devicePolicyManager() in setAccountManagementDisabled_disableAccountType_works()
138 sDeviceState.dpc().devicePolicyManager().setAccountManagementDisabled( in setAccountManagementDisabled_disableAccountType_works()
147 sDeviceState.dpc().devicePolicyManager().setAccountManagementDisabled( in setAccountManagementDisabled_addSameAccountTypeTwice_presentOnlyOnce()
151 sDeviceState.dpc().devicePolicyManager().setAccountManagementDisabled( in setAccountManagementDisabled_addSameAccountTypeTwice_presentOnlyOnce()
157 Arrays.stream(sDeviceState.dpc().devicePolicyManager() in setAccountManagementDisabled_addSameAccountTypeTwice_presentOnlyOnce()
162 sDeviceState.dpc().devicePolicyManager().setAccountManagementDisabled( in setAccountManagementDisabled_addSameAccountTypeTwice_presentOnlyOnce()
171 sDeviceState.dpc().devicePolicyManager().setAccountManagementDisabled( in setAccountManagementDisabled_disableThenEnable_notDisabled()
[all …]
DFactoryResetTest.java51 () -> sDeviceState.dpc().devicePolicyManager().addUserRestriction( in addUserRestriction_disallowFactoryReset_cannotSet_throwsException()
60 sDeviceState.dpc().devicePolicyManager().addUserRestriction( in addUserRestriction_disallowFactoryReset_isSet()
66 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in addUserRestriction_disallowFactoryReset_isSet()
76 sDeviceState.dpc().devicePolicyManager().addUserRestriction( in clearUserRestriction_disallowFactoryReset_isNotSet()
80 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in clearUserRestriction_disallowFactoryReset_isNotSet()
86 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in clearUserRestriction_disallowFactoryReset_isNotSet()
100 sDeviceState.dpc().devicePolicyManager().addUserRestrictionGlobally( in addUserRestrictionGlobally_disallowFactoryReset_isSet()
106 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in addUserRestrictionGlobally_disallowFactoryReset_isSet()
120 sDeviceState.dpc().devicePolicyManager().addUserRestrictionGlobally( in clearGlobalUserRestriction_disallowFactoryReset_isNotSet()
123 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in clearGlobalUserRestriction_disallowFactoryReset_isNotSet()
[all …]
DFunTest.java51 () -> sDeviceState.dpc().devicePolicyManager().addUserRestriction( in addUserRestriction_disallowFun_cannotSet_throwsException()
60 sDeviceState.dpc().devicePolicyManager().addUserRestriction( in addUserRestriction_disallowFun_isSet()
66 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in addUserRestriction_disallowFun_isSet()
76 sDeviceState.dpc().devicePolicyManager().addUserRestriction( in clearUserRestriction_disallowFun_isNotSet()
80 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in clearUserRestriction_disallowFun_isNotSet()
86 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in clearUserRestriction_disallowFun_isNotSet()
100 sDeviceState.dpc().devicePolicyManager().addUserRestrictionGlobally( in addUserRestrictionGlobally_disallowFun_isSet()
106 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in addUserRestrictionGlobally_disallowFun_isSet()
120 sDeviceState.dpc().devicePolicyManager().addUserRestrictionGlobally( in clearGlobalUserRestriction_disallowFun_isNotSet()
123 sDeviceState.dpc().devicePolicyManager().clearUserRestriction( in clearGlobalUserRestriction_disallowFun_isNotSet()
[all …]

123456