Home
last modified time | relevance | path

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

1234

/system/bt/btif/include/
Dbtif_api.h51 bt_status_t btif_init_bluetooth(void);
62 bt_status_t btif_enable_bluetooth(void);
75 bt_status_t btif_disable_bluetooth(void);
87 bt_status_t btif_cleanup_bluetooth(void);
144 bt_status_t btif_get_adapter_properties(void);
155 bt_status_t btif_get_adapter_property(bt_property_type_t type);
167 bt_status_t btif_set_adapter_property(const bt_property_t* property);
178 bt_status_t btif_get_remote_device_property(RawAddress* remote_addr,
190 bt_status_t btif_get_remote_device_properties(RawAddress* remote_addr);
203 bt_status_t btif_set_remote_device_property(RawAddress* remote_addr,
[all …]
Dbtif_storage.h55 bt_status_t btif_storage_get_adapter_property(bt_property_t* property);
68 bt_status_t btif_storage_set_adapter_property(bt_property_t* property);
83 bt_status_t btif_storage_get_remote_device_property(
97 bt_status_t btif_storage_set_remote_device_property(
138 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr,
153 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr,
167 bt_status_t btif_storage_remove_bonded_device(const RawAddress* remote_bd_addr);
179 bt_status_t btif_storage_load_bonded_devices(void);
193 bt_status_t btif_storage_add_hid_device_info(
209 bt_status_t btif_storage_load_bonded_hid_info(void);
[all …]
Dbtif_sock_sco.h25 bt_status_t btsock_sco_init(thread_t* thread);
26 bt_status_t btsock_sco_cleanup(void);
27 bt_status_t btsock_sco_listen(int* sock_fd, int flags);
28 bt_status_t btsock_sco_connect(const RawAddress* bd_addr, int* sock_fd,
Dbtif_sock_l2cap.h14 bt_status_t btsock_l2cap_init(int handle, uid_set_t* set);
15 bt_status_t btsock_l2cap_cleanup();
16 bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd,
18 bt_status_t btsock_l2cap_connect(const RawAddress* bd_addr, int channel,
Dbtif_sock_rfc.h32 bt_status_t btsock_rfc_init(int handle, uid_set_t* set);
33 bt_status_t btsock_rfc_cleanup();
34 bt_status_t btsock_rfc_listen(const char* name, const bluetooth::Uuid* uuid,
37 bt_status_t btsock_rfc_connect(const RawAddress* bd_addr,
Dbtif_profile_queue.h32 typedef bt_status_t (*btif_connect_cb_t)(RawAddress* bda, uint16_t uuid);
34 bt_status_t btif_queue_connect(uint16_t uuid, const RawAddress* bda,
46 bt_status_t btif_queue_connect_next(void);
Dbtif_common.h177 extern bt_status_t do_in_jni_thread(base::OnceClosure task);
178 extern bt_status_t do_in_jni_thread(const base::Location& from_here,
199 bt_status_t btif_enable_service(tBTA_SERVICE_ID service_id);
200 bt_status_t btif_disable_service(tBTA_SERVICE_ID service_id);
208 void btif_adapter_properties_evt(bt_status_t status, uint32_t num_props,
210 void btif_remote_properties_evt(bt_status_t status, RawAddress* remote_addr,
220 bt_status_t btif_transfer_context(tBTIF_CBACK* p_cback, uint16_t event,
/system/bt/include/hardware/
Dbluetooth_headset_interface.h40 virtual bt_status_t Init(Callbacks* callbacks, int max_hf_clients,
49 virtual bt_status_t Connect(RawAddress* bd_addr) = 0;
57 virtual bt_status_t Disconnect(RawAddress* bd_addr) = 0;
65 virtual bt_status_t ConnectAudio(RawAddress* bd_addr) = 0;
73 virtual bt_status_t DisconnectAudio(RawAddress* bd_addr) = 0;
81 virtual bt_status_t StartVoiceRecognition(RawAddress* bd_addr) = 0;
89 virtual bt_status_t StopVoiceRecognition(RawAddress* bd_addr) = 0;
99 virtual bt_status_t VolumeControl(bthf_volume_type_t type, int volume,
112 virtual bt_status_t DeviceStatusNotification(bthf_network_state_t ntk_state,
124 virtual bt_status_t CopsResponse(const char* cops, RawAddress* bd_addr) = 0;
[all …]
Dbt_gatt_client.h210 bt_status_t (*register_client)(const bluetooth::Uuid& uuid);
213 bt_status_t (*unregister_client)(int client_if);
216 bt_status_t (*connect)(int client_if, const RawAddress& bd_addr,
221 bt_status_t (*disconnect)(int client_if, const RawAddress& bd_addr,
225 bt_status_t (*refresh)(int client_if, const RawAddress& bd_addr);
231 bt_status_t (*search_service)(int conn_id,
241 bt_status_t (*read_characteristic)(int conn_id, uint16_t handle,
245 bt_status_t (*read_using_characteristic_uuid)(int conn_id,
252 bt_status_t (*write_characteristic)(int conn_id, uint16_t handle,
257 bt_status_t (*read_descriptor)(int conn_id, uint16_t handle, int auth_req);
[all …]
Dbt_hh.h151 bt_status_t (*init)(bthh_callbacks_t* callbacks);
154 bt_status_t (*connect)(RawAddress* bd_addr);
157 bt_status_t (*disconnect)(RawAddress* bd_addr);
160 bt_status_t (*virtual_unplug)(RawAddress* bd_addr);
163 bt_status_t (*set_info)(RawAddress* bd_addr, bthh_hid_info_t hid_info);
166 bt_status_t (*get_protocol)(RawAddress* bd_addr,
170 bt_status_t (*set_protocol)(RawAddress* bd_addr,
174 bt_status_t (*get_idle_time)(RawAddress* bd_addr);
177 bt_status_t (*set_idle_time)(RawAddress* bd_addr, uint8_t idleTime);
180 bt_status_t (*get_report)(RawAddress* bd_addr, bthh_report_type_t reportType,
[all …]
Dbt_hf_client.h336 bt_status_t (*init)(bthf_client_callbacks_t* callbacks);
339 bt_status_t (*connect)(RawAddress* bd_addr);
342 bt_status_t (*disconnect)(const RawAddress* bd_addr);
345 bt_status_t (*connect_audio)(const RawAddress* bd_addr);
348 bt_status_t (*disconnect_audio)(const RawAddress* bd_addr);
351 bt_status_t (*start_voice_recognition)(const RawAddress* bd_addr);
354 bt_status_t (*stop_voice_recognition)(const RawAddress* bd_addr);
357 bt_status_t (*volume_control)(const RawAddress* bd_addr,
362 bt_status_t (*dial)(const RawAddress* bd_addr, const char* number);
365 bt_status_t (*dial_memory)(const RawAddress* bd_addr, int location);
[all …]
Dbt_rc.h433 bt_status_t (*init)(btrc_callbacks_t* callbacks);
440 bt_status_t (*get_play_status_rsp)(const RawAddress& bd_addr,
448 bt_status_t (*list_player_app_attr_rsp)(const RawAddress& bd_addr,
455 bt_status_t (*list_player_app_value_rsp)(const RawAddress& bd_addr,
460 bt_status_t (*get_player_app_value_rsp)(const RawAddress& bd_addr,
467 bt_status_t (*get_player_app_attr_text_rsp)(
475 bt_status_t (*get_player_app_value_text_rsp)(
484 bt_status_t (*get_element_attr_rsp)(const RawAddress& bd_addr,
492 bt_status_t (*set_player_app_value_rsp)(const RawAddress& bd_addr,
501 bt_status_t (*register_notification_rsp)(
[all …]
Dbt_gatt_server.h141 bt_status_t (*register_server)(const bluetooth::Uuid& uuid);
144 bt_status_t (*unregister_server)(int server_if);
147 bt_status_t (*connect)(int server_if, const RawAddress& bd_addr,
151 bt_status_t (*disconnect)(int server_if, const RawAddress& bd_addr,
155 bt_status_t (*add_service)(int server_if,
159 bt_status_t (*stop_service)(int server_if, int service_handle);
162 bt_status_t (*delete_service)(int server_if, int service_handle);
165 bt_status_t (*send_indication)(int server_if, int attribute_handle,
170 bt_status_t (*send_response)(int conn_id, int trans_id, int status,
173 bt_status_t (*set_preferred_phy)(const RawAddress& bd_addr, uint8_t tx_phy,
[all …]
Dbt_pan.h42 bt_status_t error,
47 int local_role, bt_status_t error,
61 bt_status_t (*init)(const btpan_callbacks_t* callbacks);
68 bt_status_t (*enable)(int local_role);
77 bt_status_t (*connect)(const RawAddress* bd_addr, int local_role,
83 bt_status_t (*disconnect)(const RawAddress* bd_addr);
Dbt_hd.h95 bt_status_t (*init)(bthd_callbacks_t* callbacks);
101 bt_status_t (*register_app)(bthd_app_param_t* app_param,
106 bt_status_t (*unregister_app)(void);
109 bt_status_t (*connect)(RawAddress* bd_addr);
112 bt_status_t (*disconnect)(void);
115 bt_status_t (*send_report)(bthd_report_type_t type, uint8_t id, uint16_t len,
119 bt_status_t (*report_error)(uint8_t error);
122 bt_status_t (*virtual_cable_unplug)(void);
Dbt_av.h314 bt_status_t (*init)(
320 bt_status_t (*connect)(const RawAddress& bd_addr);
323 bt_status_t (*disconnect)(const RawAddress& bd_addr);
326 bt_status_t (*set_silence_device)(const RawAddress& bd_addr, bool silence);
329 bt_status_t (*set_active_device)(const RawAddress& bd_addr);
332 bt_status_t (*config_codec)(
349 bt_status_t (*init)(btav_sink_callbacks_t* callbacks);
352 bt_status_t (*connect)(const RawAddress& bd_addr);
355 bt_status_t (*disconnect)(const RawAddress& bd_addr);
367 bt_status_t (*set_active_device)(const RawAddress& bd_addr);
Dbt_sdp.h111 typedef void (*btsdp_search_callback)(bt_status_t status,
128 bt_status_t (*init)(btsdp_callbacks_t* callbacks);
131 bt_status_t (*deinit)();
134 bt_status_t (*sdp_search)(RawAddress* bd_addr, const bluetooth::Uuid& uuid);
149 bt_status_t (*create_sdp_record)(bluetooth_sdp_record* record,
153 bt_status_t (*remove_sdp_record)(int sdp_handle);
Dbt_mce.h32 bt_status_t status, RawAddress* bd_addr, int num_instances,
46 bt_status_t (*init)(btmce_callbacks_t* callbacks);
49 bt_status_t (*get_remote_mas_instances)(RawAddress* bd_addr);
/system/bt/btif/src/
Dbtif_sdp.cc48 bt_status_t sdp_server_init();
50 bt_status_t create_sdp_record(bluetooth_sdp_record* records,
52 bt_status_t remove_sdp_record(int record_handle);
73 HAL_CBACK(bt_sdp_callbacks, sdp_search_cb, (bt_status_t)evt_data->status, in btif_sdp_search_comp_evt()
118 static bt_status_t init(btsdp_callbacks_t* callbacks) { in init()
129 static bt_status_t deinit() { in deinit()
139 static bt_status_t search(RawAddress* bd_addr, const Uuid& uuid) { in search()
162 bt_status_t btif_sdp_execute_service(bool b_enable) { in btif_sdp_execute_service()
Dbtif_gatt_client.cc59 extern bt_status_t btif_gattc_test_command_impl(
204 bt_status_t status = in bta_gattc_cback()
223 bt_status_t btif_gattc_register_app(const Uuid& uuid) { in btif_gattc_register_app()
248 bt_status_t btif_gattc_unregister_app(int client_if) { in btif_gattc_unregister_app()
313 bt_status_t btif_gattc_open(int client_if, const RawAddress& bd_addr, in btif_gattc_open()
334 bt_status_t btif_gattc_close(int client_if, const RawAddress& bd_addr, in btif_gattc_close()
341 bt_status_t btif_gattc_refresh(int client_if, const RawAddress& bd_addr) { in btif_gattc_refresh()
346 bt_status_t btif_gattc_search_service(int conn_id, const Uuid* filter_uuid) { in btif_gattc_search_service()
372 bt_status_t btif_gattc_get_gatt_db(int conn_id) { in btif_gattc_get_gatt_db()
393 bt_status_t btif_gattc_read_char(int conn_id, uint16_t handle, int auth_req) { in btif_gattc_read_char()
[all …]
Dbtif_core.cc192 bt_status_t btif_transfer_context(tBTIF_CBACK* p_cback, uint16_t event, in btif_transfer_context()
223 bt_status_t do_in_jni_thread(const base::Location& from_here, in do_in_jni_thread()
232 bt_status_t do_in_jni_thread(base::OnceClosure task) { in do_in_jni_thread()
324 bt_status_t btif_init_bluetooth() { in btif_init_bluetooth()
416 bt_status_t btif_disable_bluetooth() { in btif_disable_bluetooth()
467 bt_status_t btif_cleanup_bluetooth() { in btif_cleanup_bluetooth()
506 bt_status_t btif_dut_mode_configure(uint8_t enable) { in btif_dut_mode_configure()
532 bt_status_t btif_dut_mode_send(uint16_t opcode, uint8_t* buf, uint8_t len) { in btif_dut_mode_send()
549 static bt_status_t btif_in_get_adapter_properties(void) { in btif_in_get_adapter_properties()
560 bt_status_t status; in btif_in_get_adapter_properties()
[all …]
Dbtif_hf.cc603 bt_status_t status; in bte_hf_evt()
638 static bt_status_t connect_int(RawAddress* bd_addr, uint16_t uuid) { in connect_int()
708 bt_status_t Init(Callbacks* callbacks, int max_hf_clients,
710 bt_status_t Connect(RawAddress* bd_addr) override;
711 bt_status_t Disconnect(RawAddress* bd_addr) override;
712 bt_status_t ConnectAudio(RawAddress* bd_addr) override;
713 bt_status_t DisconnectAudio(RawAddress* bd_addr) override;
714 bt_status_t StartVoiceRecognition(RawAddress* bd_addr) override;
715 bt_status_t StopVoiceRecognition(RawAddress* bd_addr) override;
716 bt_status_t VolumeControl(bthf_volume_type_t type, int volume,
[all …]
/system/bt/osi/src/
Dwakelock.cc85 static bt_status_t wakelock_acquire_callout(void);
86 static bt_status_t wakelock_acquire_native(void);
87 static bt_status_t wakelock_release_callout(void);
88 static bt_status_t wakelock_release_native(void);
92 static void update_wakelock_acquired_stats(bt_status_t acquired_status);
93 static void update_wakelock_released_stats(bt_status_t released_status);
104 bt_status_t status = BT_STATUS_FAIL; in wakelock_acquire()
119 static bt_status_t wakelock_acquire_callout(void) { in wakelock_acquire_callout()
120 return static_cast<bt_status_t>( in wakelock_acquire_callout()
124 static bt_status_t wakelock_acquire_native(void) { in wakelock_acquire_native()
[all …]
/system/bt/service/hal/
Dfake_bluetooth_gatt_interface.h38 virtual bt_status_t RegisterClient(const bluetooth::Uuid& app_uuid) = 0;
39 virtual bt_status_t UnregisterClient(int client_if) = 0;
41 virtual bt_status_t Connect(int client_if, const RawAddress& bd_addr,
43 virtual bt_status_t Disconnect(int client_if, const RawAddress& bd_addr,
54 virtual bt_status_t RegisterServer(const bluetooth::Uuid& app_uuid) = 0;
55 virtual bt_status_t UnregisterServer(int server_if) = 0;
56 virtual bt_status_t AddService(
58 virtual bt_status_t DeleteService(int server_if, int srvc_handle) = 0;
59 virtual bt_status_t SendIndication(int server_if, int attribute_handle,
62 virtual bt_status_t SendResponse(int conn_id, int trans_id, int status,
Dbluetooth_interface.h53 virtual void AdapterPropertiesCallback(bt_status_t status,
56 virtual void RemoteDevicePropertiesCallback(bt_status_t status,
70 virtual void BondStateChangedCallback(bt_status_t status,
73 virtual void AclStateChangedCallback(bt_status_t status,

1234