1// Copyright (C) 2022 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
15package {
16    default_team: "trendy_team_rubidium_sdk_runtime",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20java_test_host {
21    name: "SdkSandboxStorageHostTest",
22    srcs: [
23        "src/**/SdkSandboxStorageHostTest.java",
24        ":CtsHostsideTestsAppSecurityUtil",
25    ],
26    test_config: "SdkSandboxStorageHostTest.xml",
27    libs: [
28        "tradefed",
29    ],
30    static_libs: [
31        "modules-utils-build-testing",
32        "cts-install-lib-host",
33        "SdkSandboxHostTestUtils",
34    ],
35    test_suites: ["general-tests"],
36    data: [
37        ":StorageTestCodeProvider",
38        ":SdkSandboxStorageTestApp",
39        ":SdkSandboxStorageTestAppV2_DoesNotConsumeSdk",
40        ":SdkSandboxStorageTestUnlockApp",
41    ],
42}
43
44java_defaults {
45    name: "SdkSandboxStorageHostTestDefaults",
46    srcs: [
47        "app/src/**/SdkSandboxStorageTestApp.java",
48        ":framework-sdksandbox-sources",
49        ":sdksandbox_aidl",
50        ":sdksandbox-sources",
51    ],
52    defaults: ["framework-sdksandbox-jarjar-defaults"],
53    static_libs: [
54        "androidx.core_core",
55        "androidx.test.ext.junit",
56        "androidx.test.uiautomator_uiautomator",
57        "compatibility-device-util-axt",
58        "SdkSandboxTestUtils",
59        "StorageTestSdk1Api",
60    ],
61    min_sdk_version: "Tiramisu",
62    target_sdk_version: "Tiramisu",
63    test_suites: ["general-tests"],
64}
65
66android_test_helper_app {
67    name: "SdkSandboxStorageTestUnlockApp",
68    manifest: "unlockapp/SdkSandboxStorageTestUnlockAppManifest.xml",
69    srcs: [
70        "unlockapp/src/**/*.java",
71    ],
72    static_libs: [
73        "androidx.core_core",
74        "androidx.test.ext.junit",
75        "androidx.test.runner",
76        "androidx.test.uiautomator_uiautomator",
77        "truth",
78    ],
79    min_sdk_version: "Tiramisu",
80    target_sdk_version: "Tiramisu",
81    test_suites: ["general-tests"],
82}
83
84android_test_helper_app {
85    name: "SdkSandboxStorageTestApp",
86    manifest: "app/SdkSandboxStorageTestAppManifest.xml",
87    defaults: ["SdkSandboxStorageHostTestDefaults"],
88}
89
90android_test_helper_app {
91    name: "SdkSandboxStorageTestAppV2_DoesNotConsumeSdk",
92    manifest: "app/SdkSandboxStorageTestAppManifestV2_DoesNotConsumeSdk.xml",
93    defaults: ["SdkSandboxStorageHostTestDefaults"],
94}
95
96android_test_helper_app {
97    name: "StorageTestCodeProvider",
98    manifest: "codeprovider/StorageTestCodeProvider.xml",
99    defaults: ["platform_app_defaults"],
100    srcs: [
101        "codeprovider/src/**/*.java",
102    ],
103    static_libs: [
104        "compatibility-device-util-axt",
105        "StorageTestSdk1Api",
106    ],
107    certificate: ":sdksandbox-test",
108    min_sdk_version: "33",
109    target_sdk_version: "33",
110}
111
112java_library {
113    name: "StorageTestSdk1Api",
114    srcs: [
115        "codeprovider/src/**/*.aidl",
116    ],
117}
118