/system/bt/types/test/ |
D | raw_address_unittest.cc | 27 RawAddress empty; in TEST() 28 RawAddress::FromString("00:00:00:00:00:00", empty); in TEST() 31 RawAddress not_empty; in TEST() 32 RawAddress::FromString("00:00:00:00:00:01", not_empty); in TEST() 37 RawAddress bdaddr; in TEST() 38 RawAddress::FromString(test_addr, bdaddr); in TEST() 53 RawAddress bdaddr1; in TEST() 54 RawAddress bdaddr2; in TEST() 55 RawAddress bdaddr3; in TEST() 56 RawAddress::FromString(test_addr, bdaddr1); in TEST() [all …]
|
/system/bt/stack/btm/ |
D | btm_int.h | 54 extern tBTM_STATUS btm_initiate_rem_name(const RawAddress& remote_bda, 58 extern void btm_process_remote_name(const RawAddress* bda, BD_NAME name, 64 extern void btm_clr_inq_db(const RawAddress* p_bda); 72 extern tINQ_DB_ENT* btm_inq_db_find(const RawAddress& p_bda); 73 extern bool btm_inq_find_bdaddr(const RawAddress& p_bda); 79 extern void btm_acl_created(const RawAddress& bda, DEV_CLASS dc, BD_NAME bdn, 82 extern void btm_acl_removed(const RawAddress& bda, tBT_TRANSPORT transport); 110 extern void btm_acl_role_changed(uint8_t hci_status, const RawAddress* bd_addr, 112 extern void btm_blacklist_role_change_device(const RawAddress& bd_addr, 117 extern tBTM_STATUS btm_remove_acl(const RawAddress& bd_addr, [all …]
|
D | btm_ble_int.h | 44 extern tBTM_STATUS btm_ble_read_remote_name(const RawAddress& remote_bda, 46 extern bool btm_ble_cancel_remote_name(const RawAddress& remote_bda); 62 extern void btm_ble_connected(const RawAddress& bda, uint16_t handle, 79 extern void btm_ble_link_sec_check(const RawAddress& bd_addr, 82 extern void btm_ble_ltk_request_reply(const RawAddress& bda, bool use_stk, 84 extern uint8_t btm_proc_smp_cback(tSMP_EVT event, const RawAddress& bd_addr, 86 extern tBTM_STATUS btm_ble_set_encryption(const RawAddress& bd_addr, 91 extern tBTM_STATUS btm_ble_start_encrypt(const RawAddress& bda, bool use_stk, 93 extern void btm_ble_link_encrypted(const RawAddress& bd_addr, 100 extern void btm_ble_increment_sign_ctr(const RawAddress& bd_addr, [all …]
|
/system/bt/types/ |
D | raw_address.cc | 27 static_assert(sizeof(RawAddress) == 6, "RawAddress must be 6 bytes long!"); 29 const RawAddress RawAddress::kAny{{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}}; 30 const RawAddress RawAddress::kEmpty{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}; 32 RawAddress::RawAddress(const uint8_t (&addr)[6]) { in RawAddress() function in RawAddress 36 std::string RawAddress::ToString() const { in ToString() 42 bool RawAddress::FromString(const std::string& from, RawAddress& to) { in FromString() 43 RawAddress new_addr; in FromString() 65 bool RawAddress::IsValidAddress(const std::string& address) { in IsValidAddress() 66 RawAddress tmp; in IsValidAddress() 67 return RawAddress::FromString(address, tmp); in IsValidAddress()
|
D | raw_address.h | 24 class RawAddress final { 30 RawAddress() = default; 31 RawAddress(const uint8_t (&addr)[6]); 33 bool operator<(const RawAddress& rhs) const { 36 bool operator==(const RawAddress& rhs) const { 39 bool operator>(const RawAddress& rhs) const { return (rhs < *this); } 40 bool operator<=(const RawAddress& rhs) const { return !(*this > rhs); } 41 bool operator>=(const RawAddress& rhs) const { return !(*this < rhs); } 42 bool operator!=(const RawAddress& rhs) const { return !(*this == rhs); } 51 static bool FromString(const std::string& from, RawAddress& to); [all …]
|
/system/bt/stack/include/ |
D | btm_api.h | 537 extern tBTM_STATUS BTM_ReadRemoteDeviceName(const RawAddress& remote_bda, 569 extern tBTM_STATUS BTM_ReadRemoteVersion(const RawAddress& addr, 587 extern uint8_t* BTM_ReadRemoteFeatures(const RawAddress& addr); 606 extern uint8_t* BTM_ReadRemoteExtendedFeatures(const RawAddress& addr, 619 extern uint8_t BTM_ReadNumberRemoteFeaturesPages(const RawAddress& addr); 634 extern uint8_t* BTM_ReadAllRemoteFeatures(const RawAddress& addr); 648 extern tBTM_INQ_INFO* BTM_InqDbRead(const RawAddress& p_bda); 691 extern tBTM_STATUS BTM_ClearInqDb(const RawAddress* p_bda); 719 extern tBTM_STATUS BTM_SetLinkPolicy(const RawAddress& remote_bda, 755 extern tBTM_STATUS BTM_SetLinkSuperTout(const RawAddress& remote_bda, [all …]
|
D | l2c_api.h | 201 typedef void(tL2CA_CONNECT_IND_CB)(const RawAddress&, uint16_t, uint16_t, 242 typedef void(tL2CA_QOS_VIOLATION_IND_CB)(const RawAddress&); 259 typedef void(tL2CA_ECHO_DATA_CB)(const RawAddress&, uint16_t, uint8_t*); 276 typedef void(tL2CA_NOCP_CB)(const RawAddress&); 393 extern uint16_t L2CA_ConnectReq(uint16_t psm, const RawAddress& p_bd_addr); 406 extern bool L2CA_ConnectRsp(const RawAddress& p_bd_addr, uint8_t id, 422 extern uint16_t L2CA_ErtmConnectReq(uint16_t psm, const RawAddress& p_bd_addr, 465 extern uint16_t L2CA_ConnectLECocReq(uint16_t psm, const RawAddress& p_bd_addr, 479 extern bool L2CA_ConnectLECocRsp(const RawAddress& p_bd_addr, uint8_t id, 515 extern bool L2CA_ErtmConnectRsp(const RawAddress& p_bd_addr, uint8_t id, [all …]
|
D | btm_ble_api.h | 55 extern bool BTM_SecAddBleDevice(const RawAddress& bd_addr, BD_NAME bd_name, 74 extern bool BTM_SecAddBleKey(const RawAddress& bd_addr, 251 extern void BTM_SecurityGrant(const RawAddress& bd_addr, uint8_t res); 268 extern void BTM_BlePasskeyReply(const RawAddress& bd_addr, uint8_t res, 283 extern void BTM_BleConfirmReply(const RawAddress& bd_addr, uint8_t res); 297 extern void BTM_BleOobDataReply(const RawAddress& bd_addr, uint8_t res, 313 extern void BTM_BleSecureConnectionOobDataReply(const RawAddress& bd_addr, 332 extern bool BTM_BleDataSignature(const RawAddress& bd_addr, uint8_t* p_text, 350 extern bool BTM_BleVerifySignature(const RawAddress& bd_addr, uint8_t* p_orig, 363 extern void BTM_ReadConnectionAddr(const RawAddress& remote_bda, [all …]
|
D | smp_api.h | 78 extern tSMP_STATUS SMP_Pair(const RawAddress& bd_addr); 90 extern tSMP_STATUS SMP_BR_PairWith(const RawAddress& bd_addr); 101 extern bool SMP_PairCancel(const RawAddress& bd_addr); 117 extern void SMP_SecurityGrant(const RawAddress& bd_addr, uint8_t res); 133 extern void SMP_PasskeyReply(const RawAddress& bd_addr, uint8_t res, 148 extern void SMP_ConfirmReply(const RawAddress& bd_addr, uint8_t res); 162 extern void SMP_OobDataReply(const RawAddress& bd_addr, tSMP_STATUS res, 206 extern void SMP_KeypressNotification(const RawAddress& bd_addr, uint8_t value); 224 extern bool smp_proc_ltk_request(const RawAddress& bda); 228 extern void smp_link_encrypted(const RawAddress& bda, uint8_t encr_enable);
|
D | bnep_api.h | 84 typedef void(tBNEP_CONN_STATE_CB)(uint16_t handle, const RawAddress& rem_bda, 93 typedef void(tBNEP_CONNECT_IND_CB)(uint16_t handle, const RawAddress& bd_addr, 106 typedef void(tBNEP_DATA_BUF_CB)(uint16_t handle, const RawAddress& src, 107 const RawAddress& dst, uint16_t protocol, 120 typedef void(tBNEP_DATA_IND_CB)(uint16_t handle, const RawAddress& src, 121 const RawAddress& dst, uint16_t protocol, 185 RawAddress rem_bda; 248 extern tBNEP_RESULT BNEP_Connect(const RawAddress& p_rem_bda, 307 const RawAddress& p_dest_addr, BT_HDR* p_buf, 309 const RawAddress* p_src_addr, [all …]
|
D | pan_api.h | 99 typedef void(tPAN_CONN_STATE_CB)(uint16_t handle, const RawAddress& bd_addr, 108 typedef void(tPAN_BRIDGE_REQ_CB)(const RawAddress& bd_addr, bool state); 121 typedef void(tPAN_DATA_IND_CB)(uint16_t handle, const RawAddress& src, 122 const RawAddress& dst, uint16_t protocol, 136 typedef void(tPAN_DATA_BUF_IND_CB)(uint16_t handle, const RawAddress& src, 137 const RawAddress& dst, uint16_t protocol, 286 extern tPAN_RESULT PAN_Connect(const RawAddress& rem_bda, uint8_t src_role, 327 extern tPAN_RESULT PAN_Write(uint16_t handle, const RawAddress& dst, 328 const RawAddress& src, uint16_t protocol, 353 extern tPAN_RESULT PAN_WriteBuf(uint16_t handle, const RawAddress& dst, [all …]
|
D | hcimsgs.h | 67 extern void btsnd_hcic_create_conn(const RawAddress& dest, 104 extern void btsnd_hcic_create_conn_cancel(const RawAddress& dest); 112 extern void btsnd_hcic_accept_conn(const RawAddress& bd_addr, uint8_t role); 121 extern void btsnd_hcic_reject_conn(const RawAddress& bd_addr, uint8_t reason); 130 extern void btsnd_hcic_link_key_req_reply(const RawAddress& bd_addr, 140 extern void btsnd_hcic_link_key_neg_reply(const RawAddress& bd_addr); 148 extern void btsnd_hcic_pin_code_req_reply(const RawAddress& bd_addr, 160 extern void btsnd_hcic_pin_code_neg_reply(const RawAddress& bd_addr); 192 extern void btsnd_hcic_rmt_name_req(const RawAddress& bd_addr, 206 extern void btsnd_hcic_rmt_name_req_cancel(const RawAddress& bd_addr); [all …]
|
D | gap_api.h | 125 RawAddress bd_addr; 138 RawAddress reconn_bda; 145 typedef void(tGAP_BLE_CMPL_CBACK)(bool status, const RawAddress& addr, 165 bool is_server, const RawAddress* p_rem_bda, 286 extern const RawAddress* GAP_ConnGetRemoteAddr(uint16_t gap_handle); 349 extern bool GAP_BleReadPeerPrefConnParams(const RawAddress& peer_bda); 361 extern bool GAP_BleReadPeerDevName(const RawAddress& peer_bda, 373 extern bool GAP_BleReadPeerAddressResolutionCap(const RawAddress& peer_bda, 385 extern bool GAP_BleCancelReadPeerDevName(const RawAddress& peer_bda);
|
/system/bt/btif/include/ |
D | btif_storage.h | 83 const RawAddress* remote_bd_addr, bt_property_t* property); 97 const RawAddress* remote_bd_addr, bt_property_t* property); 111 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr, 126 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr, 140 bt_status_t btif_storage_remove_bonded_device(const RawAddress* remote_bd_addr); 167 RawAddress* remote_bd_addr, uint16_t attr_mask, uint8_t sub_class, 195 bt_status_t btif_storage_remove_hid_info(RawAddress* remote_bd_addr); 208 bool btif_storage_is_restricted_device(const RawAddress* remote_bd_addr); 210 bt_status_t btif_storage_add_ble_bonding_key(RawAddress* remote_bd_addr, 213 bt_status_t btif_storage_get_ble_bonding_key(RawAddress* remote_bd_addr, [all …]
|
D | btif_api.h | 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, 187 bt_status_t btif_get_remote_service_record(RawAddress* remote_addr, 226 bt_status_t btif_dm_create_bond(const RawAddress* bd_addr, int transport); 238 const RawAddress* bd_addr, int transport, 250 bt_status_t btif_dm_cancel_bond(const RawAddress* bd_addr); 261 bt_status_t btif_dm_remove_bond(const RawAddress* bd_addr); 272 uint16_t btif_dm_get_connection_state(const RawAddress* bd_addr); 283 bt_status_t btif_dm_pin_reply(const RawAddress* bd_addr, uint8_t accept, [all …]
|
D | btif_pan_internal.h | 59 RawAddress h_dest; 60 RawAddress h_src; 68 RawAddress peer; 71 RawAddress eth_addr; 91 btpan_conn_t* btpan_new_conn(int handle, const RawAddress& addr, int local_role, 93 btpan_conn_t* btpan_find_conn_addr(const RawAddress& addr); 101 int btpan_tap_send(int tap_fd, const RawAddress& src, const RawAddress& dst, 105 static inline int is_empty_eth_addr(const RawAddress& addr) { in is_empty_eth_addr() 106 return addr == RawAddress::kEmpty; in is_empty_eth_addr() 109 static inline int is_valid_bt_eth_addr(const RawAddress& addr) { in is_valid_bt_eth_addr()
|
D | btif_hh.h | 61 RawAddress bd_addr; 76 RawAddress bd_addr; 100 extern void btif_hh_remove_device(RawAddress bd_addr); 101 extern bool btif_hh_add_added_dev(const RawAddress& bda, 103 extern bt_status_t btif_hh_virtual_unplug(const RawAddress* bd_addr); 104 extern void btif_hh_disconnect(RawAddress* bd_addr);
|
/system/bt/device/test/ |
D | interop_test.cc | 24 RawAddress test_address; in TEST() 25 RawAddress::FromString("38:2c:4a:e6:67:89", test_address); in TEST() 28 RawAddress::FromString("9c:df:03:12:34:56", test_address); in TEST() 33 RawAddress test_address; in TEST() 34 RawAddress::FromString("00:00:00:00:00:00", test_address); in TEST() 37 RawAddress::FromString("ff:ff:ff:ff:ff:ff", test_address); in TEST() 39 RawAddress::FromString("42:08:15:ae:ae:ae", test_address); in TEST() 42 RawAddress::FromString("38:2c:4a:59:67:89", test_address); in TEST() 47 RawAddress test_address; in TEST() 49 RawAddress::FromString("11:22:33:44:55:66", test_address); in TEST() [all …]
|
/system/bt/bta/include/ |
D | bta_hf_client_api.h | 167 RawAddress bd_addr; 173 RawAddress bd_addr; 180 RawAddress bd_addr; 187 RawAddress bd_addr; 195 RawAddress bd_addr; 202 RawAddress bd_addr; 208 RawAddress bd_addr; 215 RawAddress bd_addr; 226 RawAddress bd_addr; 233 RawAddress bd_addr; [all …]
|
D | bta_api.h | 280 RawAddress bd_addr; /* BD address of device to filter. */ 349 typedef void(tBTA_DM_BLE_RSSI_CBACK)(const RawAddress& bd_addr, 405 RawAddress bd_addr; /* BD address peer device. */ 504 RawAddress bd_addr; /* peer address */ 509 RawAddress bd_addr; /* peer address */ 516 RawAddress bd_addr; /* BD address peer device. */ 529 RawAddress bd_addr; /* BD address peer device. */ 537 RawAddress bd_addr; /* BD address peer device. */ 543 RawAddress bd_addr; /* BD address peer device. */ 551 RawAddress bd_addr; /* BD address peer device. */ [all …]
|
/system/bt/bta/sys/ |
D | bta_sys.h | 142 uint8_t app_id, const RawAddress* peer_addr); 243 const RawAddress& peer_addr); 245 const RawAddress& peer_addr); 247 const RawAddress& peer_addr); 249 const RawAddress& peer_addr); 251 const RawAddress& peer_addr); 253 const RawAddress& peer_addr); 255 const RawAddress& peer_addr); 257 const RawAddress& peer_addr); 259 const RawAddress& peer_addr); [all …]
|
/system/bt/stack/pan/ |
D | pan_int.h | 54 RawAddress rem_bda; 100 extern void pan_conn_ind_cb(uint16_t handle, const RawAddress& p_bda, 103 extern void pan_connect_state_cb(uint16_t handle, const RawAddress& rem_bda, 105 extern void pan_data_ind_cb(uint16_t handle, const RawAddress& src, 106 const RawAddress& dst, uint16_t protocol, 108 extern void pan_data_buf_ind_cb(uint16_t handle, const RawAddress& src, 109 const RawAddress& dst, uint16_t protocol, 120 extern tPAN_CONN* pan_allocate_pcb(const RawAddress& p_bda, uint16_t handle); 122 extern tPAN_CONN* pan_get_pcb_by_addr(const RawAddress& p_bda);
|
/system/bt/bta/gatt/ |
D | bta_gattc_int.h | 86 RawAddress remote_bda; 163 RawAddress remote_bda; 215 RawAddress server_bda; 249 RawAddress remote_bda; 268 RawAddress bda; 297 RawAddress remote_bda; 304 RawAddress remote_bda; 395 const RawAddress& remote_bda, 398 extern void bta_gattc_process_api_refresh(const RawAddress& remote_bda); 405 const RawAddress& remote_bda, [all …]
|
/system/bt/bta/dm/ |
D | bta_dm_int.h | 160 RawAddress bd_addr; 173 RawAddress bd_addr; 182 RawAddress bd_addr; 189 RawAddress bd_addr; 196 RawAddress bd_addr; 208 RawAddress bd_addr; 215 RawAddress bd_addr; 224 RawAddress bd_addr; 262 RawAddress bd_addr; 271 RawAddress bd_addr; [all …]
|
/system/bt/service/hal/ |
D | fake_bluetooth_gatt_interface.h | 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, 81 void NotifyScanResultCallback(const RawAddress& bda, int rssi, 88 const RawAddress& bda); 90 const RawAddress& bda); 96 const RawAddress& bda); 107 const RawAddress& bda, 111 const RawAddress& bda, 115 const RawAddress& bda, 120 const RawAddress& bda, [all …]
|