/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/include/ |
H A D | gap_if.h | 186 void (*userPasskeyReq)(const BtAddr *addr, void *context); 188 void (*remoteOobReq)(const BtAddr *addr, void *context); 189 void (*pinCodeReq)(const BtAddr *addr, void *context); 190 void (*linkKeyReq)(const BtAddr *addr, void *context); 194 void (*IOCapabilityReq)(const BtAddr *addr, void *context); 365 BTSTACK_API int GAPIF_PairIsFromLocal(const BtAddr *addr, bool *isLocal); 373 BTSTACK_API int GAPIF_AuthenticationReq(const BtAddr *addr); 381 BTSTACK_API int GAPIF_CancelAuthenticationReq(const BtAddr *addr); 486 BTSTACK_API int GAPIF_GetRemoteName(const BtAddr *addr); 494 BTSTACK_API int GAPIF_GetRemoteNameCancel(const BtAddr *addr); [all …]
|
H A D | gap_le_if.h | 202 …uint8_t advType, const BtAddr *addr, GapAdvReportParam reportParam, const BtAddr *currentAddr, voi… 217 const BtAddr *directAddr; /// Directed advertising event address 226 const BtAddr *directAddr; /// Directed advertising event address 235 …uint8_t advType, const BtAddr *addr, GapExAdvReportParam reportParam, const BtAddr *currentAddr, v… 237 const BtAddr *currentAddr, void *context); 309 BtAddr identityAddr; /// Identity Address 404 void (*lePairPassKeyReq)(const BtAddr *addr, void *context); 406 void (*lePairOobReq)(const BtAddr *addr, void *context); 407 void (*lePairScOobReq)(const BtAddr *addr, void *context); 822 BTSTACK_API int GAPIF_LePair(const BtAddr *addr); [all …]
|
H A D | btm.h | 186 int BTSTACK_API BTM_ReadRssi(const BtAddr *addr); 223 const BtAddr *addr; 269 int BTSTACK_API BTM_GetLeConnectionAddress(uint16_t connectionHandle, BtAddr *localAddr, BtAddr *pe… 469 int BTSTACK_API BTM_GetLocalAddr(BtAddr *addr); 548 BtAddr addr; 550 BtAddr remoteIdentityAddress; 688 BtAddr addr; 734 BtAddr addr; 760 BtAddr addr; 811 const BtAddr *addr; [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/gavdp/ |
H A D | a2dp_profile.h | 132 int Connect(const BtAddr &device); 141 int Disconnect(const BtAddr &device); 289 bool DeletePeer(const BtAddr &peerAddress); 349 void SetActivePeer(const BtAddr &peer); 357 const BtAddr &GetActivePeer() const; 374 void SetConfigure(const BtAddr &addr); 455 bool IsActiveDevice(const BtAddr &addr) const; 478 void NotifyEncoder(const BtAddr &addr) const; 485 void NotifyDecoder(const BtAddr &addr) const; 613 void ResetDelayValue(const BtAddr &device); [all …]
|
H A D | a2dp_avdtp.h | 88 uint16_t ConnectReq(const BtAddr &addr) const; 97 static uint16_t DisconnectReq(const BtAddr &addr); 348 static uint8_t ParseAvdtpConfigureInd(const uint16_t handle, const BtAddr bdAddr, 386 static uint8_t ParseAvdtpCloseInd(const uint16_t handle, const BtAddr bdAddr, 410 static uint8_t ParseAvdtpStartInd(const uint16_t handle, const BtAddr bdAddr, 423 static uint8_t ParseAvdtpSuspendInd(const uint16_t handle, const BtAddr bdAddr, 443 static uint8_t ParseAvdtpConnectCFM(const BtAddr bdAddr, const uint8_t role, 530 static uint8_t ParseAvdtpOpenCFM(const uint16_t handle, const BtAddr bdAddr, 569 static uint8_t ParseAvdtpSuspendCFM(const uint16_t handle, const BtAddr bdAddr, 595 static uint8_t ParseAvdtpAbortCFM(const uint16_t handle, const BtAddr bdAddr, [all …]
|
H A D | a2dp_state_machine.h | 93 void ProcessSDPFailure(BtAddr addr, uint8_t role) const; 110 void ProcessDisconnectReq(BtAddr addr, uint8_t role); 118 void ProcessTimeout(BtAddr addr, uint8_t role); 208 void ProcessDisconnectReq(BtAddr addr, uint8_t role); 297 void ProcessDisconnectReq(BtAddr addr, uint8_t role); 378 void ProcessTimeout(BtAddr addr, uint8_t role); 394 void ProcessStartCfm(BtAddr addr, uint8_t role); 410 void ProcessCloseCfm(BtAddr addr, uint8_t role); 427 void ProcessDisconnectReq(BtAddr addr, uint8_t role); 508 void ProcessCloseCfm(BtAddr addr, uint8_t role); [all …]
|
H A D | a2dp_avdtp.cpp | 45 uint16_t ret = AVDT_CreateStream(&const_cast<BtAddr &>(addr), &handle, codecIndex); in CreateStream() 57 uint16_t A2dpAvdtp::ConnectReq(const BtAddr &addr) const in ConnectReq() 59 uint16_t ret = AVDT_ConnectReq(&const_cast<BtAddr &>(addr), peerRole_); in ConnectReq() 69 uint16_t A2dpAvdtp::DisconnectReq(const BtAddr &addr) in DisconnectReq() 71 uint16_t ret = AVDT_DisconnectReq(&const_cast<BtAddr &>(addr)); in DisconnectReq() 83 uint16_t ret = AVDT_DiscoverReq(&const_cast<BtAddr &>(addr), maxNum, &label); in DiscoverReq() 97 uint16_t ret = AVDT_GetCapReq(&const_cast<BtAddr &>(addr), seid, &label); in GetCapabilityReq() 111 uint16_t ret = AVDT_GetAllCapReq(&const_cast<BtAddr &>(addr), seid, &label); in GetAllCapabilityReq() 309 const BtAddr bdAddr, const uint8_t role, A2dpAvdtMsg &msg) in ParseAvdtpDisconnectInd() 887 uint8_t A2dpAvdtp::ParseAvdtpAbortCFM(const uint16_t handle, const BtAddr bdAddr, in ParseAvdtpAbortCFM() [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/btm/ |
H A D | btm_le_sec.h | 29 int BTM_GetRemoteIdentityResolvingKey(const BtAddr *addr, BtmKey *irk); 30 int BTM_GetRemoteIdentityAddress(const BtAddr *addr, BtAddr *identityAddress); 31 int BTM_GetPairdAddressFromRemoteIdentityAddress(const BtAddr *identityAddress, BtAddr *addr); 34 BtAddr addr; 41 int BTM_UpdateCurrentRemoteAddress(const BtAddr *pairedAddr, const BtAddr *currentAddr); 42 int BTM_GetCurrentRemoteAddress(const BtAddr *pairedAddr, BtAddr *currentAddr); 44 bool BTM_IsDeviceInResolvingList(const BtAddr *addr); 46 int BTM_ConvertToPairedAddress(const BtAddr *addr, BtAddr *pairedAddress);
|
H A D | btm_le_sec.c | 35 BtAddr currentAddr; 46 static BtAddr g_randomAddress; 136 static bool IsSameBtAddr(const BtAddr *addr1, const BtAddr *addr2) in IsSameBtAddr() 362 void BTM_RemoveLePairedDevice(const BtAddr *addr) in BTM_RemoveLePairedDevice() 523 int BTM_UpdateCurrentRemoteAddress(const BtAddr *pairedAddr, const BtAddr *currentAddr) in BTM_UpdateCurrentRemoteAddress() 549 int BTM_GetCurrentRemoteAddress(const BtAddr *pairedAddr, BtAddr *currentAddr) in BTM_GetCurrentRemoteAddress() 590 int BTM_GetRemoteIdentityAddress(const BtAddr *addr, BtAddr *identityAddress) in BTM_GetRemoteIdentityAddress() 616 int BTM_GetPairdAddressFromRemoteIdentityAddress(const BtAddr *identityAddress, BtAddr *addr) in BTM_GetPairdAddressFromRemoteIdentityAddress() 666 int BTM_ConvertToPairedAddress(const BtAddr *addr, BtAddr *pairedAddress) in BTM_ConvertToPairedAddress() 708 int BTM_SetLeRandomAddress(const BtAddr *addr) in BTM_SetLeRandomAddress() [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/gap/ |
H A D | gap.h | 36 int GAP_GetLocalAddr(BtAddr *addr); 114 int GAP_RequestSecurity(const BtAddr *addr, const GapRequestSecurityParam *param); 148 int GAP_AuthorizeRes(const BtAddr *addr, GAP_Service service, uint8_t accept); 173 int GAP_PairIsFromLocal(const BtAddr *addr, bool *isLocal); 181 int GAP_AuthenticationReq(const BtAddr *addr); 189 int GAP_CancelAuthenticationReq(const BtAddr *addr); 211 int GAP_UserConfirmRsp(const BtAddr *addr, uint8_t accept); 221 int GAP_UserPasskeyRsp(const BtAddr *addr, uint8_t accept, uint32_t number); 231 int GAP_RemoteOobRsp(const BtAddr *addr, uint8_t accept, const GapOOBData *data); 302 int GAP_GetRemoteName(const BtAddr *addr); [all …]
|
H A D | gap_le.h | 44 int GAP_GetLocalAddr(BtAddr *addr); 310 int GAP_LeConnParamUpdate(const BtAddr *addr, const GapLeConnectionParameter *connParam); 366 int GAP_LeLocalEncryptionKeyRsp(const BtAddr *addr, uint8_t accept, LeEncKey encKey, uint8_t keyTyp… 403 int GAP_LeGetSecurityStatus(const BtAddr *addr, GAP_LeSecurityStatus *status, uint8_t *encKeySize); 423 int GAP_LePair(const BtAddr *addr); 431 int GAP_LeCancelPair(const BtAddr *addr); 464 int GAP_LePairFeatureRsp(const BtAddr *addr, GapLePairFeature localFeature); 474 int GAP_LePairPassKeyRsp(const BtAddr *addr, uint8_t accept, uint32_t number); 484 int GAP_LePairOobRsp(const BtAddr *addr, uint8_t accept, uint8_t oobData[GAP_OOB_DATA_SIZE]); 505 int GAP_LePairScUserConfirmRsp(const BtAddr *addr, uint8_t accept); [all …]
|
H A D | gap_if.c | 58 BtAddr *addr; 65 BtAddr *addr; 71 BtAddr addr; 82 BtAddr *addr; 89 BtAddr *addr; 95 BtAddr *addr; 104 BtAddr *addr; 110 BtAddr *addr; 117 BtAddr *addr; 124 BtAddr *addr; [all …]
|
H A D | gap_le_sec.c | 240 BtAddr addr = {0}; in GapLeAuthenticationRequest() 248 (void)memcpy_s(&addr, sizeof(BtAddr), &deviceInfo->addr, sizeof(BtAddr)); in GapLeAuthenticationRequest() 384 BtAddr addr = {0}; in GapLePairResult() 389 (void)memcpy_s(&addr, sizeof(BtAddr), &deviceInfo->addr, sizeof(BtAddr)); in GapLePairResult() 419 BtAddr addr = {0}; in GapLeRemotePairRequest() 431 (void)memcpy_s(&addr, sizeof(BtAddr), &deviceInfo->addr, sizeof(BtAddr)); in GapLeRemotePairRequest() 475 BtAddr addr = {0}; in GapLeRemoteSecurityRequest() 481 (void)memcpy_s(&addr, sizeof(BtAddr), &deviceInfo->addr, sizeof(BtAddr)); in GapLeRemoteSecurityRequest() 497 BtAddr addr = {0}; in GapLeLongTermKeyRequest() 503 (void)memcpy_s(&addr, sizeof(BtAddr), &deviceInfo->addr, sizeof(BtAddr)); in GapLeLongTermKeyRequest() [all …]
|
H A D | gap_le_conn.c | 92 BtAddr addr = {0}; in GapOnLeConnectionUpdateCompleteEvent() 99 (void)memcpy_s(&addr, sizeof(BtAddr), &deviceInfo->addr, sizeof(BtAddr)); in GapOnLeConnectionUpdateCompleteEvent() 199 BtAddr addr = {0}; in GapOnLeRemoteConnectionParameterRequestEvent() 207 (void)memcpy_s(&addr, sizeof(BtAddr), &deviceInfo->addr, sizeof(BtAddr)); in GapOnLeRemoteConnectionParameterRequestEvent() 334 BtAddr addr = {0}; in GapLeReadChannelMapComplete() 342 (void)memcpy_s(&addr, sizeof(BtAddr), &deviceInfo->addr, sizeof(BtAddr)); in GapLeReadChannelMapComplete() 461 (void)memcpy_s(&deviceInfo->addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in GapLeConnectionComplete() 516 BtAddr addr = {0}; in GapReceiveL2capParameterUpdateReq() 522 (void)memcpy_s(&addr, sizeof(BtAddr), &deviceInfo->addr, sizeof(BtAddr)); in GapReceiveL2capParameterUpdateReq() 554 BtAddr addr = {0}; in GapReceiveL2capParameterUpdateRsp() [all …]
|
H A D | gap_internal.h | 31 void GapChangeHCIAddr(BtAddr *addr, const HciBdAddr *hciAddr, uint8_t addrType); 33 bool GapAddrCompare(const BtAddr *addr1, const BtAddr *addr2); 40 void GapIsRemoteDeviceSupportHostSecureSimplePairingAsync(const BtAddr *addr); 92 void GapRemoteDeviceSupportHostSecureSimplePairingCallback(const BtAddr *addr, bool support); 144 bool GapAddrIsResolvablePrivateAddress(const BtAddr *addr); 145 bool GapAddrIsStaticAddress(const BtAddr *addr); 146 bool GapAddrIsPublicAddress(const BtAddr *addr); 147 bool GapAddrIsIdentityAddress(const BtAddr *addr); 190 int GapRequestSigningAlgorithmInfo(const BtAddr *addr); 191 void GapClearPairingStatus(const BtAddr *addr); [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/ |
H A D | ble_security.h | 51 int GapLeRequestSecurity(uint16_t connectionHandle, const BtAddr &addr, uint8_t role); 71 static void EncryptionComplete(uint8_t status, const BtAddr *peerAddr, void *context); 73 static void LeRemoteEncryptionKeyReqEvent(const BtAddr *addr, void *context); 75 const BtAddr *addr, GAP_SignCounterType type, uint32_t counter, void *context); 76 static void GapRequestSigningAlgorithmInfo(const BtAddr *addr, void *context); 78 static void LePairFeatureReq(const BtAddr *peerAddr, bool localPair, void *context); 82 static void LePairPassKeyReq(const BtAddr *addr, void *context); 84 static void LePairOobReq(const BtAddr *addr, void *context); 85 static void LePairScOobReq(const BtAddr *addr, void *context); 88 static void LePairKeyNotify(const BtAddr *addr, LePairedKeys leKeys, void *context); [all …]
|
H A D | ble_defs.h | 282 BtAddr addr; 288 BtAddr addr; 292 BtAddr addr; 298 BtAddr addr; 307 BtAddr addr; 312 BtAddr addr; 317 BtAddr addr; 322 BtAddr addr; 326 BtAddr addr; 331 BtAddr addr; [all …]
|
H A D | ble_security.cpp | 102 …memcpy_s(&gapCallbackParam.encryptionComplete_.peerAddr, sizeof(BtAddr), peerAddr, sizeof(BtAddr)); in EncryptionComplete() 171 …d)memcpy_s(&gapCallbackParam.lePairFeatureReq_.peerAddr, sizeof(BtAddr), peerAddr, sizeof(BtAddr)); in LePairFeatureReq() 188 (void)memcpy_s(&gapCallbackParam.lePairFeatureInd_.addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in LePairFeatureInd() 205 … (void)memcpy_s(&gapCallbackParam.lePairMethodNotify_.addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in LePairMethodNotify() 239 (void)memcpy_s(&gapCallbackParam.lePairPassKeyReq_.addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in LePairPassKeyReq() 255 (void)memcpy_s(&gapCallbackParam.lePairOobReq_.addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in LePairOobReq() 271 (void)memcpy_s(&gapCallbackParam.lePairScOob_req_.addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in LePairScOobReq() 287 …oid)memcpy_s(&gapCallbackParam.lePairScUserConfirmReq_.addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in LePairScUserConfirmReq() 304 (void)memcpy_s(&gapCallbackParam.lePairComplete_.addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in LePairComplete() 320 (void)memcpy_s(&gapCallbackParam.lePairKeyNotify_.addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in LePairKeyNotify() [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/ |
H A D | classic_adapter.h | 488 static void RemoteOobReqCallback(const BtAddr *addr, void *context); 496 static void PinCodeReqCallback(const BtAddr *addr, void *context); 504 static void LinkKeyReqCallback(const BtAddr *addr, void *context); 694 bool GetRemoteName(const BtAddr &addr) const; 701 void SetLinkKey(const BtAddr &addr); 708 void SetIoCapability(const BtAddr &addr); 883 void SetAuthorizeRes(const BtAddr &addr, GAP_Service service) const; 900 void ReceiveSimplePairComplete(const BtAddr &addr, uint8_t status); 916 void ReceiveEncryptionChange(const BtAddr &addr, uint8_t status); 1056 BtAddr ConvertToBtAddr(const RawAddress &device) const; [all …]
|
H A D | classic_defs.h | 150 const BtAddr addr; 155 const BtAddr addr; 161 const BtAddr addr; 173 const BtAddr addr; 178 const BtAddr addr; 186 const BtAddr addr; 190 const BtAddr addr; 194 const BtAddr addr; 198 const BtAddr addr; 204 const BtAddr addr; [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/sdp/ |
H A D | sdp_client.h | 32 int SdpServiceSearch(const BtAddr *addr, const SdpUuid *uuidArray, void *context, 33 …void (*serviceSearchCb)(const BtAddr *addr, const uint32_t *handleArray, uint16_t handleNum, void … 34 int SdpServiceAttribute(const BtAddr *addr, uint32_t handle, SdpAttributeIdList attributeIdList, vo… 35 void (*serviceAttributeCb)(const BtAddr *addr, const SdpService *service, void *context)); 36 int SdpServiceSearchAttribute(const BtAddr *addr, const SdpUuid *uuidArray, SdpAttributeIdList attr… 38 …void (*searchAttributeCb)(const BtAddr *addr, const SdpService *serviceArray, uint16_t serviceNum,… 39 int SdpServiceBrowse(const BtAddr *addr, void *context, 40 …void (*serviceBrowseCb)(const BtAddr *addr, const uint32_t *handleArray, uint16_t handleNum, void …
|
H A D | sdp_client_parse.h | 33 void SdpRemoveRequest(const BtAddr *addr); 34 SdpClientRequest *SdpFindRemainRequestByAddress(const BtAddr *addr, bool *flag); 35 SdpClientRequest *SdpFindRequestByAddress(const BtAddr *addr); 37 void SdpRemoveRequestByAddress(const BtAddr *addr); 38 void SdpRemoveAllRequestByAddress(const BtAddr *addr); 39 void SdpParseServerResponse(const BtAddr *addr, uint16_t lcid, const Packet *data);
|
H A D | sdp_client.c | 177 int SdpServiceSearch(const BtAddr *addr, const SdpUuid *uuidArray, void *context, in SdpServiceSearch() 178 …void (*serviceSearchCb)(const BtAddr *addr, const uint32_t *handleArray, uint16_t handleNum, void … in SdpServiceSearch() 205 (void)memcpy_s(&request->addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in SdpServiceSearch() 221 int SdpServiceAttribute(const BtAddr *addr, uint32_t handle, SdpAttributeIdList attributeIdList, vo… in SdpServiceAttribute() 222 void (*serviceAttributeCb)(const BtAddr *addr, const SdpService *service, void *context)) in SdpServiceAttribute() 249 (void)memcpy_s(&request->addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in SdpServiceAttribute() 265 int SdpServiceSearchAttribute(const BtAddr *addr, const SdpUuid *uuidArray, SdpAttributeIdList attr… in SdpServiceSearchAttribute() 295 (void)memcpy_s(&request->addr, sizeof(BtAddr), addr, sizeof(BtAddr)); in SdpServiceSearchAttribute() 311 int SdpServiceBrowse(const BtAddr *addr, void *context, in SdpServiceBrowse() 312 …void (*serviceBrowseCb)(const BtAddr *addr, const uint32_t *handleArray, uint16_t handleNum, void … in SdpServiceBrowse() [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avdtp/ |
H A D | avdtp_api.h | 28 const BtAddr *bdAddr; 43 const BtAddr *bdAddr; 51 const BtAddr *bdAddr; 59 const BtAddr *bdAddr; 68 const BtAddr *bdAddr; 76 const BtAddr *bdAddr; 221 const BtAddr *bdAddr; 228 const BtAddr *bdAddr; 263 extern uint16_t AvdtGetCapReq(const BtAddr *bdAddr, uint8_t acpSeid, uint8_t *transLabel); 284 extern uint16_t AvdtConnectReq(const BtAddr *bdAddr, uint8_t role); [all …]
|
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 *da… 48 extern uint16_t AvdtCreateSEP(const BtAddr *bdAddr); 57 extern void AvdtIsEdr2MbMode(const BtAddr *bdAddr); 58 extern void AvdtIsEdr3MbMode(const BtAddr *bdAddr);
|