1package {
2    default_applicable_licenses: [
3        "frameworks_base_packages_SettingsProvider_license",
4    ],
5}
6
7// Added automatically by a large-scale-change
8// See: http://go/android-license-faq
9license {
10    name: "frameworks_base_packages_SettingsProvider_license",
11    visibility: [":__subpackages__"],
12    license_kinds: [
13        "SPDX-license-identifier-Apache-2.0",
14    ],
15    license_text: [
16        "NOTICE",
17    ],
18}
19
20android_app {
21    name: "SettingsProvider",
22    defaults: ["platform_app_defaults"],
23    resource_dirs: ["res"],
24    srcs: [
25        "src/**/*.java",
26        "src/com/android/providers/settings/EventLogTags.logtags",
27    ],
28    libs: [
29        "telephony-common",
30        "ims-common",
31        "unsupportedappusage",
32    ],
33    static_libs: [
34        "junit",
35        "SettingsLibDisplayDensityUtils",
36    ],
37    platform_apis: true,
38    certificate: "platform",
39    privileged: true,
40}
41
42android_test {
43    name: "SettingsProviderTest",
44    // Note we statically link several classes to do some unit tests.  It's not accessible otherwise
45    // because this test is not an instrumentation test. (because the target runs in the system process.)
46    srcs: [
47        "test/**/*.java",
48        "src/android/provider/settings/backup/*",
49        "src/android/provider/settings/validators/*",
50        "src/com/android/providers/settings/SettingsBackupAgent.java",
51        "src/com/android/providers/settings/SettingsState.java",
52        "src/com/android/providers/settings/SettingsHelper.java",
53        "src/com/android/providers/settings/WifiSoftApConfigChangedNotifier.java",
54    ],
55    static_libs: [
56        "androidx.test.rules",
57        "mockito-target-minus-junit4",
58        "SettingsLibDisplayDensityUtils",
59        "platform-test-annotations",
60        "truth-prebuilt",
61    ],
62    libs: [
63        "android.test.base",
64        "android.test.mock",
65        "unsupportedappusage",
66    ],
67    resource_dirs: ["res"],
68    aaptflags: [
69        "--auto-add-overlay",
70        "--extra-packages",
71        "com.android.providers.settings",
72    ],
73    platform_apis: true,
74    certificate: "platform",
75    test_suites: ["device-tests"],
76    manifest: "test/AndroidManifest.xml",
77    test_config: "test/AndroidTest.xml",
78}
79