1//
2// Copyright (C) 2019 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
17android_test_helper_app {
18    name: "CtsUseEmbeddedDexApp_Canonical",
19    defaults: ["cts_support_defaults"],
20    use_embedded_dex: true,
21    srcs: ["src/**/*.java"],
22    sdk_version: "current",
23    min_sdk_version: "27",
24    test_suites: [
25        "cts",
26        "vts10",
27        "general-tests",
28    ],
29}
30
31android_test_helper_app {
32    name: "CtsUseEmbeddedDexApp_DexCompressed",
33    defaults: ["cts_support_defaults"],
34    // Not specifying use_embedded_dex keeps dex compressed
35    srcs: ["src/**/*.java"],
36    sdk_version: "current",
37    min_sdk_version: "28",
38    test_suites: [
39        "cts",
40        "vts10",
41        "general-tests",
42    ],
43}
44
45android_test_helper_app {
46    name: "CtsUseEmbeddedDexApp_NotPreferred",
47    defaults: ["cts_support_defaults"],
48    manifest: "AndroidManifest_use_extracted_dex.xml",
49    srcs: ["src/**/*.java"],
50    sdk_version: "current",
51    min_sdk_version: "28",
52    test_suites: [
53        "cts",
54        "vts10",
55        "general-tests",
56    ],
57}
58
59android_test_helper_app {
60    name: "CtsUseEmbeddedDexAppSplit_Canonical",
61    defaults: ["cts_support_defaults"],
62    manifest: "feature_split/AndroidManifest.xml",
63    // We want the dex to be uncompressed, but there is a side effect of extra
64    // android:useEmbeddedDex in the manifest (which the framework will ignore
65    // for split).
66    use_embedded_dex: true,
67    srcs: ["feature_split/src/**/*.java"],
68    sdk_version: "current",
69    min_sdk_version: "27",
70    test_suites: [
71        "cts",
72        "vts10",
73        "general-tests",
74    ],
75}
76
77android_test_helper_app {
78    name: "CtsUseEmbeddedDexAppSplit_CompressedDex",
79    defaults: ["cts_support_defaults"],
80    manifest: "feature_split/AndroidManifest.xml",
81    srcs: ["feature_split/src/**/*.java"],
82    sdk_version: "current",
83    min_sdk_version: "27",
84    test_suites: [
85        "cts",
86        "vts10",
87        "general-tests",
88    ],
89}
90
91//android_test_helper_app {
92//    name: "CtsUseEmbeddedDexAppSplit_CompressedSo",
93//    defaults: ["cts_support_defaults"],
94//    manifest: "feature_split/AndroidManifest.xml",
95//    srcs: ["feature_split/src/**/*.java"],
96//    // ANDROIDMK TRANSLATION ERROR: unsupported assignment to LOCAL_PREBUILT_JNI_LIBS
97//    // LOCAL_PREBUILT_JNI_LIBS := dummy.so
98//    sdk_version: "current",
99//    min_sdk_version: "27",
100//    test_suites: [
101//        "cts",
102//        "general-tests",
103//    ],
104//}
105