/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | connection.cpp | 27 auto dbType = config.GetDBType(); in Create() local 28 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in Create() 43 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in Repair() 58 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in Delete() 72 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in Collect() 86 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in RegisterCreator() 94 g_creators[dbType] = creator; in RegisterCreator() 100 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in RegisterRepairer() 108 g_repairers[dbType] = repairer; in RegisterRepairer() 114 if (dbType < static_cast<int32_t>(DB_SQLITE) || dbType >= static_cast<int32_t>(DB_BUTT)) { in RegisterDeleter() [all …]
|
H A D | rdb_store_config.cpp | 534 void RdbStoreConfig::SetDBType(int32_t dbType) in SetDBType() argument 536 dbType_ = dbType; in SetDBType()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/ |
H A D | backup_database_helper.cpp | 40 if (HasDb(dbType)) { in InitDb() 44 if (DB_INFO_MAP.count(dbType) == 0) { in InitDb() 48 DbInfo dbInfo = DB_INFO_MAP.at(dbType); in InitDb() 60 dbInfoMap_[dbType] = dbInfo; in InitDb() 66 for (auto dbType : dbTypeList) { in InitDb() local 67 InitDb(dbType, prefix); in InitDb() 73 if (HasDb(dbType)) { in AddDb() 86 dbType = fileQueryInfo.dbType; in IsFileExist() 87 if (!HasDb(fileQueryInfo.dbType)) { in IsFileExist() 106 return dbInfoMap_.count(dbType) > 0; in HasDb() [all …]
|
H A D | upgrade_restore.cpp | 1221 int32_t dbType = BackupDatabaseHelper::DbType::DEFAULT; in CheckInvalidFile() local 1224 backupDatabaseHelper_.IsFileExist(sceneCode_, fileInfo, dbType, dbStatus, fileStatus); in CheckInvalidFile() 1225 …MEDIA_INFO_LOG("Check status type: %{public}d, db: %{public}d, file: %{public}d", dbType, dbStatus… in CheckInvalidFile() 1226 return BackupLogUtils::FileDbCheckInfoToString(FileDbCheckInfo(dbType, dbStatus, fileStatus)); in CheckInvalidFile()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/ |
H A D | backup_database_helper.h | 45 int32_t dbType {DbType::DEFAULT}; 50 FileQueryInfo(int32_t dbType, const std::string &tableName, const std::string &columnName, in FileQueryInfo() 51 …const std::string &path) : dbType(dbType), tableName(tableName), columnName(columnName), path(path… in FileQueryInfo() 56 void InitDb(int32_t dbType, const std::string &prefix); 58 void AddDb(int32_t dbType, std::shared_ptr<NativeRdb::RdbStore> rdbStore); 59 … void IsFileExist(int32_t sceneCode, const FileInfo &fileInfo, int32_t &dbType, int32_t &dbStatus, 63 bool HasDb(int32_t dbType);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/ |
H A D | database_oper.cpp | 85 std::string dbSubDir = KvDBProperties::GetStoreSubDirectory(dbType); in GetCtrlFilePrefix() 99 std::string dbSubDir = KvDBProperties::GetStoreSubDirectory(dbType); in RekeyRecover() 117 return RecoverPrehandle(dbType, backupDir, preCtrlFileName); in RekeyRecover() 341 if (dbType == DBConstant::DB_TYPE_LOCAL) { // LCOV_EXCL_BR_LINE in RemoveDbDir() 347 if (dbType == DBConstant::DB_TYPE_SINGLE_VER) { // LCOV_EXCL_BR_LINE in RemoveDbDir() 353 if (dbType == DBConstant::DB_TYPE_MULTI_VER) { // LCOV_EXCL_BR_LINE in RemoveDbDir() 449 if (fileInfo.dbType != static_cast<uint32_t>(dbType)) { in UnpackAndCheckImportedFile() 451 …E("Check db type [%u] vs [%u] or devicesId fail!", fileInfo.dbType, static_cast<uint32_t>(dbType)); in UnpackAndCheckImportedFile() 508 std::string dbSubDir = KvDBProperties::GetStoreSubDirectory(dbType); in ClearImportTempFile() 528 return RemoveImportedBackFiles(backupDir, oriKeepFile, dbType); in ClearImportTempFile() [all …]
|
H A D | database_oper.h | 78 int RecoverPrehandle(int dbType, const std::string &dir, const std::string &fileName); 80 int RemoveDbDir(const std::string &dir, int dbType, bool isNeedDelDir = true); 91 …int RecoverImportedBackFiles(const std::string &dir, const std::string &fileName, int dbType) cons… 93 …ImportedBackFiles(const std::string &backupDir, const std::string &ctrlFileName, int dbType) const;
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/report/ |
H A D | photos_count_statistic.cpp | 290 .SetDbType(dbType) in GetAllStatInfo() 328 .SetDbType(dbType) in GetAllImageStatInfo() 365 .SetDbType(dbType) in GetAllVideoStatInfo() 398 .SetDbType(dbType) in GetAllRestoreStatInfo() 437 .SetDbType(dbType) in GetAllRestoreImageStatInfo() 474 .SetDbType(dbType) in GetAllRestoreVideoStatInfo() 516 .SetDbType(dbType) in GetImageAlbumInfo() 556 .SetDbType(dbType) in GetVideoAlbumInfo() 636 .SetDbType(dbType) in GetFavoriteAlbumStatInfo() 678 .SetDbType(dbType) in GetTrashedAlbumStatInfo() [all …]
|
H A D | gallery_media_count_statistic.cpp | 473 .SetDbType(dbType) in GetAllStatInfo() 512 .SetDbType(dbType) in GetAllImageStatInfo() 549 .SetDbType(dbType) in GetAllVideoStatInfo() 584 .SetDbType(dbType) in GetAllRestoreStatInfo() 623 .SetDbType(dbType) in GetAllRestoreImageStatInfo() 660 .SetDbType(dbType) in GetAllRestoreVideoStatInfo() 693 .SetDbType(dbType) in GetSdCardStatInfo() 721 .SetDbType(dbType) in GetDuplicateStatInfo() 746 .SetDbType(dbType) in GetAppTwinStatInfo() 787 .SetDbType(dbType) in GetImageAlbumInfo() [all …]
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/include/ |
H A D | connection.h | 45 static int32_t RegisterCreator(int32_t dbType, Creator creator); 46 static int32_t RegisterRepairer(int32_t dbType, Repairer repairer); 47 static int32_t RegisterDeleter(int32_t dbType, Deleter deleter); 48 static int32_t RegisterCollector(int32_t dbType, Collector collector);
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/report/ |
H A D | media_backup_report_data_type.h | 183 AlbumNameInfo &SetDbType(int32_t dbType) in SetDbType() argument 185 this->dbType_ = dbType; in SetDbType() 332 int32_t dbType{-1}; 335 FileDbCheckInfo(int32_t dbType, int32_t dbStatus, int32_t fileStatus) in FileDbCheckInfo() 336 : dbType(dbType), dbStatus(dbStatus), fileStatus(fileStatus) {} in FileDbCheckInfo()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/relationalstoremanager_fuzzer/ |
H A D | relationalstoremanager_fuzzer.cpp | 102 auto dbType = static_cast<DBType>(data[0]); in RuntimeConfigTest() local 103 RuntimeConfig::SetAutoLaunchRequestCallback(autoLaunchRequestCallback, dbType); in RuntimeConfigTest() 106 RuntimeConfig::ReleaseAutoLaunch(userId, appId, storeId, dbType); in RuntimeConfigTest()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/ndk/src/ |
H A D | relational_store.cpp | 56 int dbType = RDB_SQLITE; member 163 int OH_Rdb_SetDbType(OH_Rdb_ConfigV2 *config, int dbType) in OH_Rdb_SetDbType() argument 166 (dbType < RDB_SQLITE || dbType > RDB_CAYLEY)) { in OH_Rdb_SetDbType() 168 (config == nullptr), (config == nullptr ? 0 : config->magicNum), dbType); in OH_Rdb_SetDbType() 171 if (dbType == RDB_CAYLEY && !(OHOS::NativeRdb::IsUsingArkData())) { in OH_Rdb_SetDbType() 174 config->dbType = dbType; in OH_Rdb_SetDbType() 319 (config->dbType < RDB_SQLITE || config->dbType > RDB_CAYLEY)) { in GetRdbStoreConfig() 322 … %{public}d ret %{public}d", config->magicNum, config->securityLevel, config->area, config->dbType, in GetRdbStoreConfig() 337 rdbStoreConfig.SetIsVector(config->dbType == RDB_CAYLEY); in GetRdbStoreConfig()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/kv/ |
H A D | sqlite_local_kvdb.cpp | 357 …int dbType = properties.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_SQLIT… in RemoveKvDB() local 358 …return KvDBUtils::RemoveKvDB(storeDir, storeOnlyDir, KvDBProperties::GetStoreSubDirectory(dbType)); in RemoveKvDB() 366 …int dbType = properties.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_SQLIT… in GetKvDBSize() local 367 …KvDBUtils::GetKvDbSize(storeDir, storeOnlyDir, KvDBProperties::GetStoreSubDirectory(dbType), size); in GetKvDBSize()
|
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/platform/include/ |
H A D | preferences_dfx_adapter.h | 32 std::string dbType; // NORMAL_DB or ENHANCE_DB member
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_file_package_test.cpp | 145 g_fileInfo.dbType = 1; in SetUpTestCase() 191 ASSERT_EQ(fileInfo.dbType, g_fileInfo.dbType);
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/ |
H A D | package_file.h | 22 uint32_t dbType; member
|
H A D | package_file.cpp | 199 errCode = parcel.WriteUInt32(fileInfo.dbType); in PackFileHeader() 266 (void)parcel.ReadUInt32(fileInfo.dbType); in UnpackFileHeader()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/ |
H A D | generic_kvdb.cpp | 381 void GenericKvDB::GetStoreDirectory(const KvDBProperties &properties, int dbType, in GetStoreDirectory() argument 386 std::string subDir = KvDBProperties::GetStoreSubDirectory(dbType); in GetStoreDirectory()
|
H A D | generic_kvdb.h | 165 void GetStoreDirectory(const KvDBProperties &properties, int dbType,
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/log/ |
H A D | backup_log_utils.cpp | 94 infoStream << info.dbType; in FileDbCheckInfoToString()
|
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/platform/src/ |
H A D | preferences_dfx_adapter.cpp | 87 .v = { .s = const_cast<char *>(reportParam.dbType.c_str()) }, in ReportDbFault()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/mock/include/ |
H A D | napi_rdb_store.h | 80 int32_t dbType = NativeRdb::DB_SQLITE; variable
|
/ohos5.0/base/security/access_token/services/privacymanager/src/record/ |
H A D | permission_record_manager.cpp | 379 … uint32_t dbType = static_cast<uint32_t>(results[0].GetInt(PrivacyFiledConst::FIELD_USED_TYPE)); in AddOrUpdateUsedTypeIfNeeded() local 380 ACCESSTOKEN_LOG_DEBUG(LABEL, "Record exsit, type is %{public}u.", dbType); in AddOrUpdateUsedTypeIfNeeded() 382 if ((dbType & inputType) == inputType) { in AddOrUpdateUsedTypeIfNeeded() 388 dbType |= inputType; in AddOrUpdateUsedTypeIfNeeded() 391 ACCESSTOKEN_LOG_DEBUG(LABEL, "Used type not add, generate new %{public}u.", dbType); in AddOrUpdateUsedTypeIfNeeded() 394 newValue.Put(PrivacyFiledConst::FIELD_USED_TYPE, static_cast<int32_t>(dbType)); in AddOrUpdateUsedTypeIfNeeded()
|
/ohos5.0/foundation/distributeddatamgr/relational_store/interfaces/ndk/include/ |
H A D | relational_store.h | 310 int OH_Rdb_SetDbType(OH_Rdb_ConfigV2 *config, int dbType);
|