2 // ========================================================
5 "system/bt/bta/include",
8 "system/bt/btcore/include",
9 "system/bt/device/include",
10 "system/bt/internal_include",
11 "system/bt/stack/include",
12 "system/bt/stack/l2cap",
13 "system/bt/stack/a2dp",
14 "system/bt/stack/btm",
15 "system/bt/stack/avdt",
16 "system/bt/udrv/include",
17 "system/bt/btif/avrcp",
18 "system/bt/btif/include",
20 "system/bt/hci/include",
21 "system/bt/vnd/include",
22 "system/bt/embdrv/sbc/encoder/include",
23 "system/bt/embdrv/sbc/decoder/include",
24 "system/bt/utils/include",
26 "system/libhwbinder/include",
29 // libbtif static library for target
30 // ========================================================
33 defaults: ["fluoride_defaults"],
34 include_dirs: btifCommonIncludes,
36 // AVRCP Target Service
37 "avrcp/avrcp_service.cc",
46 // BTIF implementation
48 "src/btif_a2dp_audio_interface.cc",
49 "src/btif_a2dp_control.cc",
50 "src/btif_a2dp_sink.cc",
51 "src/btif_a2dp_source.cc",
53 "src/btif_avrcp_audio_track.cc",
54 "src/btif_ble_advertiser.cc",
55 "src/btif_ble_scanner.cc",
58 "src/btif_config_cache.cc",
59 "src/btif_config_transcode.cc",
62 "src/btif_debug_btsnoop.cc",
63 "src/btif_debug_conn.cc",
66 "src/btif_gatt_client.cc",
67 "src/btif_gatt_server.cc",
68 "src/btif_gatt_test.cc",
69 "src/btif_gatt_util.cc",
70 "src/btif_hearing_aid.cc",
72 "src/btif_hf_client.cc",
77 "src/btif_profile_queue.cc",
80 "src/btif_sdp_server.cc",
82 "src/btif_sock_rfc.cc",
83 "src/btif_sock_l2cap.cc",
84 "src/btif_sock_sco.cc",
85 "src/btif_sock_sdp.cc",
86 "src/btif_sock_thread.cc",
87 "src/btif_sock_util.cc",
88 "src/btif_storage.cc",
91 "src/btif_keystore.cc",
92 "src/stack_manager.cc",
104 "android.hardware.bluetooth.a2dp@1.0",
105 "android.hardware.bluetooth.audio@2.0",
111 "avrcp-target-service",
112 "libaudio-a2dp-hw-utils",
114 "libbt-audio-hal-interface",
122 // btif unit tests for target
123 // ========================================================
125 name: "net_test_btif",
126 defaults: ["fluoride_defaults"],
127 test_suites: ["device-tests"],
128 include_dirs: btifCommonIncludes,
130 "test/btif_storage_test.cc",
132 header_libs: ["libbluetooth_headers"],
135 "android.hardware.bluetooth@1.0",
136 "android.hardware.bluetooth.a2dp@1.0",
137 "android.hardware.bluetooth.audio@2.0",
141 "libprotobuf-cpp-lite",
160 "libbluetooth-types",
166 "libbluetooth-for-tests",
168 cflags: ["-DBUILDCFG"],
170 integer_overflow: true,
174 // btif profile queue unit tests for target
175 // ========================================================
177 name: "net_test_btif_profile_queue",
178 defaults: ["fluoride_defaults"],
179 test_suites: ["device-tests"],
180 include_dirs: btifCommonIncludes,
182 "src/btif_profile_queue.cc",
183 "test/btif_profile_queue_test.cc",
185 header_libs: ["libbluetooth_headers"],
191 "libbluetooth-types",
194 cflags: ["-DBUILDCFG"],
197 // btif rc unit tests for target
198 // ========================================================
200 name: "net_test_btif_rc",
201 defaults: ["fluoride_defaults"],
202 test_suites: ["device-tests"],
203 host_supported: true,
204 include_dirs: btifCommonIncludes,
206 "test/btif_rc_test.cc",
208 header_libs: ["libbluetooth_headers"],
213 "libprotobuf-cpp-lite",
216 "libbluetooth-types",
220 "libosi-AllocationTestHarness",
222 cflags: ["-DBUILDCFG"],
226 misc_undefined: ["bounds"],
230 // btif config cache unit tests for target
231 // ========================================================
233 name: "net_test_btif_config_cache",
234 defaults: ["fluoride_defaults"],
235 test_suites: ["device-tests"],
236 host_supported: true,
237 include_dirs: btifCommonIncludes,
239 "src/btif_config_cache.cc",
240 "test/btif_config_cache_test.cc",
242 header_libs: ["libbluetooth_headers"],
248 "libbluetooth-types",
253 cflags: ["-DBUILDCFG"],
256 // btif hf client service tests for target
257 // ========================================================
259 name: "net_test_btif_hf_client_service",
260 defaults: ["fluoride_defaults"],
261 test_suites: ["device-tests"],
262 include_dirs: btifCommonIncludes,
264 "test/btif_hf_client_service_test.cc",
266 header_libs: ["libbluetooth_headers"],
272 "libbluetooth-types",
275 cflags: ["-DBUILDCFG"],