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 21android_test_helper_app { 22 name: "CtsCorpOwnedManagedProfile", 23 defaults: ["cts_defaults"], 24 srcs: [ 25 "src/**/*.java", 26 "src/**/I*.aidl", 27 ], 28 aidl: { 29 local_include_dirs: ["src"], 30 }, 31 libs: [ 32 "android.test.runner", 33 "junit", 34 "android.test.base", 35 ], 36 static_libs: [ 37 "ctstestrunner-axt", 38 "compatibility-device-util-axt", 39 ], 40 sdk_version: "test_current", 41 // tag this module as a cts test artifact 42 test_suites: [ 43 "cts", 44 "vts10", 45 "general-tests", 46 ], 47} 48 49// === App 2 === 50android_test_helper_app { 51 name: "CtsCorpOwnedManagedProfile2", 52 defaults: ["cts_defaults"], 53 srcs: [ 54 "src/**/*.java", 55 "src/**/I*.aidl", 56 ], 57 aidl: { 58 local_include_dirs: ["src"], 59 }, 60 libs: [ 61 "android.test.runner", 62 "junit", 63 "android.test.base", 64 ], 65 static_libs: [ 66 "ctstestrunner-axt", 67 "compatibility-device-util-axt", 68 ], 69 sdk_version: "test_current", 70 // tag this module as a cts test artifact 71 test_suites: [ 72 "cts", 73 "vts10", 74 "general-tests", 75 ], 76 aaptflags: [ 77 "--rename-manifest-package", 78 "com.android.cts.comp2", 79 "--rename-instrumentation-target-package", 80 "com.android.cts.comp2", 81 ], 82} 83