/foundation/bundlemanager/app_domain_verify/services/src/manager/rdb/ |
H A D | app_domain_verify_rdb_open_callback.cpp | 31 int32_t AppDomainVerifyRdbOpenCallback::OnUpgrade(NativeRdb::RdbStore& rdbStore, int currentVersion, int targetVersion) in OnUpgrade() argument 34 "OnUpgrade currentVersion: %{public}d, targetVersion: %{public}d", currentVersion, targetVersion); in OnUpgrade() 36 int32_t ret = rdbMigrateMgr.Upgrade(rdbStore, currentVersion, targetVersion); in OnUpgrade() 45 NativeRdb::RdbStore& rdbStore, int currentVersion, int targetVersion) in OnDowngrade() 48 "OnDowngrade currentVersion: %{plubic}d, targetVersion: %{plubic}d", currentVersion, targetVersion); in OnDowngrade() 44 OnDowngrade( NativeRdb::RdbStore& rdbStore, int currentVersion, int targetVersion) OnDowngrade() argument
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/rdb/ |
H A D | bms_rdb_open_callback.cpp | 32 NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) in OnUpgrade() 34 APP_LOGI("OnUpgrade currentVersion: %{plubic}d, targetVersion: %{plubic}d", in OnUpgrade() 35 currentVersion, targetVersion); in OnUpgrade() 40 NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) in OnDowngrade() 42 APP_LOGI("OnDowngrade currentVersion: %{plubic}d, targetVersion: %{plubic}d", in OnDowngrade() 43 currentVersion, targetVersion); in OnDowngrade() 31 OnUpgrade( NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) OnUpgrade() argument 39 OnDowngrade( NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) OnDowngrade() argument
|
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/ |
H A D | rdb_get_store_test.cpp | 100 int currentVersion; in CreateRDB() local 101 int ret = store->GetVersion(currentVersion); in CreateRDB() 103 EXPECT_EQ(currentVersion, version); in CreateRDB() 211 int currentVersion; in HWTEST_F() local 212 int ret = store->GetVersion(currentVersion); in HWTEST_F() 214 EXPECT_EQ(currentVersion, 1); in HWTEST_F() 232 int currentVersion; in HWTEST_F() local 233 int ret = store->GetVersion(currentVersion); in HWTEST_F() 235 EXPECT_EQ(currentVersion, 0); in HWTEST_F() 262 int currentVersion; in HWTEST_F() local 346 int currentVersion; HWTEST_F() local 367 int currentVersion; HWTEST_F() local [all...] |
H A D | rdb_open_callback_test.cpp | 160 int currentVersion; in HWTEST_F() local 161 int ret = store->GetVersion(currentVersion); in HWTEST_F() 163 EXPECT_EQ(currentVersion, 1); in HWTEST_F() 200 int currentVersion; in HWTEST_F() local 201 int ret = store->GetVersion(currentVersion); in HWTEST_F() 203 EXPECT_EQ(currentVersion, 2); in HWTEST_F() 256 int currentVersion; in HWTEST_F() local 257 int ret = store->GetVersion(currentVersion); in HWTEST_F() 259 EXPECT_EQ(currentVersion, 1); in HWTEST_F() 319 int currentVersion; in HWTEST_F() local 375 int currentVersion; HWTEST_F() local [all...] |
H A D | rdb_store_config_test.cpp | 131 int currentVersion; in HWTEST_F() local 132 ret = store->GetVersion(currentVersion); in HWTEST_F() 134 EXPECT_EQ(1, currentVersion); in HWTEST_F() 172 int currentVersion; in HWTEST_F() local 173 ret = store->GetVersion(currentVersion); in HWTEST_F() 175 EXPECT_EQ(1, currentVersion); in HWTEST_F() 178 ret = store->GetVersion(currentVersion); in HWTEST_F() 180 EXPECT_EQ(5, currentVersion); in HWTEST_F() 183 ret = store->GetVersion(currentVersion); in HWTEST_F() 185 EXPECT_EQ(2147483647, currentVersion); in HWTEST_F() [all...] |
H A D | rdb_distributed_test.cpp | 72 int OnUpgrade(RdbStore &store, int currentVersion, int targetVersion) override
|
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/rdb/include/ |
H A D | rdb_open_callback.h | 42 * @param currentVersion Indicates the old database version. 45 virtual int OnUpgrade(RdbStore &rdbStore, int currentVersion, int targetVersion) = 0; 51 * @param currentVersion Indicates the old database version. 54 virtual int OnDowngrade(RdbStore &rdbStore, int currentVersion, int targetVersion) in OnDowngrade() argument
|
/foundation/bundlemanager/app_domain_verify/services/include/manager/rdb/ |
H A D | app_domain_verify_rdb_open_callback.h | 29 int32_t OnUpgrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) override; 30 int32_t OnDowngrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) override;
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/rdb/ |
H A D | bms_rdb_open_callback.h | 29 int32_t OnUpgrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) override; 30 int32_t OnDowngrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) override;
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rdb_store_manager.cpp | 235 int currentVersion; in ProcessOpenCallback() local 236 errCode = rdbStore.GetVersion(currentVersion); in ProcessOpenCallback() 241 if (version == currentVersion) { in ProcessOpenCallback() 245 if (currentVersion == 0) { in ProcessOpenCallback() 247 } else if (version > currentVersion) { in ProcessOpenCallback() 248 errCode = openCallback.OnUpgrade(rdbStore, currentVersion, version); in ProcessOpenCallback() 250 errCode = openCallback.OnDowngrade(rdbStore, currentVersion, version); in ProcessOpenCallback()
|
/foundation/ability/ability_runtime/services/abilitymgr/src/rdb/ |
H A D | ability_resident_process_rdb.cpp | 73 int32_t AmsResidentProcessRdbCallBack::OnUpgrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) in OnUpgrade() argument 75 TAG_LOGI(AAFwkTag::ABILITYMGR, "onUpgrade current:%{plubic}d, target:%{plubic}d", currentVersion, in OnUpgrade() 80 int32_t AmsResidentProcessRdbCallBack::OnDowngrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) in OnDowngrade() argument 82 TAG_LOGI(AAFwkTag::ABILITYMGR, "onDowngrade current:%{plubic}d, target:%{plubic}d", currentVersion, in OnDowngrade()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_rdb_data_manager_test/ |
H A D | bms_bundle_rdb_data_manager_test.cpp | 264 int currentVersion = 1; in HWTEST_F() local 266 auto ret = callback.OnUpgrade(Store, currentVersion, targetVersion); in HWTEST_F() 280 int currentVersion = 1; in HWTEST_F() local 282 auto ret = callback.OnDowngrade(Store, currentVersion, targetVersion); in HWTEST_F()
|
/foundation/ability/ability_runtime/services/abilitymgr/include/rdb/ |
H A D | ability_resident_process_rdb.h | 63 int32_t OnUpgrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) override; 64 int32_t OnDowngrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) override;
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_single_ver_database_upgrader.cpp | 106 int currentVersion = 0; in TransferDatabasePath() local 107 int errCode = GetDbVersion(dbFilePath, option, currentVersion); in TransferDatabasePath() 112 if (currentVersion == 0) { in TransferDatabasePath() 119 if (currentVersion >= SINGLE_VER_STORE_VERSION_V1 && currentVersion <= SINGLE_VER_STORE_VERSION_V2) { in TransferDatabasePath() 120 LOGI("[SQLiteSinVerUp] Old version[%d] database exists.", currentVersion); in TransferDatabasePath()
|
/foundation/ability/form_fwk/test/unittest/fms_form_info_rdb_storage_mgr_test/ |
H A D | mock_form_rdb_data_mgr.cpp | 101 NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) in OnUpgrade() 107 NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) in OnDowngrade() 100 OnUpgrade( NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) OnUpgrade() argument 106 OnDowngrade( NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) OnDowngrade() argument
|
/foundation/communication/netmanager_base/services/netconnmanager/include/ |
H A D | net_proxy_userinfo.h | 36 int32_t OnUpgrade(NativeRdb::RdbStore &rdbStore, int32_t currentVersion, int32_t targetVersion) override;
|
/foundation/communication/netmanager_ext/services/vpnmanager/include/ |
H A D | vpn_database_helper.h | 60 int32_t OnDowngrade(OHOS::NativeRdb::RdbStore &rdbStore, int32_t currentVersion, int32_t targetVersion) override;
|
/foundation/ability/form_fwk/services/src/ |
H A D | form_rdb_data_mgr.cpp | 57 NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) in OnUpgrade() 59 HILOG_DEBUG("OnUpgrade currentVersion: %{plubic}d, targetVersion: %{plubic}d", in OnUpgrade() 60 currentVersion, targetVersion); in OnUpgrade() 65 NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) in OnDowngrade() 67 HILOG_DEBUG("OnDowngrade currentVersion: %{plubic}d, targetVersion: %{plubic}d", in OnDowngrade() 68 currentVersion, targetVersion); in OnDowngrade() 56 OnUpgrade( NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) OnUpgrade() argument 64 OnDowngrade( NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) OnDowngrade() argument
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | nncompiled_cache.cpp | 235 std::string currentVersion = CURRENT_VERSION; in GenerateCacheModel() local 240 getline(inf, currentVersion); in GenerateCacheModel() 245 int currentOpVersion = std::stoi(currentVersion.substr(OPVERSION_SUBSTR_NUM)); in GenerateCacheModel()
|
H A D | nncompiler.cpp | 640 std::string currentVersion = CURRENT_VERSION; in RestoreFromCacheFile() local 645 getline(inf, currentVersion); in RestoreFromCacheFile() 650 int currentOpVersion = std::stoi(currentVersion.substr(OPVERSION_SUBSTR_NUM)); in RestoreFromCacheFile()
|
/foundation/ability/form_fwk/services/include/ |
H A D | form_rdb_data_mgr.h | 47 int32_t OnDowngrade(NativeRdb::RdbStore &rdbStore, int currentVersion, int targetVersion) override;
|
/foundation/communication/netmanager_ext/services/netfirewallmanager/include/ |
H A D | netfirewall_database.h | 159 int32_t OnDowngrade(OHOS::NativeRdb::RdbStore &rdbStore, int32_t currentVersion, int32_t targetVersion) override;
|
/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | net_proxy_userinfo.cpp | 58 int32_t DataBaseRdbOpenCallBack::OnUpgrade(NativeRdb::RdbStore &rdbStore, int32_t currentVersion, int32_t targetVersion) in OnUpgrade() argument
|
/foundation/ability/form_fwk/test/unittest/fms_form_rdb_data_mgr_test/ |
H A D | fms_form_rdb_data_mgr_test.cpp | 200 int currentVersion = 1; in HWTEST_F() local 207 currentVersion, targetVersion); in HWTEST_F() 222 int currentVersion = 2; in HWTEST_F() local 229 currentVersion, targetVersion); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/multiver/ |
H A D | multi_ver_storage_executor.cpp | 1124 Version currentVersion = 0; in CommitNotifiedData() local 1125 int errCode = GetParentCommitId(commitId, startId, currentVersion); in CommitNotifiedData() 1126 if (errCode != E_OK || currentVersion == 0) { // make sure that the version - 1 is valid. in CommitNotifiedData() 1132 static_cast<MultiVerNaturalStore *>(kvDB_), startId, commitId, currentVersion - 1); in CommitNotifiedData() 1134 static_cast<MultiVerNaturalStore *>(kvDB_)->AddVersionConstraintToList(currentVersion - 1); in CommitNotifiedData()
|