/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sinkservice/screenregionmgr/1.0/src/ |
H A D | screenregionmgr_test.cpp | 81 std::string eventContent = "eventContent"; in HWTEST_F() local 82 ScreenRegionManager::GetInstance().HandleDScreenNotify(remoteDevId, eventCode, eventContent); in HWTEST_F() 84 ScreenRegionManager::GetInstance().HandleDScreenNotify(remoteDevId, eventCode, eventContent); in HWTEST_F() 88 ScreenRegionManager::GetInstance().GetScreenDumpInfo(eventContent); in HWTEST_F() 90 ScreenRegionManager::GetInstance().GetScreenDumpInfo(eventContent); in HWTEST_F() 94 ScreenRegionManager::GetInstance().GetScreenDumpInfo(eventContent); in HWTEST_F() 98 ScreenRegionManager::GetInstance().GetScreenDumpInfo(eventContent); in HWTEST_F() 123 const std::string eventContent = "sourceEvent"; in HWTEST_F() local 125 ScreenRegionManager::GetInstance().NotifyRemoteScreenService(remoteDevId, dhId, eventCode, eventContent); in HWTEST_F() 140 const std::string eventContent = "{\\"dhId\\":\\"SCREEN#0\\", \\"mapRelation\\":{\\"displayId\\":0, \\ HWTEST_F() local 161 const std::string eventContent = "{\\"dhIds\\":\\"SCREEN#0\\", \\"mapRelations\\":{\\"displayIds\\":0, \\ HWTEST_F() local 181 const std::string eventContent = "{\\"dhIds\\"\\"SCREEN#0\\", \\"mapRelations\\":{\\"displayIds\\":0, \\ HWTEST_F() local 201 const std::string eventContent = "{\\"dhId\\":\\"SCREEN#0\\", \\"mapRelation\\":{\\"displayId\\":0, \\ HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sinkservice/dscreenservice/src/ |
H A D | dscreen_sink_stub_test.cpp | 68 const std::string &eventContent) in DScreenNotify() 72 eventContent_ = eventContent; in DScreenNotify() 181 std::string eventContent = "eventContent000"; in HWTEST_F() local 182 sinkProxy.DScreenNotify(devId, eventCode, eventContent); in HWTEST_F() 185 EXPECT_STREQ(eventContent.c_str(), ((sptr<TestDScreenSinkStub> &)sinkStubPtr)->eventContent_.c_str()); in HWTEST_F() 202 std::string eventContent = ""; in HWTEST_F() local 205 data.WriteString(eventContent); in HWTEST_F() 224 std::string eventContent = ""; in HWTEST_F() local 227 data.WriteString(eventContent); in HWTEST_F() 246 std::string eventContent in HWTEST_F() local 67 DScreenNotify(const std::string &devId, int32_t eventCode, const std::string &eventContent) DScreenNotify() argument 290 std::string eventContent = "test"; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sourceservice/dscreenmgr/1.0/src/ |
H A D | dscreen_manager_test.cpp | 261 std::string eventContent = "eventContent111"; in HWTEST_F() local 262 DScreenManager::GetInstance().HandleDScreenNotify(devId, eventCode, eventContent); in HWTEST_F() 265 DScreenManager::GetInstance().HandleDScreenNotify(devId, eventCode, eventContent); in HWTEST_F() 281 std::string eventContent = "eventContent111"; in HWTEST_F() local 282 int32_t ret = DScreenManager::GetInstance().NotifyRemoteScreenService(devId, eventCode, eventContent); in HWTEST_F() 332 DScreenManager::GetInstance().HandleNotifySetUpResult("remoteDevId", "eventContent"); in HWTEST_F() 334 std::string eventContent = "{\"width\":\"width000\",\"errCode\":0}"; in HWTEST_F() local 335 DScreenManager::GetInstance().HandleNotifySetUpResult("remoteDevId", eventContent); in HWTEST_F() 337 eventContent = "{\"dhId\":\"dhId999\",\"width\":\"width000\",\"errContent\":\"errContent000\"}"; in HWTEST_F() 338 DScreenManager::GetInstance().HandleNotifySetUpResult("remoteDevId", eventContent); in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/src/ |
H A D | dcamera_event_cmd.cpp | 97 cJSON *eventContent = cJSON_GetObjectItemCaseSensitive(valueJson, "EventContent"); in Unmarshal() local 98 if (eventContent == nullptr || !cJSON_IsString(eventContent) || (eventContent->valuestring == nullptr)) { in Unmarshal() 102 event->eventContent_ = eventContent->valuestring; in Unmarshal()
|
/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); 49 int32_t eventCode, const std::string &eventContent); 51 void HandleNotifySetUp(const std::string &remoteDevId, const std::string &eventContent);
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/1.0/include/ |
H A D | dscreen_manager.h | 60 void HandleDScreenNotify(const std::string &devId, int32_t eventCode, const std::string &eventContent); 83 int32_t NotifyRemoteScreenService(const std::string &devId, int32_t eventCode, const std::string &eventContent); 85 bool CheckContent(json &eventContent); 86 void HandleNotifySetUpResult(const std::string &remoteDevId, const std::string &eventContent);
|
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_sink/src/ |
H A D | dscreen_sink_proxy.cpp | 139 void DScreenSinkProxy::DScreenNotify(const std::string &devId, int32_t eventCode, const std::string &eventContent) in DScreenNotify() argument 141 if (devId.empty() || devId.size() > DID_MAX_SIZE || eventContent.empty() || in DScreenNotify() 142 eventContent.size() > PARAM_MAX_SIZE) { in DScreenNotify() 159 if (!data.WriteString(devId) || !data.WriteInt32(eventCode) || !data.WriteString(eventContent)) { in DScreenNotify()
|
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/1.0/src/ |
H A D | screenregionmgr.cpp | 70 const std::string &eventContent) in HandleDScreenNotify() 75 HandleNotifySetUp(remoteDevId, eventContent); in HandleDScreenNotify() 132 void ScreenRegionManager::HandleNotifySetUp(const std::string &remoteDevId, const std::string &eventContent) in HandleNotifySetUp() argument 135 json eventContentJson = json::parse(eventContent, nullptr, false); in HandleNotifySetUp() 202 std::string eventContent = eventContentJson.dump(); in NotifyRemoteSourceSetUpResult() local 204 NotifyRemoteScreenService(remoteDevId, dhId, eventCode, eventContent); in NotifyRemoteSourceSetUpResult() 208 int32_t eventCode, const std::string &eventContent) in NotifyRemoteScreenService() 224 remoteSourceSA->DScreenNotify(localDevId, eventCode, eventContent); in NotifyRemoteScreenService() 69 HandleDScreenNotify(const std::string &remoteDevId, int32_t eventCode, const std::string &eventContent) HandleDScreenNotify() argument 207 NotifyRemoteScreenService(const std::string &remoteDevId, const std::string &dhId, int32_t eventCode, const std::string &eventContent) NotifyRemoteScreenService() argument
|
/foundation/distributedhardware/distributed_audio/services/audiomanager/test/fuzztest/sourceservicedaudionotify_fuzzer/ |
H A D | sourceservicedaudionotify_fuzzer.cpp | 37 std::string eventContent(reinterpret_cast<const char*>(data), size); in SourceServiceDAudioNotifyFuzzTest() 42 dAudioSourceService->DAudioNotify(devId, dhId, eventType, eventContent); in SourceServiceDAudioNotifyFuzzTest()
|
/foundation/distributedhardware/distributed_audio/services/audiomanager/test/fuzztest/sinkservicedaudionotify_fuzzer/ |
H A D | sinkservicedaudionotify_fuzzer.cpp | 37 std::string eventContent(reinterpret_cast<const char*>(data), size); in SinkServiceDAudioNotifyFuzzTest() 42 dAudioSinkService->DAudioNotify(devId, dhId, eventType, eventContent); in SinkServiceDAudioNotifyFuzzTest()
|
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/fuzztest/sourceproxydaudionotify_fuzzer/ |
H A D | sourceproxydaudionotify_fuzzer.cpp | 37 std::string eventContent(reinterpret_cast<const char*>(data), size); in SourceProxyDAudioNotifyFuzzTest() 49 dAudioProxy->DAudioNotify(devId, dhId, eventType, eventContent); in SourceProxyDAudioNotifyFuzzTest()
|
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/fuzztest/sinkproxydaudionotify_fuzzer/ |
H A D | sinkproxydaudionotify_fuzzer.cpp | 37 std::string eventContent(reinterpret_cast<const char*>(data), size); in SinkProxyDAudioNotifyFuzzTest() 49 dAudioProxy->DAudioNotify(devId, dhId, eventType, eventContent); in SinkProxyDAudioNotifyFuzzTest()
|
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxydscreennotify_fuzzer/ |
H A D | dscreennotify_fuzzer.cpp | 37 std::string eventContent(reinterpret_cast<const char*>(data), size); in DScreenNotifyFuzzTest() 52 dscreenSourceProxy->DScreenNotify(devId, eventCode, eventContent); in DScreenNotifyFuzzTest()
|
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_sink_proxy/sinkproxydscreennotify_fuzzer/ |
H A D | sinkproxydscreennotify_fuzzer.cpp | 37 std::string eventContent(reinterpret_cast<const char*>(data), size); in DScreenNotifyFuzzTest() 51 dscreenSinkProxy->DScreenNotify(devId, eventCode, eventContent); in DScreenNotifyFuzzTest()
|
/foundation/distributedhardware/distributed_audio/services/audiomanager/managersink/src/ |
H A D | daudio_sink_manager.cpp | 131 const int32_t eventType, const std::string &eventContent)
in HandleDAudioNotify() 134 GetAnonyString(devId).c_str(), eventType, eventContent.c_str());
in HandleDAudioNotify() 136 if (eventContent.length() > DAUDIO_MAX_JSON_LEN || eventContent.empty()
in HandleDAudioNotify() 142 cJSON *jParam = cJSON_Parse(eventContent.c_str());
in HandleDAudioNotify() 158 NotifyEvent(devId, eventType, eventContent);
in HandleDAudioNotify() 200 std::string eventContent = std::string(jsonData);
in CreateAudioDevice() local 205 NotifyEvent(devId, CTRL_OPENED, eventContent);
in CreateAudioDevice() 243 const std::string &eventContent)
in DAudioNotify() 253 sinkProxy->second->DAudioNotify(localNetworkId_, dhId, eventType, eventContent);
in DAudioNotify() 130 HandleDAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType, const std::string &eventContent) HandleDAudioNotify() argument 242 DAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType, const std::string &eventContent) DAudioNotify() argument 275 NotifyEvent(const std::string &devId, const int32_t eventType, const std::string &eventContent) NotifyEvent() argument [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenmgr/1.0/src/ |
H A D | dscreen_manager.cpp | 392 const std::string &eventContent) in HandleDScreenNotify() 397 HandleNotifySetUpResult(devId, eventContent); in HandleDScreenNotify() 405 const std::string &eventContent) in NotifyRemoteScreenService() 421 remoteSinkSA->DScreenNotify(localDevId, eventCode, eventContent); in NotifyRemoteScreenService() 500 std::string eventContent = eventContentJson.dump(); in NotifyRemoteSinkSetUp() local 501 DHLOGD("start notify remote screen, eventContent: %{public}s", eventContent.c_str()); in NotifyRemoteSinkSetUp() 502 NotifyRemoteScreenService(devId, eventCode, eventContent); in NotifyRemoteSinkSetUp() 505 bool DScreenManager::CheckContent(json &eventContent) in CheckContent() argument 507 if (!IsString(eventContent, KEY_DH_I in CheckContent() 391 HandleDScreenNotify(const std::string &devId, int32_t eventCode, const std::string &eventContent) HandleDScreenNotify() argument 404 NotifyRemoteScreenService(const std::string &devId, int32_t eventCode, const std::string &eventContent) NotifyRemoteScreenService() argument 519 HandleNotifySetUpResult(const std::string &remoteDevId, const std::string &eventContent) HandleNotifySetUpResult() argument [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/dscreenservice/src/ |
H A D | dscreen_sink_stub.cpp | 133 std::string eventContent = data.ReadString(); in DScreenNotifyInner() local 134 if (devId.empty() || devId.size() > DID_MAX_SIZE || eventContent.empty() || in DScreenNotifyInner() 135 eventContent.size() > PARAM_MAX_SIZE) { in DScreenNotifyInner() 139 DScreenNotify(devId, eventCode, eventContent); in DScreenNotifyInner()
|
H A D | dscreen_sink_service.cpp | 116 void DScreenSinkService::DScreenNotify(const std::string &devId, int32_t eventCode, const std::string &eventContent) in DScreenNotify() argument 118 DHLOGI("DScreenNotify, devId:%{public}s, eventCode: %{public}" PRId32 ", eventContent:%{public}s", in DScreenNotify() 119 GetAnonyString(devId).c_str(), eventCode, eventContent.c_str()); in DScreenNotify() 120 V1_0::ScreenRegionManager::GetInstance().HandleDScreenNotify(devId, eventCode, eventContent); in DScreenNotify()
|
/foundation/distributedhardware/distributed_screen/services/screenservice/test/fuzztest/sourceservice/dscreenservice/dscreensourceservice_fuzzer/ |
H A D | dscreensourceservice_fuzzer.cpp | 40 std::string eventContent(reinterpret_cast<const char*>(data), size); in DscreenSourceServiceFuzzTest() 48 sourceServicePtr->DScreenNotify(devId, eventCode, eventContent); in DscreenSourceServiceFuzzTest()
|
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/unittest/audiosinktest/src/ |
H A D | daudio_sink_proxy_test.cpp | 82 const std::string eventContent = "eventContent"; in HWTEST_F() local 87 dAudioProxy->DAudioNotify(devId, dhId, eventType, eventContent); in HWTEST_F() 90 dAudioProxy->DAudioNotify(devId, dhId, eventType, eventContent); in HWTEST_F()
|
/foundation/distributedhardware/distributed_audio/services/audiomanager/managersink/include/ |
H A D | daudio_sink_manager.h | 55 const std::string &eventContent); 57 const std::string &eventContent); 59 void NotifyEvent(const std::string &devId, const int32_t eventType, const std::string &eventContent);
|
/foundation/distributedhardware/distributed_screen/services/screenservice/test/fuzztest/sourceservice/dscreenmgr/dscreenmanager_fuzzer/ |
H A D | dscreenmanager_fuzzer.cpp | 116 std::string eventContent(reinterpret_cast<const char*>(data), size); in NotifyRemoteScreenServiceFuzzTest() 119 dscreenManager->NotifyRemoteScreenService(devId, eventCode, eventContent); in NotifyRemoteScreenServiceFuzzTest() 129 std::string eventContent(reinterpret_cast<const char*>(data), size); in HandleNotifySetUpResultFuzzTest() 132 dscreenManager->HandleNotifySetUpResult(remoteDevId, eventContent); in HandleNotifySetUpResultFuzzTest()
|
/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/src/ |
H A D | daudio_source_manager.cpp | 286 const int32_t eventType, const std::string &eventContent) in HandleDAudioNotify() 289 GetAnonyString(devId).c_str(), eventType, eventContent.c_str()); in HandleDAudioNotify() 290 if (eventContent.length() > DAUDIO_MAX_JSON_LEN || eventContent.empty()) { in HandleDAudioNotify() 295 cJSON *jParam = cJSON_Parse(eventContent.c_str()); in HandleDAudioNotify() 313 AudioEvent audioEvent(eventType, eventContent); in HandleDAudioNotify() 320 const std::string &eventContent) in DAudioNotify() 329 sinkProxy->second->DAudioNotify(localDevId_, dhId, eventType, eventContent); in DAudioNotify() 344 remoteSvrProxy->DAudioNotify(localDevId_, dhId, eventType, eventContent); in DAudioNotify() 285 HandleDAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType, const std::string &eventContent) HandleDAudioNotify() argument 319 DAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType, const std::string &eventContent) DAudioNotify() argument
|
/foundation/distributedhardware/distributed_audio/services/audiomanager/servicesink/src/ |
H A D | daudio_sink_service.cpp | 110 const std::string &eventContent)
in DAudioNotify() 114 DAudioSinkManager::GetInstance().HandleDAudioNotify(devId, dhId, eventType, eventContent);
in DAudioNotify() 109 DAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType, const std::string &eventContent) DAudioNotify() argument
|
/foundation/distributedhardware/distributed_audio/services/audiomanager/test/unittest/servicesink/src/ |
H A D | daudio_sink_service_test.cpp | 128 std::string eventContent = "OPEN_MIC"; in HWTEST_F() local 133 sinkSrv_->DAudioNotify(devId, dhId, eventType, eventContent); in HWTEST_F()
|