Home
last modified time | relevance | path

Searched refs:storageType (Results 1 - 11 of 11) sorted by relevance

/foundation/window/window_manager/utils/src/
H A Dpersistent_storage.cpp34 bool PersistentStorage::HasKey(const std::string& key, PersistentStorageType storageType) in HasKey() argument
37 auto pref = GetPreference(storageType); in HasKey()
48 void PersistentStorage::Delete(const std::string& key, PersistentStorageType storageType) in Delete() argument
50 auto pref = GetPreference(storageType); in Delete()
60 std::shared_ptr<PersistentPerference> PersistentStorage::GetPreference(PersistentStorageType storageType) in GetPreference() argument
62 auto iter = storagePath_.find(storageType); in GetPreference()
66 auto fileName = storagePath_[storageType]; in GetPreference()
74 void PersistentStorage::Insert(const std::string& key, const T& value, PersistentStorageType storageType) in Insert() argument
76 auto pref = GetPreference(storageType); in Insert()
81 switch (storageType) { in Insert()
101 Get(const std::string& key, T& value, PersistentStorageType storageType) Get() argument
[all...]
/foundation/window/window_manager/window_scene/test/unittest/
H A Dscene_persistent_storage_test.cpp58 ScenePersistentStorageType storageType = ScenePersistentStorageType::UKNOWN; in HWTEST_F() local
59 bool result01 = scenePersistentStorage_.HasKey(key, storageType); in HWTEST_F()
61 storageType = ScenePersistentStorageType::ASPECT_RATIO; in HWTEST_F()
62 bool result02 = scenePersistentStorage_.HasKey(key, storageType); in HWTEST_F()
75 ScenePersistentStorageType storageType = ScenePersistentStorageType::UKNOWN; in HWTEST_F() local
76 scenePersistentStorage_.Delete(key, storageType); in HWTEST_F()
77 storageType = ScenePersistentStorageType::ASPECT_RATIO; in HWTEST_F()
78 scenePersistentStorage_.Delete(key, storageType); in HWTEST_F()
/foundation/window/window_manager/window_scene/session/host/include/
H A Dscene_persistent_storage.h42 static void Insert(const std::string& key, const T& value, ScenePersistentStorageType storageType) in Insert() argument
44 auto pref = GetPreference(storageType); in Insert()
49 switch (storageType) { in Insert()
69 static void Get(const std::string& key, T& value, ScenePersistentStorageType storageType) in Get() argument
71 auto pref = GetPreference(storageType); in Get()
76 switch (storageType) { in Get()
94 static bool HasKey(const std::string& key, ScenePersistentStorageType storageType);
95 static void Delete(const std::string& key, ScenePersistentStorageType storageType);
101 static std::shared_ptr<PersistentPerference> GetPreference(ScenePersistentStorageType storageType);
/foundation/window/window_manager/utils/include/
H A Dpersistent_storage.h34 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);
/foundation/window/window_manager/window_scene/session/host/src/
H A Dscene_persistent_storage.cpp26 bool ScenePersistentStorage::HasKey(const std::string& key, ScenePersistentStorageType storageType) in HasKey() argument
29 auto pref = GetPreference(storageType); in HasKey()
40 void ScenePersistentStorage::Delete(const std::string& key, ScenePersistentStorageType storageType) in Delete() argument
42 auto pref = GetPreference(storageType); in Delete()
52 std::shared_ptr<PersistentPerference> ScenePersistentStorage::GetPreference(ScenePersistentStorageType storageType) in GetPreference() argument
54 auto iter = storagePath_.find(storageType); in GetPreference()
58 auto fileName = storagePath_[storageType]; in GetPreference()
/foundation/multimedia/media_library/frameworks/services/media_mtp/src/
H A Dstorage.cpp78 void Storage::SetStorageType(uint16_t storageType) in SetStorageType() argument
80 storageType_ = storageType; in SetStorageType()
/foundation/multimedia/media_library/frameworks/services/media_mtp/include/
H A Dstorage.h36 void SetStorageType(uint16_t storageType);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/include/relational/
H A Dtable_info.h46 void SetStorageType(StorageType storageType);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsqlite_relational_utils.cpp32 int storageType = sqlite3_column_type(statement, cid); in GetDataValueByType() local
33 switch (storageType) { in GetDataValueByType()
/foundation/filemanagement/storage_service/services/storage_daemon/libfscrypt/src/
H A Dfscrypt_control.c412 static int ActSetFileXattrActSetFileXattr(const char *path, char *keyDesc, int storageType) in ActSetFileXattrActSetFileXattr() argument
416 PolicySDP.sdpclass = storageType; in ActSetFileXattrActSetFileXattr()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/relational/
H A Dtable_info.cpp144 void FieldInfo::SetStorageType(StorageType storageType) in SetStorageType() argument
146 storageType_ = storageType; in SetStorageType()

Completed in 5 milliseconds