/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_store_config_test.cpp | 110 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; in HWTEST_F() local 111 RdbStoreConfig config(dbPath, StorageMode::MODE_DISK, false); in HWTEST_F() 128 ret = access(dbPath.c_str(), F_OK); in HWTEST_F() 138 ret = RdbHelper::DeleteRdbStore(dbPath); in HWTEST_F() 226 const std::string dbPath = "config_test.db"; in HWTEST_F() local 227 RdbStoreConfig config(dbPath, StorageMode::MODE_DISK, false); in HWTEST_F() 241 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; in HWTEST_F() local 242 RdbStoreConfig config(dbPath, StorageMode::MODE_DISK, false); in HWTEST_F() 264 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; in HWTEST_F() local 265 RdbStoreConfig config(dbPath, StorageMod in HWTEST_F() 288 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 312 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 336 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 359 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 383 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 406 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 435 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 467 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 511 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 543 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 586 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 618 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 639 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 660 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 680 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 701 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 731 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 761 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 785 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 841 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 886 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 901 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 916 const std::string dbPath = RDB_TEST_PATH + "config_test_29.db"; HWTEST_F() local 950 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 975 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 994 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local 1020 const std::string dbPath = RDB_TEST_PATH + "config_test.db"; HWTEST_F() local [all...] |
H A D | rdb_helper_test.cpp | 166 const std::string dbPath = RDB_TEST_PATH + "GetDatabase.db"; in HWTEST_F() local 167 RdbStoreConfig config(dbPath); in HWTEST_F() 192 const std::string dbPath = RDB_TEST_PATH + "GetDatabase.db"; in HWTEST_F() local 193 RdbStoreConfig config(dbPath); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/test/ |
H A D | security_manager_test.cpp | 75 std::string dbPath = "/data/service/el1/public/database/SecurityManagerTest"; in HWTEST_F() local 77 StoreUtil::InitPath(dbPath); in HWTEST_F() 78 SecurityManager::KeyFiles keyFiles(dbName, dbPath); in HWTEST_F() 98 std::string dbPath = "/data/service/el1/public/database/SecurityManagerTest"; in HWTEST_F() local 100 StoreUtil::InitPath(dbPath); in HWTEST_F() 101 SecurityManager::KeyFiles keyFiles(dbName, dbPath); in HWTEST_F() 106 std::thread thread([dbPath, dbName, blockResult]() { in HWTEST_F() 107 SecurityManager::KeyFiles keyFiles(dbName, dbPath); in HWTEST_F() 128 std::string dbPath = "/data/service/el1/public/database/SecurityManagerTest"; in HWTEST_F() local 130 StoreUtil::InitPath(dbPath); in HWTEST_F() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_single_ver_upgrade_test.cpp | 338 std::string dbPath = g_testDir + g_databaseName; in HWTEST_F() local 339 OpenDbProperties property = {dbPath, true, false, ORIG_DATABASE_V1}; in HWTEST_F() 343 bool isDatabaseExists = OS::CheckPathExistence(dbPath); in HWTEST_F() 355 dbPath = g_testDir + g_newDatabaseName; in HWTEST_F() 356 property = {dbPath, true, false}; in HWTEST_F() 384 std::string dbPath = g_testDir + g_databaseName; in HWTEST_F() local 385 OpenDbProperties property = {dbPath, true, false, ORIG_DATABASE_V2}; in HWTEST_F() 388 bool isDatabaseExists = OS::CheckPathExistence(dbPath); in HWTEST_F() 400 dbPath = g_testDir + g_newDatabaseName; in HWTEST_F() 401 property = {dbPath, tru in HWTEST_F() 429 std::string dbPath = g_testDir + g_databaseName; HWTEST_F() local 491 std::string dbPath = g_testDir + g_databaseName; HWTEST_F() local 532 std::string dbPath = g_testDir + g_databaseName; HWTEST_F() local 567 std::string dbPath = g_testDir + g_databaseName; HWTEST_F() local 622 std::string dbPath = g_testDir + g_databaseName; HWTEST_F() local [all...] |
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/mock/src/ |
H A D | rdb_fault_hiview_reporter.cpp | 41 bool RdbFaultHiViewReporter::IsReportCorruptedFault(const std::string &dbPath) in IsReportCorruptedFault() argument 46 void RdbFaultHiViewReporter::CreateCorruptedFlag(const std::string &dbPath) in CreateCorruptedFlag() argument 48 (void)dbPath; in CreateCorruptedFlag() 51 void RdbFaultHiViewReporter::DeleteCorruptedFlag(const std::string &dbPath) in DeleteCorruptedFlag() argument 53 (void)dbPath; in DeleteCorruptedFlag()
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/include/ |
H A D | kv_hiview_reporter.h | 47 static void DeleteCorruptedFlag(const std::string &dbPath, const std::string &storeId); 53 static bool IsReportCorruptedFault(const std::string &dbPath, const std::string &storeId); 55 static void CreateCorruptedFlag(const std::string &dbPath, const std::string &storeId); 57 static std::string GetFileStatInfo(const std::string &dbPath);
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/ |
H A D | rdb_security_manager.h | 73 KeyFiles(const std::string &dbPath, bool openFile = true);
88 RdbPassword GetRdbPassword(const std::string &dbPath, KeyFileType keyFileType);
89 void DelAllKeyFiles(const std::string &dbPath);
90 void DelKeyFile(const std::string &dbPath, KeyFileType keyFileType);
91 void ChangeKeyFile(const std::string &dbPath);
92 int32_t RestoreKeyFile(const std::string &dbPath, const std::vector<uint8_t> &key);
93 bool IsKeyFileExists(const std::string &dbPath, KeyFileType keyFileType);
|
H A D | rd_utils.h | 33 static int RdDbOpen(const char *dbPath, const char *configStr, uint32_t flags, GRD_DB **db); 34 static int RdDbRepair(const char *dbPath, const char *configStr);
|
H A D | sqlite_connection.h | 84 int Configure(const RdbStoreConfig &config, std::string &dbPath);
95 void LimitPermission(const std::string &dbPath) const;
112 int32_t OpenDatabase(const std::string &dbPath, int openFileFlags);
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | kv_hiview_reporter.cpp | 126 std::string KVDBFaultHiViewReporter::GetFileStatInfo(const std::string &dbPath) in GetFileStatInfo() argument 134 auto file = dbPath + defaultPath + suffix.suffix_; in GetFileStatInfo() 188 bool KVDBFaultHiViewReporter::IsReportCorruptedFault(const std::string &dbPath, const std::string &storeId) in IsReportCorruptedFault() argument 190 if (dbPath.empty()) { in IsReportCorruptedFault() 191 ZLOGW("dbPath path is empty"); in IsReportCorruptedFault() 195 std::string flagFilename = dbPath + storeId + DB_CORRUPTED_POSTFIX; in IsReportCorruptedFault() 203 void KVDBFaultHiViewReporter::CreateCorruptedFlag(const std::string &dbPath, const std::string &storeId) in CreateCorruptedFlag() argument 205 if (dbPath.empty()) { in CreateCorruptedFlag() 206 ZLOGW("dbPath path is empty"); in CreateCorruptedFlag() 209 std::string flagFilename = dbPath in CreateCorruptedFlag() 220 DeleteCorruptedFlag(const std::string &dbPath, const std::string &storeId) DeleteCorruptedFlag() argument [all...] |
H A D | kv_hiview_reporter_mock.cpp | 69 bool KVDBFaultHiViewReporter::IsReportCorruptedFault(const std::string &dbPath, const std::string &storeId) in IsReportCorruptedFault() argument 74 void KVDBFaultHiViewReporter::CreateCorruptedFlag(const std::string &dbPath, const std::string &storeId) in CreateCorruptedFlag() argument 79 void KVDBFaultHiViewReporter::DeleteCorruptedFlag(const std::string &dbPath, const std::string &storeId) in DeleteCorruptedFlag() argument
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rd_connection.cpp | 64 std::string dbPath = ""; in Repair() local 65 auto errCode = SqliteGlobalConfig::GetDbPath(config, dbPath); in Repair() 71 errCode = RdUtils::RdDbRepair(dbPath.c_str(), GetConfigStr(key, config.IsEncrypt()).c_str()); in Repair() 137 std::string dbPath = ""; in InnerOpen() local 138 auto errCode = SqliteGlobalConfig::GetDbPath(config, dbPath); in InnerOpen() 155 errCode = RdUtils::RdDbOpen(dbPath.c_str(), configStr.c_str(), GRD_DB_OPEN_CREATE, &dbHandle_); in InnerOpen() 157 errCode = RdUtils::RdDbRekey(dbPath.c_str(), GetConfigStr({}, false).c_str(), key); in InnerOpen() 164 errCode = RdUtils::RdDbOpen(dbPath.c_str(), configStr.c_str(), GRD_DB_OPEN_CREATE, &dbHandle_); in InnerOpen() 213 std::string dbPath = ""; in ReSetKey() local 214 int errCode = SqliteGlobalConfig::GetDbPath(config, dbPath); in ReSetKey() [all...] |
H A D | rdb_security_manager.cpp | 517 RdbPassword RdbSecurityManager::GetRdbPassword(const std::string &dbPath, KeyFileType keyFileType)
in GetRdbPassword() argument 519 KeyFiles keyFiles(dbPath);
in GetRdbPassword() 541 void RdbSecurityManager::DelAllKeyFiles(const std::string &dbPath)
in DelAllKeyFiles() argument 544 const std::string dbKeyDir = StringUtils::ExtractFilePath(dbPath) + "key/";
in DelAllKeyFiles() 548 KeyFiles keyFiles(dbPath);
in DelAllKeyFiles() 559 void RdbSecurityManager::DelKeyFile(const std::string &dbPath, KeyFileType keyFileType)
in DelKeyFile() argument 561 KeyFiles keyFiles(dbPath);
in DelKeyFile() 592 bool RdbSecurityManager::IsKeyFileExists(const std::string &dbPath, KeyFileType keyFileType)
in IsKeyFileExists() argument 594 KeyFiles keyFiles(dbPath, false);
in IsKeyFileExists() 598 void RdbSecurityManager::ChangeKeyFile(const std::string &dbPath)
in ChangeKeyFile() argument 623 RestoreKeyFile(const std::string &dbPath, const std::vector<uint8_t> &key) RestoreKeyFile() argument 641 KeyFiles(const std::string &dbPath, bool openFile) KeyFiles() argument [all...] |
H A D | sqlite_global_config.cpp | 107 int SqliteGlobalConfig::GetDbPath(const RdbStoreConfig &config, std::string &dbPath) in GetDbPath() argument 122 dbPath = SqliteGlobalConfig::GetMemoryDbPath(); in GetDbPath() 127 dbPath = path; in GetDbPath()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/executor/base/ |
H A D | grd_db_api_inner.cpp | 25 int32_t GRD_DBOpenInner(const char *dbPath, const char *configStr, uint32_t flags, GRD_DB **db) in GRD_DBOpenInner() argument 30 std::string path = (dbPath == nullptr ? "" : dbPath); in GRD_DBOpenInner()
|
H A D | grd_db_api.cpp | 28 GRD_API int32_t GRD_DBOpen(const char *dbPath, const char *configStr, uint32_t flags, GRD_DB **db) in GRD_DBOpen() argument 38 return GRD_DBApiInfo.DBOpenApi(dbPath, configStr, flags, db); in GRD_DBOpen()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/dfx/src/ |
H A D | rdb_fault_hiview_reporter.cpp | 118 bool RdbFaultHiViewReporter::IsReportCorruptedFault(const std::string &dbPath) in IsReportCorruptedFault() argument 120 if (dbPath.empty()) { in IsReportCorruptedFault() 124 std::string flagFilename = dbPath + DB_CORRUPTED_POSTFIX; in IsReportCorruptedFault() 131 void RdbFaultHiViewReporter::CreateCorruptedFlag(const std::string &dbPath) in CreateCorruptedFlag() argument 133 if (dbPath.empty()) { in CreateCorruptedFlag() 136 std::string flagFilename = dbPath + DB_CORRUPTED_POSTFIX; in CreateCorruptedFlag() 146 void RdbFaultHiViewReporter::DeleteCorruptedFlag(const std::string &dbPath) in DeleteCorruptedFlag() argument 148 if (dbPath.empty()) { in DeleteCorruptedFlag() 151 std::string flagFilename = dbPath + DB_CORRUPTED_POSTFIX; in DeleteCorruptedFlag()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/dfx/include/ |
H A D | rdb_fault_hiview_reporter.h | 56 static bool IsReportCorruptedFault(const std::string &dbPath); 61 static void CreateCorruptedFlag(const std::string &dbPath); 62 static void DeleteCorruptedFlag(const std::string &dbPath);
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/media_event_test/src/ |
H A D | event_thumbnail_test.cpp | 54 const string dbPath = "/data/test/medialibrary_utils_test.db"; in SetUpTestCase() local 55 NativeRdb::RdbStoreConfig config(dbPath); in SetUpTestCase()
|
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_backup_test/src/ |
H A D | external_source.cpp | 37 void ExternalSource::Init(const string &dbPath) in Init() argument 39 NativeRdb::RdbStoreConfig config(dbPath); in Init()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_single_ver_dlp_test.cpp | 49 std::string dbPath = *g_testDir + dlpPath; in OpenDelegate() local 51 storeConfig.dataDir = dbPath; in OpenDelegate() 52 OS::MakeDBDirectory(dbPath); in OpenDelegate() 55 string dir = dbPath + "/single_ver"; in OpenDelegate() 81 std::string dbPath = dbDir + "/test.db"; in OpenDelegate() local 82 auto db = RelationalTestUtils::CreateDataBase(dbPath); in OpenDelegate() 87 return mgr.OpenStore(dbPath, STORE_ID_1, option, rdbDelegatePtr); in OpenDelegate()
|
/foundation/bundlemanager/app_domain_verify/services/include/manager/rdb/ |
H A D | app_domain_verify_rdb_config.h | 28 std::string dbPath{ Constants::SERVICE_PATH };
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/rdb/ |
H A D | bms_rdb_config.h | 28 std::string dbPath { ServiceConstants::BUNDLE_MANAGER_SERVICE_PATH };
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/executor/include/ |
H A D | grd_db_api_inner.h | 21 int32_t GRD_DBOpenInner(const char *dbPath, const char *configStr, uint32_t flags, GRD_DB **db);
|
/foundation/multimedia/ringtone_library/services/ringtone_restore/src/ |
H A D | ringtone_restore_db_utils.cpp | 32 const std::string &dbPath, const std::string &bundleName, bool isMediaLibrary) in InitDb() 35 config.SetPath(dbPath); in InitDb() 31 InitDb(std::shared_ptr<NativeRdb::RdbStore> &rdbStore, const std::string &dbName, const std::string &dbPath, const std::string &bundleName, bool isMediaLibrary) InitDb() argument
|