Home
last modified time | relevance | path

Searched refs:database_ (Results 1 – 7 of 7) sorted by relevance

/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/
Ddistributed_database_branch_test.cpp52 std::shared_ptr<DistributedDatabase> database_; member in OHOS::Notification::DistributedDatabaseBranchTest
83 database_ = std::make_shared<DistributedDatabase>(databaseCallback_, deviceCallback_); in SetUp()
84 database_->OnDeviceConnected(); in SetUp()
89 database_ = nullptr; in TearDown()
116 ASSERT_NE(nullptr, database_);
117 database_->kvDataManager_ = nullptr;
120 EXPECT_EQ(true, database_->CheckKvDataManager());
130 ASSERT_NE(nullptr, database_);
131 database_->kvDataManager_ = nullptr;
134 database_->GetKvStore();
[all …]
/base/notification/distributed_notification_service/services/distributed/test/unittest/
Ddistributed_database_test.cpp39 std::shared_ptr<DistributedDatabase> database_; member in OHOS::Notification::DistributedDatabaseTest
70 database_ = std::make_shared<DistributedDatabase>(databaseCallback_, deviceCallback_); in SetUp()
71 database_->OnDeviceConnected(); in SetUp()
76 database_ = nullptr; in TearDown()
120 EXPECT_EQ(database_->PutToDistributedDB(key, value), true);
133 EXPECT_EQ(database_->GetFromDistributedDB(key, value), true);
146 EXPECT_EQ(database_->GetEntriesFromDistributedDB(prifixKey, entries), true);
158 EXPECT_EQ(database_->DeleteToDistributedDB(key), true);
170 EXPECT_EQ(database_->ClearDataByDevice(deviceId), false);
182 EXPECT_EQ(database_->GetLocalDeviceId(deviceId), true);
[all …]
/base/notification/distributed_notification_service/services/distributed/src/
Ddistributed_notification_manager.cpp61 database_ = std::make_shared<DistributedDatabase>(databaseCb_, deviceCb_); in DistributedNotificationManager()
62 if (database_ == nullptr) { in DistributedNotificationManager()
96 if (database_ == nullptr) { in GenerateLocalDistributedKey()
100 if (!database_->GetLocalDeviceId(deviceId)) { in GenerateLocalDistributedKey()
248 if (database_ == nullptr) { in OnDeviceConnected()
252 if (!database_->OnDeviceConnected()) { in OnDeviceConnected()
272 if (database_ == nullptr) { in OnDeviceDisconnected()
276 if (!database_->GetEntriesFromDistributedDB(prefixKey, entries)) { in OnDeviceDisconnected()
291 database_->ClearDataByDevice(deviceId); in OnDeviceDisconnected()
294 if (database_->GetDeviceInfoList(deviceList) == ERR_OK && deviceList.empty()) { in OnDeviceDisconnected()
[all …]
Ddistributed_preferences.cpp39 database_ = std::make_unique<DistributedPreferencesDatabase>(); in DistributedPreferences()
51 if (!database_->GetEntriesFromDistributedDB(DISTRIBUTED_LABEL, entries)) { in InitDistributedAllInfo()
147 if (!database_->PutToDistributedDB(key, std::to_string(isEnable))) { in SetDistributedEnable()
178 if (!database_->PutToDistributedDB(key, std::to_string(isEnable))) { in SetDistributedBundleEnable()
213 if (!database_->DeleteToDistributedDB(key)) { in DeleteDistributedBundleInfo()
225 if (!database_->ClearDatabase()) { in ClearDataInRestoreFactorySettings()
246 if (!database_->PutToDistributedDB(key, std::to_string(enabled))) { in SetSyncEnabledWithoutApp()
/base/notification/distributed_notification_service/services/distributed/include/
Ddistributed_preferences.h106 std::unique_ptr<DistributedPreferencesDatabase> database_ = nullptr; variable
Ddistributed_notification_manager.h170 std::shared_ptr<DistributedDatabase> database_ = nullptr; variable
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_notification_manager_branch_test/
Ddistributed_notification_manager_branch_test.cpp67 distributedManager_->database_ = nullptr;