Lines Matching defs:key
34 bool PersistentStorage::HasKey(const std::string& key, PersistentStorageType storageType)
42 res = pref->HasKey(key);
43 WLOGD("[PersistentStorage] %{public}s %{public}s", key.c_str(),
44 (res ? "Has persisted key:" : "Don't have persisted key:"));
48 void PersistentStorage::Delete(const std::string& key, PersistentStorageType storageType)
55 pref->Delete(key);
57 WLOGD("[PersistentStorage] Delete key %{public}s", key.c_str());
74 void PersistentStorage::Insert(const std::string& key, const T& value, PersistentStorageType storageType)
83 pref->PutFloat(key, value);
84 WLOGFD("[PersistentStorage] Insert aspect ratio, key %{public}s, value %{public}f",
85 key.c_str(), static_cast<float>(value));
89 pref->PutInt(key, value);
90 WLOGFD("[PersistentStorage] Insert Maximize state, key %{public}s, value %{public}d",
91 key.c_str(), static_cast<int>(value));
101 void PersistentStorage::Get(const std::string& key, T& value, PersistentStorageType storageType)
110 value = pref->GetFloat(key);
111 WLOGFD("[PersistentStorage] Get aspect ratio, key: %{public}s, value:%{public}f",
112 key.c_str(), static_cast<float>(value));
116 value = pref->GetInt(key);
117 WLOGFD("[PersistentStorage] Get Maximize state, key: %{public}s, value:%{public}d",
118 key.c_str(), static_cast<int>(value));