/foundation/distributedhardware/distributed_camera/services/channel/src/ |
H A D | dcamera_softbus_latency.cpp | 44 int32_t DCameraSoftbusLatency::StartSoftbusTimeSync(const std::string& devId) in StartSoftbusTimeSync() argument 49 if (refCount_[devId] > REF_INITIAL) { in StartSoftbusTimeSync() 50 refCount_[devId]++; in StartSoftbusTimeSync() 51 DHLOGD("No need to start time offset, refCount just plus one and now is: %{public}d.", refCount_[devId]); in StartSoftbusTimeSync() 57 int32_t ret = StartTimeSync(DCAMERA_PKG_NAME.c_str(), devId.c_str(), LOW_ACCURACY, NORMAL_PERIOD, in StartSoftbusTimeSync() 61 GetAnonyString(devId).c_str()); in StartSoftbusTimeSync() 65 refCount_[devId]++; in StartSoftbusTimeSync() 66 offsets_.emplace(devId, 0); in StartSoftbusTimeSync() 72 int32_t DCameraSoftbusLatency::StopSoftbusTimeSync(const std::string& devId) in StopSoftbusTimeSync() argument 77 if (refCount_[devId] in StopSoftbusTimeSync() 100 SetTimeSyncInfo(const int32_t microsecond, const std::string& devId) SetTimeSyncInfo() argument 106 GetTimeSyncInfo(const std::string& devId) GetTimeSyncInfo() argument [all...] |
/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/src/ |
H A D | daudio_source_manager.cpp | 149 static bool CheckParams(const std::string &devId, const std::string &dhId) in CheckParams() argument 152 if (devId.empty() || dhId.empty() || in CheckParams() 153 devId.size() > MAX_DEVICE_ID_LENGTH || dhId.size() > MAX_DISTRIBUTED_HARDWARE_ID_LENGTH) { in CheckParams() 159 int32_t DAudioSourceManager::EnableDAudio(const std::string &devId, const std::string &dhId, in EnableDAudio() argument 162 DHLOGI("Enable distributed audio, devId: %{public}s, dhId: %{public}s, version: %{public}s, reqId: %{public}s.", in EnableDAudio() 163 GetAnonyString(devId).c_str(), dhId.c_str(), version.c_str(), reqId.c_str()); in EnableDAudio() 168 cJSON_AddStringToObject(jParam, KEY_DEV_ID, devId.c_str()); in EnableDAudio() 195 std::string devId = ParseStringFromArgs(args, KEY_DEV_ID); in DoEnableDAudio() local 200 DHLOGI("Do Enable distributed audio, devId: %{public}s, dhId: %{public}s, version:%{public}s, reqId:%{public}s.", in DoEnableDAudio() 201 GetAnonyString(devId) in DoEnableDAudio() 227 DisableDAudio(const std::string &devId, const std::string &dhId, const std::string &reqId) DisableDAudio() argument 259 std::string devId = ParseStringFromArgs(args, KEY_DEV_ID); DoDisableDAudio() local 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 349 OnEnableDAudio(const std::string &devId, const std::string &dhId, const int32_t result) OnEnableDAudio() argument 365 OnHardwareStateChanged(const std::string &devId, const std::string &dhId, const int32_t state) OnHardwareStateChanged() argument 375 OnDataSyncTrigger(const std::string &devId) OnDataSyncTrigger() argument 383 OnDisableDAudio(const std::string &devId, const std::string &dhId, const int32_t result) OnDisableDAudio() argument 399 CreateAudioDevice(const std::string &devId) CreateAudioDevice() argument 412 DeleteAudioDevice(const std::string &devId, const std::string &dhId) DeleteAudioDevice() argument 433 GetRequestId(const std::string &devId, const std::string &dhId) GetRequestId() argument 449 ClearAudioDev(const std::string &devId) ClearAudioDev() argument [all...] |
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/unittest/audiosourcetest/src/ |
H A D | daudio_ipc_callback_test.cpp | 48 const std::string devId = "devId"; in HWTEST_F() local 55 int32_t ret = dAudioIpcCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F() 69 const std::string devId = "devId"; in HWTEST_F() local 74 int32_t ret = dAudioIpcCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F() 89 std::string devId ; in HWTEST_F() local 90 devId.resize(DAUDIO_MAX_DEVICE_ID_LEN); in HWTEST_F() 95 int32_t ret = dAudioIpcCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F() 97 devId in HWTEST_F() 116 const std::string devId = "devId"; HWTEST_F() local 137 const std::string devId = "devId"; HWTEST_F() local 157 std::string devId ; HWTEST_F() local 256 const std::string devId = "123"; HWTEST_F() local 276 std::string devId = "123"; HWTEST_F() local 301 const std::string devId = "123"; HWTEST_F() local 320 std::string devId ; HWTEST_F() local [all...] |
H A D | daudio_source_proxy_test.cpp | 57 const std::string devId = "devId"; in HWTEST_F() local 64 int32_t ret = dAudioProxy->RegisterDistributedHardware(devId, dhId, param, reqId); in HWTEST_F() 66 ret = dAudioProxy->UnregisterDistributedHardware(devId, dhId, reqId); in HWTEST_F() 82 std::string devId; in HWTEST_F() local 83 devId.resize(DAUDIO_MAX_DEVICE_ID_LEN); in HWTEST_F() 90 int32_t ret = dAudioProxy->RegisterDistributedHardware(devId, dhId, param, reqId); in HWTEST_F() 92 ret = dAudioProxy->UnregisterDistributedHardware(devId, dhId, reqId); in HWTEST_F() 107 std::string devId; in HWTEST_F() local 108 devId in HWTEST_F() 136 const std::string devId = "devId"; HWTEST_F() local 157 std::string devId; HWTEST_F() local [all...] |
H A D | daudio_source_handler_test.cpp | 47 const std::string devId = "devId"; in HWTEST_F() local 54 int32_t ret = DAudioSourceHandler::GetInstance().RegisterDistributedHardware(devId, dhId, param, callback); in HWTEST_F() 57 ret = DAudioSourceHandler::GetInstance().UnregisterDistributedHardware(devId, dhId, uncallback); in HWTEST_F() 69 const std::string devId = "devId"; in HWTEST_F() local 77 int32_t ret = DAudioSourceHandler::GetInstance().RegisterDistributedHardware(devId, dhId, param, callback); in HWTEST_F() 80 ret = DAudioSourceHandler::GetInstance().UnregisterDistributedHardware(devId, dhId, uncallback); in HWTEST_F() 92 const std::string devId = "devId"; in HWTEST_F() local 117 std::string devId; HWTEST_F() local 175 std::string devId = "devId"; HWTEST_F() local 197 std::string devId; HWTEST_F() local 216 std::string devId = "devId"; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcamera/ |
H A D | dcamera_service_state_listener.cpp | 48 int32_t DCameraServiceStateListener::OnRegisterNotify(const std::string& devId, const std::string& dhId, in OnRegisterNotify() argument 51 DHLOGI("OnRegisterNotify devId: %{public}s, dhId: %{public}s, status: %{public}d", in OnRegisterNotify() 52 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str(), status); in OnRegisterNotify() 57 DHLOGI("thread delete devId: %{public}s dhId: %{public}s", GetAnonyString(devId).c_str(), in OnRegisterNotify() 60 DCameraIndex camIndex(devId, dhId); in OnRegisterNotify() 66 int32_t ret = callbackProxy_->OnNotifyRegResult(devId, dhId, reqId, status, data); in OnRegisterNotify() 76 int32_t ret = callbackProxy_->OnNotifyRegResult(devId, dhId, reqId, status, data); in OnRegisterNotify() 84 int32_t DCameraServiceStateListener::OnUnregisterNotify(const std::string& devId, const std::string& dhId, in OnUnregisterNotify() argument 87 DHLOGI("OnUnregisterNotify devId in OnUnregisterNotify() 118 OnHardwareStateChanged(const std::string &devId, const std::string &dhId, int32_t status) OnHardwareStateChanged() argument 131 OnDataSyncTrigger(const std::string &devId) OnDataSyncTrigger() argument [all...] |
H A D | dcamera_source_callback_proxy.cpp | 26 int32_t DCameraSourceCallbackProxy::OnNotifyRegResult(const std::string& devId, const std::string& dhId, in OnNotifyRegResult() argument 29 if (!CheckParams(devId, dhId, reqId, data)) { in OnNotifyRegResult() 46 if (!req.WriteString(devId) || !req.WriteString(dhId) || !req.WriteString(reqId) || in OnNotifyRegResult() 56 int32_t DCameraSourceCallbackProxy::OnNotifyUnregResult(const std::string& devId, const std::string& dhId, in OnNotifyUnregResult() argument 59 if (!CheckParams(devId, dhId, reqId, data)) { in OnNotifyUnregResult() 76 if (!req.WriteString(devId) || !req.WriteString(dhId) || !req.WriteString(reqId) || in OnNotifyUnregResult() 86 int32_t DCameraSourceCallbackProxy::OnHardwareStateChanged(const std::string &devId, in OnHardwareStateChanged() argument 89 if (!CheckParams(devId, dhId, status)) { in OnHardwareStateChanged() 106 if (!req.WriteString(devId) || !req.WriteString(dhId) || !req.WriteInt32(status)) { in OnHardwareStateChanged() 113 int32_t DCameraSourceCallbackProxy::OnDataSyncTrigger(const std::string &devId) in OnDataSyncTrigger() argument 139 CheckParams(const std::string& devId, const std::string& dhId, int32_t status) CheckParams() argument 152 CheckParams(const std::string& devId, const std::string& dhId, const std::string& reqId, std::string& data) CheckParams() argument [all...] |
H A D | distributed_camera_source_stub.cpp | 145 std::string devId = data.ReadString(); in RegisterDistributedHardwareInner() local 151 if (!CheckRegParams(devId, dhId, reqId, params)) { in RegisterDistributedHardwareInner() 156 ret = RegisterDistributedHardware(devId, dhId, reqId, params); in RegisterDistributedHardwareInner() 163 bool DistributedCameraSourceStub::CheckRegParams(const std::string& devId, const std::string& dhId, in CheckRegParams() argument 166 if (devId.empty() || devId.size() > DID_MAX_SIZE || dhId.empty() || dhId.size() > DID_MAX_SIZE) { in CheckRegParams() 167 DHLOGE("devId or dhId is invalid"); in CheckRegParams() 194 std::string devId = data.ReadString(); in UnregisterDistributedHardwareInner() local 197 if (!CheckUnregParams(devId, dhId, reqId)) { in UnregisterDistributedHardwareInner() 202 ret = UnregisterDistributedHardware(devId, dhI in UnregisterDistributedHardwareInner() 208 CheckUnregParams(const std::string& devId, const std::string& dhId, const std::string& reqId) CheckUnregParams() argument 227 std::string devId = data.ReadString(); DCameraNotifyInner() local 241 CheckNotifyParams(const std::string& devId, const std::string& dhId, std::string& events) CheckNotifyParams() argument [all...] |
/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | profile_cache_test.cpp | 65 std::string devId = "dp_devId"; in HWTEST_F() local 66 deviceProfile.SetDeviceId(devId); in HWTEST_F() 83 std::string devId = "dp_devId"; in HWTEST_F() local 84 serviceProfile.SetDeviceId(devId); in HWTEST_F() 93 devId = ""; in HWTEST_F() 94 serviceProfile.SetDeviceId(devId); in HWTEST_F() 98 devId = "dp_devId"; in HWTEST_F() 99 serviceProfile.SetDeviceId(devId); in HWTEST_F() 113 std::string devId = "dp_devId"; in HWTEST_F() local 114 charProfile.SetDeviceId(devId); in HWTEST_F() 156 std::string devId = ""; HWTEST_F() local 172 std::string devId = ""; HWTEST_F() local 198 std::string devId = ""; HWTEST_F() local 237 std::string devId = ""; HWTEST_F() local 248 std::string devId = ""; HWTEST_F() local 268 std::string devId = ""; HWTEST_F() local 305 std::string devId = "dp_devId"; HWTEST_F() local 333 std::string devId = "dp_devId"; HWTEST_F() local 365 std::string devId = "dp_devId"; HWTEST_F() local 409 std::string devId = "dp_devId"; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/test/unittest/common/distributedcamera/ |
H A D | distributed_camera_source_stub_test.cpp | 129 std::string devId = "devId000"; in HWTEST_F() local 137 int32_t ret = sourceProxy.RegisterDistributedHardware(devId, dhId, reqId, param); in HWTEST_F() 152 std::string devId = "devId000"; in HWTEST_F() local 155 int32_t ret = sourceProxy.UnregisterDistributedHardware(devId, dhId, reqId); in HWTEST_F() 170 std::string devId = "devId000"; in HWTEST_F() local 173 int32_t ret = sourceProxy.DCameraNotify(devId, dhId, events); in HWTEST_F() 188 std::string devId = ""; in HWTEST_F() local 191 int32_t ret = sourceProxy.DCameraNotify(devId, dhId, events); in HWTEST_F() 194 devId = "devId000"; in HWTEST_F() 196 ret = sourceProxy.DCameraNotify(devId, dhI in HWTEST_F() 215 std::string devId = ""; HWTEST_F() local 242 std::string devId = ""; HWTEST_F() local [all...] |
H A D | mock_distributed_camera_source_stub.h | 40 int32_t RegisterDistributedHardware(const std::string& devId, const std::string& dhId, in RegisterDistributedHardware() argument 43 (void)devId; in RegisterDistributedHardware() 50 int32_t UnregisterDistributedHardware(const std::string& devId, const std::string& dhId, in UnregisterDistributedHardware() argument 53 (void)devId; in UnregisterDistributedHardware() 59 int32_t DCameraNotify(const std::string& devId, const std::string& dhId, in DCameraNotify() argument 62 (void)devId; in DCameraNotify()
|
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/test/unittest/common/camera_source/callback/ |
H A D | dcamera_source_callback_test.cpp | 121 const std::string devId = "devId"; in HWTEST_F() local 128 int32_t ret = sourceCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F() 141 const std::string devId = "devId"; in HWTEST_F() local 147 int32_t ret = sourceCallback_->OnNotifyRegResult(devId, dhId, reqId, status, data); in HWTEST_F() 159 const std::string devId = "devId"; in HWTEST_F() local 166 int32_t ret = sourceCallback_->OnNotifyUnregResult(devId, dhId, reqId, status, data); in HWTEST_F() 179 const std::string devId in HWTEST_F() local 197 std::string devId = ""; HWTEST_F() local 243 std::string devId = "devId"; HWTEST_F() local 269 std::string devId = "devId"; HWTEST_F() local 295 std::string devId = "devId"; HWTEST_F() local 322 std::string devId = "devId"; HWTEST_F() local 362 std::string devId = ""; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_source/src/ |
H A D | distributed_camera_source_proxy.cpp | 84 int32_t DistributedCameraSourceProxy::RegisterDistributedHardware(const std::string& devId, const std::string& dhId, in RegisterDistributedHardware() argument 87 DHLOGI("devId: %{public}s dhId: %{public}s", GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str()); in RegisterDistributedHardware() 88 if (!CheckRegParams(devId, dhId, reqId, param)) { in RegisterDistributedHardware() 105 if (!data.WriteString(devId) || !data.WriteString(dhId) || !data.WriteString(reqId) || in RegisterDistributedHardware() 116 bool DistributedCameraSourceProxy::CheckRegParams(const std::string& devId, const std::string& dhId, in CheckRegParams() argument 119 if (devId.empty() || devId.size() > DID_MAX_SIZE || dhId.empty() || dhId.size() > DID_MAX_SIZE) { in CheckRegParams() 120 DHLOGE("devId or dhId is invalid"); in CheckRegParams() 137 int32_t DistributedCameraSourceProxy::UnregisterDistributedHardware(const std::string& devId, cons argument 168 CheckUnregParams(const std::string& devId, const std::string& dhId, const std::string& reqId) CheckUnregParams() argument 183 DCameraNotify(const std::string& devId, const std::string& dhId, std::string& events) DCameraNotify() argument 215 CheckNotifyParams(const std::string& devId, const std::string& dhId, std::string& events) CheckNotifyParams() argument [all...] |
/foundation/distributedhardware/distributed_audio/services/audiomanager/test/unittest/managersink/src/ |
H A D | daudio_sink_manager_test.cpp | 68 std::string devId = "1"; in HWTEST_F() local 72 daudioSinkManager.audioDevMap_.emplace(devId, nullptr); in HWTEST_F() 73 EXPECT_EQ(DH_SUCCESS, daudioSinkManager.HandleDAudioNotify(devId, dhId, type, content)); in HWTEST_F() 84 std::string devId = "devId"; in HWTEST_F() local 89 daudioSinkManager.DAudioNotify(devId, dhId, eventType, eventContent)); in HWTEST_F() 91 auto remoteObject = samgr->GetSystemAbility(DISTRIBUTED_HARDWARE_AUDIO_SOURCE_SA_ID, devId); in HWTEST_F() 93 daudioSinkManager.sourceServiceMap_[devId] = remoteSvrProxy; in HWTEST_F() 94 EXPECT_EQ(ERR_DH_AUDIO_NULLPTR, daudioSinkManager.DAudioNotify(devId, dhId, eventType, eventContent)); in HWTEST_F() 105 std::string devId in HWTEST_F() local 133 std::string devId = "1"; HWTEST_F() local 173 std::string devId = "devId"; HWTEST_F() local 200 std::string devId = "devId"; HWTEST_F() local 246 std::string devId = "1"; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_camera/interfaces/inner_kits/native_cpp/camera_source/src/callback/ |
H A D | dcamera_source_callback.cpp | 30 int32_t DCameraSourceCallback::OnNotifyRegResult(const std::string& devId, const std::string& dhId, in OnNotifyRegResult() argument 33 DHLOGI("DCameraSourceCallback OnNotifyRegResult devId: %{public}s dhId: %{public}s", in OnNotifyRegResult() 34 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str()); in OnNotifyRegResult() 38 DHLOGE("DCameraSourceCallback OnNotifyRegResult not found devId: %{public}s dhId: %{public}s", in OnNotifyRegResult() 39 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str()); in OnNotifyRegResult() 42 int32_t ret = iter->second->OnRegisterResult(devId, dhId, status, data); in OnNotifyRegResult() 44 DHLOGE("DCameraSourceCallback OnNotifyRegResult failed, devId: %{public}s dhId: %{public}s ret: %{public}d", in OnNotifyRegResult() 45 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str(), ret); in OnNotifyRegResult() 51 int32_t DCameraSourceCallback::OnNotifyUnregResult(const std::string& devId, const std::string& dhId, in OnNotifyUnregResult() argument 54 DHLOGI("DCameraSourceCallback OnNotifyUnregResult devId in OnNotifyUnregResult() 72 OnHardwareStateChanged(const std::string &devId, const std::string &dhId, int32_t status) OnHardwareStateChanged() argument 95 OnDataSyncTrigger(const std::string &devId) OnDataSyncTrigger() argument [all...] |
H A D | dcamera_source_callback_stub.cpp | 69 std::string devId = data.ReadString(); in NotifyRegResultInner() local 74 if (!CheckParams(devId, dhId, reqId, result)) { in NotifyRegResultInner() 79 ret = OnNotifyRegResult(devId, dhId, reqId, status, result); in NotifyRegResultInner() 90 std::string devId = data.ReadString(); in NotifyUnregResultInner() local 95 if (!CheckParams(devId, dhId, reqId, result)) { in NotifyUnregResultInner() 100 ret = OnNotifyUnregResult(devId, dhId, reqId, status, result); in NotifyUnregResultInner() 109 std::string devId = data.ReadString(); in OnHardwareStateChangedInner() local 112 int32_t ret = OnHardwareStateChanged(devId, dhId, status); in OnHardwareStateChangedInner() 120 std::string devId = data.ReadString(); in OnDataSyncTriggerInner() local 121 int32_t ret = OnDataSyncTrigger(devId); in OnDataSyncTriggerInner() 126 CheckParams(const std::string& devId, const std::string& dhId, const std::string& reqId, const std::string& result) CheckParams() argument [all...] |
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/test/unittest/screensourcetest/src/ |
H A D | dscreen_source_handler_test.cpp | 94 const std::string devId = "devId"; in HWTEST_F() local 103 int32_t ret = DScreenSourceHandler::GetInstance().RegisterDistributedHardware(devId, dhId, param, callback); in HWTEST_F() 115 const std::string devId = "devId"; in HWTEST_F() local 125 int32_t ret = DScreenSourceHandler::GetInstance().RegisterDistributedHardware(devId, dhId, param, callback); in HWTEST_F() 137 const std::string devId = "devId"; in HWTEST_F() local 144 int32_t ret = DScreenSourceHandler::GetInstance().RegisterDistributedHardware(devId, dhId, param, callback); in HWTEST_F() 156 const std::string devId in HWTEST_F() local 178 const std::string devId = "devId"; HWTEST_F() local 196 const std::string devId = "devIddevIddevIddevIddevIddevIddevIddevIddevIddevIddevIddevIddevId \\ HWTEST_F() local 220 const std::string devId = "devId"; HWTEST_F() local 238 const std::string devId = ""; HWTEST_F() local 257 const std::string devId = "devId"; HWTEST_F() local 272 const std::string devId = "devId"; HWTEST_F() local 290 const std::string devId = "devId"; HWTEST_F() local 307 const std::string devId = "devIddevIddevIddevIddevIddevIddevIddevIddevIddevIddevIddevIddevId \\ HWTEST_F() local 328 const std::string devId = "devId"; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/test/unittest/sourceservice/dscreenservice/src/callback/ |
H A D | dscreen_source_callback_stub_test.cpp | 41 int32_t DScreenSourceCallbackStubTest::TestDScreenSourceCallbackStub::OnNotifyRegResult(const std::string &devId, in OnNotifyRegResult() argument 44 (void)devId; in OnNotifyRegResult() 52 int32_t DScreenSourceCallbackStubTest::TestDScreenSourceCallbackStub::OnNotifyUnregResult(const std::string &devId, in OnNotifyUnregResult() argument 55 (void)devId; in OnNotifyUnregResult() 77 std::string devId = R"(dhId000dhId000dhId000dhId000dhId000dhId000dhId000dhId000dhId000dhId000dhId000d in HWTEST_F() local 80 ret = sourceCbkProxy.OnNotifyRegResult(devId, "dhId000", "reqId000", 0, "data000"); in HWTEST_F() 86 ret = sourceCbkProxy.OnNotifyRegResult("devId000", devId, "reqId000", 0, "data000"); in HWTEST_F() 92 ret = sourceCbkProxy.OnNotifyRegResult("devId000", "dhId000", devId, 0, "data000"); in HWTEST_F() 116 std::string devId = R"(dhId000dhId000dhId000dhId000dhId000dhId000dhId000dhId000dhId000dhId000dhId000d in HWTEST_F() local 119 ret = sourceCbkProxy.OnNotifyUnregResult(devId, "dhId00 in HWTEST_F() [all...] |
/foundation/distributedhardware/distributed_input/services/source/inputinject/test/sourceinjectunittest/ |
H A D | distributed_input_sourceinject_test.cpp | 71 void DistributedInputSourceInjectTest::TestRegisterSessionStateCallbackStub::OnResult(const std::string &devId, in OnResult() argument 74 (void)devId; in OnResult() 91 std::string devId = "y4umjym16tgn21m896f1nt2y1894ty61nty651m89t1m"; in HWTEST_F() local 95 int32_t ret = DistributedInputInject::GetInstance().RegisterDistributedHardware(devId, dhId, parameters); in HWTEST_F() 112 std::string devId = "1sdvsd1v5w1v2d1v8d1v562sd11v5sd1"; in HWTEST_F() local 116 int32_t ret = DistributedInputInject::GetInstance().RegisterDistributedHardware(devId, dhId, parameters); in HWTEST_F() 133 std::string devId = "umkyu1b165e1be98151891erbe8r91ev"; in HWTEST_F() local 137 int32_t ret = DistributedInputInject::GetInstance().RegisterDistributedHardware(devId, dhId, parameters); in HWTEST_F() 143 std::string devId = "umkyu1b165e1be98151891erbe8r91ev"; in HWTEST_F() local 145 int32_t ret = DistributedInputInject::GetInstance().UnregisterDistributedHardware(devId, dhI in HWTEST_F() 151 std::string devId = "umkyu1b165e1be98151891erbe8r91ev"; HWTEST_F() local 161 std::string devId = "umkyu1b165e1be98151891erbe8r91ev"; HWTEST_F() local 304 std::string devId = "umkyu1b165e1be98151891erbe8r91ev"; HWTEST_F() local 319 std::string devId = "umkyu1b165e1be98151891erbe8r91ev"; HWTEST_F() local 327 std::string devId = "umkyu1b165e1be98151891erbe8r91ev"; HWTEST_F() local 336 std::string devId = "umkyu1b165e1be98151891erbe8r91ev"; HWTEST_F() local 352 std::string devId = "umkyu1b165e1be98151891erbe8r91ev"; HWTEST_F() local 363 std::string devId = "umkyu1b165e1be98151891erbe8r91ev"; HWTEST_F() local 380 std::string devId = "umkyu1b165e1be98151891erbe8r91ev"; HWTEST_F() local 432 std::string devId; HWTEST_F() local 451 std::string devId = ""; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_input/services/source/inputinject/src/ |
H A D | distributed_input_inject.cpp | 49 int32_t DistributedInputInject::RegisterDistributedHardware(const std::string &devId, const std::string &dhId, in RegisterDistributedHardware() argument 53 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str(), SetAnonyId(parameters).c_str()); in RegisterDistributedHardware() 59 if (inputNodeManager_->OpenDevicesNode(devId, dhId, parameters) < 0) { in RegisterDistributedHardware() 68 int32_t DistributedInputInject::UnregisterDistributedHardware(const std::string &devId, const std::string &dhId) in UnregisterDistributedHardware() argument 71 GetAnonyString(devId).c_str(), GetAnonyString(dhId).c_str()); in UnregisterDistributedHardware() 77 if (inputNodeManager_->CloseDeviceLocked(devId, dhId) < 0) { in UnregisterDistributedHardware() 113 int32_t DistributedInputInject::RegisterDistributedEvent(const std::string &devId, in RegisterDistributedEvent() argument 122 inputNodeManager_->ReportEvent(devId, events); in RegisterDistributedEvent() 150 int32_t DistributedInputInject::CreateVirtualTouchScreenNode(const std::string &devId, const std::string &dhId, in CreateVirtualTouchScreenNode() argument 158 return inputNodeManager_->CreateVirtualTouchScreenNode(devId, dhI in CreateVirtualTouchScreenNode() 161 RemoveVirtualTouchScreenNode(const std::string &devId, const std::string &dhId) RemoveVirtualTouchScreenNode() argument 197 GetVirtualKeyboardPaths(const std::string &devId, const std::vector<std::string> &dhIds, std::vector<std::string> &virKeyboardPaths) GetVirtualKeyboardPaths() argument 214 NotifyNodeMgrScanVirNode(const std::string &devId, const std::string &dhId) NotifyNodeMgrScanVirNode() argument [all...] |
/foundation/distributedhardware/distributed_audio/services/audiomanager/servicesource/src/ |
H A D | daudio_source_service.cpp | 97 int32_t DAudioSourceService::RegisterDistributedHardware(const std::string &devId, const std::string &dhId, in RegisterDistributedHardware() argument 100 DHLOGI("Register distributed audio device, devId: %{public}s, dhId: %{public}s.", GetAnonyString(devId).c_str(), in RegisterDistributedHardware() 104 return DAudioSourceManager::GetInstance().EnableDAudio(devId, dhId, version, attrs, reqId); in RegisterDistributedHardware() 107 int32_t DAudioSourceService::UnregisterDistributedHardware(const std::string &devId, const std::string &dhId, in UnregisterDistributedHardware() argument 110 DHLOGI("Unregister distributed audio device, devId: %{public}s, dhId: %{public}s.", GetAnonyString(devId).c_str(), in UnregisterDistributedHardware() 112 return DAudioSourceManager::GetInstance().DisableDAudio(devId, dhId, reqId); in UnregisterDistributedHardware() 115 int32_t DAudioSourceService::ConfigDistributedHardware(const std::string &devId, const std::string &dhId, in ConfigDistributedHardware() argument 118 DHLOGI("Config distributed audio device, devId in ConfigDistributedHardware() 123 DAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType, const std::string &eventContent) DAudioNotify() argument [all...] |
/foundation/distributedhardware/distributed_screen/interfaces/innerkits/native_cpp/screen_source/src/ |
H A D | dscreen_source_proxy.cpp | 82 int32_t DScreenSourceProxy::RegisterDistributedHardware(const std::string &devId, in RegisterDistributedHardware() argument 85 if (!CheckRegParams(devId, dhId, param, reqId)) { in RegisterDistributedHardware() 103 if (!data.WriteString(devId) || !data.WriteString(dhId) || in RegisterDistributedHardware() 114 int32_t DScreenSourceProxy::UnregisterDistributedHardware(const std::string &devId, in UnregisterDistributedHardware() argument 117 if (!CheckUnregParams(devId, dhId, reqId)) { in UnregisterDistributedHardware() 135 if (!data.WriteString(devId) || !data.WriteString(dhId) || !data.WriteString(reqId)) { in UnregisterDistributedHardware() 145 int32_t DScreenSourceProxy::ConfigDistributedHardware(const std::string &devId, in ConfigDistributedHardware() argument 148 if (!CheckConfigParams(devId, dhId, key, value)) { in ConfigDistributedHardware() 166 if (!data.WriteString(devId) || !data.WriteString(dhId) || !data.WriteString(key) || !data.WriteString(value)) { in ConfigDistributedHardware() 176 void DScreenSourceProxy::DScreenNotify(const std::string &devId, int32_ argument 206 CheckRegParams(const std::string &devId, const std::string &dhId, const EnableParam ¶m, const std::string &reqId) const CheckRegParams() argument 225 CheckUnregParams(const std::string &devId, const std::string &dhId, const std::string &reqId) const CheckUnregParams() argument 239 CheckConfigParams(const std::string &devId, const std::string &dhId, const std::string &key, const std::string &value) const CheckConfigParams() argument [all...] |
/foundation/distributedhardware/distributed_screen/services/screenservice/sourceservice/dscreenservice/src/ |
H A D | dscreen_source_stub.cpp | 121 std::string devId = data.ReadString(); in RegisterDistributedHardwareInner() local 126 if (!CheckRegParams(devId, dhId, version, attrs, reqId)) { in RegisterDistributedHardwareInner() 134 int32_t ret = RegisterDistributedHardware(devId, dhId, enableParam, reqId); in RegisterDistributedHardwareInner() 147 std::string devId = data.ReadString(); in UnregisterDistributedHardwareInner() local 150 if (!CheckUnregParams(devId, dhId, reqId)) { in UnregisterDistributedHardwareInner() 155 int32_t ret = UnregisterDistributedHardware(devId, dhId, reqId); in UnregisterDistributedHardwareInner() 164 std::string devId = data.ReadString(); in ConfigDistributedHardwareInner() local 168 if (!CheckConfigParams(devId, dhId, key, value)) { in ConfigDistributedHardwareInner() 173 int32_t ret = ConfigDistributedHardware(devId, dhId, key, value); in ConfigDistributedHardwareInner() 183 std::string devId in DScreenNotifyInner() local 196 CheckRegParams(const std::string &devId, const std::string &dhId, const std::string &version, const std::string &attrs, const std::string &reqId) const CheckRegParams() argument 214 CheckUnregParams(const std::string &devId, const std::string &dhId, const std::string &reqId) const CheckUnregParams() argument 228 CheckConfigParams(const std::string &devId, const std::string &dhId, const std::string &key, const std::string &value) const CheckConfigParams() argument [all...] |
/foundation/distributedhardware/distributed_audio/services/audiomanager/managersource/include/ |
H A D | daudio_source_manager.h | 39 int32_t EnableDAudio(const std::string &devId, const std::string &dhId, const std::string &version, 41 int32_t DisableDAudio(const std::string &devId, const std::string &dhId, const std::string &reqId); 42 int32_t HandleDAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType, 44 int32_t DAudioNotify(const std::string &devId, const std::string &dhId, const int32_t eventType, 46 int32_t OnEnableDAudio(const std::string &devId, const std::string &dhId, const int32_t result); 47 int32_t OnDisableDAudio(const std::string &devId, const std::string &dhId, const int32_t result); 48 int32_t OnHardwareStateChanged(const std::string &devId, const std::string &dhId, const int32_t state); 49 int32_t OnDataSyncTrigger(const std::string &devId); 60 int32_t CreateAudioDevice(const std::string &devId); 61 void DeleteAudioDevice(const std::string &devId, cons 70 std::string devId; global() member [all...] |
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/audio_source/src/ |
H A D | daudio_ipc_callback.cpp | 28 int32_t DAudioIpcCallback::OnNotifyRegResult(const std::string &devId, const std::string &dhId, in OnNotifyRegResult() argument 31 DHLOGI("On notify the registration result, devId: %{public}s, dhId: %{public}s, status: %{public}d, " in OnNotifyRegResult() 32 "resultData: %{public}s, reqId: %{public}s", GetAnonyString(devId).c_str(), dhId.c_str(), in OnNotifyRegResult() 35 if (devId.length() > DAUDIO_MAX_DEVICE_ID_LEN || dhId.length() > DAUDIO_MAX_DEVICE_ID_LEN || in OnNotifyRegResult() 44 iter->second->OnRegisterResult(devId, reduceDhId, status, resultData); in OnNotifyRegResult() 53 int32_t DAudioIpcCallback::OnNotifyUnregResult(const std::string &devId, const std::string &dhId, in OnNotifyUnregResult() argument 56 DHLOGI("On notify the unregistration result, devId: %{public}s, dhId: %{public}s, status: %{public}d, " in OnNotifyUnregResult() 57 "resultData: %{public}s, reqId: %{public}s", GetAnonyString(devId).c_str(), dhId.c_str(), in OnNotifyUnregResult() 60 if (devId.length() > DAUDIO_MAX_DEVICE_ID_LEN || dhId.length() > DAUDIO_MAX_DEVICE_ID_LEN || in OnNotifyUnregResult() 69 iter->second->OnUnregisterResult(devId, reduceDhI in OnNotifyUnregResult() 77 OnHardwareStateChanged(const std::string &devId, const std::string &dhId, int32_t status) OnHardwareStateChanged() argument 95 OnDataSyncTrigger(const std::string &devId) OnDataSyncTrigger() argument [all...] |