/external/bluetooth/bluedroid/btif/include/ |
btif_profile_queue.h | 30 typedef bt_status_t (btif_connect_cb_t) (bt_bdaddr_t *bda); 32 bt_status_t btif_queue_connect(uint16_t uuid, const bt_bdaddr_t *bda,
|
btif_api.h | 131 bt_status_t btif_get_remote_device_property( bt_bdaddr_t *remote_addr, 143 bt_status_t btif_get_remote_device_properties( bt_bdaddr_t *remote_addr); 156 bt_status_t btif_set_remote_device_property( bt_bdaddr_t *remote_addr, 169 bt_status_t btif_get_remote_service_record( bt_bdaddr_t *remote_addr, 209 bt_status_t btif_dm_create_bond(const bt_bdaddr_t *bd_addr); 220 bt_status_t btif_dm_cancel_bond(const bt_bdaddr_t *bd_addr); 231 bt_status_t btif_dm_remove_bond(const bt_bdaddr_t *bd_addr); 242 bt_status_t btif_dm_pin_reply( const bt_bdaddr_t *bd_addr, uint8_t accept, 254 bt_status_t btif_dm_passkey_reply( const bt_bdaddr_t *bd_addr, 266 bt_status_t btif_dm_ssp_reply( const bt_bdaddr_t *bd_addr [all...] |
btif_storage.h | 80 bt_status_t btif_storage_get_remote_device_property(bt_bdaddr_t *remote_bd_addr, 94 bt_status_t btif_storage_set_remote_device_property(bt_bdaddr_t *remote_bd_addr, 109 bt_status_t btif_storage_add_remote_device(bt_bdaddr_t *remote_bd_addr, 124 bt_status_t btif_storage_add_bonded_device(bt_bdaddr_t *remote_bd_addr, 139 bt_status_t btif_storage_remove_bonded_device(bt_bdaddr_t *remote_bd_addr); 236 bt_status_t btif_storage_add_hid_device_info(bt_bdaddr_t *remote_bd_addr, 264 bt_status_t btif_storage_remove_hid_info(bt_bdaddr_t *remote_bd_addr); 289 BOOLEAN btif_storage_is_device_autopair_blacklisted(bt_bdaddr_t *remote_bd_addr); 302 bt_status_t btif_storage_add_device_to_autopair_blacklist(bt_bdaddr_t *remote_bd_addr); 314 BOOLEAN btif_storage_is_fixed_pin_zeros_keyboard(bt_bdaddr_t *remote_bd_addr) [all...] |
btif_hh.h | 61 bt_bdaddr_t bd_addr; 78 bt_bdaddr_t bd_addr; 103 extern void btif_hh_remove_device(bt_bdaddr_t bd_addr); 104 BOOLEAN btif_hh_add_added_dev(bt_bdaddr_t bda, tBTA_HH_ATTR_MASK attr_mask); 105 extern bt_status_t btif_hh_virtual_unplug(bt_bdaddr_t *bd_addr); 106 extern void btif_hh_disconnect(bt_bdaddr_t *bd_addr); 110 BOOLEAN btif_hh_add_added_dev(bt_bdaddr_t bd_addr, tBTA_HH_ATTR_MASK attr_mask);
|
btif_sock_rfc.h | 34 bt_status_t btsock_rfc_connect(const bt_bdaddr_t *bd_addr, const uint8_t* uuid,
|
btif_util.h | 65 int str2bd(char *str, bt_bdaddr_t *addr); 66 char *bd2str(const bt_bdaddr_t *addr, bdstr_t *bdstr);
|
/hardware/libhardware/include/hardware/ |
bt_av.h | 42 bt_bdaddr_t *bd_addr); 48 bt_bdaddr_t *bd_addr); 79 bt_status_t (*connect)( bt_bdaddr_t *bd_addr ); 82 bt_status_t (*disconnect)( bt_bdaddr_t *bd_addr );
|
bt_hh.h | 90 typedef void (* bthh_connection_state_callback)(bt_bdaddr_t *bd_addr, bthh_connection_state_t state); 95 typedef void (* bthh_virtual_unplug_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_status); 100 typedef void (* bthh_hid_info_callback)(bt_bdaddr_t *bd_addr, bthh_hid_info_t hid_info); 105 typedef void (* bthh_protocol_mode_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_status,bthh_protocol_mode_t mode); 109 typedef void (* bthh_idle_time_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_status, int idle_rate); 115 typedef void (* bthh_get_report_callback)(bt_bdaddr_t *bd_addr, bthh_status_t hh_status, uint8_t* rpt_data, int rpt_size); 145 bt_status_t (*connect)( bt_bdaddr_t *bd_addr); 148 bt_status_t (*disconnect)( bt_bdaddr_t *bd_addr ); 151 bt_status_t (*virtual_unplug)(bt_bdaddr_t *bd_addr); 154 bt_status_t (*set_info)(bt_bdaddr_t *bd_addr, bthh_hid_info_t hid_info ) [all...] |
bluetooth.h | 52 } __attribute__((packed))bt_bdaddr_t; typedef in typeref:struct:__anon30985 141 * Data type - bt_bdaddr_t 179 * Data type - Array of bt_bdaddr_t of the bonded remote devices 268 bt_bdaddr_t *bd_addr, 282 typedef void (*pin_request_callback)(bt_bdaddr_t *remote_bd_addr, 290 typedef void (*ssp_request_callback)(bt_bdaddr_t *remote_bd_addr, 299 bt_bdaddr_t *remote_bd_addr, 303 typedef void (*acl_state_changed_callback)(bt_status_t status, bt_bdaddr_t *remote_bd_addr, 391 * bt_bdaddr_t or bt_bdname_t or bt_scanmode_t etc 396 int (*get_remote_device_properties)(bt_bdaddr_t *remote_addr) [all...] |
bt_pan.h | 42 const bt_bdaddr_t *bd_addr, int local_role, int remote_role); 72 bt_status_t (*connect)(const bt_bdaddr_t *bd_addr, int local_role, int remote_role); 76 bt_status_t (*disconnect)(const bt_bdaddr_t *bd_addr);
|
bt_sock.h | 34 bt_bdaddr_t bd_addr; 52 bt_status_t (*connect)(const bt_bdaddr_t *bd_addr, btsock_type_t type, const uint8_t* uuid, int channel, int* sock_fd, int flags);
|
bt_gatt_server.h | 52 bt_bdaddr_t *bda); 86 typedef void (*request_read_callback)(int conn_id, int trans_id, bt_bdaddr_t *bda, 93 typedef void (*request_write_callback)(int conn_id, int trans_id, bt_bdaddr_t *bda, 99 bt_bdaddr_t *bda, int exec_write); 132 bt_status_t (*connect)(int server_if, const bt_bdaddr_t *bd_addr, bool is_direct ); 135 bt_status_t (*disconnect)(int server_if, const bt_bdaddr_t *bd_addr,
|
bt_hf.h | 72 typedef void (* bthf_connection_state_callback)(bthf_connection_state_t state, bt_bdaddr_t *bd_addr); 77 typedef void (* bthf_audio_state_callback)(bthf_audio_state_t state, bt_bdaddr_t *bd_addr); 219 bt_status_t (*connect)( bt_bdaddr_t *bd_addr ); 222 bt_status_t (*disconnect)( bt_bdaddr_t *bd_addr ); 225 bt_status_t (*connect_audio)( bt_bdaddr_t *bd_addr ); 228 bt_status_t (*disconnect_audio)( bt_bdaddr_t *bd_addr );
|
bt_gatt_client.h | 63 bt_bdaddr_t bda; 72 bt_bdaddr_t *bda1; 88 typedef void (*scan_result_callback)(bt_bdaddr_t* bda, int rssi, uint8_t* adv_data); 91 typedef void (*connect_callback)(int conn_id, int status, int client_if, bt_bdaddr_t* bda); 95 int client_if, bt_bdaddr_t* bda); 151 typedef void (*read_remote_rssi_callback)(int client_if, bt_bdaddr_t* bda, 193 bt_status_t (*connect)( int client_if, const bt_bdaddr_t *bd_addr, 197 bt_status_t (*disconnect)( int client_if, const bt_bdaddr_t *bd_addr, 204 bt_status_t (*refresh)( int client_if, const bt_bdaddr_t *bd_addr ); 264 const bt_bdaddr_t *bd_addr, btgatt_srvc_id_t *srvc_id [all...] |
bt_hl.h | 81 typedef void (* bthl_channel_state_callback)(int app_id, bt_bdaddr_t *bd_addr, int mdep_cfg_index, int channel_id, bthl_channel_state_t state, int fd); 110 bt_status_t (*connect_channel)(int app_id, bt_bdaddr_t *bd_addr, int mdep_cfg_index, int *channel_id);
|
/packages/apps/Bluetooth/jni/ |
com_android_bluetooth_a2dp.cpp | 50 static void bta2dp_connection_state_callback(btav_connection_state_t state, bt_bdaddr_t* bd_addr) { 59 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); 66 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr); 73 static void bta2dp_audio_state_callback(btav_audio_state_t state, bt_bdaddr_t* bd_addr) { 82 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); 89 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*) bd_addr); 195 bt_bdaddr_t * btAddr; 202 btAddr = (bt_bdaddr_t *) addr; 208 if ((status = sBluetoothA2dpInterface->connect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) { 227 if ( (status = sBluetoothA2dpInterface->disconnect((bt_bdaddr_t *)addr)) != BT_STATUS_SUCCESS) [all...] |
com_android_bluetooth_hid.cpp | 59 static void connection_state_callback(bt_bdaddr_t *bd_addr, bthh_connection_state_t state) { 63 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); 69 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); 76 static void get_protocol_mode_callback(bt_bdaddr_t *bd_addr, bthh_status_t hh_status,bthh_protocol_mode_t mode) { 86 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); 92 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); 99 static void virtual_unplug_callback(bt_bdaddr_t *bd_addr, bthh_status_t hh_status) { 104 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); 110 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); 119 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); [all...] |
com_android_bluetooth_btservice_AdapterService.cpp | 174 static void remote_device_properties_callback(bt_status_t status, bt_bdaddr_t *bd_addr, 224 addr = callbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); 226 if (addr) callbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte*)bd_addr); 274 remote_device_properties_callback(BT_STATUS_SUCCESS, (bt_bdaddr_t *)properties[addr_index].val, 282 static void bond_state_changed_callback(bt_status_t status, bt_bdaddr_t *bd_addr, 294 addr = callbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); 299 callbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *)bd_addr); 307 static void acl_state_changed_callback(bt_status_t status, bt_bdaddr_t *bd_addr, 320 addr = callbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); 325 callbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *)bd_addr) [all...] |
com_android_bluetooth_pan.cpp | 69 static void connection_state_callback(btpan_connection_state_t state, bt_status_t error, const bt_bdaddr_t *bd_addr, 74 addr = sCallbackEnv->NewByteArray(sizeof(bt_bdaddr_t)); 80 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(bt_bdaddr_t), (jbyte *) bd_addr); 200 if ((status = sPanIf->connect((bt_bdaddr_t *) addr, src_role, dest_role)) != 222 if ( (status = sPanIf->disconnect((bt_bdaddr_t *) addr)) !=
|
/external/bluetooth/bluedroid/btif/src/ |
bluetooth.c | 191 int get_remote_device_properties(bt_bdaddr_t *remote_addr) 200 int get_remote_device_property(bt_bdaddr_t *remote_addr, bt_property_type_t type) 209 int set_remote_device_property(bt_bdaddr_t *remote_addr, const bt_property_t *property) 218 int get_remote_service_record(bt_bdaddr_t *remote_addr, bt_uuid_t *uuid) 227 int get_remote_services(bt_bdaddr_t *remote_addr) 254 static int create_bond(const bt_bdaddr_t *bd_addr) 263 static int cancel_bond(const bt_bdaddr_t *bd_addr) 272 static int remove_bond(const bt_bdaddr_t *bd_addr) 281 static int pin_reply(const bt_bdaddr_t *bd_addr, uint8_t accept, 291 static int ssp_reply(const bt_bdaddr_t *bd_addr, bt_ssp_variant_t variant [all...] |
btif_profile_queue.c | 45 bt_bdaddr_t bda; 135 bt_status_t btif_queue_connect(uint16_t uuid, const bt_bdaddr_t *bda, 140 memcpy(&(node.bda), bda, sizeof(bt_bdaddr_t));
|
btif_dm.c | 141 static void btif_dm_cb_create_bond(bt_bdaddr_t *bd_addr); 159 extern int btif_hh_connect(bt_bdaddr_t *bd_addr); 255 bt_bdaddr_t remote_bdaddr; 276 BOOLEAN check_cod(const bt_bdaddr_t *remote_bdaddr, uint32_t cod) 284 if (btif_storage_get_remote_device_property((bt_bdaddr_t *)remote_bdaddr, &prop_name) == BT_STATUS_SUCCESS) 293 BOOLEAN check_cod_hid(const bt_bdaddr_t *remote_bdaddr, uint32_t cod) 301 if (btif_storage_get_remote_device_property((bt_bdaddr_t *)remote_bdaddr, 310 BOOLEAN check_hid_le(const bt_bdaddr_t *remote_bdaddr) 318 if (btif_storage_get_remote_device_property((bt_bdaddr_t *)remote_bdaddr, 332 static void bond_state_changed(bt_status_t status, bt_bdaddr_t *bd_addr, bt_bond_state_t state [all...] |
btif_storage.c | 159 bt_bdaddr_t devices[BTM_SEC_MAX_DEVICE_RECORDS]; 166 extern bt_bdaddr_t btif_local_bd_addr; 180 bt_status_t btif_storage_get_remote_addr_type(bt_bdaddr_t *remote_bd_addr, 197 static char* btif_in_make_filename(bt_bdaddr_t *bd_addr, char *fname) 247 static int prop2cfg(bt_bdaddr_t *remote_bd_addr, bt_property_t *prop) 339 static int cfg2prop(bt_bdaddr_t *remote_bd_addr, bt_property_t *prop) 494 bt_bdaddr_t bd_addr; 513 memcpy(&p_bonded_devices->devices[p_bonded_devices->num_devices++], &bd_addr, sizeof(bt_bdaddr_t)); 596 bt_bdaddr_t *bd_addr = (bt_bdaddr_t*)property->val [all...] |
btif_hh.c | 154 extern bt_status_t btif_dm_remove_bond(const bt_bdaddr_t *bd_addr); 158 extern BOOLEAN check_cod(const bt_bdaddr_t *remote_bdaddr, uint32_t cod); 159 extern void btif_dm_cb_remove_bond(bt_bdaddr_t *bd_addr); 160 extern BOOLEAN check_cod_hid(const bt_bdaddr_t *remote_bdaddr, uint32_t cod); 372 ** Description Return the device pointer of the specified bt_bdaddr_t. 376 static btif_hh_device_t *btif_hh_find_dev_by_bda(bt_bdaddr_t *bd_addr) 393 ** Description Return the connected device pointer of the specified bt_bdaddr_t. 397 static btif_hh_device_t *btif_hh_find_connected_dev_by_bda(bt_bdaddr_t *bd_addr) 418 void btif_hh_stop_vup_timer(bt_bdaddr_t *bd_addr) 439 void btif_hh_start_vup_timer(bt_bdaddr_t *bd_addr [all...] |
btif_core.c | 75 bt_bdaddr_t bd_addr; 80 bt_bdaddr_t bd_addr; 100 bt_bdaddr_t btif_local_bd_addr; 363 static void btif_fetch_local_bdaddr(bt_bdaddr_t *local_addr) 481 memset(&btif_local_bd_addr, 0, sizeof(bt_bdaddr_t)); 557 bt_bdaddr_t bd_addr; 593 memcpy(buf, &btif_local_bd_addr, sizeof(bt_bdaddr_t)); 596 prop.len = sizeof(bt_bdaddr_t); 887 bt_bdaddr_t addr; 891 bt_bdaddr_t bonded_devices[BTM_SEC_MAX_DEVICE_RECORDS] [all...] |