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} 31 32android_test_helper_app { 33 name: "CtsCompilationApp", 34 defaults: ["CtsCompilationApp_defaults"], 35} 36 37android_test_helper_app { 38 name: "CtsCompilationApp_with_good_profile", 39 defaults: ["CtsCompilationApp_defaults"], 40 assets: [":CtsCompilationApp_assets_good_profile"], 41} 42 43android_test_helper_app { 44 name: "CtsCompilationApp_with_bad_profile", 45 defaults: ["CtsCompilationApp_defaults"], 46 assets: [":CtsCompilationApp_assets_bad_profile"], 47} 48 49java_genrule { 50 name: "CtsCompilationApp_assets_good_profile", 51 cmd: "cp $(in) $(out)", 52 srcs: [":CtsCompilationApp_profile"], 53 out: ["art-profile/baseline.prof"], 54} 55 56java_genrule { 57 name: "CtsCompilationApp_assets_bad_profile", 58 cmd: "cp $(in) $(out)", 59 srcs: [":AppUsedByOtherApp_1_prof"], 60 out: ["art-profile/baseline.prof"], 61} 62 63android_test_helper_app { 64 name: "CtsCompilationApp_debuggable", 65 defaults: ["CtsCompilationApp_defaults"], 66 manifest: "AndroidManifest_debuggable.xml", 67} 68