2019-02-08 15:13:25 -08:00
|
|
|
android_app {
|
|
|
|
name: "SettingsProvider",
|
|
|
|
resource_dirs: ["res"],
|
|
|
|
srcs: [
|
|
|
|
"src/**/*.java",
|
|
|
|
"src/com/android/providers/settings/EventLogTags.logtags",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"telephony-common",
|
|
|
|
"ims-common",
|
|
|
|
],
|
2019-07-12 11:42:03 +01:00
|
|
|
static_libs: [
|
|
|
|
"junit",
|
2019-08-19 13:42:16 +01:00
|
|
|
"SettingsLibDisplayDensityUtils",
|
2019-07-12 11:42:03 +01:00
|
|
|
],
|
2019-02-08 15:13:25 -08:00
|
|
|
platform_apis: true,
|
|
|
|
certificate: "platform",
|
|
|
|
privileged: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
android_test {
|
|
|
|
name: "SettingsProviderTest",
|
|
|
|
// Note we statically link several classes to do some unit tests. It's not accessible otherwise
|
|
|
|
// because this test is not an instrumentation test. (because the target runs in the system process.)
|
|
|
|
srcs: [
|
|
|
|
"test/**/*.java",
|
2019-08-22 16:21:30 +01:00
|
|
|
"src/android/provider/settings/backup/*",
|
2019-08-16 12:56:57 +01:00
|
|
|
"src/android/provider/settings/validators/*",
|
2019-07-12 11:42:03 +01:00
|
|
|
"src/com/android/providers/settings/SettingsBackupAgent.java",
|
2019-02-08 15:13:25 -08:00
|
|
|
"src/com/android/providers/settings/SettingsState.java",
|
|
|
|
"src/com/android/providers/settings/SettingsHelper.java",
|
|
|
|
],
|
2019-07-12 11:42:03 +01:00
|
|
|
static_libs: [
|
|
|
|
"androidx.test.rules",
|
2019-08-19 13:42:16 +01:00
|
|
|
"SettingsLibDisplayDensityUtils",
|
2019-08-16 12:56:57 +01:00
|
|
|
"platform-test-annotations",
|
|
|
|
"truth-prebuilt",
|
2019-07-12 11:42:03 +01:00
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"android.test.base",
|
|
|
|
"android.test.mock",
|
|
|
|
],
|
2019-02-08 15:13:25 -08:00
|
|
|
resource_dirs: ["res"],
|
|
|
|
aaptflags: [
|
|
|
|
"--auto-add-overlay",
|
|
|
|
"--extra-packages",
|
|
|
|
"com.android.providers.settings",
|
|
|
|
],
|
|
|
|
platform_apis: true,
|
|
|
|
certificate: "platform",
|
|
|
|
test_suites: ["device-tests"],
|
|
|
|
manifest: "test/AndroidManifest.xml",
|
|
|
|
test_config: "test/AndroidTest.xml",
|
|
|
|
}
|