• Home
  • Raw
  • Download

Lines Matching refs:uuid

109     std::string uuid = DHContext::GetInstance().GetDeviceInfo().uuid;  in StartSource()  local
112 VersionManager::GetInstance().GetCompVersion(uuid, item.first, compversion); in StartSource()
124 std::string uuid = DHContext::GetInstance().GetDeviceInfo().uuid; in StartSink() local
127 VersionManager::GetInstance().GetCompVersion(uuid, item.first, compversion); in StartSink()
211 int32_t ComponentManager::Enable(const std::string &networkId, const std::string &uuid, const std::… in Enable() argument
214 auto dhType = GetDHType(uuid, dhId); in Enable()
221 auto ret = GetEnableParam(networkId, uuid, dhId, dhType, param); in Enable()
223 … DHLOGE("GetEnableParam failed, uuid = %s, dhId = %s, errCode = %d", GetAnonyString(uuid).c_str(), in Enable()
226 if (!DHContext::GetInstance().IsDeviceOnline(uuid)) { in Enable()
228 GetAnonyString(uuid).c_str()); in Enable()
231 if (GetEnableParam(networkId, uuid, dhId, dhType, param) == DH_FWK_SUCCESS) { in Enable()
243 if (!DHContext::GetInstance().IsDeviceOnline(uuid)) { in Enable()
244 … DHLOGE("device is already offline, no need try enable, uuid = %s", GetAnonyString(uuid).c_str()); in Enable()
255 …DHLOGI("enable result is %d, uuid = %s, dhId = %s", result, GetAnonyString(uuid).c_str(), dhId.c_s… in Enable()
259 int32_t ComponentManager::Disable(const std::string &networkId, const std::string &uuid, const std:… in Disable() argument
261 auto dhType = GetDHType(uuid, dhId); in Disable()
271 if (DHContext::GetInstance().IsDeviceOnline(uuid)) { in Disable()
272 … DHLOGE("device is already online, no need try disable, uuid = %s", GetAnonyString(uuid).c_str()); in Disable()
283 …DHLOGI("disable result is %d, uuid = %s, dhId = %s", result, GetAnonyString(uuid).c_str(), dhId.c_… in Disable()
287 DHType ComponentManager::GetDHType(const std::string &uuid, const std::string &dhId) const in GetDHType() argument
290 …auto ret = CapabilityInfoManager::GetInstance()->GetCapability(GetDeviceIdByUUID(uuid), dhId, capa… in GetDHType()
294 DHLOGE("get dhType failed, uuid = %s, dhId = %s", GetAnonyString(uuid).c_str(), dhId.c_str()); in GetDHType()
298 int32_t ComponentManager::GetEnableParam(const std::string &networkId, const std::string &uuid, in GetEnableParam() argument
302 …auto ret = CapabilityInfoManager::GetInstance()->GetCapability(GetDeviceIdByUUID(uuid), dhId, capa… in GetEnableParam()
304 …DHLOGE("GetCapability failed, uuid =%s, dhId = %s, errCode = %d", GetAnonyString(uuid).c_str(), dh… in GetEnableParam()
310 param.version = GetSinkVersion(networkId, uuid, dhType); in GetEnableParam()
312 …DHLOGI("Get Sink Version failed, uuid = %s, dhId = %s", GetAnonyString(uuid).c_str(), dhId.c_str()… in GetEnableParam()
316 DHLOGI("success. uuid =%s, dhId = %s, version = %s", GetAnonyString(uuid).c_str(), dhId.c_str(), in GetEnableParam()
322 std::string ComponentManager::GetSinkVersion(const std::string &networkId, const std::string &uuid,… in GetSinkVersion() argument
325 auto sinkVersion = GetVersionFromCache(uuid, dhType); in GetSinkVersion()
328 GetAnonyString(uuid).c_str(), dhType); in GetSinkVersion()
332 auto updateResult = UpdateVersionCache(networkId, uuid); in GetSinkVersion()
334 …DHLOGE("UpdateVersionCache failed, uuid = %s, errCode = %d", GetAnonyString(uuid).c_str(), updateR… in GetSinkVersion()
338 sinkVersion = GetVersionFromCache(uuid, dhType); in GetSinkVersion()
342 std::string ComponentManager::GetVersionFromCache(const std::string &uuid, DHType dhType) in GetVersionFromCache() argument
345 auto iter = sinkVersions_.find(uuid); in GetVersionFromCache()
347 DHLOGE("can not find component version for uuid = %s", GetAnonyString(uuid).c_str()); in GetVersionFromCache()
353 DHLOGE("can not find component version for uuid = %s, dhType = %#X", uuid.c_str(), dhType); in GetVersionFromCache()
359 int32_t ComponentManager::UpdateVersionCache(const std::string &networkId, const std::string &uuid) in UpdateVersionCache() argument
375 sinkVersions_.emplace(uuid, versions); in UpdateVersionCache()