xref: /aosp_15_r20/external/perfetto/test/cts/test_apps/Android.bp (revision 6dbdd20afdafa5e3ca9b8809fa73465d530080dc)
1// Copyright (C) 2019 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    // See: http://go/android-license-faq
17    // A large-scale-change added 'default_applicable_licenses' to import
18    // all of the 'license_kinds' from "external_perfetto_license"
19    // to get the below license kinds:
20    //   SPDX-license-identifier-Apache-2.0
21    default_applicable_licenses: ["external_perfetto_license"],
22}
23
24android_test_helper_app {
25    name: "CtsPerfettoDebuggableApp",
26    // tag this module as a cts test artifact
27    test_suites: [
28        "cts",
29        "vts10",
30        "general-tests",
31    ],
32
33    manifest: "AndroidManifest_debuggable.xml",
34
35    compile_multilib: "both",
36    srcs: ["src/**/*.java"],
37    // This test is also run via Mainline Testing against the ART Mainline
38    // Module, which is updatable since Android 12 (API level 31).
39    sdk_version: "31",
40    min_sdk_version: "31",
41    jni_libs: [
42        "libperfettocts_native",
43    ],
44    jni_uses_platform_apis: true,
45}
46
47android_test_helper_app {
48    name: "CtsPerfettoReleaseApp",
49    // tag this module as a cts test artifact
50    test_suites: [
51        "cts",
52        "vts10",
53        "general-tests",
54    ],
55
56    manifest: "AndroidManifest_release.xml",
57
58    compile_multilib: "both",
59    srcs: ["src/**/*.java"],
60    // This test is also run via Mainline Testing against the ART Mainline
61    // Module, which is updatable since Android 12 (API level 31).
62    sdk_version: "31",
63    min_sdk_version: "31",
64    jni_libs: [
65        "libperfettocts_native",
66    ],
67    jni_uses_platform_apis: true,
68}
69
70android_test_helper_app {
71    name: "CtsPerfettoProfileableApp",
72    // tag this module as a cts test artifact
73    test_suites: [
74        "cts",
75        "vts10",
76        "general-tests",
77    ],
78
79    manifest: "AndroidManifest_profileable.xml",
80
81    compile_multilib: "both",
82    srcs: ["src/**/*.java"],
83    // This test is also run via Mainline Testing against the ART Mainline
84    // Module, which is updatable since Android 12 (API level 31).
85    sdk_version: "31",
86    min_sdk_version: "31",
87    jni_libs: [
88        "libperfettocts_native",
89    ],
90    jni_uses_platform_apis: true,
91}
92
93android_test_helper_app {
94    name: "CtsPerfettoNonProfileableApp",
95    // tag this module as a cts test artifact
96    test_suites: [
97        "cts",
98        "vts10",
99        "general-tests",
100    ],
101
102    manifest: "AndroidManifest_nonprofileable.xml",
103
104    compile_multilib: "both",
105    srcs: ["src/**/*.java"],
106    // This test is also run via Mainline Testing against the ART Mainline
107    // Module, which is updatable since Android 12 (API level 31).
108    sdk_version: "31",
109    min_sdk_version: "31",
110    jni_libs: [
111        "libperfettocts_native",
112    ],
113    jni_uses_platform_apis: true,
114}
115