Home
last modified time | relevance | path

Searched refs:prefixKey (Results 1 - 21 of 21) sorted by relevance

/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_preferences_database_test/
H A Ddistributed_preferences_database_test.cpp202 std::string prefixKey = "aa"; in HWTEST_F() local
204 EXPECT_EQ(false, distributedPreferencesDatabase.GetEntriesFromDistributedDB(prefixKey, entries)); in HWTEST_F()
218 std::string prefixKey = "aa"; in HWTEST_F() local
220 EXPECT_EQ(false, distributedPreferencesDatabase.GetEntriesFromDistributedDB(prefixKey, entries)); in HWTEST_F()
234 std::string prefixKey = "aa"; in HWTEST_F() local
236 EXPECT_EQ(false, distributedPreferencesDatabase.GetEntriesFromDistributedDB(prefixKey, entries)); in HWTEST_F()
H A Dmock_single_kv_store.cpp30 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() argument
40 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet() argument
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_preferences_branch_test/
H A Dmock_distributed_preferences_database.cpp57 const std::string &prefixKey, std::vector<Entry> &entries) in GetEntriesFromDistributedDB()
56 GetEntriesFromDistributedDB( const std::string &prefixKey, std::vector<Entry> &entries) GetEntriesFromDistributedDB() argument
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_notification_manager_branch_test/
H A Dmock_distributed_database.cpp54 bool DistributedDatabase::GetEntriesFromDistributedDB(const std::string &prefixKey, std::vector<Entry> &entries) in GetEntriesFromDistributedDB() argument
/base/notification/distributed_notification_service/services/distributed/include/
H A Ddistributed_preferences_database.h58 * @brief Get all entries which key start with prefixKey.
64 bool GetEntriesFromDistributedDB(const std::string &prefixKey, std::vector<Entry> &entries);
H A Ddistributed_database.h71 * @brief Get all entries which key start with prefixKey.
77 bool GetEntriesFromDistributedDB(const std::string &prefixKey, std::vector<Entry> &entries);
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/
H A Ddistributed_database_branch_test.cpp289 std::string prefixKey = "<prefixKey>"; in HWTEST_F() local
293 EXPECT_EQ(false, database_->GetEntriesFromDistributedDB(prefixKey, entries)); in HWTEST_F()
306 std::string prefixKey = "<prefixKey>"; in HWTEST_F() local
310 EXPECT_EQ(false, database_->GetEntriesFromDistributedDB(prefixKey, entries)); in HWTEST_F()
323 std::string prefixKey = "<prefixKey>"; in HWTEST_F() local
327 EXPECT_EQ(false, database_->GetEntriesFromDistributedDB(prefixKey, entries)); in HWTEST_F()
H A Dmock_single_kv_store.cpp36 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() argument
46 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet() argument
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/include/
H A Dmock_single_kv_store.h37 * @brief Get all entries in this store which key start with prefixKey.
43 Status GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const override;
55 * @brief Get ResultSet in this store which key start with prefixKey.
61 Status GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const override;
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_screen_status_manager_branch_test/
H A Dmock_single_kv_store.cpp30 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() argument
45 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet() argument
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/
H A Dmock_single_kv_store.cpp21 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() argument
31 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet() argument
H A Dmock_single_kv_store.h37 * @brief Get all entries in this store which key start with prefixKey.
43 virtual Status GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const override;
55 * @brief Get ResultSet in this store which key start with prefixKey.
61 virtual Status GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const override;
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
H A Dmock_single_kv_store.cpp21 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() argument
31 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet() argument
/base/notification/distributed_notification_service/services/distributed/src/
H A Ddistributed_preferences_database.cpp138 const std::string &prefixKey, std::vector<Entry> &entries) in GetEntriesFromDistributedDB()
148 DistributedKv::Key kvStoreKey(prefixKey); in GetEntriesFromDistributedDB()
137 GetEntriesFromDistributedDB( const std::string &prefixKey, std::vector<Entry> &entries) GetEntriesFromDistributedDB() argument
H A Ddistributed_screen_status_manager.cpp193 DistributedKv::Key prefixKey(""); in CheckRemoteDevicesIsUsing()
195 DistributedKv::Status status = kvStore_->GetEntries(prefixKey, entries); in CheckRemoteDevicesIsUsing()
H A Ddistributed_notification_manager.cpp247 std::string prefixKey = deviceId + DELIMITER; in OnDeviceDisconnected()
253 if (!database_->GetEntriesFromDistributedDB(prefixKey, entries)) { in OnDeviceDisconnected()
438 std::string prefixKey = ""; in GetCurrentDistributedNotification() local
444 if (!database_->GetEntriesFromDistributedDB(prefixKey, entries)) { in GetCurrentDistributedNotification()
H A Ddistributed_database.cpp189 bool DistributedDatabase::GetEntriesFromDistributedDB(const std::string &prefixKey, std::vector<Entry> &entries) in GetEntriesFromDistributedDB() argument
203 DistributedKv::Key kvStoreKey(prefixKey); in GetEntriesFromDistributedDB()
/base/notification/distributed_notification_service/services/test/moduletest/mock/include/
H A Dmock_single_kv_store.h37 * @brief Get all entries in this store which key start with prefixKey.
43 virtual Status GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const override;
55 * @brief Get ResultSet in this store which key start with prefixKey.
61 virtual Status GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const override;
/base/notification/distributed_notification_service/services/test/moduletest/mock/
H A Dmock_single_kv_store.cpp21 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() argument
31 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet() argument
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
H A Dmock_single_kv_store.cpp101 Status MockSingleKvStore::GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const in GetEntries() argument
106 if (iter.first.StartsWith(prefixKey)) { in GetEntries()
122 Status MockSingleKvStore::GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const in GetResultSet() argument
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/include/
H A Dmock_single_kv_store.h36 * @brief Get all entries in this store which key start with prefixKey.
42 virtual Status GetEntries(const Key &prefixKey, std::vector<Entry> &entries) const override;
54 * @brief Get ResultSet in this store which key start with prefixKey.
60 virtual Status GetResultSet(const Key &prefixKey, std::shared_ptr<KvStoreResultSet> &resultSet) const override;

Completed in 11 milliseconds