Home
last modified time | relevance | path

Searched refs:storePath (Results 1 – 18 of 18) sorted by relevance

/ohos5.0/base/update/updater/test/unittest/applypatch_test/
H A Dstore_unittest.cpp44 std::string storePath = "/data/updater/ut_test"; variable
45 Store::CreateNewSpace(storePath, true);
49 Store::WriteDataToStore(storePath, filename1, buffer, 4096);
50 Store::WriteDataToStore(storePath, filename2, buffer, 4096);
51 Store::LoadDataFromStore(storePath, filename1, buffer);
52 Store::DoFreeSpace(storePath);
53 Store::WriteDataToStore(storePath, filename1, buffer, 4096);
55 Store::FreeStore(storePath, filename2);
56 EXPECT_EQ(Store::CreateNewSpace(storePath, true), 0);
67 std::string storePath = "data/updater/ut_test"; variable
[all …]
H A Dall_cmd_unittest.cpp125 std::string storePath = "/data/updater/update_tmp"; variable
126 Store::CreateNewSpace(storePath, false);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dbackup_manager.cpp74 std::string storePath = topPath + "/" + storeId; in Prepare() local
75 std::string autoBackupName = storePath + "/" + AUTO_BACKUP_NAME + BACKUP_POSTFIX; in Prepare()
77 (void)StoreUtil::InitPath(storePath); in Prepare()
119 std::string storePath = topPath + "/" + storeId; in Backup() local
120 std::string backupFullName = storePath + "/" + name + BACKUP_POSTFIX; in Backup()
125 if ((StoreUtil::GetFiles(storePath).size() >= MAX_BACKUP_NUM) && isCreate) { in Backup()
129 (void)StoreUtil::InitPath(storePath); in Backup()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/
H A Drd_single_ver_natural_store.cpp285 int RdSingleVerNaturalStore::PreCheckRdImport(std::string &storePath) in PreCheckRdImport() argument
306 storePath = optionTemp.uri; in PreCheckRdImport()
307 if (storePath.empty()) { in PreCheckRdImport()
317 std::string storePath; in Import() local
319 errCode = PreCheckRdImport(storePath); in Import()
352 errCode = RdRestore(storePath.c_str(), filePath.c_str(), decryptedKey, decryptedKeyLen); in Import()
H A Drd_single_ver_natural_store.h149 int PreCheckRdImport(std::string &storePath);
/ohos5.0/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/
H A Dhks_storage.c484 static int32_t DestroyType(const char *storePath, const char *typePath, uint32_t bakFlag) in DestroyType() argument
491 int32_t ret = GetPath(storePath, typePath, destroyPath, HKS_MAX_FILE_NAME_LEN, bakFlag); in DestroyType()
520 char *storePath = (char *)HksMalloc(HKS_MAX_FILE_NAME_LEN); in StoreDestroy() local
521 HKS_IF_NULL_RETURN(storePath, HKS_ERROR_MALLOC_FAIL) in StoreDestroy()
523 int32_t ret = GetPath(rootPath, processNameEncoded, storePath, HKS_MAX_FILE_NAME_LEN, bakFlag); in StoreDestroy()
526 HKS_FREE(storePath); in StoreDestroy()
530 ret = DestroyType(storePath, HKS_KEY_STORE_ROOT_KEY_PATH, bakFlag); in StoreDestroy()
535 ret = DestroyType(storePath, HKS_KEY_STORE_KEY_PATH, bakFlag); in StoreDestroy()
540 HKS_FREE(storePath); in StoreDestroy()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/
H A Dkv_store_delegate_manager.cpp84 void InitPropWithNbOption(KvDBProperties &properties, const std::string &storePath, in InitPropWithNbOption() argument
93 properties.SetStringProp(KvDBProperties::DATA_DIR, storePath); in InitPropWithNbOption()
139 void InitPropWithOption(KvDBProperties &properties, const std::string &storePath, in InitPropWithOption() argument
148 properties.SetStringProp(KvDBProperties::DATA_DIR, storePath); in InitPropWithOption()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/cloud/
H A Dcloud_db_sync_utils_test.h85 …static void InitStoreProp(const std::string &storePath, const std::string &appId, const std::strin…
H A Dcloud_db_sync_utils_test.cpp311 void CloudDBSyncUtilsTest::InitStoreProp(const std::string &storePath, const std::string &appId, in InitStoreProp() argument
314 properties.SetStringProp(RelationalDBProperties::DATA_DIR, storePath); in InitStoreProp()
H A Ddistributeddb_cloud_asset_compare_test.cpp152 …void InitStoreProp(const std::string &storePath, const std::string &appId, const std::string &user… in InitStoreProp() argument
155 properties.SetStringProp(RelationalDBProperties::DATA_DIR, storePath); in InitStoreProp()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/storage_fuzzer/
H A Dstorage_fuzzer.cpp133 …void InitStoreProp(const std::string &storePath, const std::string &appId, const std::string &user… in InitStoreProp() argument
136 properties.SetStringProp(RelationalDBProperties::DATA_DIR, storePath); in InitStoreProp()
/ohos5.0/base/update/updater/services/applypatch/
H A Dblock_set.cpp305 std::string storePath = storeBase + "/" + srcHash; in LoadTargetBuffer() local
307 int res = stat(storePath.c_str(), &storeStat); in LoadTargetBuffer()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_relational_encrypted_db_test.cpp60 void InitStoreProp(const std::string &storePath, const std::string &appId, const std::string &userI… in InitStoreProp() argument
63 properties.SetStringProp(RelationalDBProperties::DATA_DIR, storePath); in InitStoreProp()
H A Ddistributeddb_relational_remote_query_test.cpp72 void InitStoreProp(const std::string &storePath, const std::string &appId, const std::string &userI… in InitStoreProp() argument
75 properties.SetStringProp(RelationalDBProperties::DATA_DIR, storePath); in InitStoreProp()
H A Ddistributeddb_relational_cloud_syncable_storage_test.cpp351 void InitStoreProp(const std::string &storePath, const std::string &appId, const std::string &userI… in InitStoreProp() argument
354 properties.SetStringProp(RelationalDBProperties::DATA_DIR, storePath); in InitStoreProp()
H A Ddistributeddb_relational_get_data_test.cpp128 void InitStoreProp(const std::string &storePath, const std::string &appId, const std::string &userI… in InitStoreProp() argument
131 properties.SetStringProp(RelationalDBProperties::DATA_DIR, storePath); in InitStoreProp()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/cloud/
H A Ddistributeddb_cloud_meta_data_test.cpp62 …void InitStoreProp(const std::string &storePath, const std::string &appId, const std::string &user… in InitStoreProp() argument
65 properties.SetStringProp(RelationalDBProperties::DATA_DIR, storePath); in InitStoreProp()
H A Ddistributeddb_cloud_save_cloud_data_test.cpp195 …void InitStoreProp(const std::string &storePath, const std::string &appId, const std::string &user… in InitStoreProp() argument
198 properties.SetStringProp(RelationalDBProperties::DATA_DIR, storePath); in InitStoreProp()