Home
last modified time | relevance | path

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

/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/
H A Dthumbnail_service.cpp684 static bool IsAstcChangeOldKeyToNewKeySuccess(std::shared_ptr<MediaLibraryKvStore> &monthKvStore, in IsAstcChangeOldKeyToNewKeySuccess() argument
695 monthKvStore->Delete(oldKey); in IsAstcChangeOldKeyToNewKeySuccess()
700 if (monthKvStore->Query(oldKey, monthValue) != E_OK || monthKvStore->Insert(newKey, monthValue) != E_OK || in IsAstcChangeOldKeyToNewKeySuccess()
701 monthKvStore->Delete(oldKey) != E_OK) { in IsAstcChangeOldKeyToNewKeySuccess()
732 auto monthKvStore = MediaLibraryKvStoreManager::GetInstance() in AstcChangeKeyFromDateAddedToDateTaken() local
734 if (monthKvStore == nullptr) { in AstcChangeKeyFromDateAddedToDateTaken()
751 if (!IsAstcChangeOldKeyToNewKeySuccess(monthKvStore, yearKvStore, oldKey, newKey)) { in AstcChangeKeyFromDateAddedToDateTaken()
752 monthKvStore->Delete(oldKey); in AstcChangeKeyFromDateAddedToDateTaken()
H A Dthumbnail_utils.cpp2263 std::shared_ptr<MediaLibraryKvStore> monthKvStore; in UpdateAstcDateTakenFromKvStore() local
2265 monthKvStore = MediaLibraryKvStoreManager::GetInstance() in UpdateAstcDateTakenFromKvStore()
2269 if (monthKvStore == nullptr || yearKvStore == nullptr) { in UpdateAstcDateTakenFromKvStore()
2275 if (monthKvStore->Query(formerKey, monthValue) != E_OK || monthKvStore->Insert(newKey, monthValue) != E_OK) { in UpdateAstcDateTakenFromKvStore()
2285 int status = monthKvStore->Delete(formerKey) && yearKvStore->Delete(formerKey); in UpdateAstcDateTakenFromKvStore()

Completed in 5 milliseconds