/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/ |
H A D | btm_snoop_filter_cmd.c | 51 {HciCommonFilterAddress, offsetof(HciCreateConnectionParam, bdAddr), NULL, 0}, 56 offsetof(HciCreateConnectionCancelParam, bdAddr), 58 offsetof(HciCreateConnectionCancelReturnParam, bdAddr), 60 {HciCommonFilterAddress, offsetof(HciAcceptConnectionReqestParam, bdAddr), NULL, 0}, 61 {HciCommonFilterAddress, offsetof(HciRejectConnectionRequestParam, bdAddr), NULL, 0}, 64 offsetof(HciLinkKeyRequestReplyParam, bdAddr), 66 offsetof(HciLinkKeyRequestReplyReturnParam, bdAddr), 70 offsetof(HciLinkKeyRequestNegativeReplyParam, bdAddr), 72 offsetof(HciLinkKeyRequestNegativeReplyReturnParam, bdAddr), 76 offsetof(HciPinCodeRequestReplyParam, bdAddr), [all...] |
H A D | btm_snoop_filter_evt.c | 126 BtmFilterAddress((uint8_t *)&result->bdAddr, BT_ADDRESS_SIZE); in HciInquiryResultEventFilter() 139 BtmFilterAddress((uint8_t *)&keys->bdAddr, BT_ADDRESS_SIZE); in HciReturnLinkKeysEventFilter() 152 BtmFilterAddress((uint8_t *)&result->bdAddr, BT_ADDRESS_SIZE); in HciInquiryResultWithRssiEventFilter() 160 {HciCommonFilterAddress, offsetof(HciConnectionCompleteEventParam, bdAddr)}, 161 {HciCommonFilterAddress, offsetof(HciConnectionRequestEventParam, bdAddr)}, 164 {HciCommonFilterAddress, offsetof(HciRemoteNameRequestCompleteEventParam, bdAddr)}, 175 {HciCommonFilterAddress, offsetof(HciRoleChangeEventParam, bdAddr)}, 179 {HciCommonFilterAddress, offsetof(HciPinCodeRequestEventParam, bdAddr)}, 180 {HciCommonFilterAddress, offsetof(HciLinkKeyRequestEventParam, bdAddr)}, 181 {HciCommonFilterAddress, offsetof(HciLinkKeyNotificationEventParam, bdAddr)}, [all...] |
/foundation/communication/bluetooth/interfaces/inner_api/include/c_header/ |
H A D | ohos_bt_gap.h | 162 * @param bdAddr device address. 168 bool PairRequestReply(const BdAddr *bdAddr, int transport, bool accept); 173 * @param bdAddr device address. 179 bool SetDevicePairingConfirmation(const BdAddr *bdAddr, int transport, bool accept); 200 * @param bdAddr device address. 204 typedef void (*GapAclStateChangedCallback)(const BdAddr *bdAddr, GapAclState state, unsigned int reason); 218 typedef void (*GapDiscoveryResultCallback)(const BdAddr *bdAddr); 223 * @param bdAddr Remote device address. 226 typedef void (*GapPairRequestedCallback)(const BdAddr *bdAddr, int transport); 231 * @param bdAddr Remot [all...] |
H A D | ohos_bt_socket.h | 60 * @param bdAddr Indicates the ID of the GATT client. 65 typedef void (*SocketConnectionStateChangedCallback)(const BdAddr *bdAddr, BtUuid uuid, int status, int result); 66 typedef void (*SocketBleConnectionStateChangedCallback)(const BdAddr *bdAddr, int psm, int status, int result); 106 * @param bdAddr The remote device address to connect. 109 int SocketSetFastConnection(const BdAddr *bdAddr); 116 * @param bdAddr The remote device address to connect. 121 int SocketConnect(const BluetoothCreateSocketPara *socketPara, const BdAddr *bdAddr, int psm); 128 * @param bdAddr The remote device address to connect. 134 int SocketConnectEx(const BluetoothCreateSocketPara *socketPara, const BdAddr *bdAddr, int psm, 221 int SocketUpdateCocConnectionParams(BluetoothCocUpdateSocketParam* param, const BdAddr *bdAddr); [all...] |
H A D | ohos_bt_gatt_server.h | 112 BdAddr *bdAddr; member 136 BdAddr *bdAddr; member 173 typedef void (*ConnectServerCallback)(int connId, int serverId, const BdAddr *bdAddr); 180 typedef void (*DisconnectServerCallback)(int connId, int serverId, const BdAddr *bdAddr); 428 * @param bdAddr Indicates the address of the client. 433 int BleGattsConnect(int serverId, BdAddr bdAddr); 439 * @param bdAddr Indicates the address of the client. 445 int BleGattsDisconnect(int serverId, BdAddr bdAddr, int connId); 584 * @param bdAddr Indicates the address of the client. 590 int BleGattsSetEncryption(BdAddr bdAddr, BleSecAc [all...] |
H A D | ohos_bt_gatt_client.h | 191 * @param bdAddr Indicates the remote device's address. 196 int BleGattcConnect(int clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, 203 * @param bdAddr Indicates the remote device's address. 207 int BleGattcSetPriority(int clientId, const BdAddr *bdAddr, BtGattPriority priority);
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/cmd/ |
H A D | hci_cmd_failure_link_ctrl.c | 91 .bdAddr = ((HciCreateConnectionParam *)param)->bdAddr, in HciCmdOnCreateConnectionFailed() 124 .bdAddr = ((HciCreateConnectionCancelParam *)param)->bdAddr, in HciCmdOnCreateConnectionCancelFailed() 139 .bdAddr = ((HciAcceptConnectionReqestParam *)param)->bdAddr, in HciCmdOnAcceptConnectionRequestFailed() 154 .bdAddr = ((HciRejectConnectionRequestParam *)param)->bdAddr, in HciCmdOnRejectConnectionRequestFailed() 169 .bdAddr = ((HciLinkKeyRequestReplyParam *)param)->bdAddr, in HciCmdOnLinkKeyRequestReplyFailed() [all...] |
/foundation/communication/dsoftbus/adapter/common/net/bluetooth/common/ |
H A D | softbus_adapter_bt_common.c | 68 static SoftBusBtAddr ConvertBtAddr(const BdAddr *bdAddr) in ConvertBtAddr() argument 71 if (memcpy_s(btAddr.addr, sizeof(btAddr.addr), bdAddr->addr, sizeof(bdAddr->addr)) != EOK) { in ConvertBtAddr() 72 COMM_LOGE(COMM_ADAPTER, "copy bdAddr fail"); in ConvertBtAddr() 137 static void WrapperAclStateChangedCallback(const BdAddr *bdAddr, GapAclState state, unsigned int reason) in WrapperAclStateChangedCallback() argument 139 if (bdAddr == NULL) { in WrapperAclStateChangedCallback() 147 bdAddr->addr[MAC_FIRST_INDEX], bdAddr->addr[MAC_ONE_INDEX], bdAddr->addr[MAC_FIVE_INDEX], state, reason); in WrapperAclStateChangedCallback() 150 SoftBusBtAddr btAddr = ConvertBtAddr(bdAddr); in WrapperAclStateChangedCallback() 160 WrapperPairRequestedCallback(const BdAddr *bdAddr, int transport) WrapperPairRequestedCallback() argument 175 WrapperPairConfiremedCallback(const BdAddr *bdAddr, int transport, int reqType, int number) WrapperPairConfiremedCallback() argument [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/ |
H A D | a2dp_avdtp.cpp | 284 uint16_t handle, const BtAddr *bdAddr, uint8_t event, const AvdtCtrlData *data, uint8_t role) in ProcAvdtpEvent() 295 SwitchThreadToA2dpService(role, *bdAddr, msgData); in ProcAvdtpEvent() 298 void A2dpAvdtp::SwitchThreadToA2dpService(uint8_t role, BtAddr bdAddr, utility::Message msgData) in SwitchThreadToA2dpService() argument 301 RawAddress peerAddr = RawAddress::ConvertToString(bdAddr.addr); in SwitchThreadToA2dpService() 309 const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg) in ParseAvdtpDisconnectInd() 317 A2dpProfilePeer *peer = profile->FindPeerByAddress(bdAddr); in ParseAvdtpDisconnectInd() 324 msg.a2dpMsg.stream.addr = bdAddr; in ParseAvdtpDisconnectInd() 331 const uint16_t handle, const BtAddr bdAddr, const AvdtCtrlData &data, const uint8_t role, A2dpAvdtMsg &msg) in ParseAvdtpConfigureInd() 341 A2dpProfilePeer *peer = profile->FindPeerByAddress(bdAddr); in ParseAvdtpConfigureInd() 353 msg.a2dpMsg.configRsp.addr = bdAddr; in ParseAvdtpConfigureInd() 283 ProcAvdtpEvent( uint16_t handle, const BtAddr *bdAddr, uint8_t event, const AvdtCtrlData *data, uint8_t role) ProcAvdtpEvent() argument 308 ParseAvdtpDisconnectInd(const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg) ParseAvdtpDisconnectInd() argument 330 ParseAvdtpConfigureInd( const uint16_t handle, const BtAddr bdAddr, const AvdtCtrlData &data, const uint8_t role, A2dpAvdtMsg &msg) ParseAvdtpConfigureInd() argument 372 ParseAvdtpReconfigureInd( const uint16_t handle, const BtAddr bdAddr, const AvdtCtrlData &data, const uint8_t role, A2dpAvdtMsg &msg) ParseAvdtpReconfigureInd() argument 423 ParseAvdtpOpenInd( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg) ParseAvdtpOpenInd() argument 446 ParseAvdtpCloseInd( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpCloseInd() argument 472 ParseAvdtpCloseChannelInd( const BtAddr bdAddr, const uint16_t handle, const uint8_t role, A2dpAvdtMsg &msg) ParseAvdtpCloseChannelInd() argument 492 ParseAvdtpStartInd( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpStartInd() argument 514 ParseAvdtpSuspendInd( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpSuspendInd() argument 526 ParseAvdtpDelayReportInd( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpDelayReportInd() argument 538 ParseAvdtpConnectCFM( const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpConnectCFM() argument 568 ParseAvdtpDisconnectCFM(const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg) ParseAvdtpDisconnectCFM() argument 587 ParseAvdtpDiscoverCFM( const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpDiscoverCFM() argument 621 ParseAvdtpGetCapabilityCFM( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpGetCapabilityCFM() argument 665 ParseAvdtpGetALLCapCFM( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpGetALLCapCFM() argument 710 ParseAvdtpConfigureCFM( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpConfigureCFM() argument 741 ParseAvdtpGetConfigureCFM(const uint16_t handle, const BtAddr bdAddr, const uint8_t role, const A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpGetConfigureCFM() argument 760 ParseAvdtpReconfigureCFM( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpReconfigureCFM() argument 801 ParseAvdtpOpenCFM( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpOpenCFM() argument 824 ParseAvdtpStartCFM( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpStartCFM() argument 845 ParseAvdtpSuspendCFM( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpSuspendCFM() argument 866 ParseAvdtpStreamCloseCFM( const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpStreamCloseCFM() argument 887 ParseAvdtpAbortCFM(const uint16_t handle, const BtAddr bdAddr, const uint8_t role, const A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpAbortCFM() argument 906 ParseAvdtpWriteCFM(const uint16_t handle, const BtAddr bdAddr, const uint8_t role, const A2dpAvdtMsg &msg, const AvdtCtrlData &data) ParseAvdtpWriteCFM() argument 923 ParseAvdtpCallbackContent(const uint16_t handle, const BtAddr bdAddr, const uint8_t event, const AvdtCtrlData &data, const uint8_t role) const ParseAvdtpCallbackContent() argument [all...] |
H A D | a2dp_avdtp.h | 293 * @param[in] bdAddr The address of peer device 300 uint16_t handle, const BtAddr *bdAddr, uint8_t event, const AvdtCtrlData *data, uint8_t role); 306 * @param[in] bdAddr The address of peer device 312 A2dpAvdtMsg *ParseAvdtpCallbackContent(const uint16_t handle, const BtAddr bdAddr, 319 * @param[in] bdAddr The address of peer device 324 static void SwitchThreadToA2dpService(uint8_t role, BtAddr bdAddr, utility::Message msgData); 330 * @param[in] bdAddr The address of peer device 336 const uint16_t handle, const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg); 342 * @param[in] bdAddr The address of peer device 348 static uint8_t ParseAvdtpConfigureInd(const uint16_t handle, const BtAddr bdAddr, [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/ |
H A D | hci_def_link_ctrl_cmd.h | 94 HciBdAddr bdAddr; member 116 HciBdAddr bdAddr; member 121 HciBdAddr bdAddr; member 132 HciBdAddr bdAddr; member 141 HciBdAddr bdAddr; member 150 HciBdAddr bdAddr; member 156 HciBdAddr bdAddr; member 164 HciBdAddr bdAddr; member 169 HciBdAddr bdAddr; member 177 HciBdAddr bdAddr; member 184 HciBdAddr bdAddr; global() member 192 HciBdAddr bdAddr; global() member 197 HciBdAddr bdAddr; global() member 350 HciBdAddr bdAddr; global() member 376 HciBdAddr bdAddr; global() member 384 HciBdAddr bdAddr; global() member 392 HciBdAddr bdAddr; global() member 397 HciBdAddr bdAddr; global() member 405 HciBdAddr bdAddr; global() member 410 HciBdAddr bdAddr; global() member 418 HciBdAddr bdAddr; global() member 424 HciBdAddr bdAddr; global() member 432 HciBdAddr bdAddr; global() member 437 HciBdAddr bdAddr; global() member 445 HciBdAddr bdAddr; global() member 452 HciBdAddr bdAddr; global() member 460 HciBdAddr bdAddr; global() member 465 HciBdAddr bdAddr; global() member 473 HciBdAddr bdAddr; global() member 479 HciBdAddr bdAddr; global() member 622 HciBdAddr bdAddr; global() member 653 HciBdAddr bdAddr; global() member 663 HciBdAddr bdAddr; global() member 668 HciBdAddr bdAddr; global() member 697 HciBdAddr bdAddr; global() member 711 HciBdAddr bdAddr; global() member 724 HciBdAddr bdAddr; global() member 735 HciBdAddr bdAddr; global() member 744 HciBdAddr bdAddr; global() member [all...] |
H A D | hci_def_evt.h | 40 HciBdAddr bdAddr; member 60 HciBdAddr bdAddr; member 74 HciBdAddr bdAddr; member 104 HciBdAddr bdAddr; member 219 HciBdAddr bdAddr; member 247 HciBdAddr bdAddr; member 261 HciBdAddr bdAddr; member 269 HciBdAddr bdAddr; member 287 HciBdAddr bdAddr; member 342 HciBdAddr bdAddr; member 367 HciBdAddr bdAddr; global() member 399 HciBdAddr bdAddr; global() member 440 HciBdAddr bdAddr; global() member 463 HciBdAddr bdAddr; global() member 471 HciBdAddr bdAddr; global() member 482 HciBdAddr bdAddr; global() member 491 HciBdAddr bdAddr; global() member 499 HciBdAddr bdAddr; global() member 508 HciBdAddr bdAddr; global() member 533 HciBdAddr bdAddr; global() member 542 HciBdAddr bdAddr; global() member 739 HciBdAddr bdAddr; global() member 754 HciBdAddr bdAddr; global() member 764 HciBdAddr bdAddr; global() member [all...] |
/foundation/communication/dsoftbus/core/adapter/br/mock/ |
H A D | wrapper_br_interface.c | 69 BdAddr bdAddr; in ConnectByPort() local 70 (void)memset_s((char *)&bdAddr, sizeof(bdAddr), 0, sizeof(bdAddr)); in ConnectByPort() 71 if (memcpy_s((char *)bdAddr.addr, OHOS_BD_ADDR_LEN, mac, BT_ADDR_LEN) != EOK) { in ConnectByPort() 75 int ret = SocketConnectEx(&socketPara, &bdAddr, socketPsmValue, (BtSocketConnectionCallback *)connectCallback); in ConnectByPort() 131 BdAddr bdAddr; in GetRemoteDeviceInfo() local 132 (void)memset_s((char *)&bdAddr, sizeof(bdAddr), 0, sizeof(bdAddr)); in GetRemoteDeviceInfo() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avdtp/ |
H A D | avdtp_ctrl.h | 39 extern AvdtSigCtrl *AvdtGetSigCtrlByAddr(const BtAddr *bdAddr); 41 extern AvdtSigCtrl *AvdtSigCtrlAllocate(const BtAddr *bdAddr, uint8_t role); 44 extern AvdtTransChannel *AvdtGetTransChTabByAddr(const BtAddr *bdAddr, uint8_t type); 47 AvdtSigCtrl *sigCtrl, uint16_t handle, const BtAddr *bdAddr, uint8_t event, const AvdtCtrlData *data, uint8_t role); 48 extern uint16_t AvdtCreateSEP(const BtAddr *bdAddr); 57 extern void AvdtIsEdr2MbMode(const BtAddr *bdAddr); 58 extern void AvdtIsEdr3MbMode(const BtAddr *bdAddr);
|
H A D | avdtp_api.h | 28 const BtAddr *bdAddr; member 43 const BtAddr *bdAddr; member 51 const BtAddr *bdAddr; member 59 const BtAddr *bdAddr; member 68 const BtAddr *bdAddr; member 76 const BtAddr *bdAddr; member 221 const BtAddr *bdAddr; member 228 const BtAddr *bdAddr; member 261 extern uint16_t AvdtCreateStream(const BtAddr *bdAddr, uint16_t *handle, uint16_t codecIndex); 262 extern uint16_t AvdtDiscoverReq(const BtAddr *bdAddr, uint8_ [all...] |
H A D | avdtp_api.c | 86 * Pram[in] bdAddr Peer device address. 92 uint16_t AVDT_CreateStream(const BtAddr *bdAddr, uint16_t *handle, uint16_t codecIndex) in AVDT_CreateStream() argument 94 LOG_INFO("[AVDT]%{public}s:bdAddr((%02x:%02x:%02x:%02x:%02x:%02x) codecIndex(%hu)", in AVDT_CreateStream() 96 BT_ADDR_FMT_DSC(bdAddr->addr), in AVDT_CreateStream() 107 param->bdAddr = bdAddr; in AVDT_CreateStream() 123 param->ret = AvdtCreateStream(param->bdAddr, param->handle, param->codecIndex); in AvdtCreateStreamTsk() 128 uint16_t AvdtCreateStream(const BtAddr *bdAddr, uint16_t *handle, uint16_t codecIndex) in AvdtCreateStream() argument 130 LOG_DEBUG("[AVDT]%{public}s:bdAddr((%02x:%02x:%02x:%02x:%02x:%02x) codecIndex(%hu)", in AvdtCreateStream() 132 BT_ADDR_FMT_DSC(bdAddr in AvdtCreateStream() 243 AVDT_DiscoverReq(const BtAddr *bdAddr, uint8_t maxSeps, uint8_t *transLabel) AVDT_DiscoverReq() argument 280 AvdtDiscoverReq(const BtAddr *bdAddr, uint8_t maxSeps, uint8_t *transLabel) AvdtDiscoverReq() argument 324 AVDT_DiscoverRsp( const BtAddr *bdAddr, uint8_t transLabel, uint8_t errCode, AvdtSepInfo *sepInfo, uint8_t numSeps) AVDT_DiscoverRsp() argument 350 AVDT_GetCapReq(const BtAddr *bdAddr, uint8_t acpSeid, uint8_t *transLabel) AVDT_GetCapReq() argument 383 AvdtGetCapReq(const BtAddr *bdAddr, uint8_t acpSeid, uint8_t *transLabel) AvdtGetCapReq() argument 423 AVDT_GetCapRsp(const BtAddr *bdAddr, uint8_t transLabel, uint8_t errCode, AvdtSepConfig *sepCap) AVDT_GetCapRsp() argument 457 AvdtGetCapRsp(const BtAddr *bdAddr, uint8_t transLabel, uint8_t errCode, AvdtSepConfig *sepCap) AvdtGetCapRsp() argument 491 AVDT_GetAllCapReq(const BtAddr *bdAddr, uint8_t acpSeid, uint8_t *transLabel) AVDT_GetAllCapReq() argument 524 AvdtGetAllCapReq(const BtAddr *bdAddr, uint8_t acpSeid, uint8_t *transLabel) AvdtGetAllCapReq() argument 564 AVDT_GetAllCapRsp(const BtAddr *bdAddr, uint8_t transLabel, uint8_t errCode, AvdtSepConfig *sepCap) AVDT_GetAllCapRsp() argument 598 AvdtGetAllCapRsp(const BtAddr *bdAddr, uint8_t transLabel, uint8_t errCode, AvdtSepConfig *sepCap) AvdtGetAllCapRsp() argument 1874 AVDT_ConnectRsp(const BtAddr *bdAddr, uint8_t errCode) AVDT_ConnectRsp() argument 1894 AVDT_ConnectReq(const BtAddr *bdAddr, uint8_t role) AVDT_ConnectReq() argument 1927 AvdtConnectReq(const BtAddr *bdAddr, uint8_t role) AvdtConnectReq() argument 1966 AVDT_DisconnectReq(const BtAddr *bdAddr) AVDT_DisconnectReq() argument 1996 AvdtDisconnectReq(const BtAddr *bdAddr) AvdtDisconnectReq() argument 2025 AVDT_DisconnectRsp(const BtAddr *bdAddr, uint8_t errCode) AVDT_DisconnectRsp() argument 2059 AVDT_Rej(uint16_t handle, const BtAddr *bdAddr, uint8_t cmd, uint8_t transLabel, AvdtRejErrInfo errInfo) AVDT_Rej() argument [all...] |
/foundation/communication/dsoftbus/tests/adapter/bluetooth/ |
H A D | softbus_adapter_bt_common_test.cpp | 196 BdAddr bdAddr = { in HWTEST() local 202 MockBluetooth::btGapCallback->aclStateChangedCallbak(&bdAddr, OHOS_GAP_ACL_STATE_CONNECTED, 0); in HWTEST() 206 MockBluetooth::btGapCallback->aclStateChangedCallbak(&bdAddr, OHOS_GAP_ACL_STATE_DISCONNECTED, 0); in HWTEST() 210 MockBluetooth::btGapCallback->aclStateChangedCallbak(&bdAddr, OHOS_GAP_ACL_STATE_LE_CONNECTED, 0); in HWTEST() 214 MockBluetooth::btGapCallback->aclStateChangedCallbak(&bdAddr, OHOS_GAP_ACL_STATE_LE_DISCONNECTED, 0); in HWTEST() 219 MockBluetooth::btGapCallback->aclStateChangedCallbak(&bdAddr, (GapAclState)-1, 0); in HWTEST() 234 BdAddr bdAddr = { in HWTEST() local 238 EXPECT_CALL(mocker, PairRequestReply(&bdAddr, OHOS_BT_TRANSPORT_LE, true)) in HWTEST() 248 MockBluetooth::btGapCallback->pairRequestedCallback(&bdAddr, OHOS_BT_TRANSPORT_LE); in HWTEST() 249 MockBluetooth::btGapCallback->pairRequestedCallback(&bdAddr, OHOS_BT_TRANSPORT_L in HWTEST() 261 BdAddr bdAddr = { HWTEST() local [all...] |
H A D | bluetooth_mock.cpp | 89 bool PairRequestReply(const BdAddr *bdAddr, int32_t transport, bool accept) in PairRequestReply() argument 91 return MockBluetooth::GetMocker()->PairRequestReply(bdAddr, transport, accept); in PairRequestReply() 94 bool SetDevicePairingConfirmation(const BdAddr *bdAddr, int32_t transport, bool accept) in SetDevicePairingConfirmation() argument 96 return MockBluetooth::GetMocker()->SetDevicePairingConfirmation(bdAddr, transport, accept); in SetDevicePairingConfirmation() 130 int32_t clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, BtTransportType transport) in BleGattcConnect() 132 return MockBluetooth::GetMocker()->BleGattcConnect(clientId, func, bdAddr, isAutoConnect, transport); in BleGattcConnect() 176 int32_t BleGattcSetPriority(int32_t clientId, const BdAddr *bdAddr, BtGattPriority priority) in BleGattcSetPriority() argument 178 return MockBluetooth::GetMocker()->BleGattcSetPriority(clientId, bdAddr, priority); in BleGattcSetPriority() 228 int32_t BleGattsDisconnect(int32_t serverId, BdAddr bdAddr, int32_t connId) in BleGattsDisconnect() argument 230 return MockBluetooth::GetMocker()->BleGattsDisconnect(serverId, bdAddr, connI in BleGattsDisconnect() 129 BleGattcConnect( int32_t clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, BtTransportType transport) BleGattcConnect() argument [all...] |
H A D | bluetooth_mock.h | 38 virtual bool PairRequestReply(const BdAddr *bdAddr, int transport, bool accept) = 0; 39 virtual bool SetDevicePairingConfirmation(const BdAddr *bdAddr, int transport, bool accept) = 0; 51 virtual int BleGattcConnect(int clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, 62 virtual int BleGattcSetPriority(int clientId, const BdAddr *bdAddr, BtGattPriority priority) = 0; 75 virtual int BleGattsDisconnect(int serverId, BdAddr bdAddr, int connId) = 0; 91 MOCK_METHOD(bool, PairRequestReply, (const BdAddr *bdAddr, int transport, bool accept), (override)); 92 MOCK_METHOD(bool, SetDevicePairingConfirmation, (const BdAddr *bdAddr, int transport, bool accept), (override)); 104 (int clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, 118 MOCK_METHOD(int32_t, BleGattcSetPriority, (int clientId, const BdAddr *bdAddr, 132 MOCK_METHOD(int32_t, BleGattsDisconnect, (int serverId, BdAddr bdAddr, in [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/include/ |
H A D | avdtp.h | 309 * @param[in] bdAddr Peer device address 316 uint16_t handle, const BtAddr *bdAddr, uint8_t event, const AvdtCtrlData *data, uint8_t role); 405 * @param[in] bdAddr Peer device address 411 BTSTACK_API uint16_t AVDT_CreateStream(const BtAddr *bdAddr, uint16_t *handle, uint16_t codeIndex); 440 * @param[in] bdAddr Peer device address 446 BTSTACK_API uint16_t AVDT_DiscoverReq(const BtAddr *bdAddr, uint8_t maxSeps, uint8_t *transLabel); 453 * @param[in] bdAddr Peer device address 462 const BtAddr *bdAddr, uint8_t transLabel, uint8_t errCode, AvdtSepInfo *sepInfo, uint8_t numSeps); 472 * @param[in] bdAddr Peer device address 478 BTSTACK_API uint16_t AVDT_GetCapReq(const BtAddr *bdAddr, uint8_ [all...] |
/foundation/communication/bluetooth_service/test/unittest/gatt_c/ |
H A D | gatt_client_c_test.cpp | 53 BdAddr bdAddr; in HWTEST_F() local 55 int res = BleGattcSetPriority(clientId, &bdAddr, priority); in HWTEST_F() 72 BdAddr bdAddr; in HWTEST_F() local 74 int res = BleGattcSetPriority(clientId, &bdAddr, priority); in HWTEST_F()
|
/foundation/communication/dsoftbus/tests/adapter/broadcast/ |
H A D | bluetooth_mock.cpp | 108 bool PairRequestReply(const BdAddr *bdAddr, int32_t transport, bool accept) in PairRequestReply() argument 110 return MockBluetooth::GetMocker()->PairRequestReply(bdAddr, transport, accept); in PairRequestReply() 113 bool SetDevicePairingConfirmation(const BdAddr *bdAddr, int32_t transport, bool accept) in SetDevicePairingConfirmation() argument 115 return MockBluetooth::GetMocker()->SetDevicePairingConfirmation(bdAddr, transport, accept); in SetDevicePairingConfirmation() 181 int32_t clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, BtTransportType transport) in BleGattcConnect() 183 return MockBluetooth::GetMocker()->BleGattcConnect(clientId, func, bdAddr, isAutoConnect, transport); in BleGattcConnect() 227 int32_t BleGattcSetPriority(int32_t clientId, const BdAddr *bdAddr, BtGattPriority priority) in BleGattcSetPriority() argument 229 return MockBluetooth::GetMocker()->BleGattcSetPriority(clientId, bdAddr, priority); in BleGattcSetPriority() 279 int32_t BleGattsDisconnect(int32_t serverId, BdAddr bdAddr, int32_t connId) in BleGattsDisconnect() argument 281 return MockBluetooth::GetMocker()->BleGattsDisconnect(serverId, bdAddr, connI in BleGattsDisconnect() 180 BleGattcConnect( int32_t clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, BtTransportType transport) BleGattcConnect() argument [all...] |
H A D | bluetooth_mock.h | 38 virtual bool PairRequestReply(const BdAddr *bdAddr, int32_t transport, bool accept) = 0; 39 virtual bool SetDevicePairingConfirmation(const BdAddr *bdAddr, int32_t transport, bool accept) = 0; 59 const BdAddr *bdAddr, bool isAutoConnect, BtTransportType transport) = 0; 70 virtual int32_t BleGattcSetPriority(int32_t clientId, const BdAddr *bdAddr, BtGattPriority priority) = 0; 84 virtual int32_t BleGattsDisconnect(int32_t serverId, BdAddr bdAddr, int32_t connId) = 0; 104 MOCK_METHOD(bool, PairRequestReply, (const BdAddr *bdAddr, int32_t transport, bool accept), (override)); 105 MOCK_METHOD(bool, SetDevicePairingConfirmation, (const BdAddr *bdAddr, int32_t transport, bool accept), (override)); 124 (int32_t clientId, BtGattClientCallbacks *func, const BdAddr *bdAddr, bool isAutoConnect, 140 const BdAddr *bdAddr, BtGattPriority priority), (override)); 155 MOCK_METHOD(int32_t, BleGattsDisconnect, (int32_t serverId, BdAddr bdAddr, int32_ [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
H A D | gap_br_sec.c | 937 (void)memcpy_s(hciCmdParam.bdAddr.raw, BT_ADDRESS_SIZE, addr->addr, BT_ADDRESS_SIZE); in GapIOCapabilityRequestReply() 949 (void)memcpy_s(hciCmdParam.bdAddr.raw, BT_ADDRESS_SIZE, addr->addr, BT_ADDRESS_SIZE); in GapIOCapabilityRequestNegativeReply() 957 LOG_DEBUG("%{public}s:" BT_ADDR_FMT "", __FUNCTION__, BT_ADDR_FMT_OUTPUT(eventParam->bdAddr.raw)); in GapOnIOCapabilityRequestEvent() 960 GapChangeHCIAddr(&addr, &eventParam->bdAddr, BT_PUBLIC_DEVICE_ADDRESS); in GapOnIOCapabilityRequestEvent() 992 GapChangeHCIAddr(&addr, ¶m->bdAddr, BT_PUBLIC_DEVICE_ADDRESS); in GapIOCapabilityRequestReplyComplete() 994 __FUNCTION__, BT_ADDR_FMT_OUTPUT(param->bdAddr.raw), param->status); in GapIOCapabilityRequestReplyComplete() 1003 __FUNCTION__, BT_ADDR_FMT_OUTPUT(param->bdAddr.raw), param->status); in GapIOCapabilityRequestNegativeReplyComplete() 1009 LOG_DEBUG("%{public}s:" BT_ADDR_FMT "", __FUNCTION__, BT_ADDR_FMT_OUTPUT(eventParam->bdAddr.raw)); in GapOnIOCapabilityResponseEvent() 1012 GapChangeHCIAddr(&addr, &eventParam->bdAddr, BT_PUBLIC_DEVICE_ADDRESS); in GapOnIOCapabilityResponseEvent() 1145 (void)memcpy_s(hciCmdParam.bdAddr in GapUserConfirmationRequestReply() [all...] |
/foundation/communication/bluetooth/frameworks/inner/c_adapter/ |
H A D | ohos_bt_socket.cpp | 195 * @param bdAddr The remote device address to connect. 198 int SocketSetFastConnection(const BdAddr *bdAddr) in SocketSetFastConnection() argument 202 if (bdAddr == nullptr) { in SocketSetFastConnection() 203 HILOGE("bdAddr is nullptr."); in SocketSetFastConnection() 206 ConvertAddr(bdAddr->addr, strAddress); in SocketSetFastConnection() 225 * @param bdAddr The remote device address to connect. 230 int SocketConnect(const BluetoothCreateSocketPara *socketPara, const BdAddr *bdAddr, int psm) in SocketConnect() argument 233 if (socketPara == nullptr || bdAddr == nullptr) { in SocketConnect() 234 HILOGE("socketPara is nullptr, or bdAddr is nullptr"); in SocketConnect() 239 ConvertAddr(bdAddr in SocketConnect() 273 SocketConnectEx(const BluetoothCreateSocketPara *socketPara, const BdAddr *bdAddr, int psm, BtSocketConnectionCallback *callback) SocketConnectEx() argument 501 SocketUpdateCocConnectionParams(BluetoothCocUpdateSocketParam* param, const BdAddr *bdAddr) SocketUpdateCocConnectionParams() argument [all...] |