Home
last modified time | relevance | path

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

12345

/aosp12/system/bt/include/hardware/
H A 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;
99 virtual bt_status_t StartVoiceRecognition(RawAddress* bd_addr) = 0;
107 virtual bt_status_t StopVoiceRecognition(RawAddress* bd_addr) = 0;
169 virtual bt_status_t FormattedAtResponse(const char* rsp,
180 virtual bt_status_t AtResponse(bthf_at_response_t response_code,
198 virtual bt_status_t ClccResponse(
[all …]
H A Dbt_gatt_client.h214 bt_status_t (*register_client)(const bluetooth::Uuid& uuid,
218 bt_status_t (*unregister_client)(int client_if);
236 bt_status_t (*search_service)(int conn_id,
250 bt_status_t (*read_using_characteristic_uuid)(int conn_id,
269 bt_status_t (*execute_write)(int conn_id, int execute);
275 bt_status_t (*register_for_notification)(int client_if,
280 bt_status_t (*deregister_for_notification)(int client_if,
291 bt_status_t (*configure_mtu)(int conn_id, int mtu);
294 bt_status_t (*conn_parameter_update)(const RawAddress& bd_addr,
303 bt_status_t (*read_phy)(
[all …]
H A Dbt_rc.h433 bt_status_t (*init)(btrc_callbacks_t* callbacks);
440 bt_status_t (*get_play_status_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,
501 bt_status_t (*register_notification_rsp)(
514 bt_status_t (*set_volume)(uint8_t volume);
535 bt_status_t (*change_path_rsp)(const RawAddress& bd_addr,
541 bt_status_t (*get_item_attr_rsp)(const RawAddress& bd_addr,
546 bt_status_t (*play_item_rsp)(const RawAddress& bd_addr,
[all …]
H A 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,
370 bt_status_t (*handle_call_action)(const RawAddress* bd_addr,
374 bt_status_t (*query_current_calls)(const RawAddress* bd_addr);
[all …]
H A Dbt_hh.h167 bt_status_t (*init)(bthh_callbacks_t* callbacks);
170 bt_status_t (*connect)(RawAddress* bd_addr);
173 bt_status_t (*disconnect)(RawAddress* bd_addr);
176 bt_status_t (*virtual_unplug)(RawAddress* bd_addr);
179 bt_status_t (*set_info)(RawAddress* bd_addr, bthh_hid_info_t hid_info);
182 bt_status_t (*get_protocol)(RawAddress* bd_addr,
186 bt_status_t (*set_protocol)(RawAddress* bd_addr,
190 bt_status_t (*get_idle_time)(RawAddress* bd_addr);
193 bt_status_t (*set_idle_time)(RawAddress* bd_addr, uint8_t idleTime);
196 bt_status_t (*get_report)(RawAddress* bd_addr, bthh_report_type_t reportType,
[all …]
H A Dbt_gatt_server.h141 bt_status_t (*register_server)(const bluetooth::Uuid& uuid,
145 bt_status_t (*unregister_server)(int server_if);
148 bt_status_t (*connect)(int server_if, const RawAddress& bd_addr,
152 bt_status_t (*disconnect)(int server_if, const RawAddress& bd_addr,
156 bt_status_t (*add_service)(int server_if,
160 bt_status_t (*stop_service)(int server_if, int service_handle);
163 bt_status_t (*delete_service)(int server_if, int service_handle);
166 bt_status_t (*send_indication)(int server_if, int attribute_handle,
171 bt_status_t (*send_response)(int conn_id, int trans_id, int status,
174 bt_status_t (*set_preferred_phy)(const RawAddress& bd_addr, uint8_t tx_phy,
[all …]
H A 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);
H A 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);
H A Dbt_av.h324 bt_status_t (*init)(
330 bt_status_t (*connect)(const RawAddress& bd_addr);
333 bt_status_t (*disconnect)(const RawAddress& bd_addr);
336 bt_status_t (*set_silence_device)(const RawAddress& bd_addr, bool silence);
339 bt_status_t (*set_active_device)(const RawAddress& bd_addr);
342 bt_status_t (*config_codec)(
359 bt_status_t (*init)(btav_sink_callbacks_t* callbacks,
363 bt_status_t (*connect)(const RawAddress& bd_addr);
366 bt_status_t (*disconnect)(const RawAddress& bd_addr);
378 bt_status_t (*set_active_device)(const RawAddress& bd_addr);
H A Dbt_sdp.h123 typedef void (*btsdp_search_callback)(bt_status_t status,
140 bt_status_t (*init)(btsdp_callbacks_t* callbacks);
143 bt_status_t (*deinit)();
146 bt_status_t (*sdp_search)(RawAddress* bd_addr, const bluetooth::Uuid& uuid);
161 bt_status_t (*create_sdp_record)(bluetooth_sdp_record* record,
165 bt_status_t (*remove_sdp_record)(int sdp_handle);
/aosp12/system/bt/btif/include/
H A Dbtif_storage.h84 bt_status_t btif_storage_get_remote_device_property(
98 bt_status_t btif_storage_set_remote_device_property(
180 bt_status_t btif_storage_load_bonded_devices(void);
194 bt_status_t btif_storage_add_hid_device_info(
210 bt_status_t btif_storage_load_bonded_hid_info(void);
289 bt_status_t btif_storage_add_ble_local_key(const Octet16& key,
291 bt_status_t btif_storage_remove_ble_bonding_keys(
293 bt_status_t btif_storage_remove_ble_local_keys(void);
294 bt_status_t btif_storage_get_ble_local_key(uint8_t key_type,
311 bt_status_t btif_storage_load_hidd(void);
[all …]
H A Dbtif_common.h153 extern bt_status_t do_in_jni_thread(base::OnceClosure task);
154 extern bt_status_t do_in_jni_thread(const base::Location& from_here,
183 void btif_adapter_properties_evt(bt_status_t status, uint32_t num_props,
185 void btif_remote_properties_evt(bt_status_t status, RawAddress* remote_addr,
191 bt_status_t btif_transfer_context(tBTIF_CBACK* p_cback, uint16_t event,
198 void invoke_adapter_properties_cb(bt_status_t status, int num_properties,
200 void invoke_remote_device_properties_cb(bt_status_t status, RawAddress bd_addr,
213 void invoke_bond_state_changed_cb(bt_status_t status, RawAddress bd_addr,
215 void invoke_acl_state_changed_cb(bt_status_t status, RawAddress bd_addr,
218 void invoke_le_test_mode_cb(bt_status_t status, uint16_t count);
H A Dbtif_api.h51 bt_status_t btif_init_bluetooth(void);
62 bt_status_t btif_enable_bluetooth(void);
74 bt_status_t btif_cleanup_bluetooth(void);
286 bt_status_t btif_dm_passkey_reply(const RawAddress* bd_addr, uint8_t accept,
309 bt_status_t btif_dm_get_adapter_property(bt_property_t* prop);
369 bt_status_t btif_config_hci_snoop_log(uint8_t enable);
391 bt_status_t btif_set_dynamic_audio_buffer_size(int codec, int size);
H A 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,
H A Dbtif_sock_l2cap.h12 bt_status_t btsock_l2cap_init(int handle, uid_set_t* set);
13 bt_status_t btsock_l2cap_cleanup();
14 bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd,
16 bt_status_t btsock_l2cap_connect(const RawAddress* bd_addr, int channel,
H A 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,
/aosp12/system/bt/test/mock/
H A Dmock_btif_storage.cc68 bt_status_t btif_storage_add_ble_local_key(const Octet16& key, in btif_storage_add_ble_local_key()
79 bt_status_t btif_storage_add_hid_device_info( in btif_storage_add_hid_device_info()
104 bt_status_t btif_storage_get_ble_local_key(uint8_t key_type, in btif_storage_get_ble_local_key()
114 bt_status_t btif_storage_get_remote_device_property( in btif_storage_get_remote_device_property()
119 bt_status_t btif_storage_load_bonded_devices(void) { in btif_storage_load_bonded_devices()
123 bt_status_t btif_storage_load_bonded_hid_info(void) { in btif_storage_load_bonded_hid_info()
127 bt_status_t btif_storage_load_hidd(void) { in btif_storage_load_hidd()
131 bt_status_t btif_storage_remove_ble_bonding_keys( in btif_storage_remove_ble_bonding_keys()
136 bt_status_t btif_storage_remove_ble_local_keys(void) { in btif_storage_remove_ble_local_keys()
140 bt_status_t btif_storage_remove_bonded_device( in btif_storage_remove_bonded_device()
[all …]
H A Dmock_btif_core.cc69 bt_status_t btif_cleanup_bluetooth() { in btif_cleanup_bluetooth()
73 bt_status_t btif_init_bluetooth() { in btif_init_bluetooth()
77 bt_status_t btif_set_dynamic_audio_buffer_size(int codec, int size) { in btif_set_dynamic_audio_buffer_size()
81 bt_status_t btif_transfer_context(tBTIF_CBACK* p_cback, uint16_t event, in btif_transfer_context()
87 bt_status_t do_in_jni_thread(base::OnceClosure task) { in do_in_jni_thread()
91 bt_status_t do_in_jni_thread(const base::Location& from_here, in do_in_jni_thread()
111 void btif_adapter_properties_evt(bt_status_t status, uint32_t num_props, in btif_adapter_properties_evt()
140 void btif_remote_properties_evt(bt_status_t status, RawAddress* remote_addr, in btif_remote_properties_evt()
/aosp12/system/bt/osi/src/
H A 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);
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()
150 bt_status_t status = BT_STATUS_FAIL; in wakelock_release()
163 return static_cast<bt_status_t>( in wakelock_release_callout()
[all …]
/aosp12/system/bt/btif/src/
H A 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()
H A Dbtif_gatt_client.cc60 extern bt_status_t btif_gattc_test_command_impl(
238 bt_status_t status = in bta_gattc_cback()
257 static bt_status_t btif_gattc_register_app(const Uuid& uuid, in btif_gattc_register_app()
284 static bt_status_t btif_gattc_unregister_app(int client_if) { in btif_gattc_unregister_app()
377 static bt_status_t btif_gattc_refresh(int client_if, in btif_gattc_refresh()
383 static bt_status_t btif_gattc_search_service(int conn_id, in btif_gattc_search_service()
410 static bt_status_t btif_gattc_get_gatt_db(int conn_id) { in btif_gattc_get_gatt_db()
537 bt_status_t btif_gattc_reg_for_notification(int client_if, in btif_gattc_reg_for_notification()
558 bt_status_t btif_gattc_dereg_for_notification(int client_if, in btif_gattc_dereg_for_notification()
616 static bt_status_t btif_gattc_read_phy( in btif_gattc_read_phy()
[all …]
H A Dbtif_hf.cc604 bt_status_t status; in bte_hf_evt()
711 bt_status_t Connect(RawAddress* bd_addr) override;
712 bt_status_t Disconnect(RawAddress* bd_addr) override;
713 bt_status_t ConnectAudio(RawAddress* bd_addr) override;
730 bt_status_t FormattedAtResponse(const char* rsp,
745 bt_status_t SetScoAllowed(bool value) override;
935 bt_status_t HeadsetInterface::DeviceStatusNotification( in DeviceStatusNotification()
1056 bt_status_t HeadsetInterface::ClccResponse( in ClccResponse()
1109 bt_status_t HeadsetInterface::PhoneStateChange( in PhoneStateChange()
1147 bt_status_t status = BT_STATUS_SUCCESS; in PhoneStateChange()
[all …]
H A Dbtif_hf_client.cc276 static bt_status_t init(bthf_client_callbacks_t* callbacks) { in init()
297 static bt_status_t connect_int(RawAddress* bd_addr, uint16_t uuid) { in connect_int()
319 static bt_status_t connect(RawAddress* bd_addr) { in connect()
334 static bt_status_t disconnect(const RawAddress* bd_addr) { in disconnect()
355 static bt_status_t connect_audio(const RawAddress* bd_addr) { in connect_audio()
385 static bt_status_t disconnect_audio(const RawAddress* bd_addr) { in disconnect_audio()
448 static bt_status_t volume_control(const RawAddress* bd_addr, in volume_control()
478 static bt_status_t dial(UNUSED_ATTR const RawAddress* bd_addr, in dial()
521 static bt_status_t handle_call_action(const RawAddress* bd_addr, in handle_call_action()
1021 bt_status_t status; in bta_hf_client_evt()
[all …]
H A Dbtif_sock.cc45 static bt_status_t btsock_listen(btsock_type_t type, const char* service_name,
48 static bt_status_t btsock_connect(const RawAddress* bd_addr, btsock_type_t type,
69 bt_status_t btif_sock_init(uid_set_t* uid_set) { in btif_sock_init()
73 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()
191 static bt_status_t btsock_connect(const RawAddress* bd_addr, btsock_type_t type, in btsock_connect()
198 bt_status_t status = BT_STATUS_FAIL; in btsock_connect()
/aosp12/system/bt/service/hal/
H A Dfake_bluetooth_gatt_interface.h39 virtual bt_status_t RegisterClient(const bluetooth::Uuid& app_uuid,
41 virtual bt_status_t UnregisterClient(int client_if) = 0;
43 virtual bt_status_t Connect(int client_if, const RawAddress& bd_addr,
45 virtual bt_status_t Disconnect(int client_if, const RawAddress& bd_addr,
56 virtual bt_status_t RegisterServer(const bluetooth::Uuid& app_uuid,
58 virtual bt_status_t UnregisterServer(int server_if) = 0;
59 virtual bt_status_t AddService(
61 virtual bt_status_t DeleteService(int server_if, int srvc_handle) = 0;
62 virtual bt_status_t SendIndication(int server_if, int attribute_handle,
65 virtual bt_status_t SendResponse(int conn_id, int trans_id, int status,

12345