Home
last modified time | relevance | path

Searched refs:yearKvStore (Results 1 - 2 of 2) sorted by relevance

/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/
H A Dthumbnail_service.cpp685 std::shared_ptr<MediaLibraryKvStore> &yearKvStore, const std::string &oldKey, const std::string &newKey) in IsAstcChangeOldKeyToNewKeySuccess()
693 if (yearKvStore->Query(newKey, yearValue) == E_OK) { in IsAstcChangeOldKeyToNewKeySuccess()
696 yearKvStore->Delete(oldKey); in IsAstcChangeOldKeyToNewKeySuccess()
705 if (yearKvStore->Query(oldKey, yearValue) != E_OK || yearKvStore->Insert(newKey, yearValue) != E_OK || in IsAstcChangeOldKeyToNewKeySuccess()
706 yearKvStore->Delete(oldKey) != E_OK) { in IsAstcChangeOldKeyToNewKeySuccess()
738 auto yearKvStore = MediaLibraryKvStoreManager::GetInstance() in AstcChangeKeyFromDateAddedToDateTaken() local
740 if (yearKvStore == nullptr) { in AstcChangeKeyFromDateAddedToDateTaken()
751 if (!IsAstcChangeOldKeyToNewKeySuccess(monthKvStore, yearKvStore, oldKey, newKey)) { in AstcChangeKeyFromDateAddedToDateTaken()
753 yearKvStore in AstcChangeKeyFromDateAddedToDateTaken()
684 IsAstcChangeOldKeyToNewKeySuccess(std::shared_ptr<MediaLibraryKvStore> &monthKvStore, std::shared_ptr<MediaLibraryKvStore> &yearKvStore, const std::string &oldKey, const std::string &newKey) IsAstcChangeOldKeyToNewKeySuccess() argument
[all...]
H A Dthumbnail_utils.cpp2264 std::shared_ptr<MediaLibraryKvStore> yearKvStore; in UpdateAstcDateTakenFromKvStore() local
2267 yearKvStore = MediaLibraryKvStoreManager::GetInstance() in UpdateAstcDateTakenFromKvStore()
2269 if (monthKvStore == nullptr || yearKvStore == nullptr) { in UpdateAstcDateTakenFromKvStore()
2280 if (yearKvStore->Query(formerKey, yearValue) != E_OK || yearKvStore->Insert(newKey, yearValue) != E_OK) { in UpdateAstcDateTakenFromKvStore()
2285 int status = monthKvStore->Delete(formerKey) && yearKvStore->Delete(formerKey); in UpdateAstcDateTakenFromKvStore()

Completed in 5 milliseconds