/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/versionmanager/src/ |
H A D | version_manager_test.cpp | 67 DHVersion dhVersion; variable 75 dhVersion.dhVersion = TEST_DH_VERSION; 79 int32_t ret = VersionManager::GetInstance().AddDHVersion(dhVersion.uuid, dhVersion); 82 ret = VersionManager::GetInstance().AddDHVersion(dhVersion.uuid, dhVersion); 106 DHVersion dhVersion; variable 110 EXPECT_EQ(TEST_DH_VERSION, dhVersion.dhVersion); 141 DHVersion dhVersion; variable 145 dhVersion.dhVersion = TEST_DH_VERSION; 147 int32_t ret = VersionManager::GetInstance().AddDHVersion(dhVersion.uuid, dhVersion); 161 DHVersion dhVersion; variable [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/versionmanager/ |
H A D | version_manager.cpp | 33 DHVersion dhVersion; in Init() local 39 dhVersion.dhVersion = GetLocalDeviceVersion(); in Init() 40 ShowLocalVersion(dhVersion); in Init() 42 AddDHVersion(strUUID, dhVersion); in Init() 57 dhVersion.dhVersion.c_str(), item.first, item.second.handlerVersion.c_str(), in ShowLocalVersion() 69 dhVersions_[uuid] = dhVersion; in AddDHVersion() 101 dhVersion = dhVersions_[uuid]; in GetDHVersion() 111 DHVersion dhVersion; in GetCompVersion() local 112 int32_t ret = GetDHVersion(uuid, dhVersion); in GetCompVersion() 117 if (dhVersion.compVersions.find(dhType) == dhVersion.compVersions.end()) { in GetCompVersion() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/versionmanager/ |
H A D | version_manager.h | 39 int32_t AddDHVersion(const std::string &uuid, const DHVersion &dhVersion); 41 int32_t GetDHVersion(const std::string &uuid, DHVersion &dhVersion); 43 int32_t SyncDHVersionFromDB(const std::string &uuid, DHVersion &dhVersion); 45 void ShowLocalVersion(const DHVersion &dhVersion) const;
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_manager/src/ |
H A D | component_manager_test.cpp | 253 verInfo1.dhVersion = VERSION_1; 280 DHVersion dhVersion; variable 281 dhVersion.uuid = UUID_TEST; 282 dhVersion.dhVersion = VERSION_1; 283 …dhVersion.compVersions.insert(std::pair<DHType, CompVersion>(compVersions1.dhType, compVersions1)); 285 VersionManager::GetInstance().AddDHVersion(UUID_TEST, dhVersion); 575 DHVersion dhVersion; variable 578 dhVersion.uuid = UUID_TEST; 579 dhVersion.dhVersion = TEST_DH_VERSION; 580 dhVersion.compVersions.insert(std::make_pair(cVs.dhType, cVs)); [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/resourcemanager/ |
H A D | version_info_manager.cpp | 159 DHVersion dhVersion; in UpdateVersionCache() local 160 dhVersion.uuid = uuid; in UpdateVersionCache() 161 dhVersion.dhVersion = versionInfo.dhVersion; in UpdateVersionCache() 162 dhVersion.compVersions = versionInfo.compVersions; in UpdateVersionCache() 163 VersionManager::GetInstance().AddDHVersion(uuid, dhVersion); in UpdateVersionCache()
|
H A D | version_info.cpp | 74 cJSON_AddStringToObject(jsonObject, DH_VER.c_str(), versionInfo.dhVersion.c_str()); in ToJson() 133 versionInfo.dhVersion = cJSON_GetObjectItem(jsonObject, DH_VER.c_str())->valuestring; in FromJson()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/ |
H A D | distributed_hardware_manager.cpp | 157 DHVersion dhVersion; in GetComponentVersion() local 158 int32_t ret = ComponentLoader::GetInstance().GetLocalDHVersion(dhVersion); in GetComponentVersion() 164 … for (auto iter = dhVersion.compVersions.cbegin(); iter != dhVersion.compVersions.cend(); ++iter) { in GetComponentVersion()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/hidumphelper/ |
H A D | hidump_helper.cpp | 138 DHVersion dhVersion; in ShowAllLoadedComps() local 139 ComponentLoader::GetInstance().GetLocalDHVersion(dhVersion); in ShowAllLoadedComps() 151 auto iter = dhVersion.compVersions.find(compSource); in ShowAllLoadedComps() 152 if (iter != dhVersion.compVersions.end()) { in ShowAllLoadedComps() 172 auto iter = dhVersion.compVersions.find(compSink); in ShowAllLoadedComps() 173 if (iter != dhVersion.compVersions.end()) { in ShowAllLoadedComps()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/versioninfomanager/versioninfomanager/src/ |
H A D | version_info_manager_test.cpp | 77 verInfo1.dhVersion = VERSION_1; in CreateVersionInfos() 84 verInfo1.dhVersion = VERSION_2; in CreateVersionInfos() 91 verInfo1.dhVersion = VERSION_3; in CreateVersionInfos() 196 versionInfo.dhVersion = "dhVersion";
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/resourcemanager/ |
H A D | version_info.h | 27 std::string dhVersion; member
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/utils/ |
H A D | impl_utils.h | 67 std::string dhVersion; member
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentmanager/ |
H A D | component_manager.cpp | 880 DHVersion dhVersion; in UpdateVersionCache() local 881 dhVersion.uuid = uuid; in UpdateVersionCache() 882 dhVersion.dhVersion = versionInfo.dhVersion; in UpdateVersionCache() 883 dhVersion.compVersions = versionInfo.compVersions; in UpdateVersionCache() 884 VersionManager::GetInstance().AddDHVersion(uuid, dhVersion); in UpdateVersionCache()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/fuzztest/versioninfomanager_fuzzer/ |
H A D | versioninfomanager_fuzzer.cpp | 48 versionInfo.dhVersion = std::string(reinterpret_cast<const char*>(data), size); in VersioninfoManagerFuzzTest()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/componentloader/ |
H A D | component_loader.h | 83 int32_t GetLocalDHVersion(DHVersion &dhVersion);
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/versioninfomanager/versioninfo/src/ |
H A D | version_info_test.cpp | 76 verInfo1.dhVersion = VERSION_1;
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentloader/ |
H A D | component_loader.cpp | 347 int32_t ComponentLoader::GetLocalDHVersion(DHVersion &dhVersion) in GetLocalDHVersion() argument 353 dhVersion = localDHVersion_; in GetLocalDHVersion() 364 versionInfo.dhVersion = VersionManager::GetInstance().GetLocalDeviceVersion(); in StoreLocalDHVersionInDB()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/componentloader/src/ |
H A D | component_loader_test.cpp | 72 DHVersion dhVersion; variable 75 auto ret = ComponentLoader::GetInstance().GetLocalDHVersion(dhVersion); 79 ret = ComponentLoader::GetInstance().GetLocalDHVersion(dhVersion);
|