Home
last modified time | relevance | path

Searched refs:cras_bt_device (Results 1 – 25 of 28) sorted by relevance

12

/external/adhd/cras/src/server/
Dcras_bt_device.h12 struct cras_bt_device;
29 struct cras_bt_device *cras_bt_device_create(DBusConnection *conn,
36 void cras_bt_device_remove(struct cras_bt_device *device);
40 struct cras_bt_device *cras_bt_device_get(const char *object_path);
42 const char *cras_bt_device_object_path(const struct cras_bt_device *device);
44 cras_bt_device_adapter(const struct cras_bt_device *device);
45 const char *cras_bt_device_address(const struct cras_bt_device *device);
46 const char *cras_bt_device_name(const struct cras_bt_device *device);
47 int cras_bt_device_paired(const struct cras_bt_device *device);
48 int cras_bt_device_trusted(const struct cras_bt_device *device);
[all …]
Dcras_bt_device.c88 struct cras_bt_device { struct
110 struct cras_bt_device *prev, *next; argument
123 struct cras_bt_device *device;
128 static struct cras_bt_device *devices;
152 struct cras_bt_device *cras_bt_device_create(DBusConnection *conn, in cras_bt_device_create()
155 struct cras_bt_device *device; in cras_bt_device_create()
201 struct cras_bt_device *device, in cras_bt_device_connect_profile()
240 struct cras_bt_device *device) in cras_bt_device_disconnect()
273 static void cras_bt_device_destroy(struct cras_bt_device *device) in cras_bt_device_destroy()
291 void cras_bt_device_remove(struct cras_bt_device *device) in cras_bt_device_remove()
[all …]
Dcras_hfp_ag_profile.c91 struct cras_bt_device *device;
100 static int need_go_sco_pcm(struct cras_bt_device *device) in need_go_sco_pcm()
134 static int has_audio_gateway(struct cras_bt_device *device) in has_audio_gateway()
185 static int check_for_conflict_ag(struct cras_bt_device *new_connected) in check_for_conflict_ag()
204 int cras_hfp_ag_remove_conflict(struct cras_bt_device *device) in cras_hfp_ag_remove_conflict()
220 struct cras_bt_device *device, in cras_hfp_ag_new_connection()
265 struct cras_bt_device *device) in cras_hfp_ag_request_disconnection()
306 struct cras_bt_device *device, in cras_hsp_ag_new_connection()
336 struct cras_bt_device *device) in cras_hsp_ag_request_disconnection()
364 int cras_hfp_ag_start(struct cras_bt_device *device) in cras_hfp_ag_start()
[all …]
Dcras_hfp_ag_profile.h26 int cras_hfp_ag_start(struct cras_bt_device *device);
35 int cras_hfp_ag_remove_conflict(struct cras_bt_device *device);
38 void cras_hfp_ag_suspend_connected_device(struct cras_bt_device *device);
44 struct hfp_slc_handle *cras_hfp_ag_get_slc(struct cras_bt_device *device);
Dcras_a2dp_endpoint.h16 struct cras_bt_device *cras_a2dp_connected_device();
21 void cras_a2dp_suspend_connected_device(struct cras_bt_device *device);
24 void cras_a2dp_start(struct cras_bt_device *device);
Dcras_a2dp_endpoint.c26 struct cras_bt_device *device;
135 struct cras_bt_device *device; in cras_a2dp_set_configuration()
144 struct cras_bt_device *device = cras_bt_transport_device(transport); in cras_a2dp_suspend()
186 void cras_a2dp_start(struct cras_bt_device *device) in cras_a2dp_start()
210 struct cras_bt_device *cras_a2dp_connected_device() in cras_a2dp_connected_device()
215 void cras_a2dp_suspend_connected_device(struct cras_bt_device *device) in cras_a2dp_suspend_connected_device()
Dcras_bt_profile.h30 struct cras_bt_device *device, int rfcomm_fd);
32 struct cras_bt_device *device);
58 void cras_bt_profile_on_device_disconnected(struct cras_bt_device *device);
Dcras_hfp_slc.h10 struct cras_bt_device;
67 struct cras_bt_device *device,
Dcras_a2dp_iodev.c253 struct cras_bt_device *device; in close_dev()
289 struct cras_bt_device *device; in flush_data()
418 struct cras_bt_device *device = in set_volume()
457 struct cras_bt_device *device; in a2dp_iodev_create()
531 struct cras_bt_device *device; in a2dp_iodev_destroy()
Dcras_hfp_alsa_iodev.h24 struct cras_bt_device *device,
Dcras_hfp_iodev.h19 struct cras_bt_device *device,
Dcras_bt_profile.c85 struct cras_bt_device *device; in cras_bt_profile_handle_new_connection()
154 struct cras_bt_device *device; in cras_bt_profile_handle_request_disconnection()
421 void cras_bt_profile_on_device_disconnected(struct cras_bt_device *device) in cras_bt_profile_on_device_disconnected()
Dcras_bt_manager.c58 struct cras_bt_device *device; in cras_bt_interface_added()
123 struct cras_bt_device *device; in cras_bt_interface_removed()
162 struct cras_bt_device *device; in cras_bt_update_properties()
Dcras_bt_io.h14 struct cras_iodev *cras_bt_io_create(struct cras_bt_device *device,
Dcras_bt_io.c44 struct cras_bt_device *device;
87 static void bt_switch_to_profile(struct cras_bt_device *device, in bt_switch_to_profile()
110 static int device_using_profile(struct cras_bt_device *device, in device_using_profile()
377 struct cras_iodev *cras_bt_io_create(struct cras_bt_device *device, in cras_bt_io_create()
Dcras_bt_transport.h49 struct cras_bt_device *
Dcras_hfp_alsa_iodev.c31 struct cras_bt_device *device;
238 struct cras_bt_device *device, in hfp_alsa_iodev_create()
Dcras_hfp_iodev.c36 struct cras_bt_device *device;
268 struct cras_bt_device *device, in hfp_iodev_create()
/external/adhd/cras/src/tests/
Dhfp_ag_profile_unittest.cc17 static struct cras_bt_device* fake_device;
25 static struct cras_bt_device* cras_bt_device_notify_profile_dropped_dev;
54 fake_device = (struct cras_bt_device*)0xdeadbeef; in TEST_F()
80 fake_device = (struct cras_bt_device*)0xdeadbeef; in TEST_F()
98 struct cras_bt_device* new_dev = in TEST_F()
99 reinterpret_cast<struct cras_bt_device*>(0x123); in TEST_F()
103 fake_device = (struct cras_bt_device*)0xdeadbeef; in TEST_F()
141 struct cras_bt_device* device, in hfp_alsa_iodev_create()
153 struct cras_bt_device* device, in hfp_iodev_create()
186 int cras_bt_device_has_a2dp(struct cras_bt_device* device) { in cras_bt_device_has_a2dp()
[all …]
Dbt_device_unittest.cc42 static struct cras_bt_device* cras_a2dp_connected_device_ret;
43 static struct cras_bt_device* cras_a2dp_suspend_connected_device_dev;
130 struct cras_bt_device* device; in TEST()
144 struct cras_bt_device* device; in TEST_F()
180 struct cras_bt_device* device; in TEST_F()
210 struct cras_bt_device* device; in TEST_F()
241 struct cras_bt_device* device; in TEST_F()
275 struct cras_bt_device* device; in TEST_F()
318 struct cras_bt_device* device; in TEST_F()
338 reinterpret_cast<struct cras_bt_device*>(0x99); in TEST_F()
[all …]
Dbt_io_unittest.cc14 static struct cras_bt_device* fake_device =
15 reinterpret_cast<struct cras_bt_device*>(0x123);
400 int cras_bt_device_get_active_profile(const struct cras_bt_device* device) { in cras_bt_device_get_active_profile()
404 void cras_bt_device_set_active_profile(struct cras_bt_device* device, in cras_bt_device_set_active_profile()
410 int cras_bt_device_has_a2dp(struct cras_bt_device* device) { in cras_bt_device_has_a2dp()
414 int cras_bt_device_can_switch_to_a2dp(struct cras_bt_device* device) { in cras_bt_device_can_switch_to_a2dp()
418 int cras_bt_device_switch_profile(struct cras_bt_device* device, in cras_bt_device_switch_profile()
424 int cras_bt_device_switch_profile_enable_dev(struct cras_bt_device* device, in cras_bt_device_switch_profile_enable_dev()
430 const char* cras_bt_device_object_path(const struct cras_bt_device* device) { in cras_bt_device_object_path()
434 int cras_bt_device_get_use_hardware_volume(struct cras_bt_device* device) { in cras_bt_device_get_use_hardware_volume()
Dhfp_iodev_unittest.cc17 static struct cras_bt_device* fake_device;
252 int cras_bt_device_sco_connect(struct cras_bt_device* device, int codec) { in cras_bt_device_sco_connect()
257 const char* cras_bt_device_name(const struct cras_bt_device* device) { in cras_bt_device_name()
261 const char* cras_bt_device_address(const struct cras_bt_device* device) { in cras_bt_device_address()
265 void cras_bt_device_append_iodev(struct cras_bt_device* device, in cras_bt_device_append_iodev()
271 void cras_bt_device_rm_iodev(struct cras_bt_device* device, in cras_bt_device_rm_iodev()
276 int cras_bt_device_sco_packet_size(struct cras_bt_device* device, in cras_bt_device_sco_packet_size()
281 const char* cras_bt_device_object_path(const struct cras_bt_device* device) { in cras_bt_device_object_path()
Dhfp_alsa_iodev_unittest.cc17 struct cras_bt_device* device;
23 static struct cras_bt_device* fake_device;
429 const char* cras_bt_device_name(const struct cras_bt_device* device) { in cras_bt_device_name()
433 const char* cras_bt_device_address(const struct cras_bt_device* device) { in cras_bt_device_address()
437 void cras_bt_device_append_iodev(struct cras_bt_device* device, in cras_bt_device_append_iodev()
443 void cras_bt_device_rm_iodev(struct cras_bt_device* device, in cras_bt_device_rm_iodev()
448 const char* cras_bt_device_object_path(const struct cras_bt_device* device) { in cras_bt_device_object_path()
466 int cras_bt_device_get_sco(struct cras_bt_device* device, int codec) { in cras_bt_device_get_sco()
470 void cras_bt_device_put_sco(struct cras_bt_device* device) {} in cras_bt_device_put_sco()
Da2dp_iodev_unittest.cc461 struct cras_bt_device* cras_bt_transport_device( in cras_bt_transport_device()
463 return reinterpret_cast<struct cras_bt_device*>(0x456); in cras_bt_transport_device()
473 const char* cras_bt_device_name(const struct cras_bt_device* device) { in cras_bt_device_name()
477 const char* cras_bt_device_object_path(const struct cras_bt_device* device) { in cras_bt_device_object_path()
481 void cras_bt_device_append_iodev(struct cras_bt_device* device, in cras_bt_device_append_iodev()
487 void cras_bt_device_rm_iodev(struct cras_bt_device* device, in cras_bt_device_rm_iodev()
492 int cras_bt_device_get_use_hardware_volume(struct cras_bt_device* device) { in cras_bt_device_get_use_hardware_volume()
496 int cras_bt_device_cancel_suspend(struct cras_bt_device* device) { in cras_bt_device_cancel_suspend()
500 int cras_bt_device_schedule_suspend(struct cras_bt_device* device, in cras_bt_device_schedule_suspend()
Dhfp_slc_unittest.cc26 static struct cras_bt_device* device =
27 reinterpret_cast<struct cras_bt_device*>(2);
289 void cras_bt_device_update_hardware_volume(struct cras_bt_device* device, in cras_bt_device_update_hardware_volume()

12