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