1// Copyright (C) 2020 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_applicable_licenses: ["Android-Apache-2.0"], 17} 18 19java_test_host { 20 name: "CtsStatsdAtomHostTestCases", 21 team: "trendy_team_android_telemetry_client_infra", 22 defaults: ["cts_defaults"], 23 srcs: [ 24 "src/**/alarm/*.java", 25 "src/**/appcompatstate/*.java", 26 "src/**/apphibernation/*.java", 27 "src/**/appops/*.java", 28 "src/**/appexit/*.java", 29 "src/**/appstart/*.java", 30 "src/**/backportedfixes/*.java", 31 "src/**/batterycycle/*.java", 32 "src/**/batterystats/*.java", 33 "src/**/binderstats/*.java", 34 "src/**/bluetooth/*.java", 35 "src/**/coregraphics/*.java", 36 "src/**/cpu/*.java", 37 "src/**/credentials/*.java", 38 "src/**/devicepower/*.java", 39 "src/**/devicestate/*.java", 40 "src/**/display/*.java", 41 "src/**/gamemanager/*.java", 42 "src/**/gnss/*.java", 43 "src/**/hardware/health/*.java", 44 "src/**/jobscheduler/*.java", 45 "src/**/integrity/*.java", 46 "src/**/media/*.java", 47 "src/**/media/projection/*.java", 48 "src/**/memory/*.java", 49 "src/**/net/*.java", 50 "src/**/notification/*.java", 51 "src/**/perf/*.java", 52 "src/**/perfetto/*.java", 53 "src/**/performancehintmanager/*.java", 54 "src/**/permissionstate/*.java", 55 "src/**/powermanager/*.java", 56 "src/**/settingsstats/*.java", 57 "src/**/sizecompatrestartbutton/*.java", 58 "src/**/statsd/*.java", 59 "src/**/telephony/*.java", 60 "src/**/tls/*.java", 61 "src/**/usb/*.java", 62 "src/**/users/*.java", 63 "src/**/vibrator/*.java", 64 "src/**/voiceinteraction/*.java", 65 "src/**/wifi/*.java", 66 "src/**/incremental/*.java", 67 "src/**/memorysafety/*.java", 68 "src/**/express/*.java", 69 ], 70 71 test_suites: [ 72 "cts", 73 "general-tests", 74 ], 75 76 libs: [ 77 "compatibility-host-util", 78 "core_cts_test_resources", 79 "cts-tradefed", 80 "host-libprotobuf-java-full", 81 "tradefed", 82 "truth", 83 ], 84 85 static_libs: [ 86 "android.hardware.usb.flags-aconfig-java-host", 87 "android.os.flags-aconfig-java-host", 88 "backstage_power_flags_lib-host", 89 "power_hint_flags_lib_host", 90 "stats_flags_lib_host", 91 "uprobestats_mainline_flags_java_lib", 92 "cts-statsd-atom-host-test-utils", 93 "flag-junit-host", 94 "perfetto_config-full", 95 "cts_adpf_atom_common-host", 96 "cts_adpf_atom_common-host2", 97 "uprobestats-protos", 98 "truth-liteproto-extension", 99 "truth-proto-extension", 100 ], 101 102 device_common_data: [ 103 ":CtsStatsdAtomApp", 104 ":CtsAppExitTestCases", 105 ":CtsStatsdAdpfApp", 106 ":CtsStatsdAdpfApp2", 107 ":CtsExternalServiceService", 108 ":CtsMediaProjectionTestCases", 109 ":CtsPropertyCompatAllowUserAspectRatioOverrideOptInApp", 110 ":CtsSimpleApp", 111 ":CtsStatsdAlarmHelper", 112 ":CtsStatsdAlarmHelper2", 113 ":CtsVoiceInteractionTestCases", 114 ":CtsCredentialManagerTestCases", 115 ":CtsStatsdExpressLogHelper", 116 ], 117 per_testcase_directory: true, 118} 119 120java_library_host { 121 name: "cts-statsd-atom-host-test-utils", 122 srcs: ["src/**/lib/*.java"], 123 static_libs: [ 124 "platformprotos", 125 "host-libprotobuf-java-full", 126 ], 127 libs: [ 128 "compatibility-host-util", 129 "cts-tradefed", 130 "tradefed", 131 "truth", 132 ], 133} 134 135test_module_config_host { 136 name: "CtsStatsdAtomHostTestCases_statsdatom_voiceinteraction", 137 base: "CtsStatsdAtomHostTestCases", 138 test_suites: ["general-tests"], 139 include_filters: ["android.cts.statsdatom.voiceinteraction"], 140} 141 142test_module_config_host { 143 name: "CtsStatsdAtomHostTestCases_statsdatom_jobscheduler", 144 base: "CtsStatsdAtomHostTestCases", 145 test_suites: ["general-tests"], 146 include_filters: ["android.cts.statsdatom.jobscheduler"], 147} 148 149test_module_config_host { 150 name: "CtsStatsdAtomHostTestCases_appexit_appexithosttest", 151 base: "CtsStatsdAtomHostTestCases", 152 test_suites: ["general-tests"], 153 include_filters: ["android.cts.statsdatom.appexit.AppExitHostTest"], 154 exclude_annotations: ["androidx.test.filters.LargeTest"], 155} 156 157test_module_config_host { 158 name: "CtsStatsdAtomHostTestCases_statsdatom_gamemanager", 159 base: "CtsStatsdAtomHostTestCases", 160 test_suites: ["general-tests"], 161 include_filters: ["android.cts.statsdatom.gamemanager"], 162} 163 164test_module_config_host { 165 name: "CtsStatsdAtomHostTestCases_statsdatom_powermanager", 166 base: "CtsStatsdAtomHostTestCases", 167 test_suites: ["general-tests"], 168 include_filters: ["android.cts.statsdatom.powermanager"], 169} 170 171test_module_config_host { 172 name: "CtsStatsdAtomHostTestCases_statsdatom_performancehintmanager", 173 base: "CtsStatsdAtomHostTestCases", 174 test_suites: ["general-tests"], 175 include_filters: ["android.cts.statsdatom.performancehintmanager"], 176} 177