blob: 49908a334623b35ec1efcc99fca484c3bcbfb6f4 [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 Sutton91f89d02019-08-16 12:56:57 +010027 "src/android/provider/settings/validators/*",
Al Sutton71dc8ff2019-07-12 11:42:03 +010028 "src/com/android/providers/settings/SettingsBackupAgent.java",
Sasha Smundakdf848ac2019-02-08 15:13:25 -080029 "src/com/android/providers/settings/SettingsState.java",
30 "src/com/android/providers/settings/SettingsHelper.java",
31 ],
Al Sutton71dc8ff2019-07-12 11:42:03 +010032 static_libs: [
33 "androidx.test.rules",
Al Suttone5e79162019-08-19 13:42:16 +010034 "SettingsLibDisplayDensityUtils",
Al Sutton91f89d02019-08-16 12:56:57 +010035 "platform-test-annotations",
36 "truth-prebuilt",
Al Sutton71dc8ff2019-07-12 11:42:03 +010037 ],
38 libs: [
39 "android.test.base",
40 "android.test.mock",
41 ],
Sasha Smundakdf848ac2019-02-08 15:13:25 -080042 resource_dirs: ["res"],
43 aaptflags: [
44 "--auto-add-overlay",
45 "--extra-packages",
46 "com.android.providers.settings",
47 ],
48 platform_apis: true,
49 certificate: "platform",
50 test_suites: ["device-tests"],
51 manifest: "test/AndroidManifest.xml",
52 test_config: "test/AndroidTest.xml",
53}