Convert hostsidetests/devicepolicy/**/Android.mk file to Android.bp
(cherrypick)
See build/soong/README.md for more information.
NOTE that app/LauncherTests/Android.mk remains uncoverted because it needs
'system_current' SDK version itself while depending on two modules with
'test_current' SDK version. Soong checks and rejects such illegal configuration.
Once system_test_current SDK version is approved, this makefile and two
Android.mk files above it can be removed.
hostsidetests/devicepolicy/Android.mk remains unconverted until Soong
supports LOCAL_TARGET_REQUIRED_MODULES variable.
Bug: 122332514
Test: treehugger
Change-Id: Ia6a31f571067a917171b9dc12207aab79e4c9829
Merged-In: Ia6a31f571067a917171b9dc12207aab79e4c9829
diff --git a/hostsidetests/devicepolicy/app/DelegateApp/Android.bp b/hostsidetests/devicepolicy/app/DelegateApp/Android.bp
new file mode 100644
index 0000000..0b7af15
--- /dev/null
+++ b/hostsidetests/devicepolicy/app/DelegateApp/Android.bp
@@ -0,0 +1,37 @@
+// Copyright (C) 2017 The Android Open Source Project
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+android_test {
+ name: "CtsDelegateApp",
+ defaults: ["cts_defaults"],
+ srcs: ["src/**/*.java"],
+ libs: [
+ "android.test.runner.stubs",
+ "junit",
+ "android.test.base.stubs",
+ ],
+ static_libs: [
+ "androidx.legacy_legacy-support-v4",
+ "ctstestrunner-axt",
+ "androidx.test.rules",
+ ],
+ sdk_version: "current",
+ // tag this module as a cts test artifact
+ test_suites: [
+ "arcts",
+ "cts",
+ "vts",
+ "general-tests",
+ ],
+}