1// Copyright (C) 2014 The Android Open Source Project 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15package { 16 default_team: "trendy_team_enterprise", 17 default_applicable_licenses: ["Android-Apache-2.0"], 18} 19 20java_test_host { 21 name: "CtsDevicePolicyManagerTestCases", 22 defaults: ["cts_defaults"], 23 srcs: ["src/**/*.java"], 24 libs: [ 25 "tools-common-prebuilt", 26 "cts-tradefed", 27 "tradefed", 28 "guava", 29 "truth", 30 ], 31 // tag this module as a cts test artifact 32 test_suites: [ 33 "arcts", 34 "cts", 35 "general-tests", 36 "mts-permission", 37 ], 38 static_libs: [ 39 "cts-statsd-atom-host-test-utils", 40 "flag-junit-host", 41 "device_policy_aconfig_flags_lib_host", 42 "android.permission.flags-aconfig-java-host", 43 ], 44 java_resource_dirs: ["res"], 45 data: [ 46 ":cts-current-api-gz", 47 ":CtsCertInstallerApp", 48 ":CtsContactDirectoryProvider", 49 ":CtsCorpOwnedManagedProfile", 50 ":CtsCorpOwnedManagedProfile2", 51 ":CtsCrossProfileEnabledApp", 52 ":CtsCrossProfileUserEnabledApp", 53 ":CtsDelegateApp", 54 ":CtsDeviceAdminApp23", 55 ":CtsDeviceAdminApp24", 56 ":CtsDeviceAdminApp29", 57 ":CtsDeviceAdminService2", 58 ":CtsDeviceAdminService4", 59 ":CtsDeviceAdminServiceB", 60 ":CtsDeviceAndProfileOwnerApp", 61 ":CtsDeviceAndProfileOwnerApp23", 62 ":CtsDeviceAndProfileOwnerApp25", 63 ":CtsDeviceAndProfileOwnerApp30", 64 ":CtsDeviceOwnerApp", 65 ":CtsDeviceAdminService1", 66 ":CtsDeviceAdminService2", 67 ":CtsDeviceAdminService3", 68 ":CtsDevicePolicyAssistApp", 69 ":CtsDevicePolicyAutofillApp", 70 ":CtsEmptyTestApp", 71 ":CtsHasLauncherActivityApp", 72 ":CtsIntentReceiverApp", 73 ":CtsIntentSenderApp", 74 ":CtsLauncherAppsTests", 75 ":CtsLauncherAppsTestsSupport", 76 ":CtsManagedProfileApp", 77 ":CtsMeteredDataTestApp", 78 ":CtsNoLauncherActivityApp", 79 ":CtsNoPermissionApp", 80 ":CtsNotificationSenderApp", 81 ":CtsPackageInstallerApp", 82 ":CtsPermissionApp", 83 ":CtsProfileOwnerApp", 84 ":CtsSimplePreMApp", 85 ":CtsTransferOwnerIncomingApp", 86 ":CtsTransferOwnerOutgoingApp", 87 ":CtsVpnFirewallApp", 88 ":CtsVpnFirewallAppApi23", 89 ":CtsVpnFirewallAppApi24", 90 ":CtsVpnFirewallAppNotAlwaysOn", 91 ":CtsWidgetProviderApp", 92 ":CtsWifiConfigCreator", 93 ":SharingApp1", 94 ":SharingApp2", 95 ":SharedUidApp1", 96 ":SharedUidApp2", 97 ":SimpleSmsApp", 98 ":TestApp1", 99 ":TestApp2", 100 ":TestApp3", 101 ":TestApp4", 102 ":TestIme", 103 ], 104 per_testcase_directory: true, 105} 106 107test_module_config_host { 108 name: "CtsDevicePolicyManagerTestCases_Permissions", 109 base: "CtsDevicePolicyManagerTestCases", 110 test_suites: ["general-tests"], 111 include_annotations: ["com.android.cts.devicepolicy.annotations.PermissionsTest"], 112} 113 114test_module_config_host { 115 name: "CtsDevicePolicyManagerTestCases_Permissions_NoFlakes", 116 base: "CtsDevicePolicyManagerTestCases", 117 test_suites: ["general-tests"], 118 include_annotations: ["com.android.cts.devicepolicy.annotations.PermissionsTest"], 119 exclude_annotations: ["android.platform.test.annotations.FlakyTest"], 120} 121 122// Currently, there are no tests marked flaky or large in CtsDevicePolicyManagerTestCases 123test_module_config_host { 124 name: "CtsDevicePolicyManagerTestCases_NoFlakes_NoLarge", 125 base: "CtsDevicePolicyManagerTestCases", 126 test_suites: ["general-tests"], 127 exclude_annotations: [ 128 "android.platform.test.annotations.FlakyTest", 129 "android.platform.test.annotations.LargeTest", 130 ], 131} 132 133test_module_config_host { 134 name: "CtsDevicePolicyManagerTestCases_LockSettings_NoFlakes", 135 base: "CtsDevicePolicyManagerTestCases", 136 test_suites: ["general-tests"], 137 include_annotations: ["com.android.cts.devicepolicy.annotations.LockSettingsTest"], 138 exclude_annotations: ["android.platform.test.annotations.FlakyTest"], 139} 140 141test_module_config_host { 142 name: "CtsDevicePolicyManagerTestCases_ParentProfileApiDisabled", 143 base: "CtsDevicePolicyManagerTestCases", 144 test_suites: ["general-tests"], 145 include_filters: ["com.android.cts.devicepolicy.ManagedProfileTest#testParentProfileApiDisabled"], 146} 147