| /* | |
| * Copyright (C) 2024 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software | |
| * distributed under the License is distributed on an "AS IS" BASIS, | |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| * See the License for the specific language governing permissions and | |
| * limitations under the License. | |
| */ | |
| package { | |
| default_applicable_licenses: ["Android-Apache-2.0"], | |
| default_team: "trendy_team_system_performance", | |
| } | |
| android_test { | |
| name: "CtsProfilingModuleTests", | |
| defaults: [ | |
| "cts_defaults", | |
| "modules-utils-extended-mockito-rule-defaults", | |
| ], | |
| data: [ | |
| ":CtsProfilingTestApp", | |
| ], | |
| static_libs: [ | |
| "androidx.test.rules", | |
| "androidx.test.ext.truth", | |
| "compatibility-device-util-axt", | |
| "ctstestrunner-axt", | |
| "cts-wm-util", | |
| "modules-utils-build", | |
| "service-profiling", | |
| "profiling_flags_not_exported_lib", | |
| "framework-profiling.impl", | |
| "testng", | |
| "anomaly-detector-aconfig-flags-lib", | |
| "frameworks-base-testutils", | |
| "util-profiling", | |
| "mockito-target-extended-minus-junit4", | |
| ], | |
| libs: [ | |
| "android.test.runner.stubs.system", | |
| "android.test.base.stubs.system", | |
| "android.test.mock.stubs.system", | |
| "junit", | |
| "framework-configinfrastructure.stubs.module_lib", | |
| ], | |
| // include both the 32 and 64 bit versions | |
| compile_multilib: "both", | |
| srcs: [ | |
| "src/android/profiling/cts/*.java", | |
| ], | |
| jni_libs: [ | |
| "libcts_profiling_module_test_native", | |
| ], | |
| jarjar_rules: "jarjar-rules.txt", | |
| test_mainline_modules: ["com.google.android.profiling.apex"], | |
| test_suites: [ | |
| "cts", | |
| "general-tests", | |
| "mts-profiling", | |
| "mcts-profiling", | |
| ], | |
| min_sdk_version: "35", | |
| sdk_version: "module_current", | |
| } | |
| android_test_helper_app { | |
| name: "CtsProfilingTestApp", | |
| defaults: ["cts_defaults"], | |
| sdk_version: "system_current", | |
| srcs: [ | |
| "src/android/profiling/cts/profilingapp/**/*.java", | |
| "src/android/profiling/cts/ProfilingTestConstants.java", | |
| ], | |
| min_sdk_version: "35", | |
| target_sdk_version: "35", | |
| test_suites: [ | |
| "general-tests", | |
| "mts-profiling", | |
| ], | |
| manifest: "src/android/profiling/cts/profilingapp/AndroidManifestProfilingApp.xml", | |
| } |