Home
last modified time | relevance | path

Searched refs:deviceProfileKey (Results 1 – 2 of 2) sorted by relevance

/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/utils/
H A Dprofile_cache.cpp105 …std::string deviceProfileKey = ProfileUtils::GenerateDeviceProfileKey(deviceProfile.GetDeviceId()); in AddDeviceProfile() local
112 deviceProfileMap_[deviceProfileKey] = deviceProfile; in AddDeviceProfile()
197 std::string deviceProfileKey = ProfileUtils::GenerateDeviceProfileKey(deviceId); in GetDeviceProfile() local
198 if (deviceProfileMap_.find(deviceProfileKey) == deviceProfileMap_.end()) { in GetDeviceProfile()
202 deviceProfile = deviceProfileMap_[deviceProfileKey]; in GetDeviceProfile()
272 std::string deviceProfileKey = ProfileUtils::GenerateDeviceProfileKey(deviceId); in DeleteDeviceProfile() local
275 deviceProfileMap_.erase(deviceProfileKey); in DeleteDeviceProfile()
316 …std::string deviceProfileKey = ProfileUtils::GenerateDeviceProfileKey(deviceProfile.GetDeviceId()); in IsDeviceProfileExist() local
319 if (deviceProfileMap_.find(deviceProfileKey) == deviceProfileMap_.end()) { in IsDeviceProfileExist()
323 DeviceProfile deviceProfileCache = deviceProfileMap_[deviceProfileKey]; in IsDeviceProfileExist()
/ohos5.0/foundation/deviceprofile/device_info_manager/common/src/utils/
H A Dprofile_utils.cpp463 std::string deviceProfileKey = GenerateDeviceProfileKey(profile.GetDeviceId()); in DeviceProfileToEntries() local
464 values[GenerateDBKey(deviceProfileKey, OS_SYS_CAPACITY)] = profile.GetOsSysCap(); in DeviceProfileToEntries()
465 values[GenerateDBKey(deviceProfileKey, OS_VERSION)] = profile.GetOsVersion(); in DeviceProfileToEntries()
466 values[GenerateDBKey(deviceProfileKey, OS_TYPE)] = std::to_string(profile.GetOsType()); in DeviceProfileToEntries()
467 … values[GenerateDBKey(deviceProfileKey, OS_VERSION + OH_PROFILE_SUFFIX)] = profile.GetOsVersion(); in DeviceProfileToEntries()
468 …values[GenerateDBKey(deviceProfileKey, OS_TYPE + OH_PROFILE_SUFFIX)] = std::to_string(profile.GetO… in DeviceProfileToEntries()