/system/bt/types/test/ |
D | raw_address_unittest.cc | 27 RawAddress bdaddr({0x12, 0x34, 0x56, 0x78, 0x9a, 0xbc}); in TEST() 42 RawAddress empty; in TEST() 43 RawAddress::FromString("00:00:00:00:00:00", empty); in TEST() 46 RawAddress not_empty; in TEST() 47 RawAddress::FromString("00:00:00:00:00:01", not_empty); in TEST() 52 RawAddress bdaddr; in TEST() 53 RawAddress::FromString(test_addr, bdaddr); in TEST() 70 RawAddress bdaddr; in TEST() 71 size_t expected_result = RawAddress::kLength; in TEST() 87 RawAddress bdaddr1; in TEST() [all …]
|
/system/bt/stack/include/ |
D | acl_api.h | 32 bool BTM_is_sniff_allowed_for(const RawAddress& peer_addr); 34 void BTM_unblock_sniff_mode_for(const RawAddress& peer_addr); 35 void BTM_block_sniff_mode_for(const RawAddress& peer_addr); 36 void BTM_unblock_role_switch_for(const RawAddress& peer_addr); 37 void BTM_block_role_switch_for(const RawAddress& peer_addr); 53 tBTM_STATUS BTM_SetLinkSuperTout(const RawAddress& remote_bda, 64 tBTM_STATUS BTM_GetLinkSuperTout(const RawAddress& remote_bda, 78 bool BTM_IsAclConnectionUp(const RawAddress& remote_bda, 81 bool BTM_IsAclConnectionUpAndHandleValid(const RawAddress& remote_bda, 97 tBTM_STATUS BTM_GetRole(const RawAddress& remote_bd_addr, tHCI_ROLE* p_role); [all …]
|
D | btm_client_interface.h | 35 uint16_t (*BTM_GetHCIConnHandle)(const RawAddress& bd_addr, 60 tBTM_STATUS (*BTM_ClearInqDb)(const RawAddress* p_bda); 74 bool (*SupportTransparentSynchronousData)(const RawAddress& bd_addr); 77 bool (*BTM_IsAclConnectionUp)(const RawAddress& bd_addr, 79 bool (*BTM_ReadConnectedTransportAddress)(RawAddress* bd_addr, 82 tBTM_STATUS (*BTM_ReadRemoteDeviceName)(const RawAddress& bd_addr, 85 uint8_t* (*BTM_ReadRemoteFeatures)(const RawAddress&); 86 void (*BTM_ReadDevInfo)(const RawAddress& bd_addr, 89 uint16_t (*BTM_GetMaxPacketSize)(const RawAddress& bd_addr); 90 bool (*BTM_ReadRemoteVersion)(const RawAddress& addr, uint8_t* lmp_version, [all …]
|
D | btm_api.h | 377 tBTM_STATUS BTM_ReadRemoteDeviceName(const RawAddress& remote_bda, 409 bool BTM_ReadRemoteVersion(const RawAddress& addr, uint8_t* lmp_version, 424 uint8_t* BTM_ReadRemoteFeatures(const RawAddress& addr); 438 tBTM_INQ_INFO* BTM_InqDbRead(const RawAddress& p_bda); 481 tBTM_STATUS BTM_ClearInqDb(const RawAddress* p_bda); 503 tBTM_STATUS BTM_CreateSco(const RawAddress* remote_bda, bool is_orig, 517 void BTM_RemoveSco(const RawAddress& bda); 529 const RawAddress* BTM_ReadScoBdAddr(uint16_t sco_inx); 632 bool BTM_SecAddDevice(const RawAddress& bd_addr, DEV_CLASS dev_class, 646 bool BTM_SecDeleteDevice(const RawAddress& bd_addr); [all …]
|
D | l2cap_acl_interface.h | 25 void acl_accept_connection_request(const RawAddress& bd_addr, uint8_t role); 26 void acl_create_classic_connection(const RawAddress& bd_addr, 29 bool acl_create_le_connection(const RawAddress& bd_addr); 30 bool acl_create_le_connection_with_id(uint8_t id, const RawAddress& bd_addr); 31 void acl_reject_connection_request(const RawAddress& bd_addr, uint8_t reason); 32 void acl_send_data_packet_br_edr(const RawAddress& bd_addr, BT_HDR* p_buf); 33 void acl_send_data_packet_ble(const RawAddress& bd_addr, BT_HDR* p_buf); 34 void acl_write_automatic_flush_timeout(const RawAddress& bd_addr, 43 extern void l2c_link_hci_conn_req(const RawAddress& bd_addr); 45 extern void l2cu_resubmit_pending_sec_req(const RawAddress* p_bda);
|
/system/bt/include/hardware/ |
D | bluetooth_headset_callbacks.h | 38 RawAddress* bd_addr) = 0; 47 RawAddress* bd_addr) = 0; 56 RawAddress* bd_addr) = 0; 63 virtual void AnswerCallCallback(RawAddress* bd_addr) = 0; 70 virtual void HangupCallCallback(RawAddress* bd_addr) = 0; 80 RawAddress* bd_addr) = 0; 88 virtual void DialCallCallback(char* number, RawAddress* bd_addr) = 0; 96 virtual void DtmfCmdCallback(char tone, RawAddress* bd_addr) = 0; 105 RawAddress* bd_addr) = 0; 113 virtual void WbsCallback(bthf_wbs_config_t wbs, RawAddress* bd_addr) = 0; [all …]
|
D | bt_hf_client.h | 180 const RawAddress* bd_addr, bthf_client_connection_state_t state, 187 const RawAddress* bd_addr, bthf_client_audio_state_t state); 192 typedef void (*bthf_client_vr_cmd_callback)(const RawAddress* bd_addr, 198 const RawAddress* bd_addr, bthf_client_network_state_t state); 203 const RawAddress* bd_addr, bthf_client_service_type_t type); 207 typedef void (*bthf_client_network_signal_callback)(const RawAddress* bd_addr, 212 typedef void (*bthf_client_battery_level_callback)(const RawAddress* bd_addr, 217 typedef void (*bthf_client_current_operator_callback)(const RawAddress* bd_addr, 222 typedef void (*bthf_client_call_callback)(const RawAddress* bd_addr, 228 const RawAddress* bd_addr, bthf_client_callsetup_t callsetup); [all …]
|
D | bt_rc.h | 288 typedef void (*btrc_remote_features_callback)(const RawAddress& bd_addr, 292 typedef void (*btrc_get_play_status_callback)(const RawAddress& bd_addr); 295 typedef void (*btrc_list_player_app_attr_callback)(const RawAddress& bd_addr); 299 const RawAddress& bd_addr); 306 const RawAddress& bd_addr); 312 uint8_t num_attr, btrc_player_attr_t* p_attrs, const RawAddress& bd_addr); 319 const RawAddress& bd_addr); 323 btrc_player_settings_t* p_vals, const RawAddress& bd_addr); 330 const RawAddress& bd_addr); 337 const RawAddress& bd_addr); [all …]
|
D | bluetooth_headset_interface.h | 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; 82 virtual bt_status_t isNoiseReductionSupported(RawAddress* bd_addr) = 0; 91 virtual bt_status_t isVoiceRecognitionSupported(RawAddress* bd_addr) = 0; 99 virtual bt_status_t StartVoiceRecognition(RawAddress* bd_addr) = 0; 107 virtual bt_status_t StopVoiceRecognition(RawAddress* bd_addr) = 0; 118 RawAddress* bd_addr) = 0; 133 RawAddress* bd_addr) = 0; [all …]
|
/system/bt/service/hal/ |
D | bluetooth_avrcp_interface.h | 36 virtual void RemoteFeaturesCallback(const RawAddress& bd_addr, 38 virtual void GetPlayStatusCallback(const RawAddress& bd_addr); 39 virtual void ListPlayerAppAttrCallback(const RawAddress& bd_addr); 41 const RawAddress& bd_addr); 44 const RawAddress& bd_addr); 47 const RawAddress& bd_addr); 51 const RawAddress& bd_addr); 53 const RawAddress& bd_addr); 56 const RawAddress& bd_addr); 59 const RawAddress& bd_addr); [all …]
|
/system/bt/btif/include/ |
D | btif_storage.h | 85 const RawAddress* remote_bd_addr, bt_property_t* property); 99 const RawAddress* remote_bd_addr, bt_property_t* property); 139 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr, 154 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr, 168 bt_status_t btif_storage_remove_bonded_device(const RawAddress* remote_bd_addr); 195 RawAddress* remote_bd_addr, uint16_t attr_mask, uint8_t sub_class, 223 bt_status_t btif_storage_remove_hid_info(const RawAddress& remote_bd_addr); 229 void btif_storage_remove_hearing_aid(const RawAddress& address); 232 void btif_storage_set_hearing_aid_acceptlist(const RawAddress& address, 236 void btif_storage_set_gatt_cl_supp_feat(const RawAddress& bd_addr, [all …]
|
D | btif_av.h | 37 RawAddress btif_av_source_active_peer(void); 42 RawAddress btif_av_sink_active_peer(void); 59 void btif_av_stream_stop(const RawAddress& peer_address); 108 bool btif_av_is_peer_edr(const RawAddress& peer_address); 119 bool btif_av_peer_supports_3mbps(const RawAddress& peer_address); 127 bool btif_av_peer_prefers_mandatory_codec(const RawAddress& peer_address); 139 const RawAddress& peer_address, 166 void btif_av_acl_disconnected(const RawAddress& peer_address); 182 void btif_av_set_audio_delay(const RawAddress& peer_address, uint16_t delay); 202 void btif_av_src_disconnect_sink(const RawAddress& peer_address); [all …]
|
/system/bt/test/mock/ |
D | mock_stack_btm_ble_addr.h | 57 std::function<void(const RawAddress& address)> body{ 58 [](const RawAddress& address) {}}; 59 void operator()(const RawAddress& address) { body(address); }; in operator() 66 std::function<void(base::Callback<void(const RawAddress&)> cb)> body{ 67 [](base::Callback<void(const RawAddress&)> cb) {}}; 68 void operator()(base::Callback<void(const RawAddress&)> cb) { body(cb); }; in operator() 85 const RawAddress& new_pseudo_addr)> 86 body{[](tBTM_SEC_DEV_REC* p_dev_rec, const RawAddress& new_pseudo_addr) { 90 const RawAddress& new_pseudo_addr) { in operator() 99 std::function<bool(const RawAddress& rpa, tBTM_SEC_DEV_REC* p_dev_rec)> body{ [all …]
|
D | mock_stack_acl.cc | 43 bool ACL_SupportTransparentSynchronousData(const RawAddress& bd_addr) { in ACL_SupportTransparentSynchronousData() 47 bool BTM_BLE_IS_RESOLVE_BDA(const RawAddress& x) { in BTM_BLE_IS_RESOLVE_BDA() 51 bool BTM_IsAclConnectionUp(const RawAddress& remote_bda, in BTM_IsAclConnectionUp() 56 bool BTM_IsAclConnectionUpAndHandleValid(const RawAddress& remote_bda, in BTM_IsAclConnectionUpAndHandleValid() 69 bool BTM_IsPhy2mSupported(const RawAddress& remote_bda, in BTM_IsPhy2mSupported() 74 bool BTM_ReadRemoteConnectionAddr(const RawAddress& pseudo_addr, in BTM_ReadRemoteConnectionAddr() 75 RawAddress& conn_addr, in BTM_ReadRemoteConnectionAddr() 80 bool BTM_ReadRemoteVersion(const RawAddress& addr, uint8_t* lmp_version, in BTM_ReadRemoteVersion() 85 bool acl_create_le_connection(const RawAddress& bd_addr) { in acl_create_le_connection() 89 bool acl_create_le_connection_with_id(uint8_t id, const RawAddress& bd_addr) { in acl_create_le_connection_with_id() [all …]
|
D | mock_main_shim_l2cap_api.h | 77 std::function<bool(const RawAddress& addr, uint8_t* lmp_version, 79 body{[](const RawAddress& addr, uint8_t* lmp_version, 82 bool operator()(const RawAddress& addr, uint8_t* lmp_version, in operator() 92 std::function<uint8_t*(const RawAddress& addr)> body{ 93 [](const RawAddress& addr) { return nullptr; }}; 94 uint8_t* operator()(const RawAddress& addr) { return body(addr); }; in operator() 138 std::function<uint16_t(uint16_t psm, const RawAddress& raw_address)> body{ 139 [](uint16_t psm, const RawAddress& raw_address) { return 0; }}; 140 uint16_t operator()(uint16_t psm, const RawAddress& raw_address) { in operator() 168 std::function<bool(const RawAddress& bd_addr, std::vector<uint16_t>& lcids, [all …]
|
D | mock_btif_storage.cc | 37 Octet16 btif_storage_get_gatt_cl_db_hash(const RawAddress& bd_addr) { in btif_storage_get_gatt_cl_db_hash() 47 const RawAddress& address, uint8_t* capabilities, uint64_t* hi_sync_id, in btif_storage_get_hearing_aid_prop() 52 bool btif_storage_get_stored_remote_name(const RawAddress& bd_addr, in btif_storage_get_stored_remote_name() 57 bool btif_storage_is_restricted_device(const RawAddress* remote_bd_addr) { in btif_storage_is_restricted_device() 61 bt_status_t btif_storage_add_ble_bonding_key(RawAddress* remote_bd_addr, in btif_storage_add_ble_bonding_key() 73 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr, in btif_storage_add_bonded_device() 80 RawAddress* remote_bd_addr, uint16_t attr_mask, uint8_t sub_class, in btif_storage_add_hid_device_info() 87 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr, in btif_storage_add_remote_device() 97 bt_status_t btif_storage_get_ble_bonding_key(const RawAddress& remote_bd_addr, in btif_storage_get_ble_bonding_key() 109 bt_status_t btif_storage_get_remote_addr_type(const RawAddress* remote_bd_addr, in btif_storage_get_remote_addr_type() [all …]
|
D | mock_stack_btm_ble.cc | 50 bool BTM_BleDataSignature(const RawAddress& bd_addr, uint8_t* p_text, in BTM_BleDataSignature() 55 bool BTM_BleVerifySignature(const RawAddress& bd_addr, uint8_t* p_orig, in BTM_BleVerifySignature() 60 bool BTM_ReadConnectedTransportAddress(RawAddress* remote_bda, in BTM_ReadConnectedTransportAddress() 65 bool BTM_UseLeLink(const RawAddress& bd_addr) { in BTM_UseLeLink() 69 bool btm_ble_get_acl_remote_addr(uint16_t hci_handle, RawAddress& conn_addr, in btm_ble_get_acl_remote_addr() 74 bool btm_ble_get_enc_key_type(const RawAddress& bd_addr, uint8_t* p_key_types) { in btm_ble_get_enc_key_type() 78 bool btm_get_local_div(const RawAddress& bd_addr, uint16_t* p_div) { in btm_get_local_div() 97 const RawAddress& bdaddr, in btm_ble_determine_security_act() 102 tBTM_STATUS BTM_SetBleDataLength(const RawAddress& bd_addr, in BTM_SetBleDataLength() 107 tBTM_STATUS btm_ble_set_encryption(const RawAddress& bd_addr, in btm_ble_set_encryption() [all …]
|
/system/bt/main/shim/ |
D | l2c_api.h | 96 uint16_t L2CA_ConnectReq(uint16_t psm, const RawAddress& p_bd_addr); 139 uint16_t L2CA_ConnectLECocReq(uint16_t psm, const RawAddress& p_bd_addr, 164 bool L2CA_ReconfigCreditBasedConnsReq(const RawAddress& bd_addr, 182 uint16_t psm, const RawAddress& p_bd_addr, tL2CAP_LE_CFG_INFO* p_cfg); 195 extern bool L2CA_ConnectCreditBasedRsp(const RawAddress& p_bd_addr, uint8_t id, 254 bool L2CA_SetIdleTimeoutByBdAddr(const RawAddress& bd_addr, uint16_t timeout, 296 bool L2CA_SetAclPriority(const RawAddress& bd_addr, tL2CAP_PRIORITY priority); 333 bool L2CA_GetPeerFeatures(const RawAddress& bd_addr, uint32_t* p_ext_feat, 363 bool L2CA_ConnectFixedChnl(uint16_t fixed_cid, const RawAddress& bd_addr); 379 uint16_t L2CA_SendFixedChnlData(uint16_t fixed_cid, const RawAddress& rem_bda, [all …]
|
D | btm_api.h | 185 tBTM_STATUS BTM_ReadRemoteDeviceName(const RawAddress& remote_bda, 220 tBTM_INQ_INFO* BTM_InqDbRead(const RawAddress& p_bda); 263 tBTM_STATUS BTM_ClearInqDb(const RawAddress* p_bda); 402 void BTM_SecAddBleDevice(const RawAddress& bd_addr, tBT_DEVICE_TYPE dev_type, 418 void BTM_SecAddBleKey(const RawAddress& bd_addr, tBTM_LE_KEY_VALUE* p_le_key, 455 void BTM_ReadConnectionAddr(const RawAddress& remote_bda, 456 RawAddress& local_conn_addr, 468 bool BTM_ReadRemoteConnectionAddr(const RawAddress& pseudo_addr, 469 RawAddress& conn_addr, 486 void BTM_SecurityGrant(const RawAddress& bd_addr, uint8_t res); [all …]
|
/system/bt/stack/test/common/ |
D | mock_eatt.h | 33 MOCK_METHOD((void), Connect, (const RawAddress& bd_addr)); 34 MOCK_METHOD((void), Disconnect, (const RawAddress& bd_addr)); 36 (const RawAddress& bd_addr, uint16_t cid, uint16_t mtu)); 38 (const RawAddress& bd_addr, uint16_t mtu)); 40 MOCK_METHOD((bool), IsEattSupportedByPeer, (const RawAddress& bd_addr)); 42 (const RawAddress& bd_addr, uint16_t cid)); 44 (const RawAddress& bd_addr, uint32_t trans_id)); 46 (const RawAddress& bd_addr, uint16_t indication_handle)); 48 (const RawAddress& bd_addr)); 49 MOCK_METHOD((void), FreeGattResources, (const RawAddress& bd_addr)); [all …]
|
/system/bt/types/ |
D | raw_address.h | 26 class RawAddress final { 32 RawAddress() = default; 33 RawAddress(const uint8_t (&addr)[kLength]); 35 bool operator<(const RawAddress& rhs) const { 38 bool operator==(const RawAddress& rhs) const { 41 bool operator>(const RawAddress& rhs) const { return (rhs < *this); } 42 bool operator<=(const RawAddress& rhs) const { return !(*this > rhs); } 43 bool operator>=(const RawAddress& rhs) const { return !(*this < rhs); } 44 bool operator!=(const RawAddress& rhs) const { return !(*this == rhs); } 53 static bool FromString(const std::string& from, RawAddress& to); [all …]
|
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 size_t RawAddress::FromOctets(const uint8_t* from) { in FromOctets() 70 bool RawAddress::IsValidAddress(const std::string& address) { in IsValidAddress() 71 RawAddress tmp; in IsValidAddress() [all …]
|
/system/bt/stack/btm/ |
D | btm_sec.h | 89 bool BTM_GetSecurityFlags(const RawAddress& bd_addr, uint8_t* p_sec_flags); 100 bool BTM_GetSecurityFlagsByTransport(const RawAddress& bd_addr, 104 bool BTM_IsEncrypted(const RawAddress& bd_addr, tBT_TRANSPORT transport); 105 bool BTM_IsLinkKeyAuthed(const RawAddress& bd_addr, tBT_TRANSPORT transport); 106 bool BTM_IsLinkKeyKnown(const RawAddress& bd_addr, tBT_TRANSPORT transport); 107 bool BTM_IsAuthenticated(const RawAddress& bd_addr, tBT_TRANSPORT transport); 197 void BTM_PINCodeReply(const RawAddress& bd_addr, uint8_t res, uint8_t pin_len, 212 tBTM_STATUS btm_sec_bond_by_transport(const RawAddress& bd_addr, 231 tBTM_STATUS BTM_SecBond(const RawAddress& bd_addr, tBLE_ADDR_TYPE addr_type, 246 tBTM_STATUS BTM_SecBondCancel(const RawAddress& bd_addr); [all …]
|
D | btm_ble_int.h | 50 extern void btm_ble_connected(const RawAddress& bda, uint16_t handle, 62 extern void btm_ble_link_sec_check(const RawAddress& bd_addr, 65 extern void btm_ble_ltk_request_reply(const RawAddress& bda, bool use_stk, 67 extern tBTM_STATUS btm_proc_smp_cback(tSMP_EVT event, const RawAddress& bd_addr, 69 extern tBTM_STATUS btm_ble_set_encryption(const RawAddress& bd_addr, 72 extern tBTM_STATUS btm_ble_start_encrypt(const RawAddress& bda, bool use_stk, 74 extern void btm_ble_link_encrypted(const RawAddress& bd_addr, 80 extern bool btm_get_local_div(const RawAddress& bd_addr, uint16_t* p_div); 81 extern bool btm_ble_get_enc_key_type(const RawAddress& bd_addr, 84 extern void btm_sec_save_le_key(const RawAddress& bd_addr, [all …]
|
/system/bt/stack/eatt/ |
D | eatt.h | 40 RawAddress bda_; 57 EattChannel(RawAddress& bda, uint16_t cid, uint16_t tx_mtu, uint16_t rx_mtu) in EattChannel() 108 static void AddFromStorage(const RawAddress& bd_addr); 115 virtual bool IsEattSupportedByPeer(const RawAddress& bd_addr); 122 virtual void Connect(const RawAddress& bd_addr); 129 virtual void Disconnect(const RawAddress& bd_addr); 138 virtual void Reconfigure(const RawAddress& bd_addr, uint16_t cid, 147 virtual void ReconfigureAll(const RawAddress& bd_addr, uint16_t mtu); 159 virtual EattChannel* FindEattChannelByCid(const RawAddress& bd_addr, 170 virtual EattChannel* FindEattChannelByTransId(const RawAddress& bd_addr, [all …]
|