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 15// IMPORTANT: We build two apps from the same source but with different package name. 16// This allow us to have different device owner and profile owner, some APIs may behave differently 17// in this situation. 18 19// === App 1 === 20 21package { 22 default_applicable_licenses: ["Android-Apache-2.0"], 23} 24 25android_test_helper_app { 26 name: "CtsCorpOwnedManagedProfile", 27 defaults: ["cts_defaults"], 28 srcs: [ 29 "src/**/*.java", 30 "src/**/I*.aidl", 31 ], 32 aidl: { 33 local_include_dirs: ["src"], 34 }, 35 libs: [ 36 "android.test.runner", 37 "junit", 38 "android.test.base", 39 ], 40 static_libs: [ 41 "ctstestrunner-axt", 42 "compatibility-device-util-axt", 43 ], 44 sdk_version: "test_current", 45 // tag this module as a cts test artifact 46 test_suites: [ 47 "cts", 48 "general-tests", 49 "mts-permission", 50 ], 51} 52 53// === App 2 === 54android_test_helper_app { 55 name: "CtsCorpOwnedManagedProfile2", 56 defaults: ["cts_defaults"], 57 srcs: [ 58 "src/**/*.java", 59 "src/**/I*.aidl", 60 ], 61 aidl: { 62 local_include_dirs: ["src"], 63 }, 64 libs: [ 65 "android.test.runner", 66 "junit", 67 "android.test.base", 68 ], 69 static_libs: [ 70 "ctstestrunner-axt", 71 "compatibility-device-util-axt", 72 ], 73 sdk_version: "test_current", 74 // tag this module as a cts test artifact 75 test_suites: [ 76 "cts", 77 "general-tests", 78 "mts-permission", 79 ], 80 aaptflags: [ 81 "--rename-manifest-package", 82 "com.android.cts.comp2", 83 "--rename-instrumentation-target-package", 84 "com.android.cts.comp2", 85 ], 86} 87