Home
last modified time | relevance | path

Searched refs:KvStoreDelegateManager (Results 1 – 25 of 122) sorted by relevance

12345

/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/
H A Dkv_store_delegate_manager.cpp43 const std::string KvStoreDelegateManager::DEFAULT_PROCESS_APP_ID = "default";
44 std::mutex KvStoreDelegateManager::communicatorMutex_;
46 std::mutex KvStoreDelegateManager::multiUserMutex_;
156 KvStoreDelegateManager::KvStoreDelegateManager(const std::string &appId, const std::string &userId,… in KvStoreDelegateManager() function in DistributedDB::KvStoreDelegateManager
162 KvStoreDelegateManager::KvStoreDelegateManager(const std::string &appId, const std::string &userId, in KvStoreDelegateManager() function in DistributedDB::KvStoreDelegateManager
170 KvStoreDelegateManager::~KvStoreDelegateManager() {} in ~KvStoreDelegateManager()
369 DBStatus KvStoreDelegateManager::CloseKvStore(KvStoreDelegate *kvStore) in CloseKvStore()
392 DBStatus KvStoreDelegateManager::CloseKvStore(KvStoreNbDelegate *kvStore) in CloseKvStore()
548 const std::string &KvStoreDelegateManager::GetKvStorePath() const in GetKvStorePath()
637 DBStatus KvStoreDelegateManager::NotifyUserChanged() in NotifyUserChanged()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/include/
H A Dkv_store_delegate_manager.h32 class KvStoreDelegateManager final {
34 …DB_API KvStoreDelegateManager(const std::string &appId, const std::string &userId, int32_t instanc…
35 …DB_API KvStoreDelegateManager(const std::string &appId, const std::string &userId, const std::stri…
37 DB_API ~KvStoreDelegateManager();
39 KvStoreDelegateManager(const KvStoreDelegateManager &) = delete;
40 KvStoreDelegateManager(KvStoreDelegateManager &&) = delete;
41 KvStoreDelegateManager &operator=(const KvStoreDelegateManager &) = delete;
42 KvStoreDelegateManager &operator=(KvStoreDelegateManager &&) = delete;
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/kvdelegatemanager_fuzzer/
H A Dkvdelegatemanager_fuzzer.cpp35 KvStoreDelegateManager g_mgr("APP_ID", "USER_ID");
78 (void) KvStoreDelegateManager::SetPermissionCheckCallback(permissionCheckCallback); in CallbackFuzz()
83 (void) KvStoreDelegateManager::SetPermissionCheckCallback(permissionCheckCallbackV2); in CallbackFuzz()
87 KvStoreDelegateManager::SetSyncActivationCheckCallback(syncActivationCheck); in CallbackFuzz()
88 KvStoreDelegateManager::NotifyUserChanged(); in CallbackFuzz()
103 (void) KvStoreDelegateManager::GetDatabaseDir(storeId, appId, userId, dir); in CombineTest()
104 (void) KvStoreDelegateManager::GetDatabaseDir(storeId, dir); in CombineTest()
105 (void) KvStoreDelegateManager::SetProcessLabel(appId, userId); in CombineTest()
107 … (void) KvStoreDelegateManager::GetKvStoreIdentifier(userId, appId, storeId, syncDualTupleMode); in CombineTest()
112 (void) KvStoreDelegateManager::DisableKvStoreAutoLaunch(userId, appId, storeId); in CombineTest()
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_auto_launch_test.cpp38 KvStoreDelegateManager g_mgr(APP_ID1, USER_ID1);
217 DBStatus status = KvStoreDelegateManager::EnableKvStoreAutoLaunch(USER_ID1, APP_ID1, storeId,
227 status = KvStoreDelegateManager::EnableKvStoreAutoLaunch(USER_ID1, APP_ID1, storeId,
237 status = KvStoreDelegateManager::EnableKvStoreAutoLaunch(USER_ID1, APP_ID1, storeId,
240 KvStoreDelegateManager::DisableKvStoreAutoLaunch(USER_ID1, APP_ID1, storeId);
260 DBStatus status = KvStoreDelegateManager::EnableKvStoreAutoLaunch(USER_ID1, APP_ID1, storeId,
270 status = KvStoreDelegateManager::EnableKvStoreAutoLaunch(USER_ID1, APP_ID1, storeId,
273 EXPECT_EQ(KvStoreDelegateManager::DisableKvStoreAutoLaunch(USER_ID1, APP_ID1, storeId), OK);
391 EXPECT_EQ(KvStoreDelegateManager::DisableKvStoreAutoLaunch(USER_ID1, APP_ID1, storeId), OK); in TriggerAutoLaunch()
466 EXPECT_EQ(KvStoreDelegateManager::DisableKvStoreAutoLaunch(USER_ID1, APP_ID1, storeId), OK);
[all …]
H A Ddistributeddb_interfaces_transaction_testcase.h35 bool localOnly, DistributedDB::KvStoreDelegateManager &mgr,
39 bool localOnly, DistributedDB::KvStoreDelegateManager &mgr);
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/src/
H A Ddistributeddb_kv_create_test.cpp84 KvStoreDelegateManager *manager1 = nullptr;
85 KvStoreDelegateManager *manager2 = nullptr;
86 KvStoreDelegateManager *manager3 = nullptr;
87 KvStoreDelegateManager *manager4 = nullptr;
147 KvStoreDelegateManager *manager = nullptr;
187KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
223KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_2);
466KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
537KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
891KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
[all …]
H A Ddistributeddb_nb_create_test.cpp87 KvStoreDelegateManager *manager = nullptr;
115 KvStoreDelegateManager *manager = nullptr;
140 KvStoreDelegateManager *manager = nullptr;
217KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager("APP_ID_1", "USER_ID_1…
257KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
284 KvStoreDelegateManager *manager = nullptr;
321KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(appId[index], userId[i…
346 KvStoreDelegateManager *manager = nullptr;
474 KvStoreDelegateManager *manager = nullptr;
523 KvStoreDelegateManager *manager = nullptr;
[all …]
H A Ddistributeddb_nb_autolaunch_test.cpp93KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
166KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
228KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
302 KvStoreDelegateManager *manager = nullptr;
383KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
421KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
482KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
588 KvStoreDelegateManager *manager = nullptr;
623 KvStoreDelegateManager *managerThread = nullptr; in __anon463a8f8c0302()
654KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
[all …]
H A Ddistributeddb_nb_enable_sync_by_closed_db_test.cpp88KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
161KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
223KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
296 KvStoreDelegateManager *manager = nullptr;
376KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
412KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
473KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
577 KvStoreDelegateManager *manager = nullptr;
612 KvStoreDelegateManager *managerThread = nullptr; in __anon8c0224f30302()
642KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1);
[all …]
H A Ddistributeddb_nb_schema_test.cpp30 KvStoreDelegateManager *g_manager = nullptr;
148 KvStoreDelegateManager *manager = nullptr;
182 KvStoreDelegateManager *manager = nullptr;
249 KvStoreDelegateManager *manager = nullptr;
281 KvStoreDelegateManager *manager = nullptr;
341 KvStoreDelegateManager *manager = nullptr;
410 KvStoreDelegateManager *manager = nullptr;
456 KvStoreDelegateManager *manager = nullptr;
508 KvStoreDelegateManager *manager = nullptr;
594 KvStoreDelegateManager *manager = nullptr;
[all …]
H A Ddistributeddb_nb_db_damage_test.cpp29 KvStoreDelegateManager *g_manager = nullptr;
100 KvStoreDelegateManager *manager = nullptr;
190 KvStoreDelegateManager *manager1 = nullptr;
211 KvStoreDelegateManager *manager2 = nullptr;
247 KvStoreDelegateManager Manager(APP_ID_1, USER_ID_1);
H A Ddistributed_crud_transaction_tools.cpp204 KvStoreDelegateManager *&delegateManager1, KvStoreDelegateManager *&delegateManager2) in DeleteDataBase()
239 KvStoreDelegateManager *delegateManager1 = nullptr; in testCrudTransaction()
248 KvStoreDelegateManager *delegateManager2 = nullptr; in testCrudTransaction()
H A Ddistributeddb_nb_predicate_query_test.cpp42 KvStoreDelegateManager *g_manager = nullptr;
272 KvStoreDelegateManager *manager = nullptr;
392 KvStoreDelegateManager *manager = nullptr;
524 KvStoreDelegateManager *manager = nullptr;
607 KvStoreDelegateManager *manager = nullptr;
785 KvStoreDelegateManager *manager = nullptr;
903 KvStoreDelegateManager *manager = nullptr;
949 KvStoreDelegateManager *manager = nullptr;
1023 KvStoreDelegateManager *manager = nullptr;
1167 KvStoreDelegateManager *manager = nullptr;
[all …]
H A Ddistributeddb_nb_backup_test.cpp45 KvStoreDelegateManager *g_manager = nullptr;
65KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); in SetUpTestCase()
194 KvStoreDelegateManager *manager = nullptr;
587 KvStoreDelegateManager *manager2 = nullptr;
669 KvStoreDelegateManager *multiEncryptManager = nullptr;
680 KvStoreDelegateManager *localManager = nullptr;
756 KvStoreDelegateManager *manager2 = nullptr;
869 KvStoreDelegateManager *manager = nullptr;
1035 KvStoreDelegateManager *manager2 = nullptr; in NbSubImportThread()
1321 KvStoreDelegateManager *manager = nullptr;
[all …]
H A Ddistributeddb_kv_transaction_test.cpp58 KvStoreDelegateManager *g_transactionManager = nullptr;
947 KvStoreDelegateManager *manager = nullptr;
1152 KvStoreDelegateManager *delegateManager = nullptr; in ConsistencyCheck()
1187 KvStoreDelegateManager *delegateManager = nullptr; in ConsistencyBusiness()
1273 KvStoreDelegateManager *delegateManager = nullptr; in ConsistencyBatchCheck()
1444 KvStoreDelegateManager *delegateManager = nullptr; in IsolationBussiness()
1557 KvStoreDelegateManager *delegateManager = nullptr;
1635 KvStoreDelegateManager *manager = nullptr;
1668 KvStoreDelegateManager *delegateManager = nullptr;
1696 KvStoreDelegateManager *delegateManager = nullptr;
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/
H A Ddistributeddb_single_ver_multi_user_test.cpp43 KvStoreDelegateManager g_mgr1(APP_ID, USER_ID_1);
44 KvStoreDelegateManager g_mgr2(APP_ID, USER_ID_2);
262 EXPECT_TRUE(KvStoreDelegateManager::NotifyUserChanged() == OK); in TestSyncWithUserChange()
354 KvStoreDelegateManager::NotifyUserChanged();
419 KvStoreDelegateManager::NotifyUserChanged();
601 EXPECT_TRUE(KvStoreDelegateManager::NotifyUserChanged() == OK);
613 EXPECT_TRUE(KvStoreDelegateManager::NotifyUserChanged() == OK);
645 EXPECT_TRUE(KvStoreDelegateManager::NotifyUserChanged() == OK); in __anon7ac9223d0802()
682 EXPECT_TRUE(KvStoreDelegateManager::NotifyUserChanged() == OK); in __anon7ac9223d0902()
866 KvStoreDelegateManager::SetSyncActivationCheckCallback(
[all …]
H A Ddistributeddb_single_ver_dlp_test.cpp44 KvStoreDelegateManager &mgr, bool syncDualTupleMode = false) in OpenDelegate()
90 …void CloseDelegate(KvStoreNbDelegate *&delegatePtr, KvStoreDelegateManager &mgr, std::string store… in CloseDelegate()
177 KvStoreDelegateManager mgr1(APP_ID, USER_ID, INSTANCE_ID_1);
182 KvStoreDelegateManager mgr2(APP_ID, USER_ID, INSTANCE_ID_2);
239 KvStoreDelegateManager mgr1(APP_ID, USER_ID, INSTANCE_ID_1);
272 KvStoreDelegateManager mgr1(APP_ID, USER_ID, INSTANCE_ID_1);
318 KvStoreDelegateManager mgr1(APP_ID, USER_ID, INSTANCE_ID_1);
H A Ddistributeddb_single_ver_multi_sub_user_test.cpp72 KvStoreDelegateManager &mgr, bool syncDualTupleMode = false) in OpenDelegate()
411 KvStoreDelegateManager mgr1(APP_ID, USER_ID, subUser1, INSTANCE_ID_1);
417 KvStoreDelegateManager mgr2(APP_ID, USER_ID, subUser2, INSTANCE_ID_1);
423 KvStoreDelegateManager mgr3(APP_ID, USER_ID, subUser3, INSTANCE_ID_1);
473 KvStoreDelegateManager mgr1(APP_ID, USER_ID, SUB_USER_1, INSTANCE_ID_1);
478 KvStoreDelegateManager mgr2(APP_ID, USER_ID, SUB_USER_2, INSTANCE_ID_1);
588 KvStoreDelegateManager mgr1(APP_ID, USER_ID, SUB_USER_1, INSTANCE_ID_1);
621 KvStoreDelegateManager mgr1(APP_ID, USER_ID, SUB_USER_1, INSTANCE_ID_1);
627 KvStoreDelegateManager mgr2(APP_ID, USER_ID, SUB_USER_2, INSTANCE_ID_1);
698 KvStoreDelegateManager mgr1(APP_ID, USER_ID, SUB_USER_1, INSTANCE_ID_1);
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/src/
H A Ddistributeddb_nb_test_tools.cpp51 KvStoreNbDelegate* DistributedDBNbTestTools::GetNbDelegateSuccess(KvStoreDelegateManager *&outManag… in GetNbDelegateSuccess()
71KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(param.appId, param.use… in GetNbDelegateSuccess()
107 KvStoreNbDelegate* DistributedDBNbTestTools::GetNbDelegateStatus(KvStoreDelegateManager *&outManage… in GetNbDelegateStatus()
127KvStoreDelegateManager *manager1 = new (std::nothrow) KvStoreDelegateManager(param.appId, param.us… in GetNbDelegateStatus()
163 DBStatus DistributedDBNbTestTools::GetNbDelegateStoresSuccess(KvStoreDelegateManager *&outManager, in GetNbDelegateStoresSuccess()
177 KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(appId, userId); in GetNbDelegateStoresSuccess()
457 bool DistributedDBNbTestTools::CloseNbAndRelease(KvStoreDelegateManager *&manager, KvStoreNbDelegat… in CloseNbAndRelease()
472 bool EndCaseDeleteDB(DistributedDB::KvStoreDelegateManager *&manager, in EndCaseDeleteDB()
690 …const std::string &storeId, DistributedDB::KvStoreDelegateManager *&manager, CallBackParam &pathRe… in CorruptNewCallBack()
H A Ddistributed_test_tools.cpp527KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(param.appId, param.use…
583KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(param.appId, param.use…
632 manager = new (std::nothrow) KvStoreDelegateManager(appId, userId);
1010 KvStoreDelegateManager *manager = nullptr;
1051 KvStoreDelegateManager *manager = nullptr;
1104 KvStoreDelegateManager *manager = nullptr;
1161 KvStoreDelegateManager *manager = nullptr;
1211 KvStoreDelegateManager *manager = nullptr;
1261 KvStoreDelegateManager *manager = nullptr;
1749 bool CloseDB(KvStoreDelegateManager *manager, KvStoreDelegate *store1)
[all …]
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/distributeddatafwk/src/
H A Ddelegate_mgr_callback.h27 explicit DelegateMgrCallback(DistributedDB::KvStoreDelegateManager *delegate) in DelegateMgrCallback()
49 DistributedDB::KvStoreDelegateManager *delegate_ {};
H A Ddistributed_kv_data_manager.cpp202 auto dbStatus = DistributedDB::KvStoreDelegateManager::SetProcessLabel("default", "default"); in SetEndpoint()
210 dbStatus = DistributedDB::KvStoreDelegateManager::SetProcessCommunicator(communicator); in SetEndpoint()
218 dbStatus = DistributedDB::KvStoreDelegateManager::SetProcessSystemAPIAdapter(systemApi); in SetEndpoint()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/iprocesscommunicator_fuzzer/
H A Diprocesscommunicator_fuzzer.cpp152 static auto kvManager = KvStoreDelegateManager("APP_ID", "USER_ID"); in CommunicatorFuzzer()
154 KvStoreDelegateManager::SetProcessLabel(rawString, "defaut"); in CommunicatorFuzzer()
156 KvStoreDelegateManager::SetProcessCommunicator(communicator); in CommunicatorFuzzer()
/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/moduletest/common/distributeddb/include/
H A Ddistributeddb_nb_test_tools.h188 …ributedDB::KvStoreNbDelegate* GetNbDelegateStatus(DistributedDB::KvStoreDelegateManager *&outManag…
190 …ibutedDB::KvStoreNbDelegate* GetNbDelegateSuccess(DistributedDB::KvStoreDelegateManager *&outManag…
193 …static DistributedDB::DBStatus GetNbDelegateStoresSuccess(DistributedDB::KvStoreDelegateManager *&…
238 static bool CloseNbAndRelease(DistributedDB::KvStoreDelegateManager *&manager,
278 DistributedDB::KvStoreDelegateManager *&manager, CallBackParam &param);
354 bool EndCaseDeleteDB(DistributedDB::KvStoreDelegateManager *&manager, DistributedDB::KvStoreNbDeleg…
H A Ddistributed_test_tools.h358 …static DistributedDB::KvStoreDelegate* GetDelegateSuccess(DistributedDB::KvStoreDelegateManager *&…
360 …static DistributedDB::KvStoreDelegate* GetDelegateStatus(DistributedDB::KvStoreDelegateManager *&o…
364 … DistributedDB::KvStoreDelegateManager *&outManager, DistributedDB::KvStoreDelegate *&outDelegate,
404 static bool CloseAndRelease(DistributedDB::KvStoreDelegateManager *&manager,
406 static bool CloseAndRelease(DistributedDB::KvStoreDelegateManager *&manager,

12345