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