/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/localhardwaremanager/ |
H A D | local_hardware_manager.cpp | 54 for (auto dhType : allCompTypes) { in Init() local 63 DHLOGE("Initialize %{public}#X failed", dhType); in Init() 67 DHQueryTraceStart(dhType); in Init() 68 QueryLocalHardware(dhType, hardwareHandler); in Init() 75 compToolFuncsMap_[dhType] = hardwareHandler; in Init() 77 pluginListenerMap_[dhType] = listener; in Init() 82 dhType, singleQueryEndTime - singleQueryStartTime); in Init() 123 CheckNonExistCapabilityInfo(dhItems, dhType); in QueryLocalHardware() 124 localDHItemsMap_[dhType] = dhItems; in QueryLocalHardware() 167 if (dhType != DHType::INPUT) { in CheckNonExistCapabilityInfo() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/lowlatency/ |
H A D | low_latency.cpp | 48 void LowLatency::EnableLowLatency(DHType dhType) in EnableLowLatency() argument 50 DHLOGI("Start EnableLowLatency dhType: %{public}#X", dhType); in EnableLowLatency() 51 if (dhType <= DHType::UNKNOWN || dhType >= DHType::MAX_DH) { in EnableLowLatency() 58 DHLOGD("Open LowLatency dhType: %{public}#X", dhType); in EnableLowLatency() 65 lowLatencySwitchSet_.insert(dhType); in EnableLowLatency() 66 DHLOGI("End EnableLowLatency dhType: %{public}#X", dhType); in EnableLowLatency() 69 void LowLatency::DisableLowLatency(DHType dhType) in DisableLowLatency() argument 72 if (dhType <= DHType::UNKNOWN || dhType >= DHType::MAX_DH) { in DisableLowLatency() 77 lowLatencySwitchSet_.erase(dhType); in DisableLowLatency() 79 DHLOGD("Close LowLatency dhType: %{public}#X", dhType); in DisableLowLatency() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/lowlatency/lowlatency/src/ |
H A D | low_latency_test.cpp | 47 DHType dhType = DHType::UNKNOWN; variable 48 LowLatency::GetInstance().EnableLowLatency(dhType); 60 DHType dhType = DHType::CAMERA; variable 61 LowLatency::GetInstance().EnableLowLatency(dhType); 74 DHType dhType = DHType::CAMERA; variable 75 LowLatency::GetInstance().EnableLowLatency(dhType); 91 DHType dhType = DHType::CAMERA; variable 92 LowLatency::GetInstance().EnableLowLatency(dhType); 104 DHType dhType = DHType::UNKNOWN; variable 105 LowLatency::GetInstance().DisableLowLatency(dhType); [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentmanager/ |
H A D | component_manager.cpp | 329 if (compSource_[dhType] == nullptr) { in StartSource() 342 futures.emplace(dhType, f.share()); in StartSource() 386 if (compSink_[dhType] == nullptr) { in StartSink() 399 futures.emplace(dhType, f.share()); in StartSink() 533 const DHType dhType) in Enable() argument 610 const DHType dhType) in Disable() argument 899 ffrt::submit([this, dhType]() { this->DoRecover(dhType); }); in Recover() 909 ReStartSA(dhType); in DoRecover() 911 RecoverDistributedHardware(dhType); in DoRecover() 918 auto sinkResult = StartSink(dhType); in ReStartSA() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_manager/src/ |
H A D | component_manager_test.cpp | 246 .dhType = DHType::CAMERA, 275 .dhType = DHType::CAMERA, 338 DHType dhType = DHType::AUDIO; variable 363 DHType dhType = DHType::AUDIO; variable 418 DHType dhType = DHType::CAMERA; variable 434 DHType dhType = DHType::CAMERA; variable 453 DHType dhType = DHType::INPUT; variable 469 DHType dhType = DHType::INPUT; variable 515 DHType dhType = DHType::CAMERA; variable 529 DHType dhType = DHType::CAMERA; variable [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentloader/ |
H A D | component_loader.cpp | 225 compVersions.dhType = cCfg.type; in GetCompVersionFromComConfig() 474 dlclose(compHandlerMap_[dhType].sinkHandler); in GetSink() 475 compHandlerMap_[dhType].sinkHandler = nullptr; in GetSink() 566 if (!IsDHTypeExist(dhType)) { in ReleaseHardwareHandler() 571 DHLOGE("fail, dhType: %{public}#X", dhType); in ReleaseHardwareHandler() 580 if (!IsDHTypeExist(dhType)) { in ReleaseSource() 585 DHLOGE("fail, dhType: %{public}#X", dhType); in ReleaseSource() 594 if (!IsDHTypeExist(dhType)) { in ReleaseSink() 599 DHLOGE("fail, dhType: %{public}#X", dhType); in ReleaseSink() 606 bool ComponentLoader::IsDHTypeExist(DHType dhType) in IsDHTypeExist() argument [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/componentmanager/ |
H A D | component_manager.h | 57 const DHType dhType); 59 const DHType dhType); 63 void Recover(DHType dhType); 67 IDistributedHardwareSource* GetDHSourceInstance(DHType dhType); 101 ActionResult StartSource(DHType dhType); 104 ActionResult StartSink(DHType dhType); 108 DHType dhType, EnableParam ¶m); 114 void DoRecover(DHType dhType); 115 void ReStartSA(DHType dhType); 116 void RecoverDistributedHardware(DHType dhType); [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/interfaces/kits/napi/src/ |
H A D | native_distributedhardwarefwk_js.cpp | 144 DHType dhType = DHType::UNKNOWN; in PauseDistributedHardware() local 147 dhType = DHType::AUDIO; in PauseDistributedHardware() 149 dhType = DHType::CAMERA; in PauseDistributedHardware() 157 int32_t ret = dhFwkKit->PauseDistributedHardware(dhType, std::string(networkId)); in PauseDistributedHardware() 166 int32_t ret = dhFwkKit->PauseDistributedHardware(dhType, std::string(networkId)); in PauseDistributedHardware() 196 DHType dhType = DHType::UNKNOWN; in ResumeDistributedHardware() local 199 dhType = DHType::AUDIO; in ResumeDistributedHardware() 201 dhType = DHType::CAMERA; in ResumeDistributedHardware() 248 DHType dhType = DHType::UNKNOWN; in StopDistributedHardware() local 251 dhType = DHType::AUDIO; in StopDistributedHardware() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/localhardwaremanager/localhardwaremanager/src/ |
H A D | local_hardware_manager_test.cpp | 55 DHType dhType = DHType::INPUT; variable 56 LocalHardwareManager::GetInstance().CheckNonExistCapabilityInfo(dhItems, dhType); 69 DHType dhType = DHType::AUDIO; variable 70 LocalHardwareManager::GetInstance().CheckNonExistCapabilityInfo(dhItems, dhType); 82 DHType dhType = DHType::INPUT; variable 84 LocalHardwareManager::GetInstance().GetLocalCapabilityMapByPrefix(dhType, capabilityInfoMap); 96 DHType dhType = DHType::GPS; variable 99 LocalHardwareManager::GetInstance().GetLocalCapabilityMapByPrefix(dhType, capabilityInfoMap);
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/fuzztest/componentloader_fuzzer/ |
H A D | componentloader_fuzzer.cpp | 43 DHType dhType = dhTypeFuzz[data[0] % DH_TYPE_SIZE]; in ComponentManagerFuzzTest() local 46 ComponentLoader::GetInstance().GetHardwareHandler(dhType, hardwareHandlerPtr); in ComponentManagerFuzzTest() 48 ComponentLoader::GetInstance().GetSource(dhType, sourcePtr); in ComponentManagerFuzzTest() 50 ComponentLoader::GetInstance().GetSink(dhType, sinkPtr); in ComponentManagerFuzzTest() 52 ComponentLoader::GetInstance().ReleaseHardwareHandler(dhType); in ComponentManagerFuzzTest() 53 ComponentLoader::GetInstance().ReleaseSource(dhType); in ComponentManagerFuzzTest() 54 ComponentLoader::GetInstance().ReleaseSink(dhType); in ComponentManagerFuzzTest()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/ |
H A D | distributed_hardware_service.cpp | 307 int32_t DistributedHardwareService::PauseDistributedHardware(DHType dhType, const std::string &netw… in PauseDistributedHardware() argument 313 if (sinkMap.find(dhType) == sinkMap.end()) { in PauseDistributedHardware() 314 … DHLOGE("PauseDistributedHardware for DHType: %{public}u not init sink handler", (uint32_t)dhType); in PauseDistributedHardware() 317 int32_t ret = sinkMap[dhType]->PauseDistributedHardware(networkId); in PauseDistributedHardware() 325 int32_t DistributedHardwareService::ResumeDistributedHardware(DHType dhType, const std::string &net… in ResumeDistributedHardware() argument 331 if (sinkMap.find(dhType) == sinkMap.end()) { in ResumeDistributedHardware() 335 int32_t ret = sinkMap[dhType]->ResumeDistributedHardware(networkId); in ResumeDistributedHardware() 343 int32_t DistributedHardwareService::StopDistributedHardware(DHType dhType, const std::string &netwo… in StopDistributedHardware() argument 349 if (sinkMap.find(dhType) == sinkMap.end()) { in StopDistributedHardware() 350 … DHLOGE("StopDistributedHardware for DHType: %{public}u not init sink handler", (uint32_t)dhType); in StopDistributedHardware() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/componentloader/ |
H A D | component_loader.h | 75 int32_t GetHardwareHandler(const DHType dhType, IHardwareHandler *&hardwareHandlerPtr); 76 int32_t GetSource(const DHType dhType, IDistributedHardwareSource *&sourcePtr); 77 int32_t GetSink(const DHType dhType, IDistributedHardwareSink *&sinkPtr); 79 int32_t ReleaseHardwareHandler(const DHType dhType); 80 int32_t ReleaseSource(const DHType dhType); 81 int32_t ReleaseSink(const DHType dhType); 84 int32_t GetSourceSaId(const DHType dhType); 96 bool IsDHTypeExist(DHType dhType);
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/task/src/ |
H A D | mock_offline_task.cpp | 28 const std::string &dhId, const DHType dhType) : OffLineTask(networkId, uuid, udid, dhId, dhType) in MockOffLineTask() argument 38 .dhType = devInfo.dhType in CreateDisableTask() 53 .dhType = devInfo.dhType in CreateMetaDisableTask()
|
H A D | mock_online_task.cpp | 28 const std::string &dhId, const DHType dhType) : OnLineTask(networkId, uuid, udid, dhId, dhType) in MockOnLineTask() argument 47 .dhType = devInfo.dhType in CreateEnableTask() 62 .dhType = devInfo.dhType in CreateMetaEnableTask()
|
H A D | mock_task_factory.cpp | 37 taskParam.dhId, taskParam.dhType); in CreateTask() 42 taskParam.dhId, taskParam.dhType); in CreateTask() 47 taskParam.dhId, taskParam.dhType); in CreateTask() 52 taskParam.dhId, taskParam.dhType); in CreateTask() 57 taskParam.dhId, taskParam.dhType); in CreateTask() 62 taskParam.dhId, taskParam.dhType); in CreateTask()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/hidumphelper/hidumphelper/src/ |
H A D | hidump_helper_test.cpp | 110 DHType dhType = DHType::CAMERA; variable 112 ComponentManager::GetInstance().compSource_.insert(std::make_pair(dhType, sourcePtr)); 126 DHType dhType = DHType::CAMERA; variable 128 ComponentManager::GetInstance().compSink_.insert(std::make_pair(dhType, sinkPtr)); 156 DHType dhType = DHType::CAMERA; variable 158 EnabledCompsDump::GetInstance().DumpEnabledComp(networkId, dhType, dhId); 189 DHType dhType = DHType::CAMERA; variable 190 …shared_ptr<Task> childrenTask = std::make_shared<OffLineTask>(networkId, uuId, udId, dhId, dhType); 223 DHType dhType = DHType::CAMERA; variable 224 …CapabilityInfo> capInfo = std::make_shared<CapabilityInfo>(dhId, devId, "Dev1", devTypePad, dhType,
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/distributedhardwarestub/include/ |
H A D | distributed_hardware_stub_test.h | 105 int32_t PauseDistributedHardware(DHType dhType, const std::string &networkId) in PauseDistributedHardware() argument 107 (void)dhType; in PauseDistributedHardware() 112 int32_t ResumeDistributedHardware(DHType dhType, const std::string &networkId) in ResumeDistributedHardware() argument 114 (void)dhType; in ResumeDistributedHardware() 119 int32_t StopDistributedHardware(DHType dhType, const std::string &networkId) in StopDistributedHardware() argument 121 (void)dhType; in StopDistributedHardware()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/localhardwaremanager/ |
H A D | local_hardware_manager.h | 41 void QueryLocalHardware(const DHType dhType, IHardwareHandler *hardwareHandler); 42 void AddLocalCapabilityInfo(const std::vector<DHItem> &dhItems, const DHType dhType, 44 void AddLocalMetaCapInfo(const std::vector<DHItem> &dhItems, const DHType dhType, 46 void CheckNonExistCapabilityInfo(const std::vector<DHItem> &dhItems, const DHType dhType); 47 void GetLocalCapabilityMapByPrefix(const DHType dhType, CapabilityInfoMap &capabilityInfoMap);
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/test/unittest/common/ipc/dhfwk_sa_manager/include/ |
H A D | dhfwk_sa_manager_test.h | 113 int32_t PauseDistributedHardware(DHType dhType, const std::string &networkId) in PauseDistributedHardware() argument 115 (void)dhType; in PauseDistributedHardware() 120 int32_t ResumeDistributedHardware(DHType dhType, const std::string &networkId) in ResumeDistributedHardware() argument 122 (void)dhType; in ResumeDistributedHardware() 127 int32_t StopDistributedHardware(DHType dhType, const std::string &networkId) in StopDistributedHardware() argument 129 (void)dhType; in StopDistributedHardware()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/test/unittest/common/ipc/distributed_hardware_proxy/include/ |
H A D | distributed_hardware_proxy_test.h | 108 int32_t PauseDistributedHardware(DHType dhType, const std::string &networkId) in PauseDistributedHardware() argument 110 (void)dhType; in PauseDistributedHardware() 115 int32_t ResumeDistributedHardware(DHType dhType, const std::string &networkId) in ResumeDistributedHardware() argument 117 (void)dhType; in ResumeDistributedHardware() 122 int32_t StopDistributedHardware(DHType dhType, const std::string &networkId) in StopDistributedHardware() argument 124 (void)dhType; in StopDistributedHardware()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/task/ |
H A D | task_factory.cpp | 43 taskParam.dhId, taskParam.dhType); in CreateTask() 48 taskParam.dhId, taskParam.dhType); in CreateTask() 53 taskParam.dhId, taskParam.dhType); in CreateTask() 58 taskParam.dhId, taskParam.dhType); in CreateTask() 63 taskParam.dhId, taskParam.dhType); in CreateTask() 68 taskParam.dhId, taskParam.dhType); in CreateTask()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/interfaces/inner_kits/src/ |
H A D | distributed_hardware_fwk_kit.cpp | 204 int32_t DistributedHardwareFwkKit::PauseDistributedHardware(DHType dhType, const std::string &netwo… in PauseDistributedHardware() argument 209 DHLOGI("Pause distributed hardware dhType %{public}u, networkId %{public}s", (uint32_t)dhType, in PauseDistributedHardware() 218 … return DHFWKSAManager::GetInstance().GetDHFWKProxy()->PauseDistributedHardware(dhType, networkId); in PauseDistributedHardware() 221 int32_t DistributedHardwareFwkKit::ResumeDistributedHardware(DHType dhType, const std::string &netw… in ResumeDistributedHardware() argument 226 DHLOGI("Resume distributed hardware dhType %{public}u, networkId %{public}s", (uint32_t)dhType, in ResumeDistributedHardware() 235 …return DHFWKSAManager::GetInstance().GetDHFWKProxy()->ResumeDistributedHardware(dhType, networkId); in ResumeDistributedHardware() 238 int32_t DistributedHardwareFwkKit::StopDistributedHardware(DHType dhType, const std::string &networ… in StopDistributedHardware() argument 243 DHLOGI("Stop distributed hardware dhType %{public}u, networkId %{public}s", (uint32_t)dhType, in StopDistributedHardware() 252 … return DHFWKSAManager::GetInstance().GetDHFWKProxy()->StopDistributedHardware(dhType, networkId); in StopDistributedHardware()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/versioninfomanager/versioninfomanager/src/ |
H A D | version_info_manager_test.cpp | 53 .dhType = DHType::CAMERA, in CreateVersionInfos() 61 .dhType = DHType::SCREEN, in CreateVersionInfos() 69 .dhType = DHType::INPUT, in CreateVersionInfos() 78 … verInfo1.compVersions.insert(std::pair<DHType, CompVersion>(compVersions1.dhType, compVersions1)); in CreateVersionInfos() 79 … verInfo1.compVersions.insert(std::pair<DHType, CompVersion>(compVersions1.dhType, compVersions1)); in CreateVersionInfos() 80 … verInfo1.compVersions.insert(std::pair<DHType, CompVersion>(compVersions1.dhType, compVersions1)); in CreateVersionInfos() 85 … verInfo1.compVersions.insert(std::pair<DHType, CompVersion>(compVersions2.dhType, compVersions2)); in CreateVersionInfos() 86 … verInfo1.compVersions.insert(std::pair<DHType, CompVersion>(compVersions2.dhType, compVersions2)); in CreateVersionInfos() 87 … verInfo1.compVersions.insert(std::pair<DHType, CompVersion>(compVersions2.dhType, compVersions2)); in CreateVersionInfos() 92 … verInfo1.compVersions.insert(std::pair<DHType, CompVersion>(compVersions3.dhType, compVersions3)); in CreateVersionInfos() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/hidumphelper/ |
H A D | enabled_comps_dump.cpp | 23 void EnabledCompsDump::DumpEnabledComp(const std::string &networkId, const DHType dhType, const std… in DumpEnabledComp() argument 25 HidumpCompInfo info(networkId, dhType, dhId); in DumpEnabledComp() 31 void EnabledCompsDump::DumpDisabledComp(const std::string &networkId, const DHType dhType, const st… in DumpDisabledComp() argument 33 HidumpCompInfo info(networkId, dhType, dhId); in DumpDisabledComp()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/hidumphelper/enabledcompsdump/src/ |
H A D | enabled_comps_dump_test.cpp | 44 DHType dhType = DHType::CAMERA; variable 46 EnabledCompsDump::GetInstance().DumpEnabledComp(networkId, dhType, dhId); 59 DHType dhType = DHType::CAMERA; variable 61 EnabledCompsDump::GetInstance().DumpDisabledComp(networkId, dhType, dhId);
|