/packages/modules/Bluetooth/system/test/mock/ |
D | mock_btif_storage.h | 73 static bt_status_t return_value; 74 std::function<bt_status_t(const std::string& remote_bd_addr, int add, 80 bt_status_t operator()(const std::string& remote_bd_addr, int add, in operator() 91 static bt_status_t return_value; 92 std::function<bt_status_t(const std::string& bdstr)> body{ 94 bt_status_t operator()(const std::string& bdstr) { return body(bdstr); }; in operator() 118 static bt_status_t return_value; 119 std::function<bt_status_t(RawAddress* remote_bd_addr, 125 bt_status_t operator()(RawAddress* remote_bd_addr, const uint8_t* key_value, in operator() 136 static bt_status_t return_value; [all …]
|
D | mock_btif_storage.cc | 90 bt_status_t btif_in_fetch_bonded_ble_device::return_value = BT_STATUS_SUCCESS; 91 bt_status_t btif_in_fetch_bonded_device::return_value = BT_STATUS_SUCCESS; 93 bt_status_t btif_storage_add_ble_bonding_key::return_value = BT_STATUS_SUCCESS; 94 bt_status_t btif_storage_add_ble_local_key::return_value = BT_STATUS_SUCCESS; 95 bt_status_t btif_storage_add_bonded_device::return_value = BT_STATUS_SUCCESS; 96 bt_status_t btif_storage_add_remote_device::return_value = BT_STATUS_SUCCESS; 97 bt_status_t btif_storage_get_adapter_prop::return_value = BT_STATUS_SUCCESS; 98 bt_status_t btif_storage_get_adapter_property::return_value = BT_STATUS_SUCCESS; 99 bt_status_t btif_storage_get_ble_bonding_key::return_value = BT_STATUS_SUCCESS; 100 bt_status_t btif_storage_get_ble_local_key::return_value = BT_STATUS_SUCCESS; [all …]
|
D | mock_btif_sock_rfc.h | 97 static bt_status_t return_value; 98 std::function<bt_status_t(const RawAddress* bd_addr, const Uuid* service_uuid, 103 bt_status_t operator()(const RawAddress* bd_addr, const Uuid* service_uuid, in operator() 115 static bt_status_t return_value; 116 std::function<bt_status_t(uint8_t dlci, const RawAddress& bd_addr, 124 bt_status_t operator()(uint8_t dlci, const RawAddress& bd_addr, in operator() 138 static bt_status_t return_value; 139 std::function<bt_status_t(const RawAddress* bd_addr)> body{ 141 bt_status_t operator()(const RawAddress* bd_addr) { return body(bd_addr); }; in operator() 149 static bt_status_t return_value; [all …]
|
D | mock_btif_sock_rfc.cc | 62 bt_status_t btsock_rfc_connect::return_value = BT_STATUS_SUCCESS; 63 bt_status_t btsock_rfc_control_req::return_value = BT_STATUS_SUCCESS; 64 bt_status_t btsock_rfc_disconnect::return_value = BT_STATUS_SUCCESS; 65 bt_status_t btsock_rfc_init::return_value = BT_STATUS_SUCCESS; 66 bt_status_t btsock_rfc_listen::return_value = BT_STATUS_SUCCESS; 89 bt_status_t btsock_rfc_connect(const RawAddress* bd_addr, in btsock_rfc_connect() 96 bt_status_t btsock_rfc_control_req(uint8_t dlci, const RawAddress& bd_addr, in btsock_rfc_control_req() 105 bt_status_t btsock_rfc_disconnect(const RawAddress* bd_addr) { in btsock_rfc_disconnect() 109 bt_status_t btsock_rfc_init(int poll_thread_handle, uid_set_t* set) { in btsock_rfc_init() 113 bt_status_t btsock_rfc_listen(const char* service_name, in btsock_rfc_listen()
|
D | mock_btif_profile_storage.h | 79 static bt_status_t return_value; 80 std::function<bt_status_t( 92 bt_status_t operator()(const tAclLinkSpec& link_spec, uint16_t attr_mask, in operator() 295 static bt_status_t return_value; 296 std::function<bt_status_t(void)> body{[](void) { return return_value; }}; 297 bt_status_t operator()(void) { return body(); }; in operator() 335 static bt_status_t return_value; 336 std::function<bt_status_t(void)> body{[](void) { return return_value; }}; 337 bt_status_t operator()(void) { return body(); }; in operator() 375 static bt_status_t return_value; [all …]
|
D | mock_btif_profile_queue.h | 63 static bt_status_t return_value; 64 std::function<bt_status_t(uint16_t uuid, const RawAddress* bda, 68 bt_status_t operator()(uint16_t uuid, const RawAddress* bda, in operator() 79 static bt_status_t return_value; 80 std::function<bt_status_t(void)> body{[](void) { return return_value; }}; 81 bt_status_t operator()(void) { return body(); }; in operator()
|
/packages/modules/Bluetooth/system/include/hardware/ |
D | bluetooth_headset_interface.h | 43 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, 78 virtual bt_status_t DisconnectAudio(RawAddress* bd_addr) = 0; 87 virtual bt_status_t isNoiseReductionSupported(RawAddress* bd_addr) = 0; 96 virtual bt_status_t isVoiceRecognitionSupported(RawAddress* bd_addr) = 0; 104 virtual bt_status_t StartVoiceRecognition(RawAddress* bd_addr) = 0; 112 virtual bt_status_t StopVoiceRecognition(RawAddress* bd_addr) = 0; 122 virtual bt_status_t VolumeControl(bthf_volume_type_t type, int volume, [all …]
|
D | bt_gatt_client.h | 217 bt_status_t (*register_client)(const bluetooth::Uuid& uuid, 221 bt_status_t (*unregister_client)(int client_if); 224 bt_status_t (*connect)(int client_if, const RawAddress& bd_addr, 229 bt_status_t (*disconnect)(int client_if, const RawAddress& bd_addr, 233 bt_status_t (*refresh)(int client_if, const RawAddress& bd_addr); 239 bt_status_t (*search_service)(int conn_id, 249 bt_status_t (*read_characteristic)(int conn_id, uint16_t handle, 253 bt_status_t (*read_using_characteristic_uuid)(int conn_id, 260 bt_status_t (*write_characteristic)(int conn_id, uint16_t handle, 265 bt_status_t (*read_descriptor)(int conn_id, uint16_t handle, int auth_req); [all …]
|
D | bt_rc.h | 434 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 …]
|
D | bt_hf_client.h | 337 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 …]
|
D | bt_hh.h | 192 bt_status_t (*init)(bthh_callbacks_t* callbacks); 195 bt_status_t (*connect)(RawAddress* bd_addr, tBLE_ADDR_TYPE addr_type, 199 bt_status_t (*disconnect)(RawAddress* bd_addr, tBLE_ADDR_TYPE addr_type, 203 bt_status_t (*virtual_unplug)(RawAddress* bd_addr, tBLE_ADDR_TYPE addr_type, 207 bt_status_t (*set_info)(RawAddress* bd_addr, tBLE_ADDR_TYPE addr_type, 211 bt_status_t (*get_protocol)(RawAddress* bd_addr, tBLE_ADDR_TYPE addr_type, 216 bt_status_t (*set_protocol)(RawAddress* bd_addr, tBLE_ADDR_TYPE addr_type, 221 bt_status_t (*get_idle_time)(RawAddress* bd_addr, tBLE_ADDR_TYPE addr_type, 225 bt_status_t (*set_idle_time)(RawAddress* bd_addr, tBLE_ADDR_TYPE addr_type, 229 bt_status_t (*get_report)(RawAddress* bd_addr, tBLE_ADDR_TYPE addr_type, [all …]
|
D | bt_gatt_server.h | 149 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 …]
|
D | bt_hd.h | 96 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);
|
D | bt_pan.h | 42 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);
|
D | bt_av.h | 297 bt_status_t status; 377 bt_status_t (*init)( 384 bt_status_t (*connect)(const RawAddress& bd_addr); 387 bt_status_t (*disconnect)(const RawAddress& bd_addr); 390 bt_status_t (*set_silence_device)(const RawAddress& bd_addr, bool silence); 393 bt_status_t (*set_active_device)(const RawAddress& bd_addr); 396 bt_status_t (*config_codec)( 413 bt_status_t (*init)(btav_sink_callbacks_t* callbacks, 417 bt_status_t (*connect)(const RawAddress& bd_addr); 420 bt_status_t (*disconnect)(const RawAddress& bd_addr); [all …]
|
/packages/modules/Bluetooth/system/btif/include/ |
D | btif_storage.h | 64 bt_status_t btif_in_fetch_bonded_device(const std::string& bdstr); 71 bt_status_t btif_in_fetch_bonded_ble_device( 88 bt_status_t btif_storage_get_adapter_property(bt_property_t* property); 101 bt_status_t btif_storage_set_adapter_property(bt_property_t* property); 116 bt_status_t btif_storage_get_remote_device_property( 130 bt_status_t btif_storage_set_remote_device_property( 145 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr, 160 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr, 174 bt_status_t btif_storage_remove_bonded_device(const RawAddress* remote_bd_addr); 203 bt_status_t btif_storage_load_bonded_devices(void); [all …]
|
D | btif_sock_l2cap.h | 13 bt_status_t btsock_l2cap_init(int handle, uid_set_t* set); 14 bt_status_t btsock_l2cap_cleanup(); 15 bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd, 17 bt_status_t btsock_l2cap_connect(const RawAddress* bd_addr, int channel, 21 bt_status_t btsock_l2cap_disconnect(const RawAddress* bd_addr); 22 bt_status_t btsock_l2cap_get_l2cap_local_cid(bluetooth::Uuid& conn_uuid, 24 bt_status_t btsock_l2cap_get_l2cap_remote_cid(bluetooth::Uuid& conn_uuid,
|
D | mock_core_callbacks.h | 33 .invoke_adapter_properties_cb = [](bt_status_t /* status */, 37 [](bt_status_t /* status */, RawAddress /* bd_addr */, 54 [](bt_status_t /* status */, RawAddress /* bd_addr */, 61 [](bt_status_t /* status */, RawAddress /* bd_addr */, 66 .invoke_le_test_mode_cb = [](bt_status_t /* status */, 99 .btif_hh_connect = [](const tAclLinkSpec& /* link_spec */) -> bt_status_t { 103 -> bt_status_t { return BT_STATUS_SUCCESS; }, 125 MOCK_METHOD((bt_status_t), toggleProfile,
|
D | btif_sock_rfc.h | 33 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, 46 bt_status_t btsock_rfc_disconnect(const RawAddress* bd_addr);
|
D | btif_common.h | 101 bt_status_t do_in_jni_thread(base::OnceClosure task); 129 void btif_adapter_properties_evt(bt_status_t status, uint32_t num_props, 131 void btif_remote_properties_evt(bt_status_t status, RawAddress* remote_addr, 136 bt_status_t btif_transfer_context(tBTIF_CBACK* p_cback, uint16_t event, 143 void invoke_adapter_properties_cb(bt_status_t status, int num_properties, 145 void invoke_remote_device_properties_cb(bt_status_t status, RawAddress bd_addr, 157 void invoke_bond_state_changed_cb(bt_status_t status, RawAddress bd_addr, 163 void invoke_acl_state_changed_cb(bt_status_t status, RawAddress bd_addr, 169 void invoke_le_test_mode_cb(bt_status_t status, uint16_t count);
|
D | btif_api.h | 52 bt_status_t btif_init_bluetooth(void); 63 bt_status_t btif_enable_bluetooth(void); 75 bt_status_t btif_cleanup_bluetooth(void); 311 bt_status_t btif_dm_passkey_reply(const RawAddress* bd_addr, uint8_t accept, 334 bt_status_t btif_dm_get_adapter_property(bt_property_t* prop); 394 bt_status_t btif_config_hci_snoop_log(uint8_t enable); 416 bt_status_t btif_set_dynamic_audio_buffer_size(int codec, int size);
|
/packages/modules/Bluetooth/system/btif/src/ |
D | btif_sock.cc | 48 static bt_status_t btsock_listen(btsock_type_t type, const char* service_name, 51 static bt_status_t btsock_connect(const RawAddress* bd_addr, btsock_type_t type, 55 static bt_status_t btsock_control_req(uint8_t dlci, const RawAddress& bd_addr, 62 static bt_status_t btsock_disconnect_all(const RawAddress* bd_addr); 63 static bt_status_t btsock_get_l2cap_local_cid(Uuid& conn_uuid, uint16_t* cid); 64 static bt_status_t btsock_get_l2cap_remote_cid(Uuid& conn_uuid, uint16_t* cid); 84 bt_status_t btif_sock_init(uid_set_t* uid_set) { in btif_sock_init() 88 bt_status_t status; in btif_sock_init() 145 static bt_status_t btsock_control_req(uint8_t dlci, const RawAddress& bd_addr, in btsock_control_req() 154 static bt_status_t btsock_listen(btsock_type_t type, const char* service_name, in btsock_listen() [all …]
|
D | btif_hf.cc | 728 bt_status_t status; in bte_hf_evt() 763 static bt_status_t connect_int(RawAddress* bd_addr, uint16_t uuid) { in connect_int() 836 bt_status_t Init(Callbacks* callbacks, int max_hf_clients, 838 bt_status_t Connect(RawAddress* bd_addr) override; 839 bt_status_t Disconnect(RawAddress* bd_addr) override; 840 bt_status_t ConnectAudio(RawAddress* bd_addr, int disabled_codecs) override; 841 bt_status_t DisconnectAudio(RawAddress* bd_addr) override; 842 bt_status_t isNoiseReductionSupported(RawAddress* bd_addr) override; 843 bt_status_t isVoiceRecognitionSupported(RawAddress* bd_addr) override; 844 bt_status_t StartVoiceRecognition(RawAddress* bd_addr) override; [all …]
|
D | btif_sdp.cc | 49 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()
|
/packages/modules/Bluetooth/system/osi/src/ |
D | wakelock.cc | 81 static bt_status_t wakelock_acquire_callout(void); 82 static bt_status_t wakelock_acquire_native(void); 83 static bt_status_t wakelock_release_callout(void); 84 static bt_status_t wakelock_release_native(void); 88 static void update_wakelock_acquired_stats(bt_status_t acquired_status); 89 static void update_wakelock_released_stats(bt_status_t released_status); 100 bt_status_t status = BT_STATUS_FAIL; in wakelock_acquire() 115 static bt_status_t wakelock_acquire_callout(void) { in wakelock_acquire_callout() 116 return static_cast<bt_status_t>( in wakelock_acquire_callout() 120 static bt_status_t wakelock_acquire_native(void) { in wakelock_acquire_native() [all …]
|