Home
last modified time | relevance | path

Searched refs:oldKey (Results 1 - 12 of 12) 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()
687 if (oldKey.compare(newKey) == 0) { in IsAstcChangeOldKeyToNewKeySuccess()
688 MEDIA_INFO_LOG("OldKey: %{public}s is same to newKey", oldKey.c_str()); in IsAstcChangeOldKeyToNewKeySuccess()
695 monthKvStore->Delete(oldKey); in IsAstcChangeOldKeyToNewKeySuccess()
696 yearKvStore->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()
705 if (yearKvStore->Query(oldKey, yearValue) != E_OK || yearKvStore->Insert(newKey, yearValue) != E_OK || in IsAstcChangeOldKeyToNewKeySuccess()
706 yearKvStore->Delete(oldKey) != E_OK) { in IsAstcChangeOldKeyToNewKeySuccess()
745 std::string oldKey; in AstcChangeKeyFromDateAddedToDateTaken() local
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.cpp1292 static inline bool IsKeyNotSame(const string &newKey, const string &oldKey) in IsKeyNotSame() argument
1294 return !newKey.empty() && !oldKey.empty() && (newKey != oldKey); in IsKeyNotSame()
/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_session_key.c54 SessionKeyItem *oldKey = NULL; in RemoveOldKey() local
59 oldKey = item; in RemoveOldKey()
62 if (oldKey == NULL) { in RemoveOldKey()
66 ListDelete(&oldKey->node); in RemoveOldKey()
68 oldKey->index, oldKey->type); in RemoveOldKey()
69 (void)memset_s(&oldKey->key, sizeof(SessionKey), 0, sizeof(SessionKey)); in RemoveOldKey()
70 SoftBusFree(oldKey); in RemoveOldKey()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/
H A Dintercepted_data_impl.cpp121 const auto &oldKey = dataItems_[indexes_[index]]->GetKey(); in ModifyKey() local
122 size_t newLength = totalLength_ - Parcel::GetVectorCharLen(oldKey) + Parcel::GetVectorCharLen(newKey); in ModifyKey()
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/huks_master_test/
H A Dhuks_master_test.cpp219 HksBlob oldKey; in HWTEST_F() local
226 EXPECT_EQ(HuksMaster::GetInstance().HdiAccessUpgradeKey(oldKey, paramSet, newKey), HKS_ERROR_NULL_POINTER); in HWTEST_F()
229 EXPECT_EQ(HuksMaster::GetInstance().HdiAccessUpgradeKey(oldKey, paramSet, newKey), HKS_ERROR_NULL_POINTER); in HWTEST_F()
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/test/crypto_test/
H A Dcrypto_test.cpp220 const HksBlob oldKey {}; in HWTEST_F()
224 int ret = HuksMaster::GetInstance().HdiAccessUpgradeKey(oldKey, paramSet, newKey); in HWTEST_F()
/foundation/filemanagement/storage_service/services/storage_daemon/include/crypto/
H A Dhuks_master.h65 int HdiAccessUpgradeKey(const HksBlob &oldKey, const HksParamSet *paramSet, struct HksBlob &newKey);
/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/
H A Drepeat_virtual_scroll_caches.cpp306 const auto& oldKey = GetL2KeyToUpdate(ttype); in UpdateFromL2() local
307 if (!oldKey) { in UpdateFromL2()
317 static_cast<int32_t>(forIndex), oldKey.value().c_str()); in UpdateFromL2()
320 onUpdateNode_(oldKey.value(), forIndex); in UpdateFromL2()
324 static_cast<int32_t>(forIndex), oldKey.value().c_str()); in UpdateFromL2()
326 return UINodeHasBeenUpdated(ttype, oldKey.value(), forKey); in UpdateFromL2()
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dhuks_master.cpp279 int HuksMaster::HdiAccessUpgradeKey(const HksBlob &oldKey, const HksParamSet *paramSet, struct HksBlob &newKey) in HdiAccessUpgradeKey() argument
291 auto ret = halDevice_->HuksHdiUpgradeKey(&oldKey, paramSet, &newKey); in HdiAccessUpgradeKey()
304 retryRet = halDevice_->HuksHdiUpgradeKey(&oldKey, paramSet, &newKey); in HdiAccessUpgradeKey()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/relational/
H A Dsqlite_single_relational_storage_engine.cpp910 Key oldKey = DBCommon::GetPrefixTableName(tableName.first); in UpdateKvData() local
912 int ret = handle->GetKvData(oldKey, value); in UpdateKvData()
920 keys.push_back(oldKey); in UpdateKvData()
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/
H A Dclone_restore.cpp669 string oldKey; in MoveAstc() local
671 if (!GenerateKvStoreKey(to_string(fileInfo.fileIdOld), fileInfo.oldAstcDateKey, oldKey) || in MoveAstc()
678 if (oldMonthKvStorePtr_->Query(oldKey, monthValue) != E_OK || in MoveAstc()
683 if (oldYearKvStorePtr_->Query(oldKey, yearValue) != E_OK || in MoveAstc()
689 oldMonthKvStorePtr_->Delete(oldKey); in MoveAstc()
690 oldYearKvStorePtr_->Delete(oldKey); in MoveAstc()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/
H A Dsqlite_single_ver_storage_executor.cpp2195 Key oldKey; in Translate() local
2197 oldKey = Key(keyBlob, keyBlob + keyBlobLen); in Translate()
2200 context->callback(oldKey, newKey); in Translate()

Completed in 20 milliseconds