/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sinkservice/screenregionmgr/1.0/src/ |
H A D | screenregionmgr_test.cpp | 45 const std::string remoteDevId = "sourceDevId"; in HWTEST_F() local 48 std::shared_ptr<ScreenRegion> screenRegion = std::make_shared<ScreenRegion>(remoteDevId, screenId, displayId); in HWTEST_F() 49 ScreenRegionManager::GetInstance().screenRegions_[remoteDevId] = screenRegion; in HWTEST_F() 63 const std::string remoteDevId = "sourceDevId"; in HWTEST_F() local 65 ScreenRegionManager::GetInstance().screenRegions_[remoteDevId] = screenRegion; in HWTEST_F() 79 std::string remoteDevId = "sourceDevId"; in HWTEST_F() local 82 ScreenRegionManager::GetInstance().HandleDScreenNotify(remoteDevId, eventCode, eventContent); in HWTEST_F() 84 ScreenRegionManager::GetInstance().HandleDScreenNotify(remoteDevId, eventCode, eventContent); in HWTEST_F() 89 ScreenRegionManager::GetInstance().screenRegions_[remoteDevId] = nullptr; in HWTEST_F() 91 std::shared_ptr<ScreenRegion> screenRegion = std::make_shared<ScreenRegion>(remoteDevId, screenI in HWTEST_F() 120 const std::string remoteDevId = "sourceDevId"; HWTEST_F() local 139 const std::string remoteDevId = "sourceDevId"; HWTEST_F() local 160 const std::string remoteDevId = "sourceDevId"; HWTEST_F() local 180 const std::string remoteDevId = "sourceDevId"; HWTEST_F() local 200 const std::string remoteDevId = "sourceDevId"; HWTEST_F() local 220 const std::string remoteDevId = "sourceDevId"; HWTEST_F() local [all...] |
H A D | screenregion_test.cpp | 33 const std::string remoteDevId = "sourceDevId"; in SetUp() local 36 screenRegion_ = std::make_shared<ScreenRegion>(remoteDevId, screenId, displayId); in SetUp() 102 screenRegion_->remoteDevId_ = "remoteDevId"; in HWTEST_F()
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/1.0/src/ |
H A D | screenregionmgr.cpp | 61 DHLOGE("Release region failed, remoteDevId: %{public}s, err: %{public}" PRId32, in ReleaseAllRegions() 69 void ScreenRegionManager::HandleDScreenNotify(const std::string &remoteDevId, int32_t eventCode, in HandleDScreenNotify() argument 72 DHLOGI("HandleDScreenNotify, remoteDevId: %{public}s, eventCode: %{public}" PRId32, in HandleDScreenNotify() 73 GetAnonyString(remoteDevId).c_str(), eventCode); in HandleDScreenNotify() 75 HandleNotifySetUp(remoteDevId, eventContent); in HandleDScreenNotify() 99 std::string remoteDevId = screenRegion->GetRemoteDevId(); in GetScreenDumpInfo() local 110 " \"remoteDevId\" : \"" + GetAnonyString(remoteDevId) + "\",\n" + in GetScreenDumpInfo() 132 void ScreenRegionManager::HandleNotifySetUp(const std::string &remoteDevId, const std::string &eventContent) in HandleNotifySetUp() argument 134 DHLOGI("HandleNotifySetUp, remoteDevId in HandleNotifySetUp() 190 NotifyRemoteSourceSetUpResult(const std::string &remoteDevId, const std::string &dhId, int32_t errCode, const std::string &errContent) NotifyRemoteSourceSetUpResult() argument 207 NotifyRemoteScreenService(const std::string &remoteDevId, const std::string &dhId, int32_t eventCode, const std::string &eventContent) NotifyRemoteScreenService() argument 251 PublishMessage(const DHTopic topic, const uint64_t &screenId, const std::string &remoteDevId, const int32_t &windowId, std::shared_ptr<WindowProperty> windowProperty) PublishMessage() argument [all...] |
H A D | screenregion.cpp | 30 ScreenRegion::ScreenRegion(const std::string &remoteDevId, uint64_t screenId, uint64_t displayId) in ScreenRegion() argument 33 remoteDevId_ = remoteDevId; in ScreenRegion() 135 DHLOGI("ScreenRegion::SetUp, remoteDevId: %{public}s", GetAnonyString(remoteDevId_).c_str()); in SetUp() 159 DHLOGI("ScreenRegion::Start remoteDevId: %{public}s", GetAnonyString(remoteDevId_).c_str()); in Start() 176 DHLOGI("ScreenRegion::Stop remoteDevId: %{public}s", GetAnonyString(remoteDevId_).c_str()); in Stop()
|
/foundation/distributedhardware/distributed_input/services/transportbase/src/ |
H A D | distributed_input_transport_base.cpp | 187 int32_t DistributedInputTransportBase::CheckDeviceSessionState(const std::string &remoteDevId) in CheckDeviceSessionState() argument 190 if (remoteDevSessionMap_.find(remoteDevId) == remoteDevSessionMap_.end()) { in CheckDeviceSessionState() 193 DHLOGI("CheckDeviceSessionState has opened, remoteDevId: %{public}s", GetAnonyString(remoteDevId).c_str()); in CheckDeviceSessionState() 208 int32_t DistributedInputTransportBase::CreateClientSocket(const std::string &remoteDevId) in CreateClientSocket() argument 210 DHLOGI("CreateClientSocket start, peerNetworkId: %{public}s", GetAnonyString(remoteDevId).c_str()); in CreateClientSocket() 212 std::string peerSessionName = SESSION_NAME + remoteDevId.substr(0, INTERCEPT_STRING_LENGTH); in CreateClientSocket() 216 .peerNetworkId = const_cast<char*>(remoteDevId.c_str()), in CreateClientSocket() 226 int32_t DistributedInputTransportBase::StartSession(const std::string &remoteDevId) in StartSession() argument 228 int32_t ret = CheckDeviceSessionState(remoteDevId); in StartSession() 294 StopSession(const std::string &remoteDevId) StopSession() argument 359 RunSessionStateCallback(const std::string &remoteDevId, const uint32_t sessionState) RunSessionStateCallback() argument 370 CountSession(const std::string &remoteDevId) CountSession() argument 375 EraseSessionId(const std::string &remoteDevId) EraseSessionId() argument [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/1.0/include/ |
H A D | screenregionmgr.h | 35 void HandleDScreenNotify(const std::string &remoteDevId, int32_t eventCode, const std::string &eventContent); 37 void PublishMessage(const DHTopic topic, const uint64_t &screenId, const std::string &remoteDevId, 48 int32_t NotifyRemoteScreenService(const std::string &remoteDevId, const std::string &dhId, 51 void HandleNotifySetUp(const std::string &remoteDevId, const std::string &eventContent); 52 void NotifyRemoteSourceSetUpResult(const std::string &remoteDevId, const std::string &dhId,
|
H A D | screenregion.h | 44 ScreenRegion(const std::string &remoteDevId, uint64_t screenId, uint64_t displayId);
|
/foundation/distributedhardware/distributed_input/services/transportbase/include/ |
H A D | distributed_input_transport_base.h | 50 int32_t StartSession(const std::string &remoteDevId); 51 void StopSession(const std::string &remoteDevId); 65 int32_t CountSession(const std::string &remoteDevId); 66 void EraseSessionId(const std::string &remoteDevId); 74 int32_t CheckDeviceSessionState(const std::string &remoteDevId); 78 void RunSessionStateCallback(const std::string &remoteDevId, const uint32_t sessionState); 81 int32_t CreateClientSocket(const std::string &remoteDevId);
|
/foundation/distributedhardware/distributed_input/dfx_utils/test/dfxtest/ |
H A D | distributed_input_dfx_test.cpp | 104 std::string remoteDevId = "umkyu1b165e1be98151891erbe8r91ev"; in HWTEST_F() local 111 HiDumper::GetInstance().CreateSessionInfo(remoteDevId, sessionId, mySessionName, peerSessionName, sessionStatus); in HWTEST_F() 117 HiDumper::GetInstance().CreateSessionInfo(remoteDevId, sessionId, mySessionName, peerSessionName, sessionStatus); in HWTEST_F() 122 HiDumper::GetInstance().SetSessionStatus(remoteDevId, sessionStatus); in HWTEST_F() 127 HiDumper::GetInstance().DeleteSessionInfo(remoteDevId); in HWTEST_F() 137 HisyseventUtil::GetInstance().SysEventWriteFault(status, remoteDevId, errorCode, msg); in HWTEST_F() 138 HisyseventUtil::GetInstance().SysEventWriteFault(status, remoteDevId, dhId, errorCode, msg); in HWTEST_F()
|
/foundation/distributedhardware/distributed_input/test/fuzztest/distributedinputsourcetransport_fuzzer/ |
H A D | distributed_input_source_transport_fuzzer.cpp | 39 std::string remoteDevId(reinterpret_cast<const char*>(data), size); in OpenInputSoftbusFuzzTest() 43 DistributedInput::DistributedInputSourceTransport::GetInstance().OpenInputSoftbus(remoteDevId, true); in OpenInputSoftbusFuzzTest() 44 DistributedInput::DistributedInputSourceTransport::GetInstance().CloseInputSoftbus(remoteDevId, true); in OpenInputSoftbusFuzzTest()
|
/foundation/distributedhardware/distributed_input/test/fuzztest/distributedinputtransportbase_fuzzer/ |
H A D | distributed_input_transport_base_fuzzer.cpp | 38 std::string remoteDevId(reinterpret_cast<const char*>(data), size); in StartSessionFuzzTest() 42 DistributedInput::DistributedInputTransportBase::GetInstance().StartSession(remoteDevId); in StartSessionFuzzTest() 43 DistributedInput::DistributedInputTransportBase::GetInstance().StopSession(remoteDevId); in StartSessionFuzzTest()
|
/foundation/distributedhardware/distributed_input/dfx_utils/src/ |
H A D | hidumper.cpp | 160 void HiDumper::DeleteSessionInfo(const std::string &remoteDevId) in DeleteSessionInfo() argument 164 auto iter = sessionInfos_.find(remoteDevId); in DeleteSessionInfo() 196 void HiDumper::CreateSessionInfo(const std::string &remoteDevId, const int32_t &sessionId, in CreateSessionInfo() argument 200 auto iter = sessionInfos_.find(remoteDevId); in CreateSessionInfo() 208 sessionInfos_[remoteDevId] = sessionInfo; in CreateSessionInfo() 212 void HiDumper::SetSessionStatus(const std::string &remoteDevId, const SessionStatus &sessionStatus) in SetSessionStatus() argument 215 auto iter = sessionInfos_.find(remoteDevId); in SetSessionStatus() 220 sessionInfos_[remoteDevId].sessionState = sessionStatus; in SetSessionStatus()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/transport/ |
H A D | dh_transport.h | 49 int32_t CreateClientSocket(const std::string &remoteDevId); 50 bool IsDeviceSessionOpened(const std::string &remoteDevId, int32_t &socketId); 52 void ClearDeviceSocketOpened(const std::string &remoteDevId);
|
/foundation/distributedhardware/distributed_input/dfx_utils/include/ |
H A D | hidumper.h | 60 void CreateSessionInfo(const std::string &remoteDevId, const int32_t &sessionId, const std::string &mySessionName, 62 void SetSessionStatus(const std::string &remoteDevId, const SessionStatus &sessionStatus); 63 void DeleteSessionInfo(const std::string &remoteDevId); 75 // the unordered_map's key is remoteDevId.
|
/foundation/distributedhardware/distributed_input/services/transportbase/test/transbaseunittest/ |
H A D | distributed_input_transbase_test.cpp | 65 std::string remoteDevId = ""; in HWTEST_F() local 66 int32_t ret = DistributedInputTransportBase::GetInstance().StartSession(remoteDevId); in HWTEST_F() 182 std::string remoteDevId = "remoteDevId_test"; in HWTEST_F() local 183 DistributedInputTransportBase::GetInstance().StopSession(remoteDevId); in HWTEST_F() 189 std::string remoteDevId = "remoteDevId_test"; in HWTEST_F() local 193 DistributedInputTransportBase::GetInstance().RunSessionStateCallback(remoteDevId, sessionState); in HWTEST_F() 195 auto ret = DistributedInputTransportBase::GetInstance().CountSession(remoteDevId); in HWTEST_F()
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/2.0/include/ |
H A D | screenregion.h | 37 ScreenRegion(const std::string &remoteDevId); 62 void PublishMessage(const DHTopic topic, const uint64_t &screenId, const std::string &remoteDevId,
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/2.0/src/ |
H A D | screenregionmgr.cpp | 83 DHLOGE("Release region failed, remoteDevId: %{public}s, err: %{public}" PRId32, in Release() 134 std::string remoteDevId = screenRegion->GetRemoteDevId(); in GetScreenDumpInfo() local 146 << " \"remoteDevId\" : \"" << GetAnonyString(remoteDevId) << "\",\n" in GetScreenDumpInfo()
|
H A D | screenregion.cpp | 38 ScreenRegion::ScreenRegion(const std::string &remoteDevId) : screenId_(0), displayId_(0), remoteDevId_(remoteDevId) in ScreenRegion() argument 70 DHLOGI("ScreenRegion::Release remoteDevId: %{public}s", GetAnonyString(remoteDevId_).c_str()); in Release() 121 DHLOGI("StopReceiverEngine, remoteDevId: %{public}s, screenId is: %{public}" PRIu64, in StopReceiverEngine() 265 const std::string &remoteDevId, const int32_t &windowId, std::shared_ptr<WindowProperty> windowProperty) in PublishMessage() 282 messageJosn[SOURCE_DEV_ID] = remoteDevId; in PublishMessage() 264 PublishMessage(const DHTopic topic, const uint64_t &screenId, const std::string &remoteDevId, const int32_t &windowId, std::shared_ptr<WindowProperty> windowProperty) PublishMessage() argument
|
/foundation/distributedhardware/distributed_screen/services/screenservice/test/fuzztest/sourceservice/dscreenmgr/dscreenmanager_fuzzer/ |
H A D | dscreenmanager_fuzzer.cpp | 128 std::string remoteDevId(reinterpret_cast<const char*>(data), size); in HandleNotifySetUpResultFuzzTest() 132 dscreenManager->HandleNotifySetUpResult(remoteDevId, eventContent); in HandleNotifySetUpResultFuzzTest()
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/1.0/src/ |
H A D | dscreen_manager.cpp | 382 " \"remoteDevId\" : \"" + GetAnonyString(devId) + "\",\n" + in GetScreenDumpInfo() 519 void DScreenManager::HandleNotifySetUpResult(const std::string &remoteDevId, const std::string &eventContent) in HandleNotifySetUpResult() argument 521 DHLOGI("HandleNotifySetUpResult, remoteDevId:%{public}s", GetAnonyString(remoteDevId).c_str()); in HandleNotifySetUpResult() 537 std::string dScreenIdx = remoteDevId + SEPERATOR + dhId; in HandleNotifySetUpResult() 540 DHLOGE("dScreen not found, remoteDevId:%{public}s, dhId:%{public}s", in HandleNotifySetUpResult() 541 GetAnonyString(remoteDevId).c_str(), GetAnonyString(dhId).c_str()); in HandleNotifySetUpResult()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/transport/ |
H A D | dh_transport.cpp | 344 void DHTransport::ClearDeviceSocketOpened(const std::string &remoteDevId) in ClearDeviceSocketOpened() argument 346 if (!IsIdLengthValid(remoteDevId)) { in ClearDeviceSocketOpened() 350 remoteDevSocketIds_.erase(remoteDevId); in ClearDeviceSocketOpened()
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/1.0/include/ |
H A D | dscreen_manager.h | 86 void HandleNotifySetUpResult(const std::string &remoteDevId, const std::string &eventContent);
|
/foundation/distributedhardware/distributed_input/services/source/transport/include/ |
H A D | distributed_input_source_transport.h | 57 int32_t OpenInputSoftbus(const std::string &remoteDevId, bool isToSrc); 58 void CloseInputSoftbus(const std::string &remoteDevId, bool isToSrc);
|
/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sinkservice/screenregionmgr/2.0/src/ |
H A D | screenregion_test.cpp | 36 const std::string remoteDevId = "sourceDevId"; in SetUp() local 37 screenRegion_ = std::make_shared<ScreenRegion>(remoteDevId); in SetUp() 189 screenRegion_->remoteDevId_ = "remoteDevId"; in HWTEST_F()
|
/foundation/distributedhardware/distributed_input/services/source/transport/src/ |
H A D | distributed_input_source_transport.cpp | 87 int32_t DistributedInputSourceTransport::OpenInputSoftbus(const std::string &remoteDevId, bool isToSrc) in OpenInputSoftbus() argument 89 int32_t ret = DistributedInputTransportBase::GetInstance().StartSession(remoteDevId); in OpenInputSoftbus() 91 DHLOGE("StartSession fail! remoteDevId:%{public}s.", GetAnonyString(remoteDevId).c_str()); in OpenInputSoftbus() 100 StartLatencyThread(remoteDevId); in OpenInputSoftbus() 101 DHLOGI("LatencyThread started, remoteDevId: %{public}s.", GetAnonyString(remoteDevId).c_str()); in OpenInputSoftbus() 118 void DistributedInputSourceTransport::CloseInputSoftbus(const std::string &remoteDevId, bool isToSrc) in CloseInputSoftbus() argument 120 DistributedInputTransportBase::GetInstance().StopSession(remoteDevId); in CloseInputSoftbus()
|