/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | ApplicationExemptionsTest.java | 89 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 …]
|
D | ClearApplicationDataTest.java | 65 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()
|
D | PermitInputMethodsTest.java | 78 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()
|
D | SystemUpdateTest.java | 50 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()
|
D | NearbyAppStreamingPolicyTest.java | 65 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()
|
D | LostModeLocationTest.java | 71 private static final DevicePolicyManager sLocalDevicePolicyManager = field in LostModeLocationTest 91 () -> sLocalDevicePolicyManager.sendLostModeLocationUpdate( in sendLostModeLocationUpdate_withoutPermission_throwsException() 161 sLocalDevicePolicyManager.sendLostModeLocationUpdate(sContext.getMainExecutor(), in sendLostModeLocationUpdate()
|
D | BlockUninstallTest.java | 73 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()
|
D | ScreenCaptureDisabledTest.java | 83 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()
|
D | KeyguardDisableFeaturesTest.java | 42 private static final DevicePolicyManager sLocalDevicePolicyManager = field in KeyguardDisableFeaturesTest
|
D | CameraTest.java | 78 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()
|
D | ManagedSubscriptionsPolicyTest.java | 93 DevicePolicyManager sLocalDevicePolicyManager = in setManagedSubscriptionsPolicy_works() local 98 assertThat(sLocalDevicePolicyManager.getManagedSubscriptionsPolicy().getPolicyType()) in setManagedSubscriptionsPolicy_works()
|
D | LockTest.java | 64 private static final DevicePolicyManager sLocalDevicePolicyManager = field in LockTest
|
D | UserControlDisabledPackagesTest.java | 92 private static final DevicePolicyManager sLocalDevicePolicyManager = field in UserControlDisabledPackagesTest 367 sLocalDevicePolicyManager.triggerDevicePolicyEngineMigration(true); in setUserControlDisabledPackages_policyMigration_works()
|
D | AccountManagementTest.java | 85 private static final DevicePolicyManager sLocalDevicePolicyManager = field in AccountManagementTest 460 sLocalDevicePolicyManager.triggerDevicePolicyEngineMigration(true); in setAccountManagementDisabled_policyMigration_works()
|
D | WifiTest.java | 103 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/ |
D | EnterpriseAnnotationExecutorTest.kt | 422 sLocalDevicePolicyManager.getRequiredStrongAuthTimeout( /* admin= */null) in includeRunOnParentOfProfileOwnerUsingProfileInstanceAnnotation_devicePolicyManagerAffectsParent() 429 sLocalDevicePolicyManager.getRequiredStrongAuthTimeout( /* admin= */null) in includeRunOnParentOfProfileOwnerUsingProfileInstanceAnnotation_devicePolicyManagerAffectsParent() 653 private val sLocalDevicePolicyManager = context() constant
|