Searched refs:PersistentStorageType (Results 1 – 8 of 8) sorted by relevance
/ohos5.0/foundation/window/window_manager/utils/test/unittest/ |
H A D | persistent_storage_test.cpp | 57 auto result = PersistentStorage::HasKey(keyName, PersistentStorageType::UKNOWN); 60 auto result2 = PersistentStorage::HasKey(keyName, PersistentStorageType::ASPECT_RATIO); 75 PersistentStorage::Delete(keyName, PersistentStorageType::UKNOWN); 76 auto result0 = PersistentStorage::HasKey(keyName, PersistentStorageType::UKNOWN); 79 PersistentStorage::Insert(keyName, ratioValue, PersistentStorageType::UKNOWN); 80 PersistentStorage::Get(keyName, ratio, PersistentStorageType::UKNOWN); 83 PersistentStorage::Insert(keyName, ratioValue, PersistentStorageType::ASPECT_RATIO); 84 PersistentStorage::Get(keyName, ratio, PersistentStorageType::ASPECT_RATIO); 90 PersistentStorage::Delete(keyName, PersistentStorageType::ASPECT_RATIO); 95 PersistentStorage::Get(keyName, ratio, PersistentStorageType::MAXIMIZE_STATE); [all …]
|
/ohos5.0/foundation/window/window_manager/utils/src/ |
H A D | persistent_storage.cpp | 24 template void PersistentStorage::Insert(const std::string&, const int&, PersistentStorageType); 25 template void PersistentStorage::Insert(const std::string&, const float&, PersistentStorageType); 26 template void PersistentStorage::Get(const std::string&, int&, PersistentStorageType); 27 template void PersistentStorage::Get(const std::string&, float&, PersistentStorageType); 29 std::map<PersistentStorageType, std::string> PersistentStorage::storagePath_ = { 34 bool PersistentStorage::HasKey(const std::string& key, PersistentStorageType storageType) in HasKey() 48 void PersistentStorage::Delete(const std::string& key, PersistentStorageType storageType) in Delete() 82 case PersistentStorageType::ASPECT_RATIO: { in Insert() 88 case PersistentStorageType::MAXIMIZE_STATE: { in Insert() 109 case PersistentStorageType::ASPECT_RATIO: { in Get() [all …]
|
/ohos5.0/foundation/window/window_manager/utils/include/ |
H A D | persistent_storage.h | 34 static void Insert(const std::string& key, const T& value, PersistentStorageType storageType); 37 static void Get(const std::string& key, T& value, PersistentStorageType storageType); 39 static bool HasKey(const std::string& key, PersistentStorageType storageType); 40 static void Delete(const std::string& key, PersistentStorageType storageType); 43 static std::shared_ptr<PersistentPerference> GetPreference(PersistentStorageType storageType); 44 static std::map<PersistentStorageType, std::string> storagePath_;
|
H A D | wm_common_inner.h | 187 enum class PersistentStorageType : uint32_t { enum
|
/ohos5.0/foundation/window/window_manager/wmserver/src/ |
H A D | window_manager_service.cpp | 304 if (PersistentStorage::HasKey("maximize_state", PersistentStorageType::MAXIMIZE_STATE)) { in Init() 306 … PersistentStorage::Get("maximize_state", storageMode, PersistentStorageType::MAXIMIZE_STATE); in Init() 1612 if (PersistentStorage::HasKey("maximize_state", PersistentStorageType::MAXIMIZE_STATE)) { in SetMaximizeMode() 1613 … PersistentStorage::Get("maximize_state", storageMode, PersistentStorageType::MAXIMIZE_STATE); in SetMaximizeMode() 1614 PersistentStorage::Delete("maximize_state", PersistentStorageType::MAXIMIZE_STATE); in SetMaximizeMode() 1617 PersistentStorageType::MAXIMIZE_STATE); in SetMaximizeMode()
|
H A D | window_layout_policy.cpp | 772 if (PersistentStorage::HasKey(keyName, PersistentStorageType::ASPECT_RATIO)) { in GetStoragedAspectRatio() 774 PersistentStorage::Get(keyName, ratio, PersistentStorageType::ASPECT_RATIO); in GetStoragedAspectRatio()
|
H A D | window_controller.cpp | 1671 if (PersistentStorage::HasKey(keyName, PersistentStorageType::ASPECT_RATIO)) { in SetAspectRatio() 1672 PersistentStorage::Delete(keyName, PersistentStorageType::ASPECT_RATIO); in SetAspectRatio() 1676 PersistentStorage::Insert(keyName, ratio, PersistentStorageType::ASPECT_RATIO); in SetAspectRatio()
|
/ohos5.0/foundation/window/window_manager/wmserver/test/unittest/ |
H A D | window_layout_policy_test.cpp | 1438 auto result = PersistentStorage::HasKey(keyName, PersistentStorageType::ASPECT_RATIO);
|