/ohos5.0/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/interfaces/src/ |
H A D | kv_store_delegate_manager.cpp | 43 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 D | kv_store_delegate_manager.h | 32 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 D | kvdelegatemanager_fuzzer.cpp | 35 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 D | distributeddb_interfaces_auto_launch_test.cpp | 38 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 D | distributeddb_interfaces_transaction_testcase.h | 35 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 D | distributeddb_kv_create_test.cpp | 84 KvStoreDelegateManager *manager1 = nullptr; 85 KvStoreDelegateManager *manager2 = nullptr; 86 KvStoreDelegateManager *manager3 = nullptr; 87 KvStoreDelegateManager *manager4 = nullptr; 147 KvStoreDelegateManager *manager = nullptr; 187 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 223 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_2); 466 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 537 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 891 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); [all …]
|
H A D | distributeddb_nb_create_test.cpp | 87 KvStoreDelegateManager *manager = nullptr; 115 KvStoreDelegateManager *manager = nullptr; 140 KvStoreDelegateManager *manager = nullptr; 217 …KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager("APP_ID_1", "USER_ID_1… 257 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 284 KvStoreDelegateManager *manager = nullptr; 321 …KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(appId[index], userId[i… 346 KvStoreDelegateManager *manager = nullptr; 474 KvStoreDelegateManager *manager = nullptr; 523 KvStoreDelegateManager *manager = nullptr; [all …]
|
H A D | distributeddb_nb_autolaunch_test.cpp | 93 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 166 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 228 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 302 KvStoreDelegateManager *manager = nullptr; 383 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 421 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 482 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 588 KvStoreDelegateManager *manager = nullptr; 623 KvStoreDelegateManager *managerThread = nullptr; in __anon463a8f8c0302() 654 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); [all …]
|
H A D | distributeddb_nb_enable_sync_by_closed_db_test.cpp | 88 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 161 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 223 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 296 KvStoreDelegateManager *manager = nullptr; 376 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 412 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 473 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); 577 KvStoreDelegateManager *manager = nullptr; 612 KvStoreDelegateManager *managerThread = nullptr; in __anon8c0224f30302() 642 … KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(APP_ID_1, USER_ID_1); [all …]
|
H A D | distributeddb_nb_schema_test.cpp | 30 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 D | distributeddb_nb_db_damage_test.cpp | 29 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 D | distributed_crud_transaction_tools.cpp | 204 KvStoreDelegateManager *&delegateManager1, KvStoreDelegateManager *&delegateManager2) in DeleteDataBase() 239 KvStoreDelegateManager *delegateManager1 = nullptr; in testCrudTransaction() 248 KvStoreDelegateManager *delegateManager2 = nullptr; in testCrudTransaction()
|
H A D | distributeddb_nb_predicate_query_test.cpp | 42 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 D | distributeddb_nb_backup_test.cpp | 45 KvStoreDelegateManager *g_manager = nullptr; 65 … KvStoreDelegateManager *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 D | distributeddb_kv_transaction_test.cpp | 58 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 D | distributeddb_single_ver_multi_user_test.cpp | 43 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 D | distributeddb_single_ver_dlp_test.cpp | 44 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 D | distributeddb_single_ver_multi_sub_user_test.cpp | 72 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 D | distributeddb_nb_test_tools.cpp | 51 KvStoreNbDelegate* DistributedDBNbTestTools::GetNbDelegateSuccess(KvStoreDelegateManager *&outManag… in GetNbDelegateSuccess() 71 …KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(param.appId, param.use… in GetNbDelegateSuccess() 107 KvStoreNbDelegate* DistributedDBNbTestTools::GetNbDelegateStatus(KvStoreDelegateManager *&outManage… in GetNbDelegateStatus() 127 …KvStoreDelegateManager *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 D | distributed_test_tools.cpp | 527 …KvStoreDelegateManager *manager = new (std::nothrow) KvStoreDelegateManager(param.appId, param.use… 583 …KvStoreDelegateManager *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 D | delegate_mgr_callback.h | 27 explicit DelegateMgrCallback(DistributedDB::KvStoreDelegateManager *delegate) in DelegateMgrCallback() 49 DistributedDB::KvStoreDelegateManager *delegate_ {};
|
H A D | distributed_kv_data_manager.cpp | 202 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 D | iprocesscommunicator_fuzzer.cpp | 152 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 D | distributeddb_nb_test_tools.h | 188 …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 ¶m); 354 bool EndCaseDeleteDB(DistributedDB::KvStoreDelegateManager *&manager, DistributedDB::KvStoreNbDeleg…
|
H A D | distributed_test_tools.h | 358 …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,
|