Home
last modified time | relevance | path

Searched refs:Delegate (Results 1 - 5 of 5) sorted by relevance

/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/store/
H A Dauto_cache.cpp73 meta.tokenId, [this, &meta, &watchers, &store](auto &, std::map<std::string, Delegate> &stores) -> bool { in GetStore()
107 tokenId, [&stores, &storeName](auto &, std::map<std::string, Delegate> &delegates) -> bool { in GetStoresIfPresent()
149 std::list<Delegate> closeStores; in CloseStore()
184 stores_.EraseIf([&users, isScreenLocked](const auto &tokenId, std::map<std::string, Delegate> &delegates) { in CloseExcept()
218 stores_.EraseIf([&current, isForce, isScreenLocked](auto &key, std::map<std::string, Delegate> &delegates) { in GarbageCollect()
249 AutoCache::Delegate::Delegate(GeneralStore *delegate, const Watchers &watchers, int32_t user, const StoreMetaData &meta) in Delegate() function in OHOS::DistributedData::AutoCache::Delegate
258 AutoCache::Delegate::Delegate(const Delegate function in OHOS::DistributedData::AutoCache::Delegate
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/include/store/
H A Dauto_cache.h68 struct Delegate : public GeneralWatcher { struct in OHOS::DistributedData::AutoCache
69 Delegate(GeneralStore *delegate, const Watchers &watchers, int32_t user, const StoreMetaData &meta);
70 Delegate(const Delegate& delegate);
71 ~Delegate();
97 ConcurrentMap<uint32_t, std::map<std::string, Delegate>> stores_;
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/
H A Dstore_test.cpp106 * @tc.desc: AutoCache Delegate OnChange
118 AutoCache::Delegate delegate(store, watchers, user, meta); in HWTEST_F()
129 * @tc.desc: AutoCache Delegate OnChange
141 AutoCache::Delegate delegate(store, watchers, user, meta); in HWTEST_F()
152 * @tc.desc: AutoCache Delegate operator Store()
164 AutoCache::Delegate delegate(store, watchers, user, meta); in HWTEST_F()
/foundation/distributeddatamgr/relational_store/test/native/rdb/unittest/
H A Drdb_store_impl_test.cpp552 using Delegate = DistributedDB::RelationalStoreDelegate; in HWTEST_F()
554 Delegate::Option option; in HWTEST_F()
555 Delegate *g_delegate = nullptr; in HWTEST_F()
559 auto delegatePtr = std::shared_ptr<Delegate>( in HWTEST_F()
560 g_delegate, [&rStoreManager](Delegate *delegate) { rStoreManager.CloseStore(delegate); }); in HWTEST_F()
597 using Delegate = DistributedDB::RelationalStoreDelegate; in HWTEST_F()
599 Delegate::Option option; in HWTEST_F()
600 Delegate *g_delegate = nullptr; in HWTEST_F()
604 auto delegatePtr = std::shared_ptr<Delegate>( in HWTEST_F()
605 g_delegate, [&rStoreManager](Delegate *delegat in HWTEST_F()
[all...]
/foundation/distributeddatamgr/relational_store/test/native/relational_store_test/unittest/
H A Drdb_store_test.cpp552 using Delegate = DistributedDB::RelationalStoreDelegate; in HWTEST_F()
554 Delegate::Option option; in HWTEST_F()
555 Delegate *g_delegate = nullptr; in HWTEST_F()
559 auto delegatePtr = std::shared_ptr<Delegate>( in HWTEST_F()
560 g_delegate, [&rStoreManager](Delegate *delegate) { rStoreManager.CloseStore(delegate); }); in HWTEST_F()
597 using Delegate = DistributedDB::RelationalStoreDelegate; in HWTEST_F()
599 Delegate::Option option; in HWTEST_F()
600 Delegate *g_delegate = nullptr; in HWTEST_F()
604 auto delegatePtr = std::shared_ptr<Delegate>( in HWTEST_F()
605 g_delegate, [&rStoreManager](Delegate *delegat in HWTEST_F()
[all...]

Completed in 5 milliseconds