Sasha Smundak | df848ac | 2019-02-08 15:13:25 -0800 | [diff] [blame] | 1 | android_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 Sutton | 71dc8ff | 2019-07-12 11:42:03 +0100 | [diff] [blame] | 12 | static_libs: [ |
| 13 | "junit", |
Al Sutton | e5e7916 | 2019-08-19 13:42:16 +0100 | [diff] [blame] | 14 | "SettingsLibDisplayDensityUtils", |
Al Sutton | 71dc8ff | 2019-07-12 11:42:03 +0100 | [diff] [blame] | 15 | ], |
Sasha Smundak | df848ac | 2019-02-08 15:13:25 -0800 | [diff] [blame] | 16 | platform_apis: true, |
| 17 | certificate: "platform", |
| 18 | privileged: true, |
| 19 | } |
| 20 | |
| 21 | android_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 Sutton | 0833b2e | 2019-08-22 16:21:30 +0100 | [diff] [blame] | 27 | "src/android/provider/settings/backup/*", |
Al Sutton | 91f89d0 | 2019-08-16 12:56:57 +0100 | [diff] [blame] | 28 | "src/android/provider/settings/validators/*", |
Al Sutton | 71dc8ff | 2019-07-12 11:42:03 +0100 | [diff] [blame] | 29 | "src/com/android/providers/settings/SettingsBackupAgent.java", |
Sasha Smundak | df848ac | 2019-02-08 15:13:25 -0800 | [diff] [blame] | 30 | "src/com/android/providers/settings/SettingsState.java", |
| 31 | "src/com/android/providers/settings/SettingsHelper.java", |
| 32 | ], |
Al Sutton | 71dc8ff | 2019-07-12 11:42:03 +0100 | [diff] [blame] | 33 | static_libs: [ |
| 34 | "androidx.test.rules", |
Al Sutton | e5e7916 | 2019-08-19 13:42:16 +0100 | [diff] [blame] | 35 | "SettingsLibDisplayDensityUtils", |
Al Sutton | 91f89d0 | 2019-08-16 12:56:57 +0100 | [diff] [blame] | 36 | "platform-test-annotations", |
| 37 | "truth-prebuilt", |
Al Sutton | 71dc8ff | 2019-07-12 11:42:03 +0100 | [diff] [blame] | 38 | ], |
| 39 | libs: [ |
| 40 | "android.test.base", |
| 41 | "android.test.mock", |
| 42 | ], |
Sasha Smundak | df848ac | 2019-02-08 15:13:25 -0800 | [diff] [blame] | 43 | 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 | } |