/base/notification/distributed_notification_service/services/ans/include/ |
H A D | notification_dialog_manager.h | 117 static bool SetHasPoppedDialog(const sptr<NotificationBundleOption>& bundleOption, bool hasPopped);
|
H A D | notification_preferences.h | 232 ErrCode GetHasPoppedDialog(const sptr<NotificationBundleOption> &bundleOption, bool &hasPopped); 233 ErrCode SetHasPoppedDialog(const sptr<NotificationBundleOption> &bundleOption, bool hasPopped);
|
H A D | notification_preferences_info.h | 108 void SetHasPoppedDialog(const bool &hasPopped);
|
H A D | notification_preferences_database.h | 147 bool PutHasPoppedDialog(const NotificationPreferencesInfo::BundleInfo &bundleInfo, const bool &hasPopped);
|
H A D | advanced_notification_service.h | 1288 ErrCode GetHasPoppedDialog(const sptr<NotificationBundleOption> bundleOption, bool &hasPopped);
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | notification_dialog_manager.cpp | 219 const sptr<NotificationBundleOption>& bundleOption, bool hasPopped) in SetHasPoppedDialog() 225 ErrCode result = NotificationPreferences::GetInstance()->SetHasPoppedDialog(bundleOption, hasPopped); in SetHasPoppedDialog() 218 SetHasPoppedDialog( const sptr<NotificationBundleOption>& bundleOption, bool hasPopped) SetHasPoppedDialog() argument
|
H A D | notification_preferences_info.cpp | 85 void NotificationPreferencesInfo::BundleInfo::SetHasPoppedDialog(const bool &hasPopped) in SetHasPoppedDialog() argument 87 hasPoppedDialog_ = hasPopped; in SetHasPoppedDialog()
|
H A D | notification_preferences.cpp | 461 ErrCode NotificationPreferences::GetHasPoppedDialog(const sptr<NotificationBundleOption> &bundleOption, bool &hasPopped) in GetHasPoppedDialog() argument 466 return GetBundleProperty(bundleOption, BundleType::BUNDLE_POPPED_DIALOG_TYPE, hasPopped); in GetHasPoppedDialog() 469 ErrCode NotificationPreferences::SetHasPoppedDialog(const sptr<NotificationBundleOption> &bundleOption, bool hasPopped) in SetHasPoppedDialog() argument 477 result = SetBundleProperty(preferencesInfo, bundleOption, BundleType::BUNDLE_POPPED_DIALOG_TYPE, hasPopped); in SetHasPoppedDialog()
|
H A D | advanced_notification_publish_service.cpp | 875 bool hasPopped = false; in RequestEnableNotification() local 876 result = GetHasPoppedDialog(bundleOption, hasPopped); in RequestEnableNotification() 882 if (hasPopped) { in RequestEnableNotification() 1067 bool hasPopped = false; in CanPopEnableNotificationDialog() local 1068 result = GetHasPoppedDialog(bundleOption, hasPopped); in CanPopEnableNotificationDialog() 1074 if (hasPopped) { in CanPopEnableNotificationDialog()
|
H A D | advanced_notification_service.cpp | 1867 const sptr<NotificationBundleOption> bundleOption, bool &hasPopped) in GetHasPoppedDialog() 1876 result = NotificationPreferences::GetInstance()->GetHasPoppedDialog(bundleOption, hasPopped); in GetHasPoppedDialog() 1866 GetHasPoppedDialog( const sptr<NotificationBundleOption> bundleOption, bool &hasPopped) GetHasPoppedDialog() argument
|
H A D | notification_preferences_database.cpp | 421 const NotificationPreferencesInfo::BundleInfo &bundleInfo, const bool &hasPopped) in PutHasPoppedDialog() 433 int32_t result = PutBundlePropertyToDisturbeDB(bundleKey, BundleType::BUNDLE_POPPED_DIALOG_TYPE, hasPopped, in PutHasPoppedDialog() 420 PutHasPoppedDialog( const NotificationPreferencesInfo::BundleInfo &bundleInfo, const bool &hasPopped) PutHasPoppedDialog() argument
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | notification_preferences_test.cpp | 992 bool hasPopped = false; in HWTEST_F() local 994 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetHasPoppedDialog(bundleOption_, hasPopped), (int)ERR_OK); in HWTEST_F() 1008 bool hasPopped = false; in HWTEST_F() local 1009 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetHasPoppedDialog(bundleOption_, hasPopped), (int)ERR_OK); in HWTEST_F() 1010 EXPECT_TRUE(hasPopped); in HWTEST_F()
|
H A D | advanced_notification_service_test.cpp | 1171 bool hasPopped = true; in HWTEST_F() local 1172 ASSERT_EQ(advancedNotificationService_->GetHasPoppedDialog(bundleOption, hasPopped), (int)ERR_ANS_INVALID_PARAM); in HWTEST_F()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_preferences_database_branch_test/ |
H A D | notification_preferences_database_branch_test.cpp | 247 bool hasPopped = true;
in HWTEST_F() local 248 ASSERT_EQ(preferncesDB_->PutHasPoppedDialog(bundleInfo, hasPopped), false);
in HWTEST_F()
|