Home
last modified time | relevance | path

Searched refs:bt_status_t (Results 1 – 25 of 107) sorted by relevance

12345

/packages/modules/Bluetooth/system/include/hardware/
Dbluetooth_headset_interface.h43 virtual bt_status_t Init(Callbacks* callbacks, int max_hf_clients,
52 virtual bt_status_t Connect(RawAddress* bd_addr) = 0;
60 virtual bt_status_t Disconnect(RawAddress* bd_addr) = 0;
69 virtual bt_status_t ConnectAudio(RawAddress* bd_addr, bool force_cvsd) = 0;
77 virtual bt_status_t DisconnectAudio(RawAddress* bd_addr) = 0;
86 virtual bt_status_t isNoiseReductionSupported(RawAddress* bd_addr) = 0;
95 virtual bt_status_t isVoiceRecognitionSupported(RawAddress* bd_addr) = 0;
103 virtual bt_status_t StartVoiceRecognition(RawAddress* bd_addr) = 0;
111 virtual bt_status_t StopVoiceRecognition(RawAddress* bd_addr) = 0;
121 virtual bt_status_t VolumeControl(bthf_volume_type_t type, int volume,
[all …]
Dbt_gatt_client.h223 bt_status_t (*register_client)(const bluetooth::Uuid& uuid,
227 bt_status_t (*unregister_client)(int client_if);
230 bt_status_t (*connect)(int client_if, const RawAddress& bd_addr,
235 bt_status_t (*disconnect)(int client_if, const RawAddress& bd_addr,
239 bt_status_t (*refresh)(int client_if, const RawAddress& bd_addr);
245 bt_status_t (*search_service)(int conn_id,
255 bt_status_t (*read_characteristic)(int conn_id, uint16_t handle,
259 bt_status_t (*read_using_characteristic_uuid)(int conn_id,
266 bt_status_t (*write_characteristic)(int conn_id, uint16_t handle,
271 bt_status_t (*read_descriptor)(int conn_id, uint16_t handle, int auth_req);
[all …]
Dbt_rc.h434 bt_status_t (*init)(btrc_callbacks_t* callbacks);
441 bt_status_t (*get_play_status_rsp)(const RawAddress& bd_addr,
449 bt_status_t (*list_player_app_attr_rsp)(const RawAddress& bd_addr,
456 bt_status_t (*list_player_app_value_rsp)(const RawAddress& bd_addr,
461 bt_status_t (*get_player_app_value_rsp)(const RawAddress& bd_addr,
468 bt_status_t (*get_player_app_attr_text_rsp)(
476 bt_status_t (*get_player_app_value_text_rsp)(
485 bt_status_t (*get_element_attr_rsp)(const RawAddress& bd_addr,
493 bt_status_t (*set_player_app_value_rsp)(const RawAddress& bd_addr,
502 bt_status_t (*register_notification_rsp)(
[all …]
Dbt_hf_client.h337 bt_status_t (*init)(bthf_client_callbacks_t* callbacks);
340 bt_status_t (*connect)(const RawAddress* bd_addr);
343 bt_status_t (*disconnect)(const RawAddress* bd_addr);
346 bt_status_t (*connect_audio)(const RawAddress* bd_addr);
349 bt_status_t (*disconnect_audio)(const RawAddress* bd_addr);
352 bt_status_t (*start_voice_recognition)(const RawAddress* bd_addr);
355 bt_status_t (*stop_voice_recognition)(const RawAddress* bd_addr);
358 bt_status_t (*volume_control)(const RawAddress* bd_addr,
363 bt_status_t (*dial)(const RawAddress* bd_addr, const char* number);
366 bt_status_t (*dial_memory)(const RawAddress* bd_addr, int location);
[all …]
Dbt_hh.h176 bt_status_t (*init)(bthh_callbacks_t* callbacks);
179 bt_status_t (*connect)(RawAddress* bd_addr);
182 bt_status_t (*disconnect)(RawAddress* bd_addr);
185 bt_status_t (*virtual_unplug)(RawAddress* bd_addr);
188 bt_status_t (*set_info)(RawAddress* bd_addr, bthh_hid_info_t hid_info);
191 bt_status_t (*get_protocol)(RawAddress* bd_addr,
195 bt_status_t (*set_protocol)(RawAddress* bd_addr,
199 bt_status_t (*get_idle_time)(RawAddress* bd_addr);
202 bt_status_t (*set_idle_time)(RawAddress* bd_addr, uint8_t idleTime);
205 bt_status_t (*get_report)(RawAddress* bd_addr, bthh_report_type_t reportType,
[all …]
Dbt_gatt_server.h149 bt_status_t (*register_server)(const bluetooth::Uuid& uuid,
153 bt_status_t (*unregister_server)(int server_if);
156 bt_status_t (*connect)(int server_if, const RawAddress& bd_addr,
160 bt_status_t (*disconnect)(int server_if, const RawAddress& bd_addr,
164 bt_status_t (*add_service)(int server_if, const btgatt_db_element_t* service,
168 bt_status_t (*stop_service)(int server_if, int service_handle);
171 bt_status_t (*delete_service)(int server_if, int service_handle);
174 bt_status_t (*send_indication)(int server_if, int attribute_handle,
179 bt_status_t (*send_response)(int conn_id, int trans_id, int status,
182 bt_status_t (*set_preferred_phy)(const RawAddress& bd_addr, uint8_t tx_phy,
[all …]
Dbt_hd.h96 bt_status_t (*init)(bthd_callbacks_t* callbacks);
102 bt_status_t (*register_app)(bthd_app_param_t* app_param,
107 bt_status_t (*unregister_app)(void);
110 bt_status_t (*connect)(RawAddress* bd_addr);
113 bt_status_t (*disconnect)(void);
116 bt_status_t (*send_report)(bthd_report_type_t type, uint8_t id, uint16_t len,
120 bt_status_t (*report_error)(uint8_t error);
123 bt_status_t (*virtual_cable_unplug)(void);
Dbt_av.h273 bt_status_t status;
353 bt_status_t (*init)(
359 bt_status_t (*connect)(const RawAddress& bd_addr);
362 bt_status_t (*disconnect)(const RawAddress& bd_addr);
365 bt_status_t (*set_silence_device)(const RawAddress& bd_addr, bool silence);
368 bt_status_t (*set_active_device)(const RawAddress& bd_addr);
371 bt_status_t (*config_codec)(
388 bt_status_t (*init)(btav_sink_callbacks_t* callbacks,
392 bt_status_t (*connect)(const RawAddress& bd_addr);
395 bt_status_t (*disconnect)(const RawAddress& bd_addr);
[all …]
Dbt_pan.h43 bt_status_t error,
48 int local_role, bt_status_t error,
62 bt_status_t (*init)(const btpan_callbacks_t* callbacks);
69 bt_status_t (*enable)(int local_role);
78 bt_status_t (*connect)(const RawAddress* bd_addr, int local_role,
84 bt_status_t (*disconnect)(const RawAddress* bd_addr);
/packages/modules/Bluetooth/system/btif/include/
Dbtif_storage.h65 bt_status_t btif_in_fetch_bonded_device(const std::string& bdstr);
72 bt_status_t btif_in_fetch_bonded_ble_device(
89 bt_status_t btif_storage_get_adapter_property(bt_property_t* property);
102 bt_status_t btif_storage_set_adapter_property(bt_property_t* property);
117 bt_status_t btif_storage_get_remote_device_property(
131 bt_status_t btif_storage_set_remote_device_property(
159 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr,
174 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr,
188 bt_status_t btif_storage_remove_bonded_device(const RawAddress* remote_bd_addr);
217 bt_status_t btif_storage_load_bonded_devices(void);
[all …]
Dbtif_api.h52 bt_status_t btif_init_bluetooth(void);
63 bt_status_t btif_enable_bluetooth(void);
75 bt_status_t btif_cleanup_bluetooth(void);
296 bt_status_t btif_dm_passkey_reply(const RawAddress* bd_addr, uint8_t accept,
319 bt_status_t btif_dm_get_adapter_property(bt_property_t* prop);
352 bt_status_t btif_config_hci_snoop_log(uint8_t enable);
374 bt_status_t btif_set_dynamic_audio_buffer_size(int codec, int size);
Dbtif_common.h155 bt_status_t do_in_jni_thread(base::OnceClosure task);
156 bt_status_t do_in_jni_thread(const base::Location& from_here,
189 void btif_adapter_properties_evt(bt_status_t status, uint32_t num_props,
191 void btif_remote_properties_evt(bt_status_t status, RawAddress* remote_addr,
197 bt_status_t btif_transfer_context(tBTIF_CBACK* p_cback, uint16_t event,
204 void invoke_adapter_properties_cb(bt_status_t status, int num_properties,
206 void invoke_remote_device_properties_cb(bt_status_t status, RawAddress bd_addr,
219 void invoke_bond_state_changed_cb(bt_status_t status, RawAddress bd_addr,
225 void invoke_acl_state_changed_cb(bt_status_t status, RawAddress bd_addr,
Dbtif_profile_storage.h47 bt_status_t btif_storage_add_hid_device_info(
63 bt_status_t btif_storage_load_bonded_hid_info(void);
76 bt_status_t btif_storage_remove_hid_info(const RawAddress& remote_bd_addr);
159 bt_status_t btif_storage_load_hidd(void);
171 bt_status_t btif_storage_set_hidd(const RawAddress& remote_bd_addr);
183 bt_status_t btif_storage_remove_hidd(RawAddress* remote_bd_addr);
Dbtif_sock_rfc.h33 bt_status_t btsock_rfc_init(int handle, uid_set_t* set);
34 bt_status_t btsock_rfc_cleanup();
35 bt_status_t btsock_rfc_control_req(uint8_t dlci, const RawAddress& bd_addr,
39 bt_status_t btsock_rfc_listen(const char* name, const bluetooth::Uuid* uuid,
42 bt_status_t btsock_rfc_connect(const RawAddress* bd_addr,
Dcore_callbacks.h32 void (*invoke_adapter_properties_cb)(bt_status_t status, int num_properties,
34 void (*invoke_remote_device_properties_cb)(bt_status_t status,
48 void (*invoke_bond_state_changed_cb)(bt_status_t status, RawAddress bd_addr,
54 void (*invoke_acl_state_changed_cb)(bt_status_t status, RawAddress bd_addr,
109 bt_status_t (*btif_hh_connect)(const RawAddress* bd_addr);
110 bt_status_t (*btif_hh_virtual_unplug)(const RawAddress* bd_addr);
145 virtual bt_status_t toggleProfile(tBTA_SERVICE_ID service_id,
/packages/modules/Bluetooth/system/test/mock/
Dmock_btif_storage.cc61 bt_status_t btif_storage_add_ble_bonding_key(RawAddress* remote_bd_addr, in btif_storage_add_ble_bonding_key()
68 bt_status_t btif_storage_add_ble_local_key(const Octet16& key, in btif_storage_add_ble_local_key()
73 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr, in btif_storage_add_bonded_device()
79 bt_status_t btif_storage_add_hid_device_info( in btif_storage_add_hid_device_info()
87 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr, in btif_storage_add_remote_device()
93 bt_status_t btif_storage_get_adapter_property(bt_property_t* property) { in btif_storage_get_adapter_property()
97 bt_status_t btif_storage_get_ble_bonding_key(const RawAddress& remote_bd_addr, in btif_storage_get_ble_bonding_key()
104 bt_status_t btif_storage_get_ble_local_key(uint8_t key_type, in btif_storage_get_ble_local_key()
109 bt_status_t btif_storage_get_remote_addr_type(const RawAddress* remote_bd_addr, in btif_storage_get_remote_addr_type()
114 bt_status_t btif_storage_get_remote_device_property( in btif_storage_get_remote_device_property()
[all …]
Dmock_btif_core.cc46 bt_status_t btif_cleanup_bluetooth() { in btif_cleanup_bluetooth()
50 bt_status_t btif_init_bluetooth() { in btif_init_bluetooth()
54 bt_status_t btif_set_dynamic_audio_buffer_size(int codec, int size) { in btif_set_dynamic_audio_buffer_size()
58 bt_status_t btif_transfer_context(tBTIF_CBACK* p_cback, uint16_t event, in btif_transfer_context()
64 bt_status_t do_in_jni_thread(base::OnceClosure task) { in do_in_jni_thread()
69 bt_status_t do_in_jni_thread(const base::Location& from_here, in do_in_jni_thread()
90 void btif_adapter_properties_evt(bt_status_t status, uint32_t num_props, in btif_adapter_properties_evt()
113 void btif_remote_properties_evt(bt_status_t status, RawAddress* remote_addr, in btif_remote_properties_evt()
Dmock_btif_profile_queue.h83 static bt_status_t return_value;
84 std::function<bt_status_t(uint16_t uuid, const RawAddress* bda,
88 bt_status_t operator()(uint16_t uuid, const RawAddress* bda, in operator()
99 static bt_status_t return_value;
100 std::function<bt_status_t(void)> body{[](void) { return return_value; }};
101 bt_status_t operator()(void) { return body(); }; in operator()
/packages/modules/Bluetooth/system/osi/src/
Dwakelock.cc86 static bt_status_t wakelock_acquire_callout(void);
87 static bt_status_t wakelock_acquire_native(void);
88 static bt_status_t wakelock_release_callout(void);
89 static bt_status_t wakelock_release_native(void);
93 static void update_wakelock_acquired_stats(bt_status_t acquired_status);
94 static void update_wakelock_released_stats(bt_status_t released_status);
105 bt_status_t status = BT_STATUS_FAIL; in wakelock_acquire()
120 static bt_status_t wakelock_acquire_callout(void) { in wakelock_acquire_callout()
121 return static_cast<bt_status_t>( in wakelock_acquire_callout()
125 static bt_status_t wakelock_acquire_native(void) { in wakelock_acquire_native()
[all …]
/packages/modules/Bluetooth/system/btif/src/
Dbtif_hf.cc711 bt_status_t status; in bte_hf_evt()
746 static bt_status_t connect_int(RawAddress* bd_addr, uint16_t uuid) { in connect_int()
822 bt_status_t Init(Callbacks* callbacks, int max_hf_clients,
824 bt_status_t Connect(RawAddress* bd_addr) override;
825 bt_status_t Disconnect(RawAddress* bd_addr) override;
826 bt_status_t ConnectAudio(RawAddress* bd_addr, bool force_cvsd) override;
827 bt_status_t DisconnectAudio(RawAddress* bd_addr) override;
828 bt_status_t isNoiseReductionSupported(RawAddress* bd_addr) override;
829 bt_status_t isVoiceRecognitionSupported(RawAddress* bd_addr) override;
830 bt_status_t StartVoiceRecognition(RawAddress* bd_addr) override;
[all …]
Dbtif_gatt_client.cc67 bt_status_t btif_gattc_test_command_impl(int command,
225 bt_status_t status = in bta_gattc_cback()
244 static bt_status_t btif_gattc_register_app(const Uuid& uuid, in btif_gattc_register_app()
271 static bt_status_t btif_gattc_unregister_app(int client_if) { in btif_gattc_unregister_app()
347 static bt_status_t btif_gattc_open(int client_if, const RawAddress& bd_addr, in btif_gattc_open()
372 static bt_status_t btif_gattc_close(int client_if, const RawAddress& bd_addr, in btif_gattc_close()
379 static bt_status_t btif_gattc_refresh(int client_if, in btif_gattc_refresh()
385 static bt_status_t btif_gattc_search_service(int conn_id, in btif_gattc_search_service()
412 static bt_status_t btif_gattc_get_gatt_db(int conn_id) { in btif_gattc_get_gatt_db()
433 static bt_status_t btif_gattc_read_char(int conn_id, uint16_t handle, in btif_gattc_read_char()
[all …]
Dbtif_sdp.cc49 bt_status_t sdp_server_init();
51 bt_status_t create_sdp_record(bluetooth_sdp_record* records,
53 bt_status_t remove_sdp_record(int record_handle);
74 HAL_CBACK(bt_sdp_callbacks, sdp_search_cb, (bt_status_t)evt_data->status, in btif_sdp_search_comp_evt()
120 static bt_status_t init(btsdp_callbacks_t* callbacks) { in init()
131 static bt_status_t deinit() { in deinit()
141 static bt_status_t search(RawAddress* bd_addr, const Uuid& uuid) { in search()
164 bt_status_t btif_sdp_execute_service(bool b_enable) { in btif_sdp_execute_service()
Dbtif_hf_client.cc271 static bt_status_t init(bthf_client_callbacks_t* callbacks) { in init()
292 static bt_status_t connect_int(RawAddress* bd_addr, uint16_t uuid) { in connect_int()
312 static bt_status_t connect(const RawAddress* bd_addr) { in connect()
327 static bt_status_t disconnect(const RawAddress* bd_addr) { in disconnect()
348 static bt_status_t connect_audio(const RawAddress* bd_addr) { in connect_audio()
378 static bt_status_t disconnect_audio(const RawAddress* bd_addr) { in disconnect_audio()
397 static bt_status_t start_voice_recognition(const RawAddress* bd_addr) { in start_voice_recognition()
419 static bt_status_t stop_voice_recognition(const RawAddress* bd_addr) { in stop_voice_recognition()
441 static bt_status_t volume_control(const RawAddress* bd_addr, in volume_control()
471 static bt_status_t dial(UNUSED_ATTR const RawAddress* bd_addr, in dial()
[all …]
Dbtif_sock.cc52 static bt_status_t btsock_listen(btsock_type_t type, const char* service_name,
55 static bt_status_t btsock_connect(const RawAddress* bd_addr, btsock_type_t type,
60 static bt_status_t btsock_control_req(uint8_t dlci, const RawAddress& bd_addr,
98 bt_status_t btif_sock_init(uid_set_t* uid_set) { in btif_sock_init()
102 bt_status_t status; in btif_sock_init()
241 static bt_status_t btsock_control_req(uint8_t dlci, const RawAddress& bd_addr, in btsock_control_req()
250 static bt_status_t btsock_listen(btsock_type_t type, const char* service_name, in btsock_listen()
258 bt_status_t status = BT_STATUS_FAIL; in btsock_listen()
315 static bt_status_t btsock_connect(const RawAddress* bd_addr, btsock_type_t type, in btsock_connect()
324 bt_status_t status = BT_STATUS_FAIL; in btsock_connect()
Dbtif_gatt_server.cc268 bt_status_t status; in btapp_gatts_cback()
278 static bt_status_t btif_gatts_register_app(const Uuid& bt_uuid, in btif_gatts_register_app()
286 static bt_status_t btif_gatts_unregister_app(int server_if) { in btif_gatts_unregister_app()
330 static bt_status_t btif_gatts_open(int server_if, const RawAddress& bd_addr, in btif_gatts_open()
349 static bt_status_t btif_gatts_close(int server_if, const RawAddress& bd_addr, in btif_gatts_close()
380 static bt_status_t btif_gatts_add_service(int server_if, in btif_gatts_add_service()
389 static bt_status_t btif_gatts_stop_service(int server_if, int service_handle) { in btif_gatts_stop_service()
394 static bt_status_t btif_gatts_delete_service(int server_if, in btif_gatts_delete_service()
400 static bt_status_t btif_gatts_send_indication(int server_if, in btif_gatts_send_indication()
427 static bt_status_t btif_gatts_send_response(int conn_id, int trans_id, in btif_gatts_send_response()
[all …]

12345