Home
last modified time | relevance | path

Searched full:store_id (Results 1 – 25 of 109) sorted by relevance

12345

/foundation/deviceprofile/device_info_manager/services/core/test/unittest/
Dprofile_control_utils_test.cpp48 const std::string STORE_ID = "dp_kv_store"; variable
94 std::shared_ptr<IKVAdapter> kvStore = std::make_shared<KVAdapter>(APP_ID, STORE_ID,
95 std::make_shared<KvDataChangeListener>(STORE_ID),
96 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID),
112 std::shared_ptr<IKVAdapter> kvStore = std::make_shared<KVAdapter>(APP_ID, STORE_ID,
113 std::make_shared<KvDataChangeListener>(STORE_ID),
114 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID),
132 std::shared_ptr<IKVAdapter> kvStore = std::make_shared<KVAdapter>(APP_ID, STORE_ID,
133 std::make_shared<KvDataChangeListener>(STORE_ID),
134 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID),
[all …]
Dkv_adapter_test.cpp41 const std::string STORE_ID = "dp_kv_store"; variable
55 kvStore = make_shared<KVAdapter>(APP_ID, STORE_ID, in SetUpTestCase()
56 make_shared<KvDataChangeListener>(STORE_ID), in SetUpTestCase()
57 make_shared<KvSyncCompletedListener>(STORE_ID), in SetUpTestCase()
58 make_shared<KvDeathRecipient>(STORE_ID), in SetUpTestCase()
389 kvStore_= make_shared<KVAdapter>(APP_ID, STORE_ID,
390 make_shared<KvDataChangeListener>(STORE_ID),
391 make_shared<KvSyncCompletedListener>(STORE_ID),
392 make_shared<KvDeathRecipient>(STORE_ID),
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
Ddistributeddb_interfaces_relational_test.cpp41 constexpr const char* STORE_ID = "Relational_Store_ID"; variable
190 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in NoramlCreateDistributedTableTest()
207 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); in NoramlCreateDistributedTableTest()
225 db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in NoramlCreateDistributedTableTest()
235 status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); in NoramlCreateDistributedTableTest()
279 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX);
292 …DBStatus status = g_mgr.OpenStore(g_dbDir + "tmp/" + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate);
296 // test open store with empty store_id
297 status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, {}, {}, delegate);
302 status = g_mgr.OpenStore(g_dbDir + "t&m$p/" + STORE_ID + DB_SUFFIX, {}, {}, delegate);
[all …]
Ddistributeddb_interfaces_relational_routines_test.cpp33 constexpr const char* STORE_ID = "Relational_Store_ID"; variable
85 sqlite3 *ndb = NativeSqlite::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX);
108 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX);
114 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate);
Ddistributeddb_cloud_interfaces_relational_ext_test.cpp36 constexpr const char *STORE_ID = "Relational_Store_ID"; variable
163 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); in SetTracerSchemaTest001()
189 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX);
209 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in PrepareData()
232 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); in PrepareData()
257 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in InsertTriggerTest()
344 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX);
397 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in UpdateTriggerTest()
495 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX);
565 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX);
[all …]
Ddistributeddb_interfaces_relational_observer_test.cpp33 constexpr const char *STORE_ID = "Relational_Store_ID"; variable
53 g_storePath = g_dbDir + STORE_ID + DB_SUFFIX; in SetUpTestCase()
68 DBStatus status = g_mgr.OpenStore(g_storePath, STORE_ID, {}, g_delegate); in SetUp()
203 EXPECT_EQ(g_mgr.OpenStore(g_storePath, STORE_ID, option, delegate), OK);
267 EXPECT_EQ(g_mgr.OpenStore(g_storePath, STORE_ID, {}, delegate), OK);
Ddistributeddb_interfaces_device_identifier_test.cpp45 const string STORE_ID = STORE_ID_SYNC; variable
66 string dir = g_testDir + STORE_ID + "/" + DBConstant::SINGLE_SUB_DIR; in SetUpTestCase()
74 g_property.SetStringProp(KvDBProperties::STORE_ID, STORE_ID); in SetUpTestCase()
80 …if (DistributedDBToolsUnitTest::RemoveTestDbFiles(g_testDir + STORE_ID + "/" + DBConstant::SINGLE_… in TearDownTestCase()
91 g_mgr.GetKvStore(STORE_ID, option, g_kvNbDelegateCallback); in SetUp()
117 EXPECT_TRUE(g_mgr.DeleteKvStore(STORE_ID) == OK); in TearDown()
525 std::string exportFileName = g_testDir + "/" + STORE_ID + ".dump"; in StorageEngineTest002()
653 …prop.SetStringProp(KvDBProperties::STORE_ID, g_property.GetStringProp(KvDBProperties::STORE_ID, ""…
Ddistributeddb_interfaces_single_version_result_set_test.cpp47 const string STORE_ID = STORE_ID_SYNC; variable
74 std::string origIdentifier = USER_ID + "-" + APP_ID + "-" + STORE_ID; in SetUpTestCase()
88 …if (DistributedDBToolsUnitTest::RemoveTestDbFiles(g_testDir + STORE_ID + "/" + DBConstant::SINGLE_… in TearDownTestCase()
99 g_mgr.GetKvStore(STORE_ID, delegateOption, g_kvNbDelegateCallback); in SetUp()
105 property.SetStringProp(KvDBProperties::STORE_ID, STORE_ID); in SetUp()
147 EXPECT_TRUE(g_mgr.DeleteKvStore(STORE_ID) == OK); in TearDown()
Ddistributeddb_interfaces_transaction_test.cpp30 const string STORE_ID = STORE_ID_LOCAL; variable
76 * Here, we create STORE_ID before test, in SetUp()
80 g_mgr.GetKvStore(STORE_ID, option, g_kvDelegateCallback); in SetUp()
95 EXPECT_EQ(g_mgr.DeleteKvStore(STORE_ID), OK); in TearDown()
188 …DistributedDBInterfacesTransactionTestCase::StartTransaction004(g_kvDelegatePtr, STORE_ID, LOCAL_O…
217 …DistributedDBInterfacesTransactionTestCase::StartTransaction005(g_kvDelegatePtr, STORE_ID, LOCAL_O…
/foundation/distributeddatamgr/datamgr_service/
Dhisysevent.yaml45 STORE_ID: {type: STRING, desc: store id }
52 STORE_ID: {type: STRING, desc: store id }
59 STORE_ID: {type: STRING, desc: store id }
66 STORE_ID: {type: STRING, desc: store id }
74 STORE_ID: {type: STRING, desc: store id }
100 STORE_ID: {type: STRING, desc: store id }
115 STORE_ID: {type: STRING, desc: store id }
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/
Dudmf_run_time_store_test.cpp92 const std::string STORE_ID = "drag"; member in OHOS::Test::DistributedDataTest::UdmfRunTimeStoreTest
123 auto store = std::make_shared<RuntimeStore>(STORE_ID);
156 auto store = std::make_shared<RuntimeStore>(STORE_ID);
189 auto store = std::make_shared<RuntimeStore>(STORE_ID);
220 auto store = std::make_shared<RuntimeStore>(STORE_ID);
258 auto store = std::make_shared<RuntimeStore>(STORE_ID);
301 auto store = std::make_shared<RuntimeStore>(STORE_ID);
339 auto store = std::make_shared<RuntimeStore>(STORE_ID);
383 auto store = std::make_shared<RuntimeStore>(STORE_ID);
396 auto store = std::make_shared<RuntimeStore>(STORE_ID);
[all …]
/foundation/deviceprofile/device_info_manager/services/core/src/deviceprofilemanager/
Dstatic_profile_manager.cpp43 const std::string STORE_ID = "dp_kv_static_store"; variable
52 staticProfileStore_ = std::make_shared<KVAdapter>(APP_ID, STORE_ID, in Init()
53 std::make_shared<KvDataChangeListener>(STORE_ID), in Init()
54 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), in Init()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/relationalstoredelegate_fuzzer/
Drelationalstoredelegate_fuzzer.cpp37 constexpr const char *STORE_ID = "Relational_Store_ID"; variable
67 g_db = RdbTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in Setup()
81 if (g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, g_delegate) != E_OK) { in Setup()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
Ddistributeddb_single_ver_multi_user_test.cpp35 const string STORE_ID = "kv_stroe_sync_test"; variable
164 g_mgr1.GetKvStore(STORE_ID, option, g_kvDelegateCallback1); in OpenStore1()
173 g_mgr2.GetKvStore(STORE_ID, option, g_kvDelegateCallback2); in OpenStore2()
183 DBStatus status = g_mgr1.DeleteKvStore(STORE_ID); in CloseStore()
190 DBStatus status = g_mgr2.DeleteKvStore(STORE_ID); in CloseStore()
225 param.storeId = STORE_ID; in AutoLaunchCallBack()
469 g_identifier = g_mgr1.GetKvStoreIdentifier(USER_ID_2, APP_ID, STORE_ID, true);
470 EXPECT_TRUE(g_identifier == g_mgr1.GetKvStoreIdentifier(USER_ID_1, APP_ID, STORE_ID, true));
501 RuntimeConfig::ReleaseAutoLaunch(USER_ID_2, APP_ID, STORE_ID, DBType::DB_KV);
534 … EXPECT_TRUE(g_mgr1.EnableKvStoreAutoLaunch(USER_ID_2, APP_ID, STORE_ID, option, notifier) == OK);
[all …]
Ddistributeddb_communicator_proxy_test.cpp35 const string STORE_ID = "kv_store_sync_test"; variable
106 g_mgr.GetKvStore(STORE_ID, option, g_kvDelegateCallback); in SetUp()
107 std::string identifier = g_mgr.GetKvStoreIdentifier(USER_ID, APP_ID, STORE_ID); in SetUp()
124 DBStatus status = g_mgr.DeleteKvStore(STORE_ID); in TearDown()
146 std::string identifier = g_mgr.GetKvStoreIdentifier("default", APP_ID, STORE_ID);
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/storage_fuzzer/
Dstorage_fuzzer.cpp46 const auto STORE_ID = "Relational_Store_ID"; variable
73 … int ret = g_mgr.OpenStore(STORE_PATH, STORE_ID, RelationalStoreDelegate::Option {}, g_delegate); in SetUp()
139 properties.SetStringProp(RelationalDBProperties::STORE_ID, STORE_ID); in InitStoreProp()
140 std::string identifier = userId + "-" + appId + "-" + STORE_ID; in InitStoreProp()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/cloud/
Ddistributeddb_cloud_meta_data_test.cpp36 const string STORE_ID = "Relational_Store_ID"; variable
68 properties.SetStringProp(RelationalDBProperties::STORE_ID, STORE_ID); in InitStoreProp()
69 std::string identifier = userId + "-" + appId + "-" + STORE_ID; in InitStoreProp()
121 g_storePath = g_dbDir + STORE_ID + ".db"; in SetUpTestCase()
134 …ASSERT_EQ(g_mgr.OpenStore(g_storePath, STORE_ID, RelationalStoreDelegate::Option {}, g_delegate), … in SetUp()
Ddistributeddb_cloud_save_cloud_data_test.cpp39 constexpr const char *STORE_ID = "Relational_Store_ID"; variable
76 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in CreatDB()
111 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in PrepareDataBase()
171 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in PrepareDataBaseForAsset()
201 properties.SetStringProp(RelationalDBProperties::STORE_ID, STORE_ID); in InitStoreProp()
202 std::string identifier = userId + "-" + appId + "-" + STORE_ID; in InitStoreProp()
225 g_storePath = g_dbDir + STORE_ID + DB_SUFFIX; in SetUpTestCase()
236 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, g_delegate); in SetUp()
515 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX); in PrimaryKeyCollateTest()
871 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX);
[all …]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
Ddistributeddb_relational_syncable_storage_test.cpp31 constexpr const char* STORE_ID = "Relational_Store_ID"; variable
85 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX);
Ddistributeddb_storage_register_conflict_test.cpp40 const string STORE_ID = STORE_ID_SYNC; variable
148 std::string origIdentifier = USER_ID + "-" + APP_ID + "-" + STORE_ID; in SetUpTestCase()
173 * Here, we create STORE_ID before test, in SetUp()
177 g_mgr.GetKvStore(STORE_ID, option, g_kvNbDelegateCallback); in SetUp()
183 property.SetStringProp(KvDBProperties::STORE_ID, STORE_ID); in SetUp()
211 EXPECT_TRUE(g_mgr.DeleteKvStore(STORE_ID) == OK); in TearDown()
790 EXPECT_TRUE(g_mgr.DeleteKvStore(STORE_ID) == OK); in GetNewConflictStore()
794 property.SetStringProp(KvDBProperties::STORE_ID, STORE_ID); in GetNewConflictStore()
Ddistributeddb_storage_resultset_and_json_optimize.cpp45 const string STORE_ID = STORE_ID_SYNC; variable
58 std::string origIdentifier = USER_ID + "-" + APP_ID + "-" + STORE_ID; in SetUpTestCase()
69 g_Property.SetStringProp(KvDBProperties::STORE_ID, STORE_ID); in SetUpTestCase()
/foundation/communication/dsoftbus/tests/core/adapter/unittest/
Dlnn_kv_adapter_wrapper_test.cpp34 const std::string STORE_ID = "dsoftbus_kv_db"; variable
47 LnnCreateKvAdapter(&dbID, APP_ID.c_str(), APP_ID_LEN, STORE_ID.c_str(), STORE_ID_LEN); in SetUpTestCase()
182 …int32_t createRet = LnnCreateKvAdapter(&dbId, APP_ID.c_str(), APP_ID_LEN, STORE_ID.c_str(), STORE_…
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/dfx/src/
Dhiview_adapter.cpp37 constexpr const char *STORE_ID = "STORE_ID"; variable
130 { .name = { *STORE_ID }, in ReportDBFault()
172 { .name = { *STORE_ID }, in ReportCommFault()
207 { .name = { *STORE_ID }, in ReportBehaviour()
261 { .name = { *STORE_ID }, in ReportDbSize()
/foundation/deviceprofile/device_info_manager/old/services/core/src/dbstorage/
Donline_sync_table.cpp32 const std::string STORE_ID = "online_sync_storage"; variable
37 OnlineSyncTable::OnlineSyncTable() : DeviceProfileStorage(APP_ID, STORE_ID) in OnlineSyncTable()
/foundation/ability/ability_runtime/services/appmgr/src/
Dapp_config_data_manager.cpp32 const DistributedKv::StoreId AppConfigDataManager::STORE_ID = { "app_config_data_infos" }; member in OHOS::AbilityRuntime::AppConfigDataManager
55 …DistributedKv::Status status = dataManager_.GetSingleKvStore(options, APP_ID, STORE_ID, kvStorePtr… in GetKvStore()

12345