blob: 681b4940a3c32572d9ef250efa93726252e481c3 [file] [log] [blame]
Sasha Smundakdf848ac2019-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 ],
Al Sutton71dc8ff2019-07-12 11:42:03 +010012 static_libs: [
13 "junit",
Al Suttone5e79162019-08-19 13:42:16 +010014 "SettingsLibDisplayDensityUtils",
Al Sutton71dc8ff2019-07-12 11:42:03 +010015 ],
Sasha Smundakdf848ac2019-02-08 15:13:25 -080016 platform_apis: true,
17 certificate: "platform",
18 privileged: true,
19}
20
21android_test {
22 name: "SettingsProviderTest",
23 // Note we statically link several classes to do some unit tests. It's not accessible otherwise
24 // because this test is not an instrumentation test. (because the target runs in the system process.)
25 srcs: [
26 "test/**/*.java",
Al Sutton0833b2e2019-08-22 16:21:30 +010027 "src/android/provider/settings/backup/*",
Al Sutton91f89d02019-08-16 12:56:57 +010028 "src/android/provider/settings/validators/*",
Al Sutton71dc8ff2019-07-12 11:42:03 +010029 "src/com/android/providers/settings/SettingsBackupAgent.java",
Sasha Smundakdf848ac2019-02-08 15:13:25 -080030 "src/com/android/providers/settings/SettingsState.java",
31 "src/com/android/providers/settings/SettingsHelper.java",
32 ],
Al Sutton71dc8ff2019-07-12 11:42:03 +010033 static_libs: [
34 "androidx.test.rules",
Al Suttone5e79162019-08-19 13:42:16 +010035 "SettingsLibDisplayDensityUtils",
Al Sutton91f89d02019-08-16 12:56:57 +010036 "platform-test-annotations",
37 "truth-prebuilt",
Al Sutton71dc8ff2019-07-12 11:42:03 +010038 ],
39 libs: [
40 "android.test.base",
41 "android.test.mock",
42 ],
Sasha Smundakdf848ac2019-02-08 15:13:25 -080043 resource_dirs: ["res"],
44 aaptflags: [
45 "--auto-add-overlay",
46 "--extra-packages",
47 "com.android.providers.settings",
48 ],
49 platform_apis: true,
50 certificate: "platform",
51 test_suites: ["device-tests"],
52 manifest: "test/AndroidManifest.xml",
53 test_config: "test/AndroidTest.xml",
54}