Home
last modified time | relevance | path

Searched refs:serviceProfileKey (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/utils/
H A Dprofile_cache.cpp124 …std::string serviceProfileKey = ProfileUtils::GenerateServiceProfileKey(serviceProfile.GetDeviceId… in AddServiceProfile() local
132 serviceProfileMap_[serviceProfileKey] = serviceProfile; in AddServiceProfile()
216 … std::string serviceProfileKey = ProfileUtils::GenerateServiceProfileKey(deviceId, serviceName); in GetServiceProfile() local
217 if (serviceProfileMap_.find(serviceProfileKey) == serviceProfileMap_.end()) { in GetServiceProfile()
221 serviceProfile = serviceProfileMap_[serviceProfileKey]; in GetServiceProfile()
286 std::string serviceProfileKey = ProfileUtils::GenerateServiceProfileKey(deviceId, serviceName); in DeleteServiceProfile() local
289 serviceProfileMap_.erase(serviceProfileKey); in DeleteServiceProfile()
339 …std::string serviceProfileKey = ProfileUtils::GenerateServiceProfileKey(serviceProfile.GetDeviceId… in IsServiceProfileExist() local
343 if (serviceProfileMap_.find(serviceProfileKey) == serviceProfileMap_.end()) { in IsServiceProfileExist()
347 ServiceProfile serviceProfileCache = serviceProfileMap_[serviceProfileKey]; in IsServiceProfileExist()
/ohos5.0/foundation/deviceprofile/device_info_manager/common/src/utils/
H A Dprofile_utils.cpp475 std::string serviceProfileKey = GenerateServiceProfileKey(profile.GetDeviceId(), serviceName); in ServiceProfileToEntries() local
477 values[GenerateDBKey(serviceProfileKey, SERVICE_NAME)] = profile.GetServiceName(); in ServiceProfileToEntries()
478 values[GenerateDBKey(serviceProfileKey, SERVICE_TYPE)] = profile.GetServiceType(); in ServiceProfileToEntries()
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/unittest/
H A Dprofile_control_utils_test.cpp939 std::string serviceProfileKey = SVR_PREFIX + SEPARATOR + deviceId + SEPARATOR + serviceName; variable
940 ProfileCache::GetInstance().serviceProfileMap_[serviceProfileKey] = serviceProfile;