Home
last modified time | relevance | path

Searched refs:dhId (Results 101 - 125 of 453) sorted by relevance

12345678910>>...19

/foundation/distributedhardware/distributed_input/dfx_utils/test/dfxtest/
H A Ddistributed_input_dfx_test.cpp78 std::string dhId = "1ds56v18e1v21v8v1erv15r1v8r1j1ty8"; in HWTEST_F() local
80 HiDumper::GetInstance().SaveNodeInfo(devId, nodeName, dhId); in HWTEST_F()
91 HiDumper::GetInstance().DeleteNodeInfo(devId1, dhId); in HWTEST_F()
93 HiDumper::GetInstance().DeleteNodeInfo(devId, dhId); in HWTEST_F()
99 HisyseventUtil::GetInstance().SysEventWriteBehavior(status, devId, dhId, msg); in HWTEST_F()
135 std::string dhId = "1ds56v18e1v21v8v1erv15r1v8r1j1ty8"; in HWTEST_F() local
138 HisyseventUtil::GetInstance().SysEventWriteFault(status, remoteDevId, dhId, errorCode, msg); in HWTEST_F()
/foundation/distributedhardware/distributed_input/sourcehandler/test/unittest/
H A Ddistributed_input_sourcehandler_test.cpp43 const std::string &dhId, int32_t status, const std::string &data) in OnRegisterResult()
49 const std::string &dhId, int32_t status, const std::string &data) in OnUnregisterResult()
62 std::string dhId = "test"; in HWTEST_F() local
63 int32_t ret = DistributedInputSourceHandler::GetInstance().InitSource(dhId); in HWTEST_F()
78 "dhId", in HWTEST_F()
90 std::string dhId = ""; in HWTEST_F() local
92 devId, dhId, OHOS::DistributedHardware::EnableParam {"version", "attrs" }, registerCallback); in HWTEST_F()
101 "dhId", in HWTEST_F()
113 "dhId", unregisterDInputCallback); in HWTEST_F()
121 std::string dhId in HWTEST_F() local
42 OnRegisterResult(const std::string &devId, const std::string &dhId, int32_t status, const std::string &data) OnRegisterResult() argument
48 OnUnregisterResult(const std::string &devId, const std::string &dhId, int32_t status, const std::string &data) OnUnregisterResult() argument
[all...]
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/fuzztest/componentmanager_fuzzer/
H A Dcomponentmanager_fuzzer.cpp48 std::string dhId(reinterpret_cast<const char*>(data), size); in ComponentManagerFuzzTest()
52 ComponentManager::GetInstance().Enable(networkId, uuid, dhId, dhType); in ComponentManagerFuzzTest()
53 ComponentManager::GetInstance().Disable(networkId, uuid, dhId, dhType); in ComponentManagerFuzzTest()
75 std::string dhId(reinterpret_cast<const char*>(data), size); in OnStateChangedFuzzTest()
78 dhData.OnStateChanged(networkId, dhId, state); in OnStateChangedFuzzTest()
/foundation/distributedhardware/distributed_input/services/source/inputinject/include/
H A Ddistributed_input_inject.h34 int32_t RegisterDistributedHardware(const std::string &devId, const std::string &dhId,
36 int32_t UnregisterDistributedHardware(const std::string &devId, const std::string &dhId);
43 int32_t CreateVirtualTouchScreenNode(const std::string &devId, const std::string &dhId, const uint64_t srcWinId,
45 int32_t RemoveVirtualTouchScreenNode(const std::string &devId, const std::string &dhId);
50 void NotifyNodeMgrScanVirNode(const std::string &devId, const std::string &dhId);
/foundation/distributedhardware/distributed_screen/common/include/
H A Ddscreen_hisysevent.h37 const std::string &dhId, const std::string &errMsg);
39 const std::string &dhId, const std::string &errMsg);
43 void ReportRegisterScreenEvent(const std::string &eventName, const std::string &devId, const std::string &dhId,
45 void ReportUnRegisterScreenEvent(const std::string &eventName, const std::string &devId, const std::string &dhId,
47 void ReportScreenMirrorEvent(const std::string &eventName, const std::string &devId, const std::string &dhId,
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/fuzztest/dscreen_source_proxy/proxyregisterdistributedhardware_fuzzer/
H A Dregisterdistributedhardware_fuzzer.cpp42 int32_t RegisterDistributedHardware(const std::string &devId, const std::string &dhId,
49 int32_t UnregisterDistributedHardware(const std::string &devId, const std::string &dhId,
54 int32_t ConfigDistributedHardware(const std::string &devId, const std::string &dhId,
68 std::string dhId(reinterpret_cast<const char*>(data), size); in RegisterDistributedHardwareFuzzTest()
78 dscreenSourceProxy->RegisterDistributedHardware(devId, dhId, param, reqId); in RegisterDistributedHardwareFuzzTest()
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/audio_source/src/
H A Ddaudio_ipc_callback_stub.cpp64 std::string dhId = data.ReadString(); in OnNotifyRegResultInner() local
68 int32_t ret = OnNotifyRegResult(networkId, dhId, reqId, status, resultData); in OnNotifyRegResultInner()
76 std::string dhId = data.ReadString(); in OnNotifyUnregResultInner() local
80 int32_t ret = OnNotifyUnregResult(networkId, dhId, reqId, status, resultData); in OnNotifyUnregResultInner()
88 std::string dhId = data.ReadString(); in OnHardwareStateChangedInner() local
90 int32_t ret = OnHardwareStateChanged(networkId, dhId, status); in OnHardwareStateChangedInner()
/foundation/distributedhardware/distributed_camera/common/test/unittest/common/utils/
H A Ddcamera_hisysevent_adapter_test.cpp84 std::string dhId = "camera01"; in HWTEST_F() local
87 ReportRegisterCameraFail(eventName, devId, dhId, version, errMsg); in HWTEST_F()
102 std::string dhId = "camera01"; in HWTEST_F() local
105 ReportRegisterCameraEvent(eventName, devId, dhId, version, errMsg); in HWTEST_F()
120 std::string dhId = "camera01"; in HWTEST_F() local
122 ReportCameraOperaterEvent(eventName, devId, dhId, errMsg); in HWTEST_F()
/foundation/distributedhardware/distributed_audio/services/audiomanager/servicesource/src/
H A Ddaudio_ipc_callback_proxy.cpp25 int32_t DAudioIpcCallbackProxy::OnNotifyRegResult(const std::string &devId, const std::string &dhId, in OnNotifyRegResult() argument
35 if (!data.WriteString(devId) || !data.WriteString(dhId) || !data.WriteString(reqId) || in OnNotifyRegResult()
45 int32_t DAudioIpcCallbackProxy::OnNotifyUnregResult(const std::string &devId, const std::string &dhId, in OnNotifyUnregResult() argument
56 if (!data.WriteString(devId) || !data.WriteString(dhId) || !data.WriteString(reqId) || in OnNotifyUnregResult()
66 int32_t DAudioIpcCallbackProxy::OnHardwareStateChanged(const std::string &devId, const std::string &dhId, in OnHardwareStateChanged() argument
77 if (!data.WriteString(devId) || !data.WriteString(dhId) || !data.WriteInt32(status)) { in OnHardwareStateChanged()
H A Ddaudio_source_stub.cpp124 std::string dhId = data.ReadString(); in RegisterDistributedHardwareInner() local
132 int32_t ret = RegisterDistributedHardware(networkId, dhId, enableParam, reqId); in RegisterDistributedHardwareInner()
145 std::string dhId = data.ReadString(); in UnregisterDistributedHardwareInner() local
148 int32_t ret = UnregisterDistributedHardware(networkId, dhId, reqId); in UnregisterDistributedHardwareInner()
161 std::string dhId = data.ReadString(); in ConfigDistributedHardwareInner() local
165 int32_t ret = ConfigDistributedHardware(networkId, dhId, key, value); in ConfigDistributedHardwareInner()
173 std::string dhId = data.ReadString(); in DAudioNotifyInner() local
177 DAudioNotify(networkId, dhId, eventType, eventContent); in DAudioNotifyInner()
/foundation/distributedhardware/distributed_hardware_fwk/common/utils/include/
H A Didistributed_hardware_source.h27 virtual int32_t OnRegisterResult(const std::string &networkId, const std::string &dhId, int32_t status,
33 virtual int32_t OnUnregisterResult(const std::string &networkId, const std::string &dhId, int32_t status,
59 * @param dhId the remote device peripheral dhId.
62 virtual void OnStateChanged(const std::string &networkId, const std::string &dhId, const BusinessState state) = 0;
79 virtual int32_t RegisterDistributedHardware(const std::string &networkId, const std::string &dhId,
81 virtual int32_t UnregisterDistributedHardware(const std::string &networkId, const std::string &dhId,
83 virtual int32_t ConfigDistributedHardware(const std::string &networkId, const std::string &dhId,
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_source/src/callback/
H A Ddscreen_source_callback.cpp24 int32_t DScreenSourceCallback::OnNotifyRegResult(const std::string &devId, const std::string &dhId, in OnNotifyRegResult() argument
27 DHLOGI("DScreenSourceCallback OnNotifyRegResult devId: %{public}s dhId: %{public}s status: %{public}" PRId32, in OnNotifyRegResult()
28 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str(), status); in OnNotifyRegResult()
36 iter->second->OnRegisterResult(devId, dhId, status, data); in OnNotifyRegResult()
44 int32_t DScreenSourceCallback::OnNotifyUnregResult(const std::string &devId, const std::string &dhId, in OnNotifyUnregResult() argument
47 DHLOGI("DScreenSourceCallback OnNotifyUnregResult devId: %{public}s dhId: %{public}s status: %{public}" PRId32, in OnNotifyUnregResult()
48 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str(), status); in OnNotifyUnregResult()
56 iter->second->OnUnregisterResult(devId, dhId, status, data); in OnNotifyUnregResult()
/foundation/distributedhardware/distributed_input/common/include/
H A Dinput_check_param.cpp117 DHLOGE("CheckParam dhId size is too long."); in CheckParam()
145 DHLOGE("CheckParam dhId size is too long."); in CheckParam()
156 bool DInputCheckParam::CheckRegisterParam(const std::string &devId, const std::string &dhId, in CheckRegisterParam() argument
163 if (dhId.empty() || dhId.size() > DEV_ID_LENGTH_MAX) { in CheckRegisterParam()
164 DHLOGE("CheckParam dhId is empty or dhId size too long."); in CheckRegisterParam()
178 bool DInputCheckParam::CheckUnregisterParam(const std::string &devId, const std::string &dhId, in CheckUnregisterParam() argument
185 if (dhId.empty() || dhId in CheckUnregisterParam()
[all...]
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/audio_source/include/
H A Didaudio_source.h32 virtual int32_t RegisterDistributedHardware(const std::string &devId, const std::string &dhId,
34 virtual int32_t UnregisterDistributedHardware(const std::string &devId, const std::string &dhId,
36 virtual int32_t ConfigDistributedHardware(const std::string &devId, const std::string &dhId, const std::string &key,
38 virtual void DAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType,
H A Ddaudio_source_proxy.h32 int32_t RegisterDistributedHardware(const std::string &devId, const std::string &dhId, const EnableParam &param,
34 int32_t UnregisterDistributedHardware(const std::string &devId, const std::string &dhId,
36 int32_t ConfigDistributedHardware(const std::string &devId, const std::string &dhId, const std::string &key,
38 void DAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType,
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sinkfuzztest/sinkservicegetcamerainfo_fuzzer/
H A Dsinkservicegetcamerainfo_fuzzer.cpp37 std::string dhId = "1"; in SinkServiceGetCameraInfoFuzzTest() local
43 std::shared_ptr<DCameraSinkDev> sinkDevice = std::make_shared<DCameraSinkDev>(dhId, sinkCallback); in SinkServiceGetCameraInfoFuzzTest()
46 sinkService->camerasMap_.emplace(dhId, sinkDevice); in SinkServiceGetCameraInfoFuzzTest()
47 sinkService->GetCameraInfo(dhId, cameraInfo); in SinkServiceGetCameraInfoFuzzTest()
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sinkfuzztest/sinkserviceclosechannel_fuzzer/
H A Dsinkserviceclosechannel_fuzzer.cpp36 std::string dhId = "1"; in SinkServiceCloseChannelFuzzTest() local
41 std::shared_ptr<DCameraSinkDev> sinkDevice = std::make_shared<DCameraSinkDev>(dhId, sinkCallback); in SinkServiceCloseChannelFuzzTest()
44 sinkService->camerasMap_.emplace(dhId, sinkDevice); in SinkServiceCloseChannelFuzzTest()
45 sinkService->CloseChannel(dhId); in SinkServiceCloseChannelFuzzTest()
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/sinkfuzztest/sinkservicestopcapture_fuzzer/
H A Dsinkservicestopcapture_fuzzer.cpp37 std::string dhId = "1"; in SinkServiceStopCaptureFuzzTest() local
41 std::shared_ptr<DCameraSinkDev> sinkDevice = std::make_shared<DCameraSinkDev>(dhId, sinkCallback); in SinkServiceStopCaptureFuzzTest()
44 sinkService->camerasMap_.emplace(dhId, sinkDevice); in SinkServiceStopCaptureFuzzTest()
46 sinkService->StopCapture(dhId); in SinkServiceStopCaptureFuzzTest()
/foundation/distributedhardware/distributed_input/services/state/include/
H A Dtouchpad_event_fragment_mgr.h38 * @param dhId the device dhId where event from
44 std::pair<bool, std::vector<RawEvent>> PushEvent(const std::string &dhId, const RawEvent &event);
45 void Clear(const std::string &dhId);
46 std::vector<RawEvent> GetAndClearEvents(const std::string &dhId);
52 std::pair<bool, std::vector<RawEvent>> DealSynEvent(const std::string &dhId);
55 // record the event fragments for the dhid. { dhId, { events }}
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/hidumphelper/
H A Denabled_comps_dump.cpp23 void EnabledCompsDump::DumpEnabledComp(const std::string &networkId, const DHType dhType, const std::string &dhId) in DumpEnabledComp() argument
25 HidumpCompInfo info(networkId, dhType, dhId); in DumpEnabledComp()
31 void EnabledCompsDump::DumpDisabledComp(const std::string &networkId, const DHType dhType, const std::string &dhId) in DumpDisabledComp() argument
33 HidumpCompInfo info(networkId, dhType, dhId); in DumpDisabledComp()
/foundation/distributedhardware/distributed_input/interfaces/ipc/src/
H A Dsharing_dhid_listener_stub.cpp41 std::string dhId = data.ReadString(); in OnRemoteRequest() local
42 int32_t ret = OnSharing(dhId); in OnRemoteRequest()
50 std::string dhId = data.ReadString(); in OnRemoteRequest() local
51 int32_t ret = OnNoSharing(dhId); in OnRemoteRequest()
H A Ddistributed_input_client.cpp55 const std::string &devId, const std::string &dhId, const int32_t &status) in OnResult()
62 if (iter->devId == devId && iter->dhId == dhId && iter->callback != nullptr) { in OnResult()
63 iter->callback->OnRegisterResult(devId, dhId, status, ""); in OnResult()
71 const std::string &devId, const std::string &dhId, const int32_t &status) in OnResult()
78 if (iter->devId == devId && iter->dhId == dhId && iter->callback != nullptr) { in OnResult()
79 iter->callback->OnUnregisterResult(devId, dhId, status, ""); in OnResult()
105 int32_t DistributedInputClient::SharingDhIdListenerCb::OnSharing(const std::string &dhId) in OnSharing() argument
108 DHLOGI("Add Sharing Local dhId in OnSharing()
54 OnResult( const std::string &devId, const std::string &dhId, const int32_t &status) OnResult() argument
70 OnResult( const std::string &devId, const std::string &dhId, const int32_t &status) OnResult() argument
113 OnNoSharing(const std::string &dhId) OnNoSharing() argument
328 RegisterDistributedHardware(const std::string &devId, const std::string &dhId, const std::string &parameters, const std::shared_ptr<RegisterCallback> &callback) RegisterDistributedHardware() argument
355 UnregisterDistributedHardware(const std::string &devId, const std::string &dhId, const std::shared_ptr<UnregisterCallback> &callback) UnregisterDistributedHardware() argument
594 IsStartDistributedInput(const std::string &dhId) IsStartDistributedInput() argument
[all...]
/foundation/distributedhardware/distributed_input/services/source/sourcemanager/src/
H A Ddistributed_input_source_manager.cpp179 std::string dhId = iter->dhId; in Release() local
180 DHLOGI("Release devId: %{public}s, dhId: %{public}s.", GetAnonyString(devId).c_str(), in Release()
181 GetAnonyString(dhId).c_str()); in Release()
182 int32_t ret = DistributedInputInject::GetInstance().UnregisterDistributedHardware(devId, dhId); in Release()
241 bool DistributedInputSourceManager::CheckRegisterParam(const std::string &devId, const std::string &dhId, in CheckRegisterParam() argument
248 if (dhId.empty() || dhId.size() > DEV_ID_LENGTH_MAX) { in CheckRegisterParam()
249 DHLOGE("CheckParam dhId is empty or dhId siz in CheckRegisterParam()
263 RegisterDistributedHardware(const std::string &devId, const std::string &dhId, const std::string &parameters, sptr<IRegisterDInputCallback> callback) RegisterDistributedHardware() argument
355 UnregCallbackNotify(const std::string &devId, const std::string &dhId) UnregCallbackNotify() argument
367 CheckUnregisterParam(const std::string &devId, const std::string &dhId, sptr<IUnregisterDInputCallback> callback) CheckUnregisterParam() argument
385 CheckDeviceIsExists(const std::string &devId, const std::string &dhId, const InputDeviceId &inputDeviceId, std::vector<InputDeviceId>::iterator &it) CheckDeviceIsExists() argument
404 DeleteInputDeviceNodeInfo(const std::string &devId, const std::string &dhId, const std::vector<InputDeviceId>::iterator &it) DeleteInputDeviceNodeInfo() argument
437 UnregisterDistributedHardware(const std::string &devId, const std::string &dhId, sptr<IUnregisterDInputCallback> callback) UnregisterDistributedHardware() argument
1158 RunRegisterCallback( const std::string &devId, const std::string &dhId, const int32_t &status) RunRegisterCallback() argument
1173 RunUnregisterCallback( const std::string &devId, const std::string &dhId, const int32_t &status) RunUnregisterCallback() argument
1454 RunKeyStateCallback(const std::string &sinkId, const std::string &dhId, const uint32_t type, const uint32_t code, const uint32_t value) RunKeyStateCallback() argument
1491 RemoveInputDeviceId(const std::string deviceId, const std::string dhId) RemoveInputDeviceId() argument
[all...]
/foundation/distributedhardware/distributed_input/services/state/test/dinpusinkstatetest/
H A Ddinput_sink_state_test.cpp116 std::string dhId = "dhId_test"; in HWTEST_F() local
117 DhIdState ret = DInputSinkState::GetInstance().GetStateByDhid(dhId); in HWTEST_F()
124 std::string dhId = "dhId_test"; in HWTEST_F() local
126 dhIds.push_back(dhId); in HWTEST_F()
140 std::string dhId = "dhId_test"; in HWTEST_F() local
142 dhIds.push_back(dhId); in HWTEST_F()
170 std::string dhId = "dhId_test"; in HWTEST_F() local
171 auto ret = DInputSinkState::GetInstance().GetTouchPadEventFragMgr()->GetAndClearEvents(dhId); in HWTEST_F()
/foundation/distributedhardware/distributed_screen/services/screenservice/sinkservice/screenregionmgr/1.0/src/
H A Dscreenregionmgr.cpp146 std::string dhId = eventContentJson[KEY_DH_ID].get<std::string>(); in HandleNotifySetUp() local
168 NotifyRemoteSourceSetUpResult(remoteDevId, dhId, ERR_DH_SCREEN_SA_SCREENREGION_SETUP_FAIL, ""); in HandleNotifySetUp()
175 NotifyRemoteSourceSetUpResult(remoteDevId, dhId, ERR_DH_SCREEN_SA_SCREENREGION_SETUP_FAIL, ""); in HandleNotifySetUp()
181 NotifyRemoteSourceSetUpResult(remoteDevId, dhId, ERR_DH_SCREEN_SA_SCREENREGION_START_FAIL, ""); in HandleNotifySetUp()
187 NotifyRemoteSourceSetUpResult(remoteDevId, dhId, DH_SUCCESS, ""); in HandleNotifySetUp()
190 void ScreenRegionManager::NotifyRemoteSourceSetUpResult(const std::string &remoteDevId, const std::string &dhId, in NotifyRemoteSourceSetUpResult() argument
193 DHLOGI("NotifyRemoteSourceSetUpResult, sourceDevId: %{public}s, dhId: %{public}s, errCode: %{public}" PRId32, in NotifyRemoteSourceSetUpResult()
194 GetAnonyString(remoteDevId).c_str(), GetAnonyString(dhId).c_str(), errCode); in NotifyRemoteSourceSetUpResult()
198 eventContentJson[KEY_DH_ID] = dhId; in NotifyRemoteSourceSetUpResult()
204 NotifyRemoteScreenService(remoteDevId, dhId, eventCod in NotifyRemoteSourceSetUpResult()
207 NotifyRemoteScreenService(const std::string &remoteDevId, const std::string &dhId, int32_t eventCode, const std::string &eventContent) NotifyRemoteScreenService() argument
[all...]

Completed in 11 milliseconds

12345678910>>...19