/system/bt/btif/include/ |
D | btif_api.h | 51 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( bt_bdaddr_t *remote_addr, 161 bt_status_t btif_get_remote_device_properties( bt_bdaddr_t *remote_addr); 174 bt_status_t btif_set_remote_device_property( bt_bdaddr_t *remote_addr, [all …]
|
D | btif_storage.h | 50 bt_status_t btif_storage_get_adapter_property(bt_property_t *property); 63 bt_status_t btif_storage_set_adapter_property(bt_property_t *property); 78 bt_status_t btif_storage_get_remote_device_property(bt_bdaddr_t *remote_bd_addr, 92 bt_status_t btif_storage_set_remote_device_property(bt_bdaddr_t *remote_bd_addr, 107 bt_status_t btif_storage_add_remote_device(bt_bdaddr_t *remote_bd_addr, 122 bt_status_t btif_storage_add_bonded_device(bt_bdaddr_t *remote_bd_addr, 137 bt_status_t btif_storage_remove_bonded_device(bt_bdaddr_t *remote_bd_addr); 149 bt_status_t btif_storage_load_bonded_devices(void); 161 bt_status_t btif_storage_read_hl_apps_cb(char *value, int value_size); 173 bt_status_t btif_storage_write_hl_apps_cb(char *value, int value_size); [all …]
|
D | btif_sock_sco.h | 25 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 bt_bdaddr_t *bd_addr, int *sock_fd, int flags);
|
D | btif_sock_rfc.h | 32 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 uint8_t* uuid, int channel, 36 bt_status_t btsock_rfc_connect(const bt_bdaddr_t *bd_addr, const uint8_t* uuid,
|
D | btif_sock_l2cap.h | 15 bt_status_t btsock_l2cap_init(int handle, uid_set_t* set); 16 bt_status_t btsock_l2cap_cleanup(); 17 bt_status_t btsock_l2cap_listen(const char* name, int channel, 19 bt_status_t btsock_l2cap_connect(const bt_bdaddr_t *bd_addr,
|
D | btif_profile_queue.h | 32 typedef bt_status_t (*btif_connect_cb_t) (bt_bdaddr_t *bda, uint16_t uuid); 34 bt_status_t btif_queue_connect(uint16_t uuid, const bt_bdaddr_t *bda, btif_connect_cb_t connect_cb); 36 bt_status_t btif_queue_connect_next(void);
|
D | btif_common.h | 201 bt_status_t btif_transfer_context (tBTIF_CBACK *p_cback, UINT16 event, char* p_params, 204 bt_status_t btif_enable_service(tBTA_SERVICE_ID service_id); 205 bt_status_t btif_disable_service(tBTA_SERVICE_ID service_id); 213 void btif_adapter_properties_evt(bt_status_t status, uint32_t num_props, bt_property_t *p_props); 214 void btif_remote_properties_evt(bt_status_t status, bt_bdaddr_t *remote_addr,
|
D | btif_sm.h | 103 bt_status_t btif_sm_dispatch(btif_sm_handle_t handle, btif_sm_event_t event, 118 bt_status_t btif_sm_change_state(btif_sm_handle_t handle, btif_sm_state_t state);
|
/system/bt/service/hal/ |
D | fake_bluetooth_gatt_interface.h | 36 virtual bt_status_t RegisterClient(bt_uuid_t* app_uuid) = 0; 37 virtual bt_status_t UnregisterClient(int client_if) = 0; 39 virtual bt_status_t Scan(bool start) = 0; 40 virtual bt_status_t Connect(int client_if, const bt_bdaddr_t *bd_addr, 42 virtual bt_status_t Disconnect(int client_if, const bt_bdaddr_t *bd_addr, 45 virtual bt_status_t MultiAdvEnable( 48 virtual bt_status_t MultiAdvSetInstData( 54 virtual bt_status_t MultiAdvDisable(int client_if) = 0; 64 virtual bt_status_t RegisterServer(bt_uuid_t* app_uuid) = 0; 65 virtual bt_status_t UnregisterServer(int server_if) = 0; [all …]
|
D | fake_bluetooth_gatt_interface.cpp | 29 bt_status_t FakeRegisterClient(bt_uuid_t* app_uuid) { in FakeRegisterClient() 36 bt_status_t FakeUnregisterClient(int client_if) { in FakeUnregisterClient() 43 bt_status_t FakeScan(bool start) { in FakeScan() 50 bt_status_t FakeConnect(int client_if, const bt_bdaddr_t *bd_addr, in FakeConnect() 58 bt_status_t FakeDisconnect(int client_if, const bt_bdaddr_t *bd_addr, in FakeDisconnect() 66 bt_status_t FakeMultiAdvEnable( in FakeMultiAdvEnable() 76 bt_status_t FakeMultiAdvSetInstData( in FakeMultiAdvSetInstData() 93 bt_status_t FakeMultiAdvDisable(int client_if) { in FakeMultiAdvDisable() 100 bt_status_t FakeRegisterServer(bt_uuid_t* app_uuid) { in FakeRegisterServer() 107 bt_status_t FakeUnregisterServer(int server_if) { in FakeUnregisterServer() [all …]
|
D | bluetooth_interface.h | 53 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,
|
D | bluetooth_interface.cpp | 75 void AdapterPropertiesCallback(bt_status_t status, in AdapterPropertiesCallback() 86 void RemoteDevicePropertiesCallback(bt_status_t status, in RemoteDevicePropertiesCallback() 133 bt_status_t status, in BondStateChangedCallback() 145 void AclStateChangedCallback(bt_status_t status, in AclStateChangedCallback() 334 bt_status_t /* status */, in AdapterPropertiesCallback() argument 341 bt_status_t /* status */, in RemoteDevicePropertiesCallback() argument 371 bt_status_t status, in BondStateChangedCallback() 378 bt_status_t /* status */, in AclStateChangedCallback() argument
|
/system/bt/osi/src/ |
D | wakelock.c | 80 static bt_status_t wakelock_acquire_callout(void); 81 static bt_status_t wakelock_acquire_native(void); 82 static bt_status_t wakelock_release_callout(void); 83 static bt_status_t wakelock_release_native(void); 87 static void update_wakelock_acquired_stats(bt_status_t acquired_status); 88 static void update_wakelock_released_stats(bt_status_t released_status); 101 bt_status_t status = BT_STATUS_FAIL; in wakelock_acquire() 116 static bt_status_t wakelock_acquire_callout(void) { in wakelock_acquire_callout() 120 static bt_status_t wakelock_acquire_native(void) { in wakelock_acquire_native() 148 bt_status_t status = BT_STATUS_FAIL; in wakelock_release() [all …]
|
/system/bt/btif/src/ |
D | btif_sdp.c | 45 bt_status_t sdp_server_init(); 47 bt_status_t create_sdp_record(bluetooth_sdp_record *records, int* record_handles); 48 bt_status_t remove_sdp_record(int record_handle); 125 static bt_status_t init(btsdp_callbacks_t* callbacks) in init() 137 static bt_status_t deinit() in deinit() 148 static bt_status_t search(bt_bdaddr_t *bd_addr, const uint8_t *uuid) in search() 183 bt_status_t btif_sdp_execute_service(BOOLEAN b_enable) in btif_sdp_execute_service()
|
D | btif_sock.c | 37 static bt_status_t btsock_listen(btsock_type_t type, const char *service_name, const uint8_t *uuid,… 38 static bt_status_t btsock_connect(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t *uu… 56 bt_status_t btif_sock_init(uid_set_t* uid_set) { in btif_sock_init() 67 bt_status_t status = btsock_rfc_init(thread_handle, uid_set); in btif_sock_init() 120 static bt_status_t btsock_listen(btsock_type_t type, const char *service_name, const uint8_t *servi… in btsock_listen() 127 bt_status_t status = BT_STATUS_FAIL; in btsock_listen() 149 static bt_status_t btsock_connect(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t *uu… in btsock_connect() 155 bt_status_t status = BT_STATUS_FAIL; in btsock_connect()
|
D | btif_hf_client.c | 194 static bt_status_t init( bthf_client_callbacks_t* callbacks ) in init() 216 static bt_status_t connect_int( bt_bdaddr_t *bd_addr, uint16_t uuid ) in connect_int() 230 static bt_status_t connect( bt_bdaddr_t *bd_addr ) in connect() 247 static bt_status_t disconnect( bt_bdaddr_t *bd_addr ) in disconnect() 269 static bt_status_t connect_audio( bt_bdaddr_t *bd_addr ) in connect_audio() 303 static bt_status_t disconnect_audio( bt_bdaddr_t *bd_addr ) in disconnect_audio() 325 static bt_status_t start_voice_recognition() in start_voice_recognition() 348 static bt_status_t stop_voice_recognition() in stop_voice_recognition() 371 static bt_status_t volume_control(bthf_client_volume_type_t type, int volume) in volume_control() 399 static bt_status_t dial(const char *number) in dial() [all …]
|
D | btif_core.c | 200 bt_status_t btif_transfer_context (tBTIF_CBACK *p_cback, UINT16 event, char* p_params, int param_le… in btif_transfer_context() 430 bt_status_t btif_init_bluetooth() { in btif_init_bluetooth() 558 bt_status_t btif_disable_bluetooth(void) in btif_disable_bluetooth() 607 bt_status_t btif_cleanup_bluetooth(void) in btif_cleanup_bluetooth() 656 bt_status_t btif_dut_mode_configure(uint8_t enable) in btif_dut_mode_configure() 683 bt_status_t btif_dut_mode_send(uint16_t opcode, uint8_t *buf, uint8_t len) in btif_dut_mode_send() 701 static bt_status_t btif_in_get_adapter_properties(void) in btif_in_get_adapter_properties() 756 static bt_status_t btif_in_get_remote_device_properties(bt_bdaddr_t *bd_addr) in btif_in_get_remote_device_properties() 815 bt_status_t status = BT_STATUS_SUCCESS; in execute_storage_request() 894 bt_status_t status = BT_STATUS_FAIL; in execute_storage_remote_request() [all …]
|
D | btif_sm.c | 131 bt_status_t btif_sm_dispatch(btif_sm_handle_t handle, btif_sm_event_t event, in btif_sm_dispatch() 134 bt_status_t status = BT_STATUS_SUCCESS; in btif_sm_dispatch() 163 bt_status_t btif_sm_change_state(btif_sm_handle_t handle, btif_sm_state_t state) in btif_sm_change_state() 165 bt_status_t status = BT_STATUS_SUCCESS; in btif_sm_change_state()
|
D | btif_storage.c | 166 static bt_status_t btif_in_fetch_bonded_ble_device(const char *remote_bd_addr,int add, 168 static bt_status_t btif_in_fetch_bonded_device(const char *bdstr); 391 static bt_status_t btif_in_fetch_bonded_device(const char *bdstr) in btif_in_fetch_bonded_device() 436 static bt_status_t btif_in_fetch_bonded_devices(btif_bonded_devices_t *p_bonded_devices, int add) in btif_in_fetch_bonded_devices() 579 bt_status_t btif_storage_get_adapter_property(bt_property_t *property) in btif_storage_get_adapter_property() 682 bt_status_t btif_storage_set_adapter_property(bt_property_t *property) in btif_storage_set_adapter_property() 700 bt_status_t btif_storage_get_remote_device_property(bt_bdaddr_t *remote_bd_addr, in btif_storage_get_remote_device_property() 716 bt_status_t btif_storage_set_remote_device_property(bt_bdaddr_t *remote_bd_addr, in btif_storage_set_remote_device_property() 734 bt_status_t btif_storage_add_remote_device(bt_bdaddr_t *remote_bd_addr, in btif_storage_add_remote_device() 777 bt_status_t btif_storage_add_bonded_device(bt_bdaddr_t *remote_bd_addr, in btif_storage_add_bonded_device() [all …]
|
D | btif_gatt_server.c | 353 bt_status_t status; in btapp_gatts_cback() 521 static bt_status_t btif_gatts_register_app(bt_uuid_t *uuid) in btif_gatts_register_app() 530 static bt_status_t btif_gatts_unregister_app( int server_if ) in btif_gatts_unregister_app() 539 static bt_status_t btif_gatts_open( int server_if, const bt_bdaddr_t *bd_addr, in btif_gatts_open() 552 static bt_status_t btif_gatts_close(int server_if, const bt_bdaddr_t *bd_addr, int conn_id) in btif_gatts_close() 563 static bt_status_t btif_gatts_add_service(int server_if, btgatt_srvc_id_t *srvc_id, in btif_gatts_add_service() 575 static bt_status_t btif_gatts_add_included_service(int server_if, int service_handle, in btif_gatts_add_included_service() 587 static bt_status_t btif_gatts_add_characteristic(int server_if, int service_handle, in btif_gatts_add_characteristic() 602 static bt_status_t btif_gatts_add_descriptor(int server_if, int service_handle, bt_uuid_t *uuid, in btif_gatts_add_descriptor() 615 static bt_status_t btif_gatts_start_service(int server_if, int service_handle, int transport) in btif_gatts_start_service() [all …]
|
D | btif_hf.c | 345 static bt_status_t btif_hf_check_if_slc_connected() in btif_hf_check_if_slc_connected() 642 bt_status_t status; in bte_hf_evt() 709 static bt_status_t init( bthf_callbacks_t* callbacks, int max_hf_clients) in init() 742 static bt_status_t connect_int(bt_bdaddr_t *bd_addr, uint16_t uuid) in connect_int() 771 static bt_status_t connect( bt_bdaddr_t *bd_addr ) in connect() 786 static bt_status_t disconnect( bt_bdaddr_t *bd_addr ) in disconnect() 816 static bt_status_t connect_audio( bt_bdaddr_t *bd_addr ) in connect_audio() 854 static bt_status_t disconnect_audio( bt_bdaddr_t *bd_addr ) in disconnect_audio() 884 static bt_status_t start_voice_recognition(bt_bdaddr_t *bd_addr) in start_voice_recognition() 925 static bt_status_t stop_voice_recognition(bt_bdaddr_t *bd_addr) in stop_voice_recognition() [all …]
|
D | btif_gatt_client.c | 242 static bt_status_t btif_gattc_multi_adv_disable(int client_if); 814 bt_status_t status = btif_transfer_context(btif_gattc_upstreams_evt, in bta_gattc_cback() 863 bt_status_t status = btif_transfer_context(btif_gattc_upstreams_evt, (uint16_t) upevt, in bta_gattc_multi_adv_cback() 1609 static bt_status_t btif_gattc_register_app(bt_uuid_t *uuid) in btif_gattc_register_app() 1618 static bt_status_t btif_gattc_unregister_app(int client_if ) in btif_gattc_unregister_app() 1627 static bt_status_t btif_gattc_scan( bool start ) in btif_gattc_scan() 1635 static bt_status_t btif_gattc_open(int client_if, const bt_bdaddr_t *bd_addr, in btif_gattc_open() 1648 static bt_status_t btif_gattc_close( int client_if, const bt_bdaddr_t *bd_addr, int conn_id) in btif_gattc_close() 1659 static bt_status_t btif_gattc_listen(int client_if, bool start) in btif_gattc_listen() 1707 static bt_status_t btif_gattc_set_adv_data(int client_if, bool set_scan_rsp, bool include_name, in btif_gattc_set_adv_data() [all …]
|
D | btif_mce.c | 124 static bt_status_t init(btmce_callbacks_t* callbacks) in init() 135 static bt_status_t get_remote_mas_instances(bt_bdaddr_t *bd_addr) in get_remote_mas_instances() 167 bt_status_t btif_mce_execute_service(BOOLEAN b_enable) in btif_mce_execute_service()
|
/system/bt/service/test/ |
D | gatt_client_unittest.cpp | 36 MOCK_METHOD1(RegisterClient, bt_status_t(bt_uuid_t*)); 37 MOCK_METHOD1(UnregisterClient, bt_status_t(int)); 38 MOCK_METHOD1(Scan, bt_status_t(bool)); 39 MOCK_METHOD4(Connect, bt_status_t(int , const bt_bdaddr_t *, bool, int)); 40 MOCK_METHOD3(Disconnect, bt_status_t(int , const bt_bdaddr_t *, int)); 43 bt_status_t MultiAdvEnable(int, int, int, int, int, int, int) override { in MultiAdvEnable() 47 bt_status_t MultiAdvSetInstData(int, bool, bool, bool, int, in MultiAdvSetInstData() 52 bt_status_t MultiAdvDisable(int) override { in MultiAdvDisable()
|
/system/bt/service/ |
D | gatt_server_old.cpp | 98 bt_status_t AddCharacteristic( 332 bt_status_t btstat = g_internal->gatt->client->register_client(&client_id); in ServiceStartedCallback() 344 bt_status_t btstat = g_internal->gatt->client->set_adv_data( in RegisterClientCallback() 495 bt_status_t btstat = gatt->init(&gatt_callbacks); in Initialize() 510 bt_status_t ServerInternals::AddCharacteristic( in AddCharacteristic() 558 bt_status_t btstat = internal_->gatt->server->register_server(&uuid); in Initialize() 592 bt_status_t btstat = internal_->gatt->client->set_adv_data( in SetAdvertisement() 626 bt_status_t btstat = internal_->gatt->client->set_adv_data( in SetScanResponse() 647 bt_status_t btstat = internal_->AddCharacteristic( in AddCharacteristic() 665 bt_status_t btstat = internal_->AddCharacteristic( in AddBlob() [all …]
|