Home
last modified time | relevance | path

Searched refs:hfp_slc_handle (Results 1 – 15 of 15) sorted by relevance

/external/adhd/cras/src/server/
Dcras_hfp_slc.h9 struct hfp_slc_handle;
68 typedef int (*hfp_slc_init_cb)(struct hfp_slc_handle *handle);
71 typedef int (*hfp_slc_disconnect_cb)(struct hfp_slc_handle *handle);
85 struct hfp_slc_handle *hfp_slc_create(int fd, int is_hsp,
92 void hfp_slc_destroy(struct hfp_slc_handle *handle);
97 int hfp_slc_is_hsp(struct hfp_slc_handle *handle);
100 int hfp_set_call_status(struct hfp_slc_handle *handle, int call);
103 int hfp_event_incoming_call(struct hfp_slc_handle *handle, const char *number,
108 int hfp_event_update_call(struct hfp_slc_handle *handle);
112 int hfp_event_update_callsetup(struct hfp_slc_handle *handle);
[all …]
Dcras_hfp_slc.c88 struct hfp_slc_handle { struct
118 int (*callback)(struct hfp_slc_handle *handle, const char *cmd); argument
122 static int hfp_send(struct hfp_slc_handle *handle, const char *buf) in hfp_send()
142 static int hfp_send_ind_event_report(struct hfp_slc_handle *handle, in hfp_send_ind_event_report()
158 static int hfp_send_calling_line_identification(struct hfp_slc_handle *handle, in hfp_send_calling_line_identification()
175 static int answer_call(struct hfp_slc_handle *handle, const char *cmd) in answer_call()
187 static int call_waiting_notify(struct hfp_slc_handle *handle, const char *buf) in call_waiting_notify()
195 static int cli_notification(struct hfp_slc_handle *handle, const char *cmd) in cli_notification()
209 static int dial_number(struct hfp_slc_handle *handle, const char *cmd) in dial_number()
243 static int dtmf_tone(struct hfp_slc_handle *handle, const char *buf) in dtmf_tone()
[all …]
Dcras_telephony.c97 struct hfp_slc_handle *handle; in handle_incoming_call()
155 struct hfp_slc_handle *handle; in handle_set_battery()
174 struct hfp_slc_handle *handle; in handle_set_signal()
193 struct hfp_slc_handle *handle; in handle_set_service()
212 struct hfp_slc_handle *handle; in handle_set_callheld()
232 struct hfp_slc_handle *handle; in handle_set_callsetup()
252 struct hfp_slc_handle *handle; in handle_set_call()
384 struct hfp_slc_handle *handle; in cras_telephony_event_answer_call()
416 struct hfp_slc_handle *handle; in cras_telephony_event_terminate_call()
Dcras_hfp_ag_profile.h27 struct hfp_slc_handle;
51 struct hfp_slc_handle *cras_hfp_ag_get_active_handle();
54 struct hfp_slc_handle *cras_hfp_ag_get_slc(struct cras_bt_device *device);
Dcras_hfp_alsa_iodev.h13 struct hfp_slc_handle;
25 struct hfp_slc_handle *slc,
Dcras_hfp_iodev.h13 struct hfp_slc_handle;
20 struct hfp_slc_handle *slc,
Dcras_hfp_ag_profile.c97 struct hfp_slc_handle *slc_handle;
164 static int cras_hfp_ag_slc_initialized(struct hfp_slc_handle *handle) in cras_hfp_ag_slc_initialized()
190 static int cras_hfp_ag_slc_disconnected(struct hfp_slc_handle *handle) in cras_hfp_ag_slc_disconnected()
441 struct hfp_slc_handle *cras_hfp_ag_get_active_handle() in cras_hfp_ag_get_active_handle()
448 struct hfp_slc_handle *cras_hfp_ag_get_slc(struct cras_bt_device *device) in cras_hfp_ag_get_slc()
Dcras_hfp_alsa_iodev.c31 struct hfp_slc_handle *slc;
238 struct hfp_slc_handle *slc, in hfp_alsa_iodev_create()
Dcras_hfp_iodev.c36 struct hfp_slc_handle *slc;
285 struct hfp_slc_handle *slc, in hfp_iodev_create()
/external/adhd/cras/src/tests/
Dhfp_ag_profile_unittest.cc142 struct hfp_slc_handle* slc, in hfp_alsa_iodev_create()
154 struct hfp_slc_handle* slc, in hfp_iodev_create()
203 void hfp_slc_destroy(struct hfp_slc_handle* slc_handle) {} in hfp_slc_destroy()
234 struct hfp_slc_handle* hfp_slc_create(int fd, in hfp_slc_create()
243 int hfp_slc_get_selected_codec(struct hfp_slc_handle* handle) { in hfp_slc_get_selected_codec()
246 int hfp_slc_get_ag_codec_negotiation_supported(struct hfp_slc_handle* handle) { in hfp_slc_get_ag_codec_negotiation_supported()
250 int hfp_slc_get_hf_codec_negotiation_supported(struct hfp_slc_handle* handle) { in hfp_slc_get_hf_codec_negotiation_supported()
254 int hfp_slc_get_hf_supports_battery_indicator(struct hfp_slc_handle* handle) { in hfp_slc_get_hf_supports_battery_indicator()
258 int hfp_slc_get_hf_battery_level(struct hfp_slc_handle* handle) { in hfp_slc_get_hf_battery_level()
Dhfp_iodev_unittest.cc18 static struct hfp_slc_handle* fake_slc;
380 int hfp_set_call_status(struct hfp_slc_handle* handle, int call) { in hfp_set_call_status()
384 int hfp_event_speaker_gain(struct hfp_slc_handle* handle, int gain) { in hfp_event_speaker_gain()
388 int hfp_slc_get_selected_codec(struct hfp_slc_handle* handle) { in hfp_slc_get_selected_codec()
392 bool hfp_slc_get_wideband_speech_supported(struct hfp_slc_handle* handle) { in hfp_slc_get_wideband_speech_supported()
396 int hfp_slc_codec_connection_setup(struct hfp_slc_handle* handle) { in hfp_slc_codec_connection_setup()
400 int hfp_slc_is_hsp(struct hfp_slc_handle* handle) { in hfp_slc_is_hsp()
Dhfp_slc_unittest.cc17 static struct hfp_slc_handle* handle;
32 int slc_initialized_cb(struct hfp_slc_handle* handle);
33 int slc_disconnected_cb(struct hfp_slc_handle* handle);
371 int slc_initialized_cb(struct hfp_slc_handle* handle) { in slc_initialized_cb()
376 int slc_disconnected_cb(struct hfp_slc_handle* handle) { in slc_disconnected_cb()
Dhfp_alsa_iodev_unittest.cc18 struct hfp_slc_handle* slc;
24 static struct hfp_slc_handle* fake_slc;
518 int hfp_set_call_status(struct hfp_slc_handle* handle, int call) { in hfp_set_call_status()
523 int hfp_event_speaker_gain(struct hfp_slc_handle* handle, int gain) { in hfp_event_speaker_gain()
534 int hfp_slc_get_selected_codec(struct hfp_slc_handle* handle) { in hfp_slc_get_selected_codec()
Dbt_device_unittest.cc600 struct hfp_slc_handle* cras_hfp_ag_get_slc(struct cras_bt_device* device) { in cras_hfp_ag_get_slc()
634 int hfp_event_speaker_gain(struct hfp_slc_handle* handle, int gain) { in hfp_event_speaker_gain()
/external/adhd/cras/src/fuzz/
Dcras_hfp_slc.cc24 int disconnect_cb(struct hfp_slc_handle*) { in disconnect_cb() argument
36 struct hfp_slc_handle* handle = hfp_slc_create( in LLVMFuzzerTestOneInput()