/base/notification/distributed_notification_service/services/ans/test/unittest/notification_preferences_database_branch_test/ |
D | notification_preferences_database_branch_test.cpp | 411 std::string bundleKey = "<bundleKey>"; variable 412 EXPECT_EQ(preferncesDB_->RemoveBundleFromDisturbeDB(bundleKey), false); 427 std::string bundleKey = "<bundleKey>"; variable 428 EXPECT_EQ(preferncesDB_->RemoveBundleFromDisturbeDB(bundleKey), false); 445 std::string bundleKey = "<bundleKey>"; variable 446 EXPECT_EQ(preferncesDB_->RemoveBundleFromDisturbeDB(bundleKey), false); 459 std::string bundleKey = "<bundleKey>"; variable 461 EXPECT_EQ(preferncesDB_->RemoveSlotFromDisturbeDB(bundleKey, type), false); 476 std::string bundleKey = "<bundleKey>"; variable 478 EXPECT_EQ(preferncesDB_->RemoveSlotFromDisturbeDB(bundleKey, type), false); [all …]
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
D | notification_preferences_database_test.cpp | 434 std::string bundleKey = "BundleKey"; variable 435 EXPECT_EQ(preferncesDB_->RemoveAllSlotsFromDisturbeDB(bundleKey), true); 471 std::string bundleKey = "bundleKey"; variable 476 preferncesDB_->ParseBundlePropertyFromDisturbeDB(bundleInfo, bundleKey, entry); 488 std::string bundleKey = "bundleKey"; variable 493 preferncesDB_->ParseBundlePropertyFromDisturbeDB(bundleInfo, bundleKey, entry); 505 std::string bundleKey = "bundleKey"; variable 510 preferncesDB_->ParseBundlePropertyFromDisturbeDB(bundleInfo, bundleKey, entry); 522 std::string bundleKey = "bundleKey"; variable 527 preferncesDB_->ParseBundlePropertyFromDisturbeDB(bundleInfo, bundleKey, entry); [all …]
|
/base/notification/distributed_notification_service/services/ans/src/ |
D | notification_preferences_database.cpp | 371 std::string bundleKey = GenerateBundleLablel(bundleInfo); in PutShowBadge() local 373 PutBundlePropertyToDisturbeDB(bundleKey, BundleType::BUNDLE_SHOW_BADGE_TYPE, enable); in PutShowBadge() 389 std::string bundleKey = GenerateBundleLablel(bundleInfo); in PutImportance() local 391 PutBundlePropertyToDisturbeDB(bundleKey, BundleType::BUNDLE_IMPORTANCE_TYPE, importance); in PutImportance() 406 std::string bundleKey = GenerateBundleLablel(bundleInfo); in PutTotalBadgeNums() local 408 … PutBundlePropertyToDisturbeDB(bundleKey, BundleType::BUNDLE_BADGE_TOTAL_NUM_TYPE, totalBadgeNum); in PutTotalBadgeNums() 425 std::string bundleKey = GenerateBundleLablel(bundleInfo); in PutNotificationsEnabledForBundle() local 427 … PutBundlePropertyToDisturbeDB(bundleKey, BundleType::BUNDLE_ENABLE_NOTIFICATION_TYPE, enabled); in PutNotificationsEnabledForBundle() 461 std::string bundleKey = GenerateBundleLablel(bundleInfo); in PutHasPoppedDialog() local 463 PutBundlePropertyToDisturbeDB(bundleKey, BundleType::BUNDLE_POPPED_DIALOG_TYPE, hasPopped); in PutHasPoppedDialog() [all …]
|
D | notification_preferences_info.cpp | 150 std::string bundleKey = info.GetBundleName().append(std::to_string(info.GetBundleUid())); in SetBundleInfo() local 151 infos_.insert_or_assign(bundleKey, info); in SetBundleInfo() 157 std::string bundleKey = bundleOption->GetBundleName() + std::to_string(bundleOption->GetUid()); in GetBundleInfo() local 158 auto iter = infos_.find(bundleKey); in GetBundleInfo() 168 std::string bundleKey = bundleOption->GetBundleName() + std::to_string(bundleOption->GetUid()); in RemoveBundleInfo() local 169 auto iter = infos_.find(bundleKey); in RemoveBundleInfo() 179 std::string bundleKey = bundleOption->GetBundleName() + std::to_string(bundleOption->GetUid()); in IsExsitBundleInfo() local 180 auto iter = infos_.find(bundleKey); in IsExsitBundleInfo() 234 void NotificationPreferencesInfo::SetBundleInfoFromDb(const BundleInfo &info, std::string bundleKey) in SetBundleInfoFromDb() argument 236 infos_.insert_or_assign(bundleKey, info); in SetBundleInfoFromDb()
|
/base/notification/distributed_notification_service/services/ans/include/ |
D | notification_preferences_database.h | 130 bool RemoveBundleFromDisturbeDB(const std::string &bundleKey); 139 …bool RemoveSlotFromDisturbeDB(const std::string &bundleKey, const NotificationConstant::SlotType &… 147 bool RemoveAllSlotsFromDisturbeDB(const std::string &bundleKey); 167 const std::string &bundleKey, const BundleType &type, const T &t); 169 const std::string &bundleKey, const NotificationPreferencesInfo::BundleInfo &bundleInfo); 177 void GenerateSlotEntry(const std::string &bundleKey, const sptr<NotificationSlot> &slot, 188 bool IsSlotKey(const std::string &bundleKey, const std::string &key) const; 190 …const std::string &bundleKey, const std::string &type = "", const std::string &subType = "") const; 191 std::string GenerateBundleKey(const std::string &bundleKey, const std::string &type = "") const; 195 …otFromDisturbeDB(NotificationPreferencesInfo::BundleInfo &bundleInfo, const std::string &bundleKey, [all …]
|
D | notification_preferences_info.h | 275 void SetBundleInfoFromDb(const BundleInfo &info, std::string bundleKey);
|