blob: 50a41d09f00bfbadf66af0eb0b7a1da8fbb4aa55 [file] [log] [blame]
Sasha Smundak4bef6152019-02-06 10:26:09 -08001// Build the Telecom service.
2android_app {
3 name: "Telecom",
Sasha Smundak4bef6152019-02-06 10:26:09 -08004 srcs: [
5 "src/**/*.java",
6 "proto/**/*.proto",
7 ],
8 resource_dirs: ["res"],
9 proto: {
10 type: "nano",
11 local_include_dirs: ["proto/"],
12 output_params: ["optional_field_style=accessors"],
13 },
14 platform_apis: true,
15 certificate: "platform",
16 privileged: true,
17 optimize: {
18 proguard_flags_files: ["proguard.flags"],
19 },
20 defaults: ["SettingsLibDefaults"],
21}
22
23android_test {
24 name: "TelecomUnitTests",
25 static_libs: [
26 "android-ex-camera2",
27 "guava",
28 "mockito-target-inline",
koushik panuganti5fb84992019-03-19 23:10:05 -070029 "androidx.test.rules",
Sasha Smundak4bef6152019-02-06 10:26:09 -080030 "platform-test-annotations",
31 "androidx.legacy_legacy-support-core-ui",
32 "androidx.legacy_legacy-support-core-utils",
33 "androidx.core_core",
34 "androidx.fragment_fragment",
Brad Ebinger81e8a252019-11-11 16:59:44 -080035 "androidx.test.ext.junit"
Sasha Smundak4bef6152019-02-06 10:26:09 -080036 ],
37 srcs: [
38 "tests/src/**/*.java",
39 "src/**/*.java",
40 "proto/**/*.proto",
41 ],
42 proto: {
43 type: "nano",
44 local_include_dirs: ["proto/"],
45 output_params: ["optional_field_style=accessors"],
46 },
47 resource_dirs: [
48 "tests/res",
49 "res",
50 ],
51 libs: [
52 "android.test.mock",
53 "android.test.base",
54 "android.test.runner",
Sasha Smundak4bef6152019-02-06 10:26:09 -080055 ],
56
57 jni_libs: ["libdexmakerjvmtiagent"],
58
59 aaptflags: [
60 "--auto-add-overlay",
61 "--extra-packages",
62 "com.android.server.telecom",
63 ],
64 manifest: "tests/AndroidManifest.xml",
65 optimize: {
66 enabled: false,
67 },
68 platform_apis: true,
69 certificate: "platform",
70 jacoco: {
71 include_filter: ["com.android.server.telecom.*"],
72 exclude_filter: ["com.android.server.telecom.tests.*"],
73 },
74 test_suites: ["device-tests"],
75 defaults: ["SettingsLibDefaults"],
76}