Home
last modified time | relevance | path

Searched refs:remoteNetworkId (Results 1 - 25 of 58) sorted by relevance

123

/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/fuzztest/dhtransport_fuzzer/
H A Ddhtransport_fuzzer.cpp45 std::string remoteNetworkId = "remoteNetworkId_test"; in DhTransportOnBytesReceivedFuzzTest() local
46 dhTransportTest->remoteDevSocketIds_[remoteNetworkId] = socketId; in DhTransportOnBytesReceivedFuzzTest()
56 std::string remoteNetworkId(reinterpret_cast<const char*>(data), size); in DhTransportCreateClientSocketFuzzTest()
60 dhTransportTest->CreateClientSocket(remoteNetworkId); in DhTransportCreateClientSocketFuzzTest()
69 std::string remoteNetworkId(reinterpret_cast<const char*>(data), size); in DhTransportIsDeviceSessionOpenedFuzzTest()
72 dhTransportTest->remoteDevSocketIds_[remoteNetworkId] = SOCKETID; in DhTransportIsDeviceSessionOpenedFuzzTest()
73 dhTransportTest->IsDeviceSessionOpened(remoteNetworkId, socketId); in DhTransportIsDeviceSessionOpenedFuzzTest()
82 std::string remoteNetworkId(reinterpret_cast<const char*>(data), size); in DhTransportClearDeviceSocketOpenedFuzzTest()
85 dhTransportTest->ClearDeviceSocketOpened(remoteNetworkId); in DhTransportClearDeviceSocketOpenedFuzzTest()
93 std::string remoteNetworkId(reinterpret_cas in DhTransportStartSocketFuzzTest()
[all...]
/foundation/multimodalinput/input/intention/cooperate/plugin/src/
H A Dmouse_location.cpp45 .remoteNetworkId = event.networkId, in AddListener()
66 .remoteNetworkId = event.networkId, in RemoveListener()
93 .remoteNetworkId = it->first, in OnClientDied()
126 .networkId = notice.remoteNetworkId, in OnSubscribeMouseLocation()
127 .remoteNetworkId = notice.networkId, in OnSubscribeMouseLocation()
131 Utility::Anonymize(event.networkId).c_str(), Utility::Anonymize(event.remoteNetworkId).c_str()); in OnSubscribeMouseLocation()
147 .networkId = notice.remoteNetworkId, in OnUnSubscribeMouseLocation()
148 .remoteNetworkId = notice.networkId, in OnUnSubscribeMouseLocation()
152 Utility::Anonymize(event.networkId).c_str(), Utility::Anonymize(event.remoteNetworkId).c_str()); in OnUnSubscribeMouseLocation()
162 Utility::Anonymize(notice.networkId).c_str(), Utility::Anonymize(notice.remoteNetworkId) in OnReplySubscribeMouseLocation()
227 SyncLocationToRemote(const std::string &remoteNetworkId, const LocationInfo &locationInfo) SyncLocationToRemote() argument
375 SendPacket(const std::string &remoteNetworkId, NetPacket &packet) SendPacket() argument
[all...]
H A Dcooperate_context.cpp239 remoteNetworkId_ = event.remoteNetworkId; in StartCooperate()
297 [observer, remoteNetworkId = Peer(), cursorPos = NormalizedCursorPosition()] { in OnTransitionOut()
300 observer->OnTransitionOut(remoteNetworkId, cursorPos); in OnTransitionOut()
311 [observer, remoteNetworkId = Peer(), cursorPos = NormalizedCursorPosition()] { in OnTransitionIn()
314 observer->OnTransitionIn(remoteNetworkId, cursorPos); in OnTransitionIn()
325 [observer, remoteNetworkId = Peer(), cursorPos = NormalizedCursorPosition()] { in OnBack()
328 observer->OnBack(remoteNetworkId, cursorPos); in OnBack()
347 void Context::CloseDistributedFileConnection(const std::string &remoteNetworkId) in CloseDistributedFileConnection() argument
353 [observer, remoteNetworkId] { in CloseDistributedFileConnection()
354 FI_HILOGI("Notify one observer of device offline, remoteNetworkId in CloseDistributedFileConnection()
[all...]
H A Dcooperate.cpp163 int32_t Cooperate::Start(int32_t pid, int32_t userData, const std::string &remoteNetworkId, int32_t startDeviceId) in Start() argument
169 ss << "start_cooperation_with_" << Utility::Anonymize(remoteNetworkId).c_str(); in Start()
175 .remoteNetworkId = remoteNetworkId, in Start()
H A Dinput_device_mgr.cpp122 void InputDeviceMgr::NotifyInputDeviceToRemote(const std::string &remoteNetworkId) in NotifyInputDeviceToRemote() argument
140 if (int32_t ret = env_->GetDSoftbus().SendPacket(remoteNetworkId, packet); ret != RET_OK) { in NotifyInputDeviceToRemote()
142 Utility::Anonymize(remoteNetworkId).c_str(), ret); in NotifyInputDeviceToRemote()
145 FI_HILOGI("NotifyInputDeviceToRemote networkId:%{public}s", Utility::Anonymize(remoteNetworkId).c_str()); in NotifyInputDeviceToRemote()
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/transport/
H A Ddh_transport.cpp249 int32_t DHTransport::CreateClientSocket(const std::string &remoteNetworkId) in CreateClientSocket() argument
251 if (!IsIdLengthValid(remoteNetworkId)) { in CreateClientSocket()
254 DHLOGI("CreateClientSocket start, peerNetworkId: %{public}s", GetAnonyString(remoteNetworkId).c_str()); in CreateClientSocket()
255 std::string peerSocketName = DH_FWK_SESSION_NAME + remoteNetworkId.substr(0, INTERCEPT_STRING_LENGTH); in CreateClientSocket()
259 .peerNetworkId = const_cast<char*>(remoteNetworkId.c_str()), in CreateClientSocket()
316 bool DHTransport::IsDeviceSessionOpened(const std::string &remoteNetworkId, int32_t &socketId) in IsDeviceSessionOpened() argument
318 if (!IsIdLengthValid(remoteNetworkId)) { in IsDeviceSessionOpened()
322 if (remoteDevSocketIds_.find(remoteNetworkId) == remoteDevSocketIds_.end()) { in IsDeviceSessionOpened()
325 socketId = remoteDevSocketIds_.at(remoteNetworkId); in IsDeviceSessionOpened()
326 DHLOGI("DeviceSession has opened, remoteNetworkId in IsDeviceSessionOpened()
353 StartSocket(const std::string &remoteNetworkId) StartSocket() argument
391 StopSocket(const std::string &remoteNetworkId) StopSocket() argument
409 Send(const std::string &remoteNetworkId, const std::string &payload) Send() argument
[all...]
H A Ddh_comm_tool.cpp66 void DHCommTool::TriggerReqFullDHCaps(const std::string &remoteNetworkId) in TriggerReqFullDHCaps() argument
68 DHLOGI("TriggerReqFullDHCaps, remote networkId: %{public}s", GetAnonyString(remoteNetworkId).c_str()); in TriggerReqFullDHCaps()
69 if (remoteNetworkId.empty() || dhTransportPtr_ == nullptr) { in TriggerReqFullDHCaps()
70 DHLOGE("remoteNetworkId or transport is null"); in TriggerReqFullDHCaps()
78 if (dhTransportPtr_->StartSocket(remoteNetworkId) != DH_FWK_SUCCESS) { in TriggerReqFullDHCaps()
85 int32_t ret = dhTransportPtr_->Send(remoteNetworkId, payload); in TriggerReqFullDHCaps()
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/fuzztest/dhcommtool_fuzzer/
H A Ddhcommtool_fuzzer.cpp41 std::string remoteNetworkId(reinterpret_cast<const char*>(data), size); in DhTransportTriggerReqFullDHCapsFuzzTest()
44 dhCommTool->dhTransportPtr_->remoteDevSocketIds_[remoteNetworkId] = SOCKETID; in DhTransportTriggerReqFullDHCapsFuzzTest()
45 dhCommTool->TriggerReqFullDHCaps(remoteNetworkId); in DhTransportTriggerReqFullDHCapsFuzzTest()
55 std::string remoteNetworkId(reinterpret_cast<const char*>(data), size); in DhTransportGetAndSendLocalFullCapsFuzzTest()
58 dhCommTool->GetAndSendLocalFullCaps(remoteNetworkId); in DhTransportGetAndSendLocalFullCapsFuzzTest()
/foundation/multimodalinput/input/intention/prototype/include/
H A Di_cooperate.h48 virtual void OnTransitionOut(const std::string &remoteNetworkId, const NormalizedCoordinate &cursorPos) = 0;
49 virtual void OnTransitionIn(const std::string &remoteNetworkId, const NormalizedCoordinate &cursorPos) = 0;
50 virtual void OnBack(const std::string &remoteNetworkId, const NormalizedCoordinate &cursorPos) = 0;
51 virtual void OnRelay(const std::string &remoteNetworkId, const NormalizedCoordinate &cursorPos) = 0;
53 virtual void CloseDistributedFileConnection(const std::string &remoteNetworkId) {} in CloseDistributedFileConnection() argument
72 const std::string &remoteNetworkId, int32_t startDeviceId) = 0;
H A Di_dinput_adapter.h43 virtual int32_t StartRemoteInput(const std::string &remoteNetworkId, const std::string &originNetworkId,
45 virtual int32_t StopRemoteInput(const std::string &remoteNetworkId, const std::string &originNetworkId,
51 virtual int32_t PrepareRemoteInput(const std::string &remoteNetworkId,
53 virtual int32_t UnPrepareRemoteInput(const std::string &remoteNetworkId,
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/transport/
H A Ddh_comm_tool_test.cpp65 std::string remoteNetworkId = ""; in HWTEST_F() local
66 dhCommToolTest_->TriggerReqFullDHCaps(remoteNetworkId); in HWTEST_F()
69 dhCommToolTest_->TriggerReqFullDHCaps(remoteNetworkId); in HWTEST_F()
71 remoteNetworkId = "remoteNetworkId_test"; in HWTEST_F()
72 dhCommToolTest_->TriggerReqFullDHCaps(remoteNetworkId); in HWTEST_F()
75 dhCommToolTest_->TriggerReqFullDHCaps(remoteNetworkId); in HWTEST_F()
/foundation/multimodalinput/input/intention/cooperate/data/src/
H A Dcooperate_params.cpp22 StartCooperateParam::StartCooperateParam(int32_t userData, const std::string &remoteNetworkId, in StartCooperateParam() argument
24 : remoteNetworkId(remoteNetworkId), userData(userData), in StartCooperateParam()
31 parcel.WriteString(remoteNetworkId) && in Marshalling()
41 parcel.ReadString(remoteNetworkId) && in Unmarshalling()
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/command/
H A Dsimple_processor_selector.cpp29 auto remoteDeviceId = WifiDirectUtils::NetworkIdToUuid(info.remoteNetworkId); in operator ()()
53 const char *remoteNetworkId, enum WifiDirectLinkType linkType) in operator ()()
56 auto remoteDeviceId = WifiDirectUtils::NetworkIdToUuid(remoteNetworkId); in operator ()()
52 operator ()( const char *remoteNetworkId, enum WifiDirectLinkType linkType) operator ()() argument
H A Dconnect_command.cpp37 if (strlen(info.remoteNetworkId) != 0) { in ConnectCommand()
38 remoteDeviceId_ = WifiDirectUtils::NetworkIdToUuid(info_.info_.remoteNetworkId); in ConnectCommand()
41 CONN_LOGE(CONN_WIFI_DIRECT, "remoteNetworkId empty!!"); in ConnectCommand()
49 remoteDeviceId_ = WifiDirectUtils::NetworkIdToUuid(info_.info_.remoteNetworkId); in GetRemoteDeviceId()
H A Dsimple_processor_selector.h29 const char *remoteNetworkId, enum WifiDirectLinkType linkType) override;
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/
H A Dwifi_direct_manager_virtual.c52 static int32_t PrejudgeAvailability(const char *remoteNetworkId, enum WifiDirectLinkType connectType) in PrejudgeAvailability() argument
54 (void)remoteNetworkId; in PrejudgeAvailability()
117 static bool IsNegotiateChannelNeeded(const char *remoteNetworkId, enum WifiDirectLinkType linkType) in IsNegotiateChannelNeeded() argument
119 (void)remoteNetworkId; in IsNegotiateChannelNeeded()
H A Dwifi_direct_manager.h50 int32_t (*prejudgeAvailability)(const char *remoteNetworkId, enum WifiDirectLinkType linkType);
53 bool (*isNegotiateChannelNeeded)(const char *remoteNetworkId, enum WifiDirectLinkType linkType);
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/transport/
H A Ddh_transport.h39 int32_t StartSocket(const std::string &remoteNetworkId);
41 int32_t StopSocket(const std::string &remoteNetworkId);
42 int32_t Send(const std::string &remoteNetworkId, const std::string &payload);
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/utils/
H A Dwifi_direct_utils.h61 static std::vector<uint8_t> GetLocalPtk(const std::string &remoteNetworkId);
62 static std::vector<uint8_t> GetRemotePtk(const std::string &remoteNetworkId);
66 static bool IsDeviceOnline(const std::string &remoteNetworkId);
107 static int32_t GetRemoteConnSubFeature(const std::string &remoteNetworkId, uint64_t &feature);
H A Dwifi_direct_dfx.cpp94 extra.peerNetworkId = wifiDirectConnectInfo.remoteNetworkId; in ReportConnEventExtra()
97 extra.osType = WifiDirectUtils::GetOsType(wifiDirectConnectInfo.remoteNetworkId); in ReportConnEventExtra()
101 auto remoteDeviceType = WifiDirectUtils::GetDeviceType(wifiDirectConnectInfo.remoteNetworkId); in ReportConnEventExtra()
H A Dwifi_direct_utils.cpp193 std::vector<uint8_t> WifiDirectUtils::GetLocalPtk(const std::string &remoteNetworkId) in GetLocalPtk() argument
195 auto remoteUuid = NetworkIdToUuid(remoteNetworkId); in GetLocalPtk()
207 std::vector<uint8_t> WifiDirectUtils::GetRemotePtk(const std::string &remoteNetworkId) in GetRemotePtk() argument
212 auto remoteUuid = NetworkIdToUuid(remoteNetworkId); in GetRemotePtk()
213 int32_t ret = LnnGetRemoteByteInfo(remoteNetworkId.c_str(), BYTE_KEY_REMOTE_PTK, ptkBytes, sizeof(ptkBytes)); in GetRemotePtk()
242 bool WifiDirectUtils::IsDeviceOnline(const std::string &remoteNetworkId) in IsDeviceOnline() argument
244 return LnnGetOnlineStateById(remoteNetworkId.c_str(), CATEGORY_NETWORK_ID); in IsDeviceOnline()
581 auto remoteNetworkId = UuidToNetworkId(remoteDeviceId); in CheckLinkAtDfsChannelConflict() local
584 if (LnnGetOsTypeByNetworkId(remoteNetworkId.c_str(), &osType) != SOFTBUS_OK || osType == OH_OS_TYPE) { in CheckLinkAtDfsChannelConflict()
627 int32_t WifiDirectUtils::GetRemoteConnSubFeature(const std::string &remoteNetworkId, uint64_ argument
[all...]
/foundation/deviceprofile/device_info_manager/services/core/src/deviceprofilemanager/
H A Ddevice_profile_manager.cpp656 std::string remoteNetworkId = deviceInfo.networkId; in FixDataOnDeviceOnline() local
657 HILOGD("remoteNetworkId=%{public}s", ProfileUtils::GetAnonyString(remoteNetworkId).c_str()); in FixDataOnDeviceOnline()
658 if (remoteNetworkId.empty() || deviceInfo.extraData.empty()) { in FixDataOnDeviceOnline()
662 auto task = [this, remoteNetworkId, extraData = deviceInfo.extraData]() { in FixDataOnDeviceOnline()
676 if (ProfileCache::GetInstance().GetUdidByNetWorkId(remoteNetworkId, remoteUdid) != DP_SUCCESS || in FixDataOnDeviceOnline()
678 HILOGE("Get remote udid failed. remoteNetworkId=%{public}s", in FixDataOnDeviceOnline()
679 ProfileUtils::GetAnonyString(remoteNetworkId).c_str()); in FixDataOnDeviceOnline()
763 std::string remoteNetworkId = deviceInfo.networkId; in NotifyNotOHBaseOnline() local
764 HILOGD("networkId:%{public}s", ProfileUtils::GetAnonyString(remoteNetworkId) in NotifyNotOHBaseOnline()
[all...]
H A Dstatic_profile_manager.cpp193 std::string remoteNetworkId = deviceInfo.networkId; in E2ESyncStaticProfile()
194 HILOGD("networkId:%{public}s", ProfileUtils::GetAnonyString(remoteNetworkId).c_str()); in E2ESyncStaticProfile()
195 if (remoteNetworkId.empty()) { in E2ESyncStaticProfile()
200 HILOGI("device is not ohbase. remoteNetworkId=%{public}s", in E2ESyncStaticProfile()
201 ProfileUtils::GetAnonyString(remoteNetworkId).c_str()); in E2ESyncStaticProfile()
209 int32_t syncResult = staticProfileStore_->Sync({remoteNetworkId}, SyncMode::PUSH_PULL); in E2ESyncStaticProfile()
/foundation/multimodalinput/input/intention/cooperate/plugin/include/
H A Dmouse_location.h63 int32_t SendPacket(const std::string &remoteNetworkId, NetPacket &packet);
66 void SyncLocationToRemote(const std::string &remoteNetworkId, const LocationInfo &locationInfo);
/foundation/multimodalinput/input/intention/cooperate/data/include/
H A Dcooperate_params.h40 StartCooperateParam(int32_t userData, const std::string &remoteNetworkId,
45 std::string remoteNetworkId; member

Completed in 11 milliseconds

123