Home
last modified time | relevance | path

Searched refs:sLocalDevicePolicyManager (Results 1 – 16 of 16) sorted by relevance

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DApplicationExemptionsTest.java89 private static final DevicePolicyManager sLocalDevicePolicyManager = field in ApplicationExemptionsTest
116 sLocalDevicePolicyManager.setApplicationExemptions( in setApplicationExemptions_noPermission_throwsSecurityException()
130 sLocalDevicePolicyManager.setApplicationExemptions( in setApplicationExemptions_validExemptionSet_exemptionAppOpsGranted()
147 sLocalDevicePolicyManager.setApplicationExemptions( in setApplicationExemptions_emptyExemptionSet_unsetsAllExemptions()
151 sLocalDevicePolicyManager.setApplicationExemptions( in setApplicationExemptions_emptyExemptionSet_unsetsAllExemptions()
168 sLocalDevicePolicyManager.setApplicationExemptions( in setApplicationExemptions_invalidExemptionInSet_throwsIllegalArgumentException()
181 sLocalDevicePolicyManager.setApplicationExemptions( in setApplicationExemptions_invalidPackage_throwsNameNotFoundException()
192 sLocalDevicePolicyManager.getApplicationExemptions(sTestApp.packageName())); in getApplicationExemptions_noPermission_throwsSecurityException()
204 sLocalDevicePolicyManager.setApplicationExemptions( in getApplicationExemptions_validPackage_returnsExemptionsSet()
209 sLocalDevicePolicyManager.getApplicationExemptions(sTestApp.packageName()); in getApplicationExemptions_validPackage_returnsExemptionsSet()
[all …]
DClearApplicationDataTest.java65 private static final DevicePolicyManager sLocalDevicePolicyManager = field in ClearApplicationDataTest
79 sLocalDevicePolicyManager.clearApplicationUserData( in clearApplicationUserData_calledByProfileOwner_testPackage_isCleared()
99 sLocalDevicePolicyManager.clearApplicationUserData( in clearApplicationUserData_calledByDeviceOwner_testPackage_isCleared()
118 sLocalDevicePolicyManager.clearApplicationUserData( in clearApplicationUserData_calledByProfileOwner_activeAdmin_isNotCleared()
137 sLocalDevicePolicyManager.clearApplicationUserData( in clearApplicationUserData_calledByDeviceOwner_activeAdmin_isNotCleared()
157 sLocalDevicePolicyManager.clearApplicationUserData( in clearApplicationUserData_calledByProfileOwner_deviceProvisioning_isNotCleared()
176 sLocalDevicePolicyManager.clearApplicationUserData( in clearApplicationUserData_calledByDeviceOwner_deviceProvisioning_isNotCleared()
DPermitInputMethodsTest.java78 private static final DevicePolicyManager sLocalDevicePolicyManager = TestApis.context() field in PermitInputMethodsTest
115 assertThat(sLocalDevicePolicyManager.getPermittedInputMethods()).isNull(); in setPermittedInputMethods_allPermitted()
116 assertThat(sLocalDevicePolicyManager.getPermittedInputMethodsForCurrentUser()).isNull(); in setPermittedInputMethods_allPermitted()
163 assertThat(sLocalDevicePolicyManager.getPermittedInputMethods()).isNull(); in setPermittedInputMethods_policyDoesNotApply_isNotSet()
164 assertThat(sLocalDevicePolicyManager.getPermittedInputMethodsForCurrentUser()).isNull(); in setPermittedInputMethods_policyDoesNotApply_isNotSet()
186 assertThat(sLocalDevicePolicyManager.getPermittedInputMethods()) in setPermittedInputMethods_includesSetPlusSystem()
188 assertThat(sLocalDevicePolicyManager.getPermittedInputMethodsForCurrentUser()) in setPermittedInputMethods_includesSetPlusSystem()
303 sLocalDevicePolicyManager.triggerDevicePolicyEngineMigration(true); in setPermittedInputMethods_policyMigration_works()
313 assertThat(sLocalDevicePolicyManager.getPermittedInputMethods()) in setPermittedInputMethods_policyMigration_works()
315 assertThat(sLocalDevicePolicyManager.getPermittedInputMethodsForCurrentUser()) in setPermittedInputMethods_policyMigration_works()
DSystemUpdateTest.java50 private static final DevicePolicyManager sLocalDevicePolicyManager = field in SystemUpdateTest
77 assertThat(sLocalDevicePolicyManager.getSystemUpdatePolicy().toString()) in setSystemUpdatePolicy_policyIsSet()
97 assertThat(sLocalDevicePolicyManager.getSystemUpdatePolicy().toString()) in setSystemUpdatePolicy_doesNotApply_policyIsNotSet()
DNearbyAppStreamingPolicyTest.java65 private static final DevicePolicyManager sLocalDevicePolicyManager = field in NearbyAppStreamingPolicyTest
107 int originalLocalPolicy = sLocalDevicePolicyManager.getNearbyAppStreamingPolicy(); in setNearbyAppStreamingPolicy_policyApplied_otherUsersUnaffected()
113 assertThat(sLocalDevicePolicyManager.getNearbyAppStreamingPolicy()) in setNearbyAppStreamingPolicy_policyApplied_otherUsersUnaffected()
138 assertThat(sLocalDevicePolicyManager.getNearbyAppStreamingPolicy()).isNotEqualTo( in setNearbyAppStreamingPolicy_setEnabled_doesNotApply()
DLostModeLocationTest.java71 private static final DevicePolicyManager sLocalDevicePolicyManager = field in LostModeLocationTest
91 () -> sLocalDevicePolicyManager.sendLostModeLocationUpdate( in sendLostModeLocationUpdate_withoutPermission_throwsException()
161 sLocalDevicePolicyManager.sendLostModeLocationUpdate(sContext.getMainExecutor(), in sendLostModeLocationUpdate()
DBlockUninstallTest.java73 private static final DevicePolicyManager sLocalDevicePolicyManager = field in BlockUninstallTest
113 assertThat(sLocalDevicePolicyManager.isUninstallBlocked(/* admin= */ null, in setUninstallBlocked_true_isUninstallBlockedIsTrue()
138 assertThat(sLocalDevicePolicyManager.isUninstallBlocked(/* admin= */ null, in setUninstallBlocked_true_isUninstallBlockedIsFalse()
162 assertThat(sLocalDevicePolicyManager.isUninstallBlocked(/* admin= */ null, in setUninstallBlocked_false_isUninstallBlockedIsFalse()
DScreenCaptureDisabledTest.java83 private static final DevicePolicyManager sLocalDevicePolicyManager = field in ScreenCaptureDisabledTest
104 assertThat(sLocalDevicePolicyManager.getScreenCaptureDisabled(/* admin= */ null)).isFalse(); in setScreenCaptureDisabled_false_works()
142 assertThat(sLocalDevicePolicyManager.getScreenCaptureDisabled( in setScreenCaptureDisabled_true_works()
176 assertThat(sLocalDevicePolicyManager.getScreenCaptureDisabled(/* admin= */ in setScreenCaptureDisabled_true_doesNotApply()
361 sLocalDevicePolicyManager.triggerDevicePolicyEngineMigration(true); in setScreenCaptureDisabled_policyMigration_works()
370 sLocalDevicePolicyManager.getScreenCaptureDisabled(/* admin= */ null)).isTrue(); in setScreenCaptureDisabled_policyMigration_works()
DKeyguardDisableFeaturesTest.java42 private static final DevicePolicyManager sLocalDevicePolicyManager = field in KeyguardDisableFeaturesTest
DCameraTest.java78 private static final DevicePolicyManager sLocalDevicePolicyManager = field in CameraTest
105 assertThat(sLocalDevicePolicyManager in setCameraDisabledTrue_policyDoesNotApply_cameraNotDisabled()
121 assertThat(sLocalDevicePolicyManager in setCameraDisabledTrue_cameraDisabledLocally()
136 assertThat(sLocalDevicePolicyManager in setCameraDisabledFalse_cameraEnabledLocally()
DManagedSubscriptionsPolicyTest.java93 DevicePolicyManager sLocalDevicePolicyManager = in setManagedSubscriptionsPolicy_works() local
98 assertThat(sLocalDevicePolicyManager.getManagedSubscriptionsPolicy().getPolicyType()) in setManagedSubscriptionsPolicy_works()
DLockTest.java64 private static final DevicePolicyManager sLocalDevicePolicyManager = field in LockTest
DUserControlDisabledPackagesTest.java92 private static final DevicePolicyManager sLocalDevicePolicyManager = field in UserControlDisabledPackagesTest
367 sLocalDevicePolicyManager.triggerDevicePolicyEngineMigration(true); in setUserControlDisabledPackages_policyMigration_works()
DAccountManagementTest.java85 private static final DevicePolicyManager sLocalDevicePolicyManager = field in AccountManagementTest
460 sLocalDevicePolicyManager.triggerDevicePolicyEngineMigration(true); in setAccountManagementDisabled_policyMigration_works()
DWifiTest.java103 private static final DevicePolicyManager sLocalDevicePolicyManager = field in WifiTest
582 assertThat(sLocalDevicePolicyManager.getMinimumRequiredWifiSecurityLevel()) in setMinimumRequiredWifiSecurityLevel_minimumRequiredWifiSecurityLevelIsSet()
601 assertThat(sLocalDevicePolicyManager.getMinimumRequiredWifiSecurityLevel()) in setMinimumRequiredWifiSecurityLevel_doesNotApply_minimumRequiredWifiSecurityLevelIsNotSet()
/cts/common/device-side/bedstead/modules/enterprise/src/test/kotlin/com/android/bedstead/enterprise/
DEnterpriseAnnotationExecutorTest.kt422 sLocalDevicePolicyManager.getRequiredStrongAuthTimeout( /* admin= */null) in includeRunOnParentOfProfileOwnerUsingProfileInstanceAnnotation_devicePolicyManagerAffectsParent()
429 sLocalDevicePolicyManager.getRequiredStrongAuthTimeout( /* admin= */null) in includeRunOnParentOfProfileOwnerUsingProfileInstanceAnnotation_devicePolicyManagerAffectsParent()
653 private val sLocalDevicePolicyManager = context() constant