Home
last modified time | relevance | path

Searched refs:databaseType (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dbundle_active_usage_database.h52 void UpdateEventData(int32_t databaseType, BundleActivePeriodStats &stats);
86 void HandleTableInfo(uint32_t databaseType);
97 void FlushEventInfo(uint32_t databaseType, BundleActivePeriodStats &stats);
98 void DeleteExcessiveTableData(uint32_t databaseType);
104 int32_t CreateDurationTable(uint32_t databaseType);
105 int32_t CreateBundleHistoryTable(uint32_t databaseType);
106 int32_t CreateModuleRecordTable(uint32_t databaseType, int64_t timeStamp);
107 int32_t CreateFormRecordTable(uint32_t databaseType, int64_t timeStamp);
114 void CheckDatabaseFile(uint32_t databaseType);
123 const int64_t endTime, const int32_t databaseType,
[all …]
/ohos5.0/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_usage_database.cpp245 if (databaseType >= 0 && databaseType < sortedTableArray_.size()) { in HandleTableInfo()
258 if ((databaseType == DAILY_DATABASE_INDEX) && !sortedTableArray_.at(databaseType).empty()) { in HandleTableInfo()
303 if (databaseType >= 0 && databaseType < SORTED_TABLE_ARRAY_NUMBER) { in DeleteExcessiveTableData()
313 DeleteInvalidTable(databaseType, sortedTableArray_.at(databaseType).at(0)); in DeleteExcessiveTableData()
395 if (databaseType >= 0 && databaseType < sortedTableArray_.size()) { in DeleteInvalidTable()
602 if (databaseType >= 0 && databaseType < sortedTableArray_.size()) { in CheckDatabaseFile()
1003 if (databaseType < 0 || databaseType >= static_cast<int32_t>(sortedTableArray_.size())) { in GetCurrentUsageData()
1081 if (databaseType >= 0 && databaseType < sortedTableArray_.size()) { in GetTableIndexSql()
1180 if (databaseType >= 0 && databaseType < sortedTableArray_.size()) { in RenameTableName()
1349 if (databaseType < 0 || databaseType >= EVENT_DATABASE_INDEX) { in UpdateBundleUsageData()
[all …]
/ohos5.0/foundation/resourceschedule/device_usage_statistics/test/unittest/
H A Ddevice_usage_statistics_service_test.cpp381 databaseType = 0;
400 databaseType = 0;
551 databaseType = 4;
554 databaseType = 0;
578 databaseType = 4;
582 databaseType = 5;
612 databaseType = 4;
615 databaseType = 5;
651 databaseType = 4;
654 databaseType = 0;
[all …]
H A Ddevice_usage_statistics_mock_test.cpp381 int32_t databaseType = DAILY_DATABASE_INDEX; variable
385 database->HandleTableInfo(databaseType);
425 int32_t databaseType = EVENT_DATABASE_INDEX; variable
426 database->DeleteExcessiveTableData(databaseType);
427 database->DeleteInvalidTable(databaseType, 0);
428 database->CreateEventLogTable(databaseType, 0);
429 database->CreatePackageLogTable(databaseType, 0);
432 database->CreateDurationTable(databaseType);
444 database->FlushPackageInfo(databaseType, stats);
445 database->FlushEventInfo(databaseType, stats);
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/
H A Dstorage_engine_manager.cpp40 int IsSingleVerType(int databaseType) in IsSingleVerType() argument
42 return databaseType == KvDBProperties::SINGLE_VER_TYPE_SQLITE || in IsSingleVerType()
43 databaseType == KvDBProperties::SINGLE_VER_TYPE_RD_KERNAL; in IsSingleVerType()
199 StorageEngine *CreateSingleVerStorageEngine(int databaseType) in CreateSingleVerStorageEngine() argument
201 if (databaseType == KvDBProperties::SINGLE_VER_TYPE_SQLITE) { in CreateSingleVerStorageEngine()
211 int databaseType = GetDatabaseType(property); in CreateStorageEngine() local
212 if (!IsSingleVerType(databaseType)) { in CreateStorageEngine()
213 LOGE("[StorageEngineManager] Database type error : %d", databaseType); in CreateStorageEngine()
218 auto storageEngine = CreateSingleVerStorageEngine(databaseType); in CreateStorageEngine()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/kv/
H A Dsqlite_local_kvdb.cpp51 …int databaseType = kvDBProp.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_S… in Open() local
52 if (databaseType == KvDBProperties::LOCAL_TYPE_SQLITE) { in Open()
69 std::string subDir = KvDBProperties::GetStoreSubDirectory(databaseType); in Open()
299 …int databaseType = kvDBProp.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_S… in InitDataBaseOption() local
301 std::string subDir = KvDBProperties::GetStoreSubDirectory(databaseType); in InitDataBaseOption()
321 …int databaseType = properties.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE… in BackupCurrentDatabase() local
322 std::string subDir = KvDBProperties::GetStoreSubDirectory(databaseType); in BackupCurrentDatabase()
341 …int databaseType = properties.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE… in ImportDatabase() local
342 std::string subDir = KvDBProperties::GetStoreSubDirectory(databaseType); in ImportDatabase()
/ohos5.0/foundation/resourceschedule/device_usage_statistics/test/unittest/mock/
H A Dbundle_active_usage_database_mock.cpp22 …ed_ptr<NativeRdb::ResultSet> BundleActiveUsageDatabase::QueryStatsInfoByStep(uint32_t databaseType, in QueryStatsInfoByStep() argument
29 …_ptr<NativeRdb::RdbStore> BundleActiveUsageDatabase::GetBundleActiveRdbStore(uint32_t databaseType) in GetBundleActiveRdbStore() argument
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/kv/
H A Dkvdb_manager.cpp56 …int databaseType = property.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_S… in CreateDataBaseInstance() local
57 if (databaseType == KvDBProperties::LOCAL_TYPE_SQLITE) { in CreateDataBaseInstance()
66 } else if (databaseType == KvDBProperties::SINGLE_VER_TYPE_SQLITE) { in CreateDataBaseInstance()
68 } else if (databaseType == KvDBProperties::SINGLE_VER_TYPE_RD_KERNAL) { in CreateDataBaseInstance()
397 databaseType == KvDBProperties::SINGLE_VER_TYPE_RD_KERNAL && isReadOnly) { in CreateDataBase()
414 databaseType != KvDBProperties::SINGLE_VER_TYPE_RD_KERNAL) { in CreateDataBase()
461 if (isNeedIntegrityCheck || databaseType == KvDBProperties::SINGLE_VER_TYPE_RD_KERNAL) { in GetDataBase()
705 if (databaseType == KvDBProperties::LOCAL_TYPE_SQLITE) { in SaveKvDBToCache()
712 } else if (databaseType == KvDBProperties::MULTI_VER_TYPE_SQLITE) { in SaveKvDBToCache()
746 if (databaseType == KvDBProperties::LOCAL_TYPE_SQLITE) { in RemoveKvDBFromCache()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/
H A Ddatabase_oper.cpp233 …int databaseType = property.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::LOCAL_TYPE_S… in CreateBackupDirForExport() local
234 std::string subDir = KvDBProperties::GetStoreSubDirectory(databaseType); in CreateBackupDirForExport()
422 …int databaseType = property.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::SINGLE_VER_T… in InitImportFileInfo() local
423 std::string subDir = KvDBProperties::GetStoreSubDirectory(databaseType); in InitImportFileInfo()
571 …int databaseType = property.GetIntProp(KvDBProperties::DATABASE_TYPE, KvDBProperties::SINGLE_VER_T… in PackExportedDatabase() local
572 FileInfo fileInfo = {static_cast<uint32_t>(databaseType), deviceId_}; in PackExportedDatabase()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_database_corrupt_test.cpp50 std::string GetKvStoreDirectory(const std::string &storeId, int databaseType) in GetKvStoreDirectory() argument
56 if (databaseType == DBConstant::DB_TYPE_LOCAL) { // local in GetKvStoreDirectory()
59 } else if (databaseType == DBConstant::DB_TYPE_SINGLE_VER) { // single ver in GetKvStoreDirectory()
62 } else if (databaseType == DBConstant::DB_TYPE_MULTI_VER) { // multi ver in GetKvStoreDirectory()
H A Ddistributeddb_interfaces_index_unit_test.cpp49 string GetKvStoreDirectory(const string &storeId, int databaseType) in GetKvStoreDirectory() argument
55 if (databaseType == DBConstant::DB_TYPE_LOCAL) { // local in GetKvStoreDirectory()
58 } else if (databaseType == DBConstant::DB_TYPE_SINGLE_VER) { // single ver in GetKvStoreDirectory()
61 } else if (databaseType == DBConstant::DB_TYPE_MULTI_VER) { // multi ver in GetKvStoreDirectory()