Home
last modified time | relevance | path

Searched refs:dbPath_ (Results 1 – 25 of 33) sorted by relevance

12

/ohos5.0/base/hiviewdfx/hiview/plugins/usage_event_report/cache/
H A Devent_db_helper.cpp50 EventDbHelper::EventDbHelper(const std::string workPath) : dbPath_(workPath), rdbStore_(nullptr) in EventDbHelper()
60 std::string workPath = dbPath_; in InitDbStore()
62 dbPath_ += "/"; in InitDbStore()
64 dbPath_ += DB_DIR; in InitDbStore()
65 if (!FileUtil::FileExists(dbPath_)) { in InitDbStore()
66 if (FileUtil::ForceCreateDirectory(dbPath_, FileUtil::FILE_PERM_770)) { in InitDbStore()
69 dbPath_ = workPath; in InitDbStore()
73 dbPath_ += DB_NAME; in InitDbStore()
75 NativeRdb::RdbStoreConfig config(dbPath_); in InitDbStore()
227 HIVIEW_LOGD("insert db=%{public}s with %{public}s", dbPath_.c_str(), eventStr.c_str()); in InsertPluginStatsTable()
[all …]
H A Dfold_app_usage_db_helper.cpp130 dbPath_ = workPath; in FoldAppUsageDbHelper()
132 dbPath_ = workPath + "/"; in FoldAppUsageDbHelper()
134 dbPath_ += LOG_DB_PATH; in FoldAppUsageDbHelper()
135 CreateDbStore(dbPath_, LOG_DB_NAME); in FoldAppUsageDbHelper()
/ohos5.0/base/hiviewdfx/hiview/plugins/sysevent_source/control/db/
H A Ddaily_db_helper.cpp100 dbPath_ = tempDbPath; in InitDbPath()
101 HIVIEW_LOGI("succ to init db store path=%{public}s", dbPath_.c_str()); in InitDbPath()
107 NativeRdb::RdbStoreConfig config(dbPath_); in InitDbStore()
199 std::string dateOfDbFile = HiviewDbUtil::GetDateFromDbFile(dbPath_); in NeedReport()
218 if (!HiviewDbUtil::InitDbUploadPath(dbPath_, uploadPath_)) { in PrepareOldDbFilesBeforeReport()
223 HiviewDbUtil::MoveDbFilesToUploadDir(dbPath_, uploadPath_); in PrepareOldDbFilesBeforeReport()
237 HiSysEvent::EventType::FAULT, "DATE", HiviewDbUtil::GetDateFromDbFile(dbPath_)); in ReportDailyEvent()
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/platform/src/
H A Dpreferences_db_adapter.cpp149 ExtractFileName(dbPath_), in GetReportParam()
166 ExtractFileName(dbPath_).c_str()); in CloseDb()
203 …int errCode = PreferenceDbAdapter::GetApiInstance().DbOpenApi(dbPath_.c_str(), CONFIG_STR, flag, &… in OpenDb()
220 int errCode = PreferenceDbAdapter::GetApiInstance().DbRepairApi(dbPath_.c_str(), CONFIG_STR); in RepairDb()
232 ExtractFileName(dbPath_).c_str()); in TryRepairAndRebuild()
259 …ild db failed, errCode: %{public}d, file: %{public}s", innerErr, ExtractFileName(dbPath_).c_str()); in TryRepairAndRebuild()
273 dbPath_ = dbPath + ".db"; in Init()
319 … LOG_INFO("CreateCollection called when Put, file: %{public}s", ExtractFileName(dbPath_).c_str()); in Put()
354 …OG_INFO("CreateCollection called when Delete, file: %{public}s", ExtractFileName(dbPath_).c_str()); in Delete()
391 … LOG_INFO("CreateCollection called when Get, file: %{public}s", ExtractFileName(dbPath_).c_str()); in Get()
[all …]
/ohos5.0/base/accesscontrol/sandbox_manager/services/common/database/src/
H A Dsqlite_helper.cpp27 : dbName_(dbName), dbPath_(dbPath), currentVersion_(version), db_(nullptr) in SqliteHelper()
39 if (dbName_.empty() || dbPath_.empty() || currentVersion_ < 0) { in Open()
42 dbName_.c_str(), dbPath_.c_str(), currentVersion_); in Open()
45 std::string fileName = dbPath_ + dbName_; in Open()
/ohos5.0/base/security/access_token/services/common/database/src/
H A Dsqlite_helper.cpp30 : dbName_(dbName), dbPath_(dbPath), currentVersion_(version), db_(nullptr) in SqliteHelper()
42 if (dbName_.empty() || dbPath_.empty() || currentVersion_ < 0) { in Open()
45 dbName_.c_str(), dbPath_.c_str(), currentVersion_); in Open()
51 std::string fileName = dbPath_ + dbName_; in Open()
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_restore/src/
H A Dringtone_restore.cpp45 dbPath_ = backupPath + RINGTONELIBRARY_DB_PATH + "/rdb" + "/" + RINGTONE_LIBRARY_DB_NAME; in Init()
48 if (!RingtoneFileUtils::IsFileExists(dbPath_)) { in Init()
49 RINGTONE_ERR_LOG("ringtone db is not exist, path=%{public}s", dbPath_.c_str()); in Init()
55 int32_t err = RingtoneRestoreDbUtils::InitDb(restoreRdb_, RINGTONE_LIBRARY_DB_NAME, dbPath_, in Init()
/ohos5.0/base/security/security_guard/services/config_manager/src/
H A Dapp_info_rdb_helper.cpp30 dbPath_ = FOLDER_PATH + "app_info.db"; in AppInfoRdbHelper()
36 NativeRdb::RdbStoreConfig config(dbPath_); in Init()
/ohos5.0/base/security/security_guard/services/data_collect/store/src/
H A Daudit_event_rdb_helper.cpp29 dbPath_ = FOLDER_PATH + "audit_event.db"; in AuditEventRdbHelper()
42 NativeRdb::RdbStoreConfig config(dbPath_); in Init()
H A Drisk_event_rdb_helper.cpp31 dbPath_ = FOLDER_PATH + "risk_event.db"; in RiskEventRdbHelper()
37 NativeRdb::RdbStoreConfig config(dbPath_); in Init()
H A Daudit_event_mem_rdb_helper.cpp43 dbPath_ = FOLDER_PATH + "audit_event_mem.db"; in AuditEventMemRdbHelper()
54 NativeRdb::RdbStoreConfig config(dbPath_); in Init()
/ohos5.0/base/telephony/telephony_data/opkey/src/
H A Drdb_opkey_helper.cpp34 NativeRdb::RdbStoreConfig config(dbPath_); in Init()
50 dbPath_ = path + DB_NAME; in UpdateDbPath()
/ohos5.0/base/telephony/telephony_data/global_params/src/
H A Drdb_global_params_helper.cpp35 NativeRdb::RdbStoreConfig config(dbPath_); in Init()
54 dbPath_ = path + DB_NAME; in UpdateDbPath()
/ohos5.0/base/telephony/telephony_data/opkey/include/
H A Drdb_opkey_helper.h75 std::string dbPath_ = FOLDER_PATH + DB_NAME; variable
/ohos5.0/base/telephony/telephony_data/sim/src/
H A Drdb_sim_helper.cpp34 NativeRdb::RdbStoreConfig config(dbPath_); in Init()
47 dbPath_ = path + DB_NAME; in UpdateDbPath()
/ohos5.0/base/telephony/telephony_data/global_params/include/
H A Drdb_global_params_helper.h71 std::string dbPath_ = FOLDER_PATH + DB_NAME; variable
/ohos5.0/base/telephony/telephony_data/sim/include/
H A Drdb_sim_helper.h92 std::string dbPath_ = FOLDER_PATH + DB_NAME; variable
/ohos5.0/base/telephony/telephony_data/pdp_profile/include/
H A Drdb_pdp_profile_helper.h104 std::string dbPath_ = FOLDER_PATH + DB_NAME; variable
/ohos5.0/base/accesscontrol/sandbox_manager/services/common/database/include/
H A Dsqlite_helper.h50 const std::string dbPath_; variable
/ohos5.0/foundation/multimedia/ringtone_library/services/ringtone_restore/include/
H A Dringtone_restore.h43 std::string dbPath_ = {}; variable
/ohos5.0/base/security/access_token/services/common/database/include/
H A Dsqlite_helper.h60 const std::string dbPath_; variable
/ohos5.0/base/telephony/telephony_data/sms_mms/include/
H A Drdb_sms_mms_helper.h143 std::string dbPath_ = FOLDER_PATH + DB_NAME; variable
/ohos5.0/base/hiviewdfx/hiview/plugins/sysevent_source/control/db/include/
H A Ddaily_db_helper.h61 std::string dbPath_; variable
/ohos5.0/base/security/security_guard/services/config_manager/include/
H A Dconfig_database_helper.h40 std::string dbPath_{};
/ohos5.0/base/telephony/telephony_data/pdp_profile/src/
H A Drdb_pdp_profile_helper.cpp36 NativeRdb::RdbStoreConfig config(dbPath_); in Init()
49 dbPath_ = path + DB_NAME; in UpdateDbPath()

12