xref: /aosp_15_r20/cts/hostsidetests/backup/Android.bp (revision b7c941bb3fa97aba169d73cee0bed2de8ac964bf)
1// Copyright (C) 2017 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_applicable_licenses: ["Android-Apache-2.0"],
17    default_team: "trendy_team_android_onboarding",
18}
19
20java_test_host {
21    name: "CtsBackupHostTestCases",
22    srcs: ["src/**/*.java"],
23    // tag this module as a cts test artifact
24    test_suites: [
25        "cts",
26        "mcts",
27        "general-tests",
28        "mts-permission",
29        "sts",
30    ],
31    libs: [
32        "cts-tradefed",
33        "tradefed",
34        "compatibility-host-util",
35    ],
36    static_libs: [
37        "truth",
38        "platformprotos",
39    ],
40    device_common_data: [
41        ":AdbBackupApp",
42        ":BackupAllowedApp",
43        ":BackupNotAllowedApp",
44        ":CtsAutoRestoreApp",
45        ":CtsBackupOtherSoundsSettingsApp",
46        ":CtsBackupRestoreAnyVersionApp",
47        ":CtsBackupRestoreAnyVersionAppUpdate",
48        ":CtsBackupRestoreAnyVersionNoRestoreApp",
49        ":CtsBackupSuccessNotificationApp",
50        ":CtsBackupSyncAdapterSettingsApp",
51        ":CtsBackupTransportApp",
52        ":CtsDataExtractionRulesApp",
53        ":CtsDataExtractionRulesApplicabilityApp",
54        ":CtsEncryptionAttributeApp",
55        ":CtsFullBackupContentApp",
56        ":CtsHostsideTestsFullBackupApp",
57        ":CtsKeyValueBackupRestoreApp",
58        ":CtsPreservedSettingsApp",
59        ":CtsProfileFullBackupApp",
60        ":CtsProfileKeyValueApp",
61        ":CtsProfileSerialNumberApp",
62        ":CtsRestoreSessionApp",
63        ":CtsRestoreSessionApp1",
64        ":CtsRestoreSessionApp2",
65        ":CtsSharedPreferencesRestoreApp",
66        ":DebuggableApp",
67        ":FullBackupOnlyFalseNoAgentApp",
68        ":FullBackupOnlyFalseWithAgentApp",
69        ":FullBackupOnlyTrueWithAgentApp",
70        ":NonDebuggableApp",
71    ],
72    per_testcase_directory: true,
73}
74
75test_module_config_host {
76    name: "CtsBackupHostTestCases_backup_othersoundssettingshostsidetest",
77    base: "CtsBackupHostTestCases",
78    test_suites: ["general-tests"],
79    include_filters: ["android.cts.backup.OtherSoundsSettingsHostSideTest"],
80}
81