Home
last modified time | relevance | path

Searched refs:bt_status_t (Results 1 – 25 of 77) 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);
115 bt_status_t btif_get_adapter_properties(void);
126 bt_status_t btif_get_adapter_property(bt_property_type_t type);
138 bt_status_t btif_set_adapter_property(const bt_property_t* property);
149 bt_status_t btif_get_remote_device_property(RawAddress* remote_addr,
161 bt_status_t btif_get_remote_device_properties(RawAddress* remote_addr);
174 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(
112 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr,
127 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr,
141 bt_status_t btif_storage_remove_bonded_device(const RawAddress* remote_bd_addr);
153 bt_status_t btif_storage_load_bonded_devices(void);
167 bt_status_t btif_storage_add_hid_device_info(
183 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(const base::Closure& task);
178 extern bt_status_t do_in_jni_thread(const tracked_objects::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.h329 bt_status_t (*init)(bthf_client_callbacks_t* callbacks);
332 bt_status_t (*connect)(RawAddress* bd_addr);
335 bt_status_t (*disconnect)(const RawAddress* bd_addr);
338 bt_status_t (*connect_audio)(const RawAddress* bd_addr);
341 bt_status_t (*disconnect_audio)(const RawAddress* bd_addr);
344 bt_status_t (*start_voice_recognition)(const RawAddress* bd_addr);
347 bt_status_t (*stop_voice_recognition)(const RawAddress* bd_addr);
350 bt_status_t (*volume_control)(const RawAddress* bd_addr,
355 bt_status_t (*dial)(const RawAddress* bd_addr, const char* number);
358 bt_status_t (*dial_memory)(const RawAddress* bd_addr, int location);
[all …]
Dbt_rc.h431 bt_status_t (*init)(btrc_callbacks_t* callbacks);
438 bt_status_t (*get_play_status_rsp)(const RawAddress& bd_addr,
446 bt_status_t (*list_player_app_attr_rsp)(const RawAddress& bd_addr,
453 bt_status_t (*list_player_app_value_rsp)(const RawAddress& bd_addr,
458 bt_status_t (*get_player_app_value_rsp)(const RawAddress& bd_addr,
465 bt_status_t (*get_player_app_attr_text_rsp)(
473 bt_status_t (*get_player_app_value_text_rsp)(
482 bt_status_t (*get_element_attr_rsp)(const RawAddress& bd_addr,
490 bt_status_t (*set_player_app_value_rsp)(const RawAddress& bd_addr,
499 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_hl.h100 bt_status_t (*init)(bthl_callbacks_t* callbacks);
103 bt_status_t (*register_application)(bthl_reg_param_t* p_reg_param,
107 bt_status_t (*unregister_application)(int app_id);
110 bt_status_t (*connect_channel)(int app_id, RawAddress* bd_addr,
114 bt_status_t (*destroy_channel)(int channel_id);
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_av.h302 bt_status_t (*init)(btav_source_callbacks_t* callbacks,
307 bt_status_t (*connect)(const RawAddress& bd_addr);
310 bt_status_t (*disconnect)(const RawAddress& bd_addr);
313 bt_status_t (*set_active_device)(const RawAddress& bd_addr);
316 bt_status_t (*config_codec)(
333 bt_status_t (*init)(btav_sink_callbacks_t* callbacks);
336 bt_status_t (*connect)(const RawAddress& bd_addr);
339 bt_status_t (*disconnect)(const RawAddress& bd_addr);
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(
201 bt_status_t status = in bta_gattc_cback()
220 bt_status_t btif_gattc_register_app(const Uuid& uuid) { in btif_gattc_register_app()
245 bt_status_t btif_gattc_unregister_app(int client_if) { in btif_gattc_unregister_app()
311 bt_status_t btif_gattc_open(int client_if, const RawAddress& bd_addr, in btif_gattc_open()
332 bt_status_t btif_gattc_close(int client_if, const RawAddress& bd_addr, in btif_gattc_close()
339 bt_status_t btif_gattc_refresh(int client_if, const RawAddress& bd_addr) { in btif_gattc_refresh()
344 bt_status_t btif_gattc_search_service(int conn_id, const Uuid* filter_uuid) { in btif_gattc_search_service()
370 bt_status_t btif_gattc_get_gatt_db(int conn_id) { in btif_gattc_get_gatt_db()
391 bt_status_t btif_gattc_read_char(int conn_id, uint16_t handle, int auth_req) { in btif_gattc_read_char()
[all …]
Dbtif_core.cc195 bt_status_t btif_transfer_context(tBTIF_CBACK* p_cback, uint16_t event, in btif_transfer_context()
226 bt_status_t do_in_jni_thread(const tracked_objects::Location& from_here, in do_in_jni_thread()
247 bt_status_t do_in_jni_thread(const base::Closure& task) { in do_in_jni_thread()
371 bt_status_t btif_init_bluetooth() { in btif_init_bluetooth()
478 bt_status_t btif_disable_bluetooth(void) { in btif_disable_bluetooth()
529 bt_status_t btif_cleanup_bluetooth(void) { in btif_cleanup_bluetooth()
579 bt_status_t btif_dut_mode_configure(uint8_t enable) { in btif_dut_mode_configure()
605 bt_status_t btif_dut_mode_send(uint16_t opcode, uint8_t* buf, uint8_t len) { in btif_dut_mode_send()
622 static bt_status_t btif_in_get_adapter_properties(void) { in btif_in_get_adapter_properties()
632 bt_status_t status; in btif_in_get_adapter_properties()
[all …]
Dbtif_sock.cc42 static bt_status_t btsock_listen(btsock_type_t type, const char* service_name,
45 static bt_status_t btsock_connect(const RawAddress* bd_addr, btsock_type_t type,
66 bt_status_t btif_sock_init(uid_set_t* uid_set) { in btif_sock_init()
70 bt_status_t status; in btif_sock_init()
130 static bt_status_t btsock_listen(btsock_type_t type, const char* service_name, in btsock_listen()
138 bt_status_t status = BT_STATUS_FAIL; in btsock_listen()
180 static bt_status_t btsock_connect(const RawAddress* bd_addr, btsock_type_t type, in btsock_connect()
187 bt_status_t status = BT_STATUS_FAIL; in btsock_connect()
/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);
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 …]
/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,

1234