2019-02-06 18:26:09 +00:00
|
|
|
// Build the Telecom service.
|
|
|
|
android_app {
|
|
|
|
name: "Telecom",
|
|
|
|
srcs: [
|
|
|
|
"src/**/*.java",
|
|
|
|
"proto/**/*.proto",
|
|
|
|
],
|
|
|
|
resource_dirs: ["res"],
|
|
|
|
proto: {
|
|
|
|
type: "nano",
|
|
|
|
local_include_dirs: ["proto/"],
|
|
|
|
output_params: ["optional_field_style=accessors"],
|
|
|
|
},
|
|
|
|
platform_apis: true,
|
|
|
|
certificate: "platform",
|
|
|
|
privileged: true,
|
|
|
|
optimize: {
|
|
|
|
proguard_flags_files: ["proguard.flags"],
|
|
|
|
},
|
|
|
|
defaults: ["SettingsLibDefaults"],
|
|
|
|
}
|
|
|
|
|
|
|
|
android_test {
|
|
|
|
name: "TelecomUnitTests",
|
|
|
|
static_libs: [
|
|
|
|
"android-ex-camera2",
|
|
|
|
"guava",
|
|
|
|
"mockito-target-inline",
|
2019-03-20 06:10:05 +00:00
|
|
|
"androidx.test.rules",
|
2019-02-06 18:26:09 +00:00
|
|
|
"platform-test-annotations",
|
|
|
|
"androidx.legacy_legacy-support-core-ui",
|
|
|
|
"androidx.legacy_legacy-support-core-utils",
|
|
|
|
"androidx.core_core",
|
|
|
|
"androidx.fragment_fragment",
|
2019-11-12 00:59:44 +00:00
|
|
|
"androidx.test.ext.junit"
|
2019-02-06 18:26:09 +00:00
|
|
|
],
|
|
|
|
srcs: [
|
|
|
|
"tests/src/**/*.java",
|
|
|
|
"src/**/*.java",
|
|
|
|
"proto/**/*.proto",
|
|
|
|
],
|
|
|
|
proto: {
|
|
|
|
type: "nano",
|
|
|
|
local_include_dirs: ["proto/"],
|
|
|
|
output_params: ["optional_field_style=accessors"],
|
|
|
|
},
|
|
|
|
resource_dirs: [
|
|
|
|
"tests/res",
|
|
|
|
"res",
|
|
|
|
],
|
|
|
|
libs: [
|
|
|
|
"android.test.mock",
|
|
|
|
"android.test.base",
|
|
|
|
"android.test.runner",
|
|
|
|
],
|
|
|
|
|
|
|
|
jni_libs: ["libdexmakerjvmtiagent"],
|
|
|
|
|
|
|
|
aaptflags: [
|
|
|
|
"--auto-add-overlay",
|
|
|
|
"--extra-packages",
|
|
|
|
"com.android.server.telecom",
|
|
|
|
],
|
|
|
|
manifest: "tests/AndroidManifest.xml",
|
|
|
|
optimize: {
|
|
|
|
enabled: false,
|
|
|
|
},
|
|
|
|
platform_apis: true,
|
|
|
|
certificate: "platform",
|
|
|
|
jacoco: {
|
|
|
|
include_filter: ["com.android.server.telecom.*"],
|
|
|
|
exclude_filter: ["com.android.server.telecom.tests.*"],
|
|
|
|
},
|
|
|
|
test_suites: ["device-tests"],
|
|
|
|
defaults: ["SettingsLibDefaults"],
|
|
|
|
}
|