xref: /aosp_15_r20/frameworks/base/packages/WallpaperBackup/Android.bp (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
1//
2// Copyright (C) 2016 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    // See: http://go/android-license-faq
19    // A large-scale-change added 'default_applicable_licenses' to import
20    // all of the 'license_kinds' from "frameworks_base_license"
21    // to get the below license kinds:
22    //   SPDX-license-identifier-Apache-2.0
23    default_applicable_licenses: ["frameworks_base_license"],
24}
25
26android_app {
27    name: "WallpaperBackup",
28    defaults: ["platform_app_defaults"],
29    srcs: ["src/**/*.java"],
30    platform_apis: true,
31    certificate: "platform",
32    privileged: false,
33}
34
35android_test {
36    name: "WallpaperBackupAgentTests",
37    manifest: "test/AndroidManifest.xml",
38    test_config: "test/AndroidTest.xml",
39    srcs: [
40        // Include the app source code because the app runs as the system user on-device.
41        "src/**/*.java",
42        "test/src/**/*.java",
43    ],
44    libs: [
45        "android.test.base.stubs.system",
46        "android.test.runner.stubs.system",
47    ],
48    static_libs: [
49        "androidx.test.core",
50        "androidx.test.rules",
51        "mockito-target-minus-junit4",
52        "truth",
53    ],
54    resource_dirs: ["test/res"],
55    certificate: "platform",
56    platform_apis: true,
57    test_suites: ["device-tests"],
58}
59