• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2016 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_defaults {
20    name: "CtsCompilationApp_defaults",
21    defaults: ["cts_support_defaults"],
22    srcs: ["src/**/*.java"],
23    sdk_version: "29",
24    // tag this module as a cts test artifact
25    test_suites: [
26        "cts",
27        "general-tests",
28    ],
29    certificate: ":cts-compilation-testkey",
30    uncompress_dex: true,
31}
32
33android_test_helper_app {
34    name: "CtsCompilationApp",
35    defaults: ["CtsCompilationApp_defaults"],
36}
37
38android_test_helper_app {
39    name: "CtsCompilationApp_with_good_profile",
40    defaults: ["CtsCompilationApp_defaults"],
41    assets: [":CtsCompilationApp_assets_good_profile"],
42}
43
44android_test_helper_app {
45    name: "CtsCompilationApp_with_bad_profile",
46    defaults: ["CtsCompilationApp_defaults"],
47    assets: [":CtsCompilationApp_assets_bad_profile"],
48}
49
50java_genrule {
51    name: "CtsCompilationApp_assets_good_profile",
52    cmd: "cp $(in) $(out)",
53    srcs: [":CtsCompilationApp_profile"],
54    out: ["art-profile/baseline.prof"],
55}
56
57java_genrule {
58    name: "CtsCompilationApp_assets_bad_profile",
59    cmd: "cp $(in) $(out)",
60    srcs: [":AppUsedByOtherApp_1_prof"],
61    out: ["art-profile/baseline.prof"],
62}
63
64android_test_helper_app {
65    name: "CtsCompilationApp_debuggable",
66    defaults: ["CtsCompilationApp_defaults"],
67    manifest: "AndroidManifest_debuggable.xml",
68}
69