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 | ], |
| 12 | static_libs: ["junit"], |
| 13 | platform_apis: true, |
| 14 | certificate: "platform", |
| 15 | privileged: true, |
| 16 | } |
| 17 | |
| 18 | android_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: ["androidx.test.rules"], |
| 28 | libs: ["android.test.base"], |
| 29 | resource_dirs: ["res"], |
| 30 | aaptflags: [ |
| 31 | "--auto-add-overlay", |
| 32 | "--extra-packages", |
| 33 | "com.android.providers.settings", |
| 34 | ], |
| 35 | platform_apis: true, |
| 36 | certificate: "platform", |
| 37 | test_suites: ["device-tests"], |
| 38 | manifest: "test/AndroidManifest.xml", |
| 39 | test_config: "test/AndroidTest.xml", |
| 40 | } |