/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | profile_control_utils_test.cpp | 96 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), 114 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), 134 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), 181 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), 200 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), 219 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), 240 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), 278 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), 296 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), 314 … std::make_shared<KvSyncCompletedListener>(STORE_ID), std::make_shared<KvDeathRecipient>(STORE_ID), [all …]
|
H A D | kv_adapter_test.cpp | 41 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),
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_relational_test.cpp | 207 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); in NoramlCreateDistributedTableTest() 235 status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); in NoramlCreateDistributedTableTest() 344 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); 531 status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); in CreateDistributedTableNonPrimaryKeyTest() 1433 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, 1490 status = g_mgr.OpenStore(dir1 + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate1); 1495 status = g_mgr.OpenStore(dir2 + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate2); 1521 status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); 1647 status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); 1806 status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); [all …]
|
H A D | distributeddb_interfaces_relational_routines_test.cpp | 33 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);
|
H A D | distributeddb_cloud_interfaces_relational_ext_test.cpp | 36 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() 1248 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); 1742 DBStatus status = g_mgr.OpenStore(g_dbDir + STORE_ID + DB_SUFFIX, STORE_ID, {}, delegate); [all …]
|
H A D | distributeddb_interfaces_transaction_test.cpp | 30 const string STORE_ID = STORE_ID_LOCAL; variable 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…
|
H A D | distributeddb_interfaces_single_version_result_set_test.cpp | 47 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()
|
H A D | distributeddb_interfaces_device_identifier_test.cpp | 45 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, ""…
|
H A D | distributeddb_interfaces_relational_observer_test.cpp | 33 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);
|
H A D | distributeddb_interfaces_transaction_syncdb_test.cpp | 30 const string STORE_ID = STORE_ID_SYNC; variable 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…
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | udmf_run_time_store_test.cpp | 92 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 …]
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_single_ver_multi_user_test.cpp | 35 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); 501 RuntimeConfig::ReleaseAutoLaunch(USER_ID_2, APP_ID, STORE_ID, DBType::DB_KV); 542 g_identifier = g_mgr1.GetKvStoreIdentifier(USER_ID_2, APP_ID, STORE_ID, true); 575 EXPECT_TRUE(g_mgr1.DisableKvStoreAutoLaunch(USER_ID_2, APP_ID, STORE_ID) == OK); [all …]
|
H A D | distributeddb_communicator_proxy_test.cpp | 35 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);
|
/ohos5.0/base/notification/distributed_notification_service/services/distributed/src/ |
H A D | distributed_screen_status_manager.cpp | 27 const std::string STORE_ID = "distributed_screen_status"; variable 77 DistributedKv::StoreId storeId = {.storeId = STORE_ID}; in OnDeviceDisconnected() 90 …tributedHardware::DeviceManager::GetInstance().InitDeviceManager(APP_ID + STORE_ID, initCallback_); in GetKvDataManager() 95 …dHardware::DeviceManager::GetInstance().RegisterDevStateCallback(APP_ID + STORE_ID, "", deviceCb_); in GetKvDataManager() 143 DistributedKv::StoreId storeId = {.storeId = STORE_ID}; in GetKvStore() 148 … DistributedHardware::DeviceManager::GetInstance().UnRegisterDevStateCallback(APP_ID + STORE_ID); in GetKvStore()
|
H A D | distributed_database.cpp | 26 const std::string STORE_ID = "distributed_notification"; variable 43 …tributedHardware::DeviceManager::GetInstance().InitDeviceManager(APP_ID + STORE_ID, initCallback_); in GetKvDataManager() 48 …dHardware::DeviceManager::GetInstance().RegisterDevStateCallback(APP_ID + STORE_ID, "", deviceCb_); in GetKvDataManager() 98 DistributedKv::StoreId storeId = {.storeId = STORE_ID}; in GetKvStore() 103 … DistributedHardware::DeviceManager::GetInstance().UnRegisterDevStateCallback(APP_ID + STORE_ID); in GetKvStore() 341 DistributedKv::StoreId storeId = {.storeId = STORE_ID}; in RecreateDistributedDB()
|
H A D | distributed_preferences_database.cpp | 24 const std::string STORE_ID = "distributed_preferences"; variable 69 DistributedKv::StoreId storeId = {.storeId = STORE_ID}; in GetKvStore() 192 DistributedKv::StoreId storeId = {.storeId = STORE_ID}; in ClearDatabase()
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/src/deviceprofilemanager/ |
H A D | static_profile_manager.cpp | 43 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()
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/ |
H A D | hisysevent.yaml | 45 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 }
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/relationalstoredelegate_fuzzer/ |
H A D | relationalstoredelegate_fuzzer.cpp | 37 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()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/cloud/ |
H A D | distributeddb_cloud_save_cloud_data_test.cpp | 39 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 …]
|
H A D | distributeddb_cloud_meta_data_test.cpp | 36 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()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/storage_fuzzer/ |
H A D | storage_fuzzer.cpp | 46 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()
|
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/ |
H A D | distributeddb_storage_resultset_and_json_optimize.cpp | 45 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()
|
H A D | distributeddb_relational_syncable_storage_test.cpp | 31 constexpr const char* STORE_ID = "Relational_Store_ID"; variable 85 sqlite3 *db = RelationalTestUtils::CreateDataBase(g_dbDir + STORE_ID + DB_SUFFIX);
|
H A D | distributeddb_storage_register_conflict_test.cpp | 40 const string STORE_ID = STORE_ID_SYNC; variable 148 std::string origIdentifier = USER_ID + "-" + APP_ID + "-" + STORE_ID; in SetUpTestCase() 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()
|