/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/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 | 286 typedef void (*btrc_remote_features_callback)(const RawAddress& bd_addr, 290 typedef void (*btrc_get_play_status_callback)(const RawAddress& bd_addr); 293 typedef void (*btrc_list_player_app_attr_callback)(const RawAddress& bd_addr); 297 const RawAddress& bd_addr); 304 const RawAddress& bd_addr); 310 uint8_t num_attr, btrc_player_attr_t* p_attrs, const RawAddress& bd_addr); 317 const RawAddress& bd_addr); 321 btrc_player_settings_t* p_vals, const RawAddress& bd_addr); 328 const RawAddress& bd_addr); 335 const RawAddress& bd_addr); [all …]
|
D | bt_hh.h | 88 typedef void (*bthh_connection_state_callback)(RawAddress* bd_addr, 94 typedef void (*bthh_virtual_unplug_callback)(RawAddress* bd_addr, 101 typedef void (*bthh_hid_info_callback)(RawAddress* bd_addr, 107 typedef void (*bthh_protocol_mode_callback)(RawAddress* bd_addr, 113 typedef void (*bthh_idle_time_callback)(RawAddress* bd_addr, 119 typedef void (*bthh_get_report_callback)(RawAddress* bd_addr, 126 typedef void (*bthh_handshake_callback)(RawAddress* bd_addr, 154 bt_status_t (*connect)(RawAddress* bd_addr); 157 bt_status_t (*disconnect)(RawAddress* bd_addr); 160 bt_status_t (*virtual_unplug)(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; 81 virtual bt_status_t StartVoiceRecognition(RawAddress* bd_addr) = 0; 89 virtual bt_status_t StopVoiceRecognition(RawAddress* bd_addr) = 0; 100 RawAddress* bd_addr) = 0; 115 RawAddress* bd_addr) = 0; 124 virtual bt_status_t CopsResponse(const char* cops, RawAddress* bd_addr) = 0; 142 RawAddress* bd_addr) = 0; [all …]
|
D | bluetooth.h | 333 RawAddress* bd_addr, 347 typedef void (*pin_request_callback)(RawAddress* remote_bd_addr, 356 typedef void (*ssp_request_callback)(RawAddress* remote_bd_addr, 364 RawAddress* remote_bd_addr, 369 RawAddress* remote_bd_addr, 499 int (*get_remote_device_properties)(RawAddress* remote_addr); 502 int (*get_remote_device_property)(RawAddress* remote_addr, 506 int (*set_remote_device_property)(RawAddress* remote_addr, 510 int (*get_remote_service_record)(const RawAddress& remote_addr, 514 int (*get_remote_services)(RawAddress* remote_addr); [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 …]
|
D | bluetooth_avrcp_interface.cc | 68 void RemoteFeaturesCallback(const RawAddress& bd_addr, in RemoteFeaturesCallback() 78 void GetPlayStatusCallback(const RawAddress& bd_addr) { in GetPlayStatusCallback() 87 void ListPlayerAppAttrCallback(const RawAddress& bd_addr) { in ListPlayerAppAttrCallback() 97 const RawAddress& bd_addr) { in ListPlayerAppValuesCallback() 107 const RawAddress& bd_addr) { in GetPlayerAppValueCallback() 118 const RawAddress& bd_addr) { in GetPlayerAppAttrsTextCallback() 129 const RawAddress& bd_addr) { in GetPlayerAppValuesTextCallback() 139 const RawAddress& bd_addr) { in SetPlayerAppValueCallback() 149 const RawAddress& bd_addr) { in GetElementAttrCallback() 159 const RawAddress& bd_addr) { in RegisterNotificationCallback() [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 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 …]
|
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/btm/ |
D | btm_int.h | 56 extern tBTM_STATUS btm_initiate_rem_name(const RawAddress& remote_bda, 60 extern void btm_process_remote_name(const RawAddress* bda, BD_NAME name, 66 extern void btm_clr_inq_db(const RawAddress* p_bda); 74 extern tINQ_DB_ENT* btm_inq_db_find(const RawAddress& p_bda); 75 extern bool btm_inq_find_bdaddr(const RawAddress& p_bda); 81 extern void btm_acl_created(const RawAddress& bda, DEV_CLASS dc, BD_NAME bdn, 84 extern void btm_acl_removed(const RawAddress& bda, tBT_TRANSPORT transport); 112 extern void btm_acl_role_changed(uint8_t hci_status, const RawAddress* bd_addr, 114 extern void btm_blacklist_role_change_device(const RawAddress& bd_addr, 119 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, 78 extern void btm_ble_link_sec_check(const RawAddress& bd_addr, 81 extern void btm_ble_ltk_request_reply(const RawAddress& bda, bool use_stk, 83 extern uint8_t btm_proc_smp_cback(tSMP_EVT event, const RawAddress& bd_addr, 85 extern tBTM_STATUS btm_ble_set_encryption(const RawAddress& bd_addr, 90 extern tBTM_STATUS btm_ble_start_encrypt(const RawAddress& bda, bool use_stk, 92 extern void btm_ble_link_encrypted(const RawAddress& bd_addr, 99 extern void btm_ble_increment_sign_ctr(const RawAddress& bd_addr, [all …]
|
/system/bt/btif/include/ |
D | btif_storage.h | 84 const RawAddress* remote_bd_addr, bt_property_t* property); 98 const RawAddress* remote_bd_addr, bt_property_t* property); 138 bt_status_t btif_storage_add_remote_device(const RawAddress* remote_bd_addr, 153 bt_status_t btif_storage_add_bonded_device(RawAddress* remote_bd_addr, 167 bt_status_t btif_storage_remove_bonded_device(const RawAddress* remote_bd_addr); 194 RawAddress* remote_bd_addr, uint16_t attr_mask, uint8_t sub_class, 222 bt_status_t btif_storage_remove_hid_info(RawAddress* remote_bd_addr); 228 void btif_storage_remove_hearing_aid(const RawAddress& address); 231 void btif_storage_set_hearing_aid_white_list(const RawAddress& address, 236 const RawAddress& address, uint8_t* capabilities, uint64_t* hi_sync_id, [all …]
|
D | btif_api.h | 162 bt_status_t btif_get_remote_device_property(RawAddress* remote_addr, 174 bt_status_t btif_get_remote_device_properties(RawAddress* remote_addr); 187 bt_status_t btif_set_remote_device_property(RawAddress* remote_addr, 200 bt_status_t btif_get_remote_service_record(const RawAddress& remote_addr, 239 bt_status_t btif_dm_create_bond(const RawAddress* bd_addr, int transport); 251 const RawAddress* bd_addr, int transport, 263 bt_status_t btif_dm_cancel_bond(const RawAddress* bd_addr); 274 bt_status_t btif_dm_remove_bond(const RawAddress* bd_addr); 285 uint16_t btif_dm_get_connection_state(const RawAddress* bd_addr); 296 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_av.h | 32 RawAddress btif_av_source_active_peer(void); 37 RawAddress btif_av_sink_active_peer(void); 54 void btif_av_stream_stop(const RawAddress& peer_address); 103 bool btif_av_is_peer_edr(const RawAddress& peer_address); 114 bool btif_av_peer_supports_3mbps(const RawAddress& peer_address); 126 const RawAddress& peer_address, 153 void btif_av_acl_disconnected(const RawAddress& peer_address); 182 void btif_av_src_disconnect_sink(const RawAddress& peer_address); 196 bool btif_av_is_peer_silenced(const RawAddress& peer_address);
|
/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 | 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, 206 extern void BTM_SecurityGrant(const RawAddress& bd_addr, uint8_t res); 223 extern void BTM_BlePasskeyReply(const RawAddress& bd_addr, uint8_t res, 238 extern void BTM_BleConfirmReply(const RawAddress& bd_addr, uint8_t res); 252 extern void BTM_BleOobDataReply(const RawAddress& bd_addr, uint8_t res, 268 extern void BTM_BleSecureConnectionOobDataReply(const RawAddress& bd_addr, 287 extern bool BTM_BleDataSignature(const RawAddress& bd_addr, uint8_t* p_text, 305 extern bool BTM_BleVerifySignature(const RawAddress& bd_addr, uint8_t* p_orig, 318 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, 188 extern void SMP_KeypressNotification(const RawAddress& bd_addr, uint8_t value); 206 extern bool smp_proc_ltk_request(const RawAddress& bda); 210 extern void smp_link_encrypted(const RawAddress& bda, uint8_t encr_enable);
|
D | l2c_api.h | 203 typedef void(tL2CA_CONNECT_IND_CB)(const RawAddress&, uint16_t, uint16_t, 244 typedef void(tL2CA_QOS_VIOLATION_IND_CB)(const RawAddress&); 261 typedef void(tL2CA_ECHO_DATA_CB)(const RawAddress&, uint16_t, uint8_t*); 278 typedef void(tL2CA_NOCP_CB)(const RawAddress&); 428 extern uint16_t L2CA_ConnectReq(uint16_t psm, const RawAddress& p_bd_addr); 441 extern bool L2CA_ConnectRsp(const RawAddress& p_bd_addr, uint8_t id, 457 extern uint16_t L2CA_ErtmConnectReq(uint16_t psm, const RawAddress& p_bd_addr, 500 extern uint16_t L2CA_ConnectLECocReq(uint16_t psm, const RawAddress& p_bd_addr, 514 extern bool L2CA_ConnectLECocRsp(const RawAddress& p_bd_addr, uint8_t id, 550 extern bool L2CA_ErtmConnectRsp(const RawAddress& p_bd_addr, uint8_t id, [all …]
|
/system/bt/bta/include/ |
D | bta_av_co.h | 63 const RawAddress& peer_address, uint8_t num_seps, 80 const RawAddress& peer_address, 99 const RawAddress& peer_address, 119 const RawAddress& peer_address, uint16_t mtu); 136 const RawAddress& peer_address); 150 const RawAddress& peer_address, 165 const RawAddress& peer_address); 194 const RawAddress& peer_address); 209 const RawAddress& peer_address, uint16_t delay); 225 const RawAddress& peer_address, uint16_t mtu); [all …]
|
/system/bt/stack/gatt/ |
D | connection_manager.h | 40 extern bool background_connect_add(tAPP_ID app_id, const RawAddress& address); 42 const RawAddress& address); 43 extern bool remove_unconditional(const RawAddress& address); 48 extern void on_connection_complete(const RawAddress& address); 50 extern std::set<tAPP_ID> get_apps_connecting_to(const RawAddress& remote_bda); 52 extern bool direct_connect_add(tAPP_ID app_id, const RawAddress& address); 53 extern bool direct_connect_remove(tAPP_ID app_id, const RawAddress& address); 59 extern void on_connection_timed_out(uint8_t app_id, const RawAddress& address);
|
/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/dm/ |
D | bta_dm_int.h | 85 RawAddress bd_addr; 98 RawAddress bd_addr; 105 RawAddress bd_addr; 113 RawAddress bd_addr; 120 RawAddress bd_addr; 151 RawAddress bd_addr; 218 RawAddress peer_bdaddr; 244 RawAddress peer_bdaddr; 277 RawAddress peer_bdaddr; 314 RawAddress pin_bd_addr; [all …]
|