1//
2// Copyright (C) 2021 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8//      http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15//
16
17package {
18    default_applicable_licenses: ["Android-Apache-2.0"],
19}
20
21cc_test_library {
22    name: "libsplitappjni_isolated",
23    defaults: ["split_native_defaults"],
24    header_libs: ["jni_headers"],
25    shared_libs: ["liblog"],
26    srcs: ["jni/com_android_cts_isolatedsplitapp_Native.cpp"],
27}
28
29java_defaults {
30    name: "CtsSplitTestHelperApp_isolated_defaults",
31    compile_multilib: "both",
32
33    // TODO(b/179744452): Please add the following properties in individual modules because these
34    //                    properties can't inherit from java_defaults.
35    use_embedded_native_libs: false, // android:extractNativeLibs="true"
36    test_suites: TARGET_TEST_SUITES,
37}
38
39/**
40  * Isolated feature split with extracting native library
41  */
42android_test_helper_app {
43    name: "CtsIsolatedSplitAppExtractNativeLibsTrueJni",
44    defaults: ["CtsSplitTestHelperApp_isolated_defaults"],
45    manifest: "AndroidManifest_isolated_jni.xml",
46    jni_libs: ["libsplitappjni_isolated"],
47    use_embedded_native_libs: false, // android:extractNativeLibs="true"
48    srcs: ["src/**/*.java"],
49    test_suites: TARGET_TEST_SUITES,
50}
51
52android_test_helper_app {
53    name: "CtsIsolatedSplitAppExtractNativeLibsTrueNumberProviderA",
54    defaults: ["CtsSplitTestHelperApp_isolated_defaults"],
55    manifest: "AndroidManifest_isolated_number_provider_a.xml",
56    jni_libs: ["libsplitapp_number_provider_a"],
57    use_embedded_native_libs: false, // android:extractNativeLibs="true"
58    test_suites: TARGET_TEST_SUITES,
59}
60
61android_test_helper_app {
62    name: "CtsIsolatedSplitAppExtractNativeLibsTrueNumberProviderB",
63    defaults: ["CtsSplitTestHelperApp_isolated_defaults"],
64    manifest: "AndroidManifest_isolated_number_provider_b.xml",
65    jni_libs: ["libsplitapp_number_provider_b"],
66    use_embedded_native_libs: false, // android:extractNativeLibs="true"
67    test_suites: TARGET_TEST_SUITES,
68}
69
70android_test_helper_app {
71    name: "CtsIsolatedSplitAppExtractNativeLibsTrueNumberProxy",
72    defaults: ["CtsSplitTestHelperApp_isolated_defaults"],
73    manifest: "AndroidManifest_isolated_number_proxy.xml",
74    jni_libs: ["libsplitapp_number_proxy"],
75    use_embedded_native_libs: false, // android:extractNativeLibs="true"
76    test_suites: TARGET_TEST_SUITES,
77}
78
79/**
80  * Isolated feature split without extracting native library
81  */
82android_test_helper_app {
83    name: "CtsIsolatedSplitAppExtractNativeLibsFalseJni",
84    defaults: ["CtsSplitTestHelperApp_isolated_defaults"],
85    manifest: "AndroidManifest_isolated_jni.xml",
86    jni_libs: ["libsplitappjni_isolated"],
87    use_embedded_native_libs: true, // android:extractNativeLibs="false"
88    srcs: ["src/**/*.java"],
89    test_suites: TARGET_TEST_SUITES,
90}
91
92android_test_helper_app {
93    name: "CtsIsolatedSplitAppExtractNativeLibsFalseNumberProviderA",
94    defaults: ["CtsSplitTestHelperApp_isolated_defaults"],
95    manifest: "AndroidManifest_isolated_number_provider_a.xml",
96    jni_libs: ["libsplitapp_number_provider_a"],
97    use_embedded_native_libs: true, // android:extractNativeLibs="false"
98    test_suites: TARGET_TEST_SUITES,
99}
100
101android_test_helper_app {
102    name: "CtsIsolatedSplitAppExtractNativeLibsFalseNumberProviderB",
103    defaults: ["CtsSplitTestHelperApp_isolated_defaults"],
104    manifest: "AndroidManifest_isolated_number_provider_b.xml",
105    jni_libs: ["libsplitapp_number_provider_b"],
106    use_embedded_native_libs: true, // android:extractNativeLibs="false"
107    test_suites: TARGET_TEST_SUITES,
108}
109
110android_test_helper_app {
111    name: "CtsIsolatedSplitAppExtractNativeLibsFalseNumberProxy",
112    defaults: ["CtsSplitTestHelperApp_isolated_defaults"],
113    manifest: "AndroidManifest_isolated_number_proxy.xml",
114    jni_libs: ["libsplitapp_number_proxy"],
115    use_embedded_native_libs: true, // android:extractNativeLibs="false"
116    test_suites: TARGET_TEST_SUITES,
117}
118