/base/notification/distributed_notification_service/services/distributed/src/ |
H A D | distributed_database.cpp | 99 DistributedKv::Status status = kvDataManager_->GetSingleKvStore(options, appId, storeId, kvStore_); in GetKvStore() 102 kvStore_.reset(); in GetKvStore() 108 if (kvStore_ != nullptr) { in GetKvStore() 109 status = kvStore_->SubscribeKvStore(DistributedKv::SubscribeType::SUBSCRIBE_TYPE_REMOTE, databaseCb_); in GetKvStore() 112 kvStore_.reset(); in GetKvStore() 122 if (kvStore_ == nullptr) { in CheckKvStore() 125 if (kvStore_ == nullptr) { in CheckKvStore() 141 if (kvStore_ == nullptr) { in PutToDistributedDB() 153 DistributedKv::Status status = kvStore_->Put(kvStoreKey, kvStoreValue); in PutToDistributedDB() 166 if (kvStore_ in GetFromDistributedDB() [all...] |
H A D | distributed_preferences_database.cpp | 70 DistributedKv::Status status = kvDataManager_->GetSingleKvStore(options, appId, storeId, kvStore_); in GetKvStore() 73 kvStore_.reset(); in GetKvStore() 82 if (kvStore_ == nullptr) { in CheckKvStore() 85 if (kvStore_ == nullptr) { in CheckKvStore() 106 DistributedKv::Status status = kvStore_->Put(kvStoreKey, kvStoreValue); in PutToDistributedDB() 128 DistributedKv::Status status = kvStore_->Get(kvStoreKey, kvStoreValue); in GetFromDistributedDB() 149 DistributedKv::Status status = kvStore_->GetEntries(kvStoreKey, entries); in GetEntriesFromDistributedDB() 170 DistributedKv::Status status = kvStore_->Delete(kvStoreKey); in DeleteToDistributedDB()
|
H A D | distributed_screen_status_manager.cpp | 74 kvStore_.reset(); in OnDeviceDisconnected() 144 DistributedKv::Status status = kvDataManager_->GetSingleKvStore(options, appId, storeId, kvStore_); in GetKvStore() 147 kvStore_.reset(); in GetKvStore() 158 if (kvStore_ == nullptr) { in CheckKvStore() 161 if (kvStore_ == nullptr) { in CheckKvStore() 176 if (!CheckKvDataManager() || kvStore_ == nullptr) { in CheckRemoteDevicesIsUsing() 195 DistributedKv::Status status = kvStore_->GetEntries(prefixKey, entries); in CheckRemoteDevicesIsUsing() 198 kvStore_.reset(); in CheckRemoteDevicesIsUsing() 226 if (kvStore_ == nullptr) { in SetLocalScreenStatus() 244 DistributedKv::Status status = kvStore_ in SetLocalScreenStatus() [all...] |
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_preferences_database_test/ |
H A D | distributed_preferences_database_test.cpp | 74 * @tc.desc : test CheckKvStore and kvStore_ == nullptr.
79 distributedPreferencesDatabase.kvStore_ = nullptr;
in HWTEST_F() 91 distributedPreferencesDatabase.kvStore_ = nullptr;
in HWTEST_F() 106 distributedPreferencesDatabase.kvStore_ = std::static_pointer_cast<SingleKvStore>(kvStore);
in HWTEST_F() 122 distributedPreferencesDatabase.kvStore_ = std::static_pointer_cast<SingleKvStore>(kvStore);
in HWTEST_F() 137 distributedPreferencesDatabase.kvStore_ = nullptr;
in HWTEST_F() 152 distributedPreferencesDatabase.kvStore_ = std::static_pointer_cast<SingleKvStore>(kvStore);
in HWTEST_F() 168 distributedPreferencesDatabase.kvStore_ = std::static_pointer_cast<SingleKvStore>(kvStore);
in HWTEST_F() 185 distributedPreferencesDatabase.kvStore_ = std::static_pointer_cast<SingleKvStore>(kvStore);
in HWTEST_F() 201 distributedPreferencesDatabase.kvStore_ in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/ |
H A D | distributed_database_branch_test.cpp | 153 * @tc.desc : Test GetKvStore function and kvStore_ == nullptr.
160 database_->kvStore_ = nullptr;
in HWTEST_F() 175 // set kvStore_ is not nullptr
in HWTEST_F() 177 database_->kvStore_ = std::static_pointer_cast<SingleKvStore>(kvStore);
in HWTEST_F() 186 * @tc.desc : Test CheckKvStore function and kvStore_ != nullptr.
191 database_->kvStore_ = std::static_pointer_cast<SingleKvStore>(kvStore);
in HWTEST_F() 198 * @tc.desc : Test CheckKvStore function and kvStore_ == nullptr.
202 database_->kvStore_ = nullptr;
in HWTEST_F() 216 database_->kvStore_ = std::static_pointer_cast<SingleKvStore>(kvStore);
in HWTEST_F() 231 database_->kvStore_ in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_screen_status_manager_branch_test/ |
H A D | distributed_screen_status_manager_branch_test.cpp | 100 * @tc.desc : Test CheckKvStore function and kvStore_ == nullptr.
105 distributedScreenStatusManager.kvStore_ = nullptr;
in HWTEST_F() 112 * @tc.desc : Test CheckKvStore function and kvStore_ != nullptr.
118 distributedScreenStatusManager.kvStore_ = std::static_pointer_cast<SingleKvStore>(kvStore);
in HWTEST_F() 135 distributedScreenStatusManager->kvStore_ = nullptr;
in HWTEST_F() 203 * @tc.desc : Test CheckRemoteDevicesIsUsing function and CheckKvDataManager is false and kvStore_ is nullptr.
212 // set kvStore_ is nullptr
in HWTEST_F() 213 distributedScreenStatusManager.kvStore_ = nullptr;
in HWTEST_F() 229 // set kvStore_ is not nullptr
in HWTEST_F() 231 distributedScreenStatusManager.kvStore_ in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/services/distributed/include/ |
H A D | distributed_preferences_database.h | 89 std::shared_ptr<DistributedKv::SingleKvStore> kvStore_; member in OHOS::Notification::DistributedPreferencesDatabase
|
H A D | distributed_screen_status_manager.h | 66 std::shared_ptr<DistributedKv::SingleKvStore> kvStore_ = nullptr; member in OHOS::Notification::DistributedScreenStatusManager
|
H A D | distributed_database.h | 136 std::shared_ptr<DistributedKv::SingleKvStore> kvStore_; member in OHOS::Notification::DistributedDatabase
|