/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_innerkits_module_slot_test.cpp | 129 * @tc.desc : Add notification slot(type is SERVICE_REMINDER), get notification slot and remove notification slot. 134 NotificationSlot slot(NotificationConstant::SERVICE_REMINDER); in HWTEST_F() 148 EXPECT_EQ(0, NotificationHelper::GetNotificationSlot(NotificationConstant::SERVICE_REMINDER, spSlot)); in HWTEST_F() 154 EXPECT_EQ("SERVICE_REMINDER", spSlot->GetId()); in HWTEST_F() 157 EXPECT_EQ(NotificationConstant::SERVICE_REMINDER, spSlot->GetType()); in HWTEST_F() 159 EXPECT_EQ("SERVICE_REMINDER", spSlot->GetName()); in HWTEST_F() 167 EXPECT_EQ(0, NotificationHelper::RemoveNotificationSlot(NotificationConstant::SERVICE_REMINDER)); in HWTEST_F() 168 EXPECT_EQ(0, NotificationHelper::GetNotificationSlot(NotificationConstant::SERVICE_REMINDER, spSlot)); in HWTEST_F() 331 * @tc.desc : Create notification slot(type is SERVICE_REMINDER), get sound and vibration. 336 NotificationSlot slot(NotificationConstant::SERVICE_REMINDER); in HWTEST_F() [all...] |
H A D | ans_innerkits_module_publish_test.cpp | 170 EXPECT_EQ(NotificationConstant::SERVICE_REMINDER, notificationRequest.GetSlotType()); 1088 * @tc.desc : Add notification slot(type is SERVICE_REMINDER), make a subscriber and publish a local normal 1094 NotificationSlot slot(NotificationConstant::SERVICE_REMINDER); in HWTEST_F() 1108 req.SetSlotType(NotificationConstant::SERVICE_REMINDER); in HWTEST_F() 1566 * @tc.desc : Add notification slot(type is SERVICE_REMINDER), make a subscriber and publish a flags notification. 1572 NotificationSlot slot(NotificationConstant::SERVICE_REMINDER); in HWTEST_F() 1581 req.SetSlotType(NotificationConstant::SERVICE_REMINDER); in HWTEST_F() 1590 bo, NotificationConstant::SERVICE_REMINDER, enable, false)); in HWTEST_F() 1592 EXPECT_EQ(0, NotificationHelper::GetEnabledForBundleSlot(bo, NotificationConstant::SERVICE_REMINDER, enable)); in HWTEST_F() 1598 bo, NotificationConstant::SERVICE_REMINDER, enabl in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_slot.cpp | 137 case NotificationConstant::SlotType::SERVICE_REMINDER: in SetType() 138 id_ = "SERVICE_REMINDER"; in SetType() 139 SetName("SERVICE_REMINDER"); in SetType() 493 convertStrToSlotType_[SERVICE_REMINDER] = NotificationConstant::SlotType::SERVICE_REMINDER; in GetSlotTypeByString() 517 case NotificationConstant::SlotType::SERVICE_REMINDER: in GetDefaultReminderMode()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | reminder_helper_test.cpp | 115 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::SERVICE_REMINDER;
in HWTEST_F()
|
H A D | notification_helper_test.cpp | 90 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::SERVICE_REMINDER; in HWTEST_F() 118 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::SERVICE_REMINDER; in HWTEST_F() 145 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::SERVICE_REMINDER; in HWTEST_F() 1007 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::SERVICE_REMINDER; in HWTEST_F() 1023 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::SERVICE_REMINDER; in HWTEST_F() 1072 slotType = NotificationConstant::SlotType::SERVICE_REMINDER; in HWTEST_F()
|
H A D | ans_log_test.cpp | 123 EXPECT_EQ(outType, NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 159 inType = NotificationConstant::SlotType::SERVICE_REMINDER; in HWTEST_F()
|
H A D | reminder_request_test.cpp | 1788 rrc->snoozeSlotType_ = NotificationConstant::SlotType::SERVICE_REMINDER; in HWTEST_F() 1795 EXPECT_EQ(ret->GetSlotType(), NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 1810 rrc->snoozeSlotType_ = NotificationConstant::SlotType::SERVICE_REMINDER; in HWTEST_F()
|
/base/notification/distributed_notification_service/services/ans/src/common/ |
H A D | notification_config_parse.cpp | 33 {NotificationConstant::SlotType::SERVICE_REMINDER, 0b111111}, in NotificationConfigParse()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_constant.h | 61 SERVICE_REMINDER, // the notification type is service reminder enumerator
|
H A D | notification_slot.h | 187 * The value can be DEFAULT, SOCIAL_COMMUNICATION, SERVICE_REMINDER, CONTENT_INFORMATION, or OTHER. 451 constexpr static const char* SERVICE_REMINDER = "Service_reminder"; member in OHOS::Notification::NotificationSlot
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | advanced_notification_slot_service_test.cpp | 517 sptr<NotificationSlot> slot = new (std::nothrow) NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 531 sptr<NotificationSlot> slot = new (std::nothrow) NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 544 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::SERVICE_REMINDER; in HWTEST_F()
|
H A D | notification_preferences_info_test.cpp | 53 res = bundleInfo.GetSlotFlagsKeyFromType(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F()
|
H A D | notification_preferences_database_test.cpp | 52 sptr<NotificationSlot> slot2 = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 67 sptr<NotificationSlot> slot2 = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 365 sptr<NotificationSlot> slot2 = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F()
|
H A D | notification_hisysevent_test.cpp | 141 eventInfo.slotType = NotificationConstant::SERVICE_REMINDER; in HWTEST_F()
|
H A D | notification_preferences_test.cpp | 217 bundleOption_, NotificationConstant::SlotType::SERVICE_REMINDER), in HWTEST_F()
|
H A D | advanced_notification_service_test.cpp | 1793 ASSERT_EQ(advancedNotificationService_->AddSlotByType(NotificationConstant::SlotType::SERVICE_REMINDER), in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/core/common/src/ |
H A D | ans_convert_enum.cpp | 90 outType = NotificationConstant::SlotType::SERVICE_REMINDER; in SlotTypeJSToC() 124 case NotificationConstant::SlotType::SERVICE_REMINDER: in SlotTypeCToJS()
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | notification_preferences_info.cpp | 117 case NotificationConstant::SlotType::SERVICE_REMINDER: in GetSlotFlagsKeyFromType() 118 return NotificationConstant::SLOTTYPECCMNAMES[NotificationConstant::SlotType::SERVICE_REMINDER]; in GetSlotFlagsKeyFromType()
|
H A D | advanced_notification_publish_service.cpp | 278 NotificationConstant::SlotType::SERVICE_REMINDER, commonNotificationPublishProcess); in InitPublishProcess()
|
/base/notification/distributed_notification_service/services/test/moduletest/ |
H A D | ans_module_test.cpp | 214 * @tc.desc : Test publish notification when slot type is SERVICE_REMINDER. 243 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 990 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 1148 sptr<NotificationSlot> reminderSlot = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 1221 sptr<NotificationSlot> reminderSlot = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 1673 sptr<NotificationSlot> reminderSlot = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 2087 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 2109 req->SetSlotType(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 2110 req1->SetSlotType(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 2234 sptr<NotificationSlot> reminderSlot = new NotificationSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/ |
H A D | advanced_notification_service_publish_test.cpp | 347 TestAddSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 452 * @tc.desc : Create a slot of type SERVICE_REMINDER and successfully publish a notification 456 TestAddSlot(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F() 461 req->SetSlotType(NotificationConstant::SlotType::SERVICE_REMINDER); in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_utils.cpp | 657 outType = NotificationConstant::SlotType::SERVICE_REMINDER; in SlotTypeCJToC() 688 case NotificationConstant::SlotType::SERVICE_REMINDER: in SlotTypeCToCJ()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_stub_test/ |
H A D | ans_manager_stub_test.cpp | 4798 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::SERVICE_REMINDER; in HWTEST_F() 4814 NotificationConstant::SlotType slotType = NotificationConstant::SlotType::SERVICE_REMINDER; in HWTEST_F()
|