1// Copyright (C) 2018 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// Error: Cannot get the name of the license module in the 16// ./Android.bp file. 17// If no such license module exists, please add one there first. 18// Then reset the default_applicable_licenses property below with the license module name. 19package { 20 // See: http://go/android-license-faq 21 default_applicable_licenses: ["frameworks_base_license"], 22} 23 24android_test_helper_app { 25 name: "OverlayHostTests_UpdateOverlay", 26 srcs: ["src/**/*.java"], 27 sdk_version: "current", 28 test_suites: ["device-tests"], 29 static_libs: ["androidx.test.rules"], 30 aaptflags: ["--no-resource-removal"], 31} 32 33android_test_helper_app { 34 name: "OverlayHostTests_FrameworkOverlayV1", 35 sdk_version: "current", 36 test_suites: ["device-tests"], 37 certificate: "platform", 38 aaptflags: [ 39 "--custom-package", 40 "com.android.server.om.hosttest.framework_overlay_v1", 41 "--version-code", 42 "1", 43 "--version-name", 44 "v1", 45 ], 46 resource_dirs: ["framework/v1/res"], 47 manifest: "framework/AndroidManifest.xml", 48} 49 50android_test_helper_app { 51 name: "OverlayHostTests_FrameworkOverlayV2", 52 sdk_version: "current", 53 test_suites: ["device-tests"], 54 certificate: "platform", 55 aaptflags: [ 56 "--custom-package", 57 "com.android.server.om.hosttest.framework_overlay_v2", 58 "--version-code", 59 "2", 60 "--version-name", 61 "v2", 62 ], 63 resource_dirs: ["framework/v2/res"], 64 manifest: "framework/AndroidManifest.xml", 65} 66 67android_test_helper_app { 68 name: "OverlayHostTests_AppOverlayV1", 69 sdk_version: "current", 70 test_suites: ["device-tests"], 71 aaptflags: [ 72 "--custom-package", 73 "com.android.server.om.hosttest.app_overlay_v1", 74 "--version-code", 75 "1", 76 "--version-name", 77 "v1", 78 ], 79 resource_dirs: ["app/v1/res"], 80 manifest: "app/v1/AndroidManifest.xml", 81} 82 83android_test_helper_app { 84 name: "OverlayHostTests_AppOverlayV2", 85 sdk_version: "current", 86 test_suites: ["device-tests"], 87 aaptflags: [ 88 "--custom-package", 89 "com.android.server.om.hosttest.app_overlay_v2", 90 "--version-code", 91 "2", 92 "--version-name", 93 "v2", 94 ], 95 resource_dirs: ["app/v2/res"], 96 manifest: "app/v2/AndroidManifest.xml", 97} 98