/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/ |
H A D | wifi_p2p_device_manager.cpp | 40 device.GetDeviceName().c_str(), device.GetDeviceAddress().c_str(), in AddDevice() 44 __func__, device.GetDeviceName().c_str(), device.GetDeviceAddress().c_str()); in AddDevice() 46 device.GetDeviceAddress(), ""); in AddDevice() 56 if (it->GetDeviceAddress() == deviceAddress) { in RemoveDevice() 67 return RemoveDevice(device.GetDeviceAddress()); in RemoveDevice() 104 __func__, device.GetDeviceName().c_str(), device.GetDeviceAddress().c_str()); in UpdateDevice() 106 device.GetDeviceAddress(), ""); in UpdateDevice() 134 __func__, device.GetDeviceName().c_str(), device.GetDeviceAddress().c_str()); in UpdateDeviceSupplicantInf() 136 device.GetDeviceAddress(), ""); in UpdateDeviceSupplicantInf() 151 if (it->GetDeviceAddress() in UpdateDeviceGroupCap() [all...] |
H A D | wifi_p2p_group_manager.cpp | 111 it->GetOwner().GetDeviceAddress() == group.GetOwner().GetDeviceAddress()) { in UpdateWpaGroup() 150 std::string deviceAddr = device.GetDeviceAddress(); in GetNetworkIdFromClients() 157 std::string clientAddr = client->GetDeviceAddress(); in GetNetworkIdFromClients() 170 std::string deviceMac = device.GetDeviceAddress(); in GetGroupNetworkId() 175 ownerMac = it->GetOwner().GetDeviceAddress(); in GetGroupNetworkId() 185 std::string deviceMac = device.GetDeviceAddress(); in GetGroupNetworkId() 190 ownerMac = it->GetOwner().GetDeviceAddress(); in GetGroupNetworkId() 203 return it->GetOwner().GetDeviceAddress(); in GetGroupOwnerAddr() 259 group->GetOwner().GetDeviceAddress() in UpdateGroupsNetwork() [all...] |
H A D | wifi_p2p_service_manager.cpp | 63 iter->GetDeviceAddress() == p2pSvrInfo.GetDeviceAddress()) { in AddLocalService() 78 iter->GetDeviceAddress() == p2pSvrInfo.GetDeviceAddress()) { in RemoveLocalService() 101 auto iter = serviceRespons.find(device.GetDeviceAddress()); in AddDeviceResponses() 110 std::pair<std::string, WifiP2pServiceResponseList>(device.GetDeviceAddress(), responseList)); in AddDeviceResponses() 123 service.SetDeviceAddress(dev.GetDeviceAddress()); in AddDeviceService() 133 auto iter = deviceService.find(dev.GetDeviceAddress()); in AddDeviceService() 138 std::pair<std::string, std::vector<WifiP2pServiceInfo>>(dev.GetDeviceAddress(), services)); in AddDeviceService() 178 buf.SetDeviceAddress(svrInfoIter->GetDeviceAddress()); in GetDeviceServices() [all...] |
H A D | group_formed_state.cpp | 124 p2pStateMachine.savedP2pConfig.SetDeviceAddress(procDisc.GetDevice().GetDeviceAddress()); in ProcessProvDiscEvt() 185 if (info.mac == client.GetDeviceAddress()) { in ProcessCmdRemoveGroupClient() 186 deviceMac = client.GetDeviceAddress(); in ProcessCmdRemoveGroupClient() 190 deviceMac = client.GetDeviceAddress(); in ProcessCmdRemoveGroupClient() 247 IpPool::ReleaseIp(device.GetDeviceAddress()); in ProcessDisconnectEvt() 252 if (WIFI_OPT_SUCCESS != p2pStateMachine.RemoveClientInfo(device.GetDeviceAddress())) { in ProcessDisconnectEvt() 256 p2pStateMachine.curClientList.end(), device.GetDeviceAddress()); in ProcessDisconnectEvt() 260 WIFI_LOGD("curClientList(%s) has been erased", device.GetDeviceAddress().c_str()); in ProcessDisconnectEvt() 265 p2pStateMachine.BroadcastP2pPeerJoinOrLeave(false, device.GetDeviceAddress()); in ProcessDisconnectEvt() 288 WifiP2pDevice memberPeer = deviceManager.GetDevices(device.GetDeviceAddress()); in ProcessConnectEvt() [all...] |
H A D | provision_discovery_state.cpp | 101 if (device.IsValid() && p2pStateMachine.savedP2pConfig.GetDeviceAddress() != device.GetDeviceAddress()) { in ProcessProvDiscPbcRspEvt() 123 if (device.IsValid() && p2pStateMachine.savedP2pConfig.GetDeviceAddress() != device.GetDeviceAddress()) { in ProcessProvDiscEnterPinEvt() 149 if (!device.IsValid() || p2pStateMachine.savedP2pConfig.GetDeviceAddress() != device.GetDeviceAddress()) { in ProcessProvDiscShowPinEvt() 159 p2pStateMachine.NotifyUserInvitationSentMessage(provDisc.GetPin(), device.GetDeviceAddress()); in ProcessProvDiscShowPinEvt()
|
H A D | invitation_request_state.cpp | 31 p2pStateMachine.savedP2pConfig.GetDeviceAddress())) { in GoInState() 33 p2pStateMachine.savedP2pConfig.GetDeviceAddress(), P2pDeviceStatus::PDS_INVITED); in GoInState() 60 netId, p2pStateMachine.savedP2pConfig.GetDeviceAddress()); in ExecuteStateMsg()
|
H A D | p2p_idle_state.cpp | 155 p2pStateMachine.savedP2pConfig.GetDeviceAddress(), P2pDeviceStatus::PDS_INVITED); in RetryConnect() 208 p2pStateMachine.savedP2pConfig.GetDeviceAddress(), P2pDeviceStatus::PDS_INVITED); in ProcessCmdConnect() 276 config.SetDeviceAddress(provDisc.GetDevice().GetDeviceAddress()); in ProcessProvDiscShowPinEvt() 279 p2pStateMachine.NotifyUserProvDiscShowPinRequestMessage(provDisc.GetPin(), config.GetDeviceAddress()); in ProcessProvDiscShowPinEvt() 280 deviceManager.UpdateDeviceStatus(config.GetDeviceAddress(), P2pDeviceStatus::PDS_INVITED); in ProcessProvDiscShowPinEvt() 319 group.GetInterface().c_str(), group.GetGroupName().c_str(), group.GetOwner().GetDeviceAddress().c_str()); in ProcessGroupStartedEvt() 338 WifiP2pDevice device = deviceManager.GetDevices(owner.GetDeviceAddress()); in ProcessGroupStartedEvt() 345 deviceManager.UpdateDeviceStatus(owner.GetDeviceAddress(), P2pDeviceStatus::PDS_CONNECTED); in ProcessGroupStartedEvt() 400 WifiP2PHalInterface::GetInstance().GetP2pPeer(owner.GetDeviceAddress(), device)) { in ProcessInvitationReceivedEvt() 406 const WifiP2pDevice peer = deviceManager.GetDevices(owner.GetDeviceAddress()); in ProcessInvitationReceivedEvt() [all...] |
H A D | p2p_state_machine.cpp | 214 const WifiP2pDevice device = FetchNewerDeviceInfo(config.GetDeviceAddress()); in ReawakenPersistentGroup() 267 WifiP2PHalInterface::GetInstance().Reinvoke(networkId, device.GetDeviceAddress())) { in ReawakenPersistentGroup() 312 if (!savedP2pConfig.GetDeviceAddress().empty() && deviceManager.RemoveDevice(savedP2pConfig.GetDeviceAddress())) { in DealGroupCreationFailed() 359 if (iterDeviceList.GetDeviceAddress() == iterClientList) { in AddClientInfo() 361 auto p2pDeviceMac = curDev.GetDeviceAddress(); in AddClientInfo() 375 auto iter = std::find(curClientList.begin(), curClientList.end(), curDev.GetDeviceAddress().c_str()); in AddClientInfo() 526 if (device.GetDeviceAddress() == gcInfo.mac) { in BroadcastP2pGcLeaveGroup() 637 if (config.GetDeviceAddress().empty()) { in IsConfigUnusable() 641 if (!MacAddress::IsValidMac(config.GetDeviceAddress() in IsConfigUnusable() [all...] |
H A D | group_negotiation_state.cpp | 92 MacAddress::IsValidMac(groupManager.GetCurrentGroup().GetOwner().GetDeviceAddress().c_str())) { in ProcessGroupStartedEvt() 134 WifiP2pDevice device = deviceManager.GetDevices(owner.GetDeviceAddress()); in ProcessGroupStartedEvt() 142 device.GetDeviceAddress().c_str(), device.GetRandomDeviceAddress().c_str()); in ProcessGroupStartedEvt() 143 deviceManager.UpdateDeviceStatus(owner.GetDeviceAddress(), P2pDeviceStatus::PDS_CONNECTED); in ProcessGroupStartedEvt() 187 groupManager.RemoveClientFromGroup(networkId, p2pStateMachine.savedP2pConfig.GetDeviceAddress()); in ProcessInvitationResultEvt()
|
H A D | p2p_enabled_state.cpp | 214 device.GetDeviceAddress().c_str(), device.GetDeviceAddressType()); in ProcessDeviceFoundEvt() 239 device.GetDeviceAddress().c_str(), device.GetDeviceAddressType()); in ProcessDeviceLostEvt() 240 if (deviceManager.RemoveDevice(device.GetDeviceAddress())) { in ProcessDeviceLostEvt() 244 if (p2pStateMachine.serviceManager.DelServicesFormAddress(device.GetDeviceAddress())) { in ProcessDeviceLostEvt() 248 if (p2pStateMachine.serviceManager.RemoveServiceResponse(device.GetDeviceAddress())) { in ProcessDeviceLostEvt() 249 WIFI_LOGI("device: %{private}s , Delete a response record.", device.GetDeviceAddress().c_str()); in ProcessDeviceLostEvt() 336 WifiP2PHalInterface::GetInstance().GetDeviceAddress(deviceAddr); in P2pConfigInitialization() 431 WifiP2PHalInterface::GetInstance().ReqServiceDiscovery(device.GetDeviceAddress(), request.GetTlv(), reqId); in ProcessCmdDiscServices() 478 WifiP2PHalInterface::GetInstance().ReqServiceDiscovery(device.GetDeviceAddress(), request.GetTlv(), reqId); in ProcessCmdRequestService() 506 const std::string deviceAddress = reqList.GetDevice().GetDeviceAddress(); in ProcessServiceDiscReqEvt() [all...] |
H A D | wifi_p2p_service_response_list.cpp | 78 if (p2pDevice.GetDeviceAddress() != respList.GetDevice().GetDeviceAddress()) { in MergerAndDeduplicate()
|
H A D | invitation_received_state.cpp | 68 p2pStateMachine.savedP2pConfig.GetDeviceAddress(), P2pDeviceStatus::PDS_INVITED); in ExecuteStateMsg()
|
H A D | authorizing_negotiation_request_state.cpp | 68 p2pStateMachine.savedP2pConfig.GetDeviceAddress(), P2pDeviceStatus::PDS_INVITED); in ExecuteStateMsg()
|
H A D | p2p_monitor.cpp | 377 if (device.GetDeviceAddress().empty()) { in WpaEventDeviceLost() 391 if (config.GetDeviceAddress().empty()) { in WpaEventGoNegRequest() 442 if (device.GetDeviceAddress().empty()) { in WpaEventInvitationReceived() 455 owner.GetDeviceAddress().c_str(), recvInfo.persistentNetworkId); in WpaEventInvitationReceived() 460 if (owner.GetDeviceAddress().empty()) { in WpaEventInvitationReceived()
|
H A D | p2p_group_join_state.cpp | 97 p2pStateMachine.savedP2pConfig.GetDeviceAddress())) { in StartPbc()
|
/foundation/communication/wifi/wifi/frameworks/native/src/ |
H A D | wifi_p2p_msg.cpp | 111 const std::string &WifiP2pDevice::GetDeviceAddress() const in GetDeviceAddress() function in OHOS::Wifi::WifiP2pDevice 276 return mDeviceAddress == cmp.GetDeviceAddress(); in operator ==() 434 if (it->GetDeviceAddress() == clientDevice.GetDeviceAddress()) { in AddPersistentDevice() 457 if (it->GetDeviceAddress() == clientDevice.GetDeviceAddress()) { in RemovePersistentDevice() 481 if (it->GetDeviceAddress() == clientDevice.GetDeviceAddress()) { in IsContainsPersistentDevice() 574 const std::string &WifiP2pConfig::GetDeviceAddress() const in GetDeviceAddress() function in OHOS::Wifi::WifiP2pConfig 824 const std::string &WifiP2pServiceInfo::GetDeviceAddress() cons function in OHOS::Wifi::WifiP2pServiceInfo [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p_sa/ |
H A D | wifi_p2p_service_impl.cpp | 439 if (CheckMacIsValid(config.GetDeviceAddress()) != 0) { in CreateGroup() 540 config.GetDeviceAddress().c_str(), config.GetDeviceAddressType(), in P2pConnect() 560 if (CheckMacIsValid(config.GetDeviceAddress()) != 0) { in P2pConnect() 577 if (MacAddress::IsValidMac(config.GetDeviceAddress())) { in P2pConnect() 584 macAddrInfo.bssid = config.GetDeviceAddress(); in P2pConnect() 593 __func__, config.GetDeviceAddress().c_str(), config.GetDeviceAddressType(), randomMacAddr.c_str()); in P2pConnect() 599 __func__, updateConfig.GetDeviceAddress().c_str(), updateConfig.GetDeviceAddressType()); in P2pConnect() 705 ownMacAddrInfo.bssid = owner.GetDeviceAddress(); in GetCurrentGroup() 718 clientMacAddrInfo.bssid = iter->GetDeviceAddress(); in GetCurrentGroup() 728 __func__, iter->GetDeviceAddress() in GetCurrentGroup() [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/unittest/ |
H A D | wifi_mock_p2p_service.cpp | 124 LOGI("device.GetDeviceAddress() = %s", device.GetDeviceAddress().c_str()); in RequestService() 145 LOGI("srvInfo.GetDeviceAddress() = %s", srvInfo.GetDeviceAddress().c_str()); in PutLocalP2pService() 157 LOGI("srvInfo.GetDeviceAddress() = %s", srvInfo.GetDeviceAddress().c_str()); in DeleteLocalP2pService() 180 LOGI("config.GetDeviceAddress() = %s\n", config.GetDeviceAddress().c_str()); in CreateGroup() 207 LOGI("group.GetOwner().GetDeviceAddress() = %s\n", group.GetOwner().GetDeviceAddress() in DeleteGroup() [all...] |
/foundation/communication/bluetooth/frameworks/inner/ipc/parcel/ |
H A D | bluetooth_opp_transfer_information.cpp | 27 SetDeviceAddress(other.GetDeviceAddress()); in BluetoothIOppTransferInformation() 52 if (!parcel.WriteString(GetDeviceAddress())) { in WriteToParcel()
|
/foundation/multimedia/audio_framework/frameworks/native/ohaudio/ |
H A D | OHAudioDeviceDescriptor.h | 39 OH_AudioCommon_Result GetDeviceAddress(char **address);
|
/foundation/communication/bluetooth/frameworks/inner/ipc/common/ |
H A D | opp_transfer_information.h | 40 std::string GetDeviceAddress() const;
|
H A D | opp_transfer_information.cpp | 71 std::string IOppTransferInformation::GetDeviceAddress() const in GetDeviceAddress() function in OHOS::bluetooth::IOppTransferInformation
|
/foundation/communication/wifi/wifi/interfaces/inner_api/ |
H A D | wifi_p2p_msg.h | 195 const std::string &GetDeviceAddress() const; 351 : mDeviceAddress(config.GetDeviceAddress()), in WifiP2pConfig() 362 const std::string &GetDeviceAddress() const; 518 const std::string &GetDeviceAddress() const;
|
/foundation/communication/bluetooth_service/test/unittest/opp/ |
H A D | opp_test.cpp | 104 (information.GetDeviceAddress() != transferInformation.GetDeviceAddress()) || in CompareTransferInformation()
|
/foundation/communication/bluetooth/interfaces/inner_api/include/ |
H A D | bluetooth_opp.h | 110 std::string GetDeviceAddress() const;
|