blob: 92954964278c1cb027cd7ea6187a602601ce5322 [file] [log] [blame]
Sasha Smundaka7335a92019-02-08 15:13:25 -08001android_app {
2 name: "SettingsProvider",
3 resource_dirs: ["res"],
4 srcs: [
5 "src/**/*.java",
6 "src/com/android/providers/settings/EventLogTags.logtags",
7 ],
8 libs: [
9 "telephony-common",
10 "ims-common",
11 ],
12 static_libs: ["junit"],
13 platform_apis: true,
14 certificate: "platform",
15 privileged: true,
16}
17
18android_test {
19 name: "SettingsProviderTest",
20 // Note we statically link several classes to do some unit tests. It's not accessible otherwise
21 // because this test is not an instrumentation test. (because the target runs in the system process.)
22 srcs: [
23 "test/**/*.java",
24 "src/com/android/providers/settings/SettingsState.java",
25 "src/com/android/providers/settings/SettingsHelper.java",
26 ],
27 static_libs: [
28 "android-support-test",
29 "truth-prebuilt",
30 ],
31 libs: ["android.test.base"],
32 resource_dirs: ["res"],
33 aaptflags: [
34 "--auto-add-overlay",
35 "--extra-packages",
36 "com.android.providers.settings",
37 ],
38 platform_apis: true,
39 certificate: "platform",
40 test_suites: ["device-tests"],
41 manifest: "test/AndroidManifest.xml",
42 test_config: "test/AndroidTest.xml",
43}