/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_service.cpp | 685 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 D | thumbnail_utils.cpp | 1292 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 D | auth_session_key.c | 54 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 D | intercepted_data_impl.cpp | 121 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 D | huks_master_test.cpp | 219 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 D | crypto_test.cpp | 220 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 D | huks_master.h | 65 int HdiAccessUpgradeKey(const HksBlob &oldKey, const HksParamSet *paramSet, struct HksBlob &newKey);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/syntax/ |
H A D | repeat_virtual_scroll_caches.cpp | 306 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 D | huks_master.cpp | 279 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 D | sqlite_single_relational_storage_engine.cpp | 910 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 D | clone_restore.cpp | 669 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 D | sqlite_single_ver_storage_executor.cpp | 2195 Key oldKey; in Translate() local 2197 oldKey = Key(keyBlob, keyBlob + keyBlobLen); in Translate() 2200 context->callback(oldKey, newKey); in Translate()
|