/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_innerkits_module_slot_test.cpp | 82 * @tc.desc : Add notification slot(type is SOCIAL_COMMUNICATION), get notification slot and remove notification 88 NotificationSlot slot(NotificationConstant::SOCIAL_COMMUNICATION); in HWTEST_F() 103 EXPECT_EQ(0, NotificationHelper::GetNotificationSlot(NotificationConstant::SOCIAL_COMMUNICATION, spSlot)); in HWTEST_F() 109 EXPECT_EQ("SOCIAL_COMMUNICATION", spSlot->GetId()); in HWTEST_F() 112 EXPECT_EQ(NotificationConstant::SOCIAL_COMMUNICATION, spSlot->GetType()); in HWTEST_F() 114 EXPECT_EQ("SOCIAL_COMMUNICATION", spSlot->GetName()); in HWTEST_F() 122 EXPECT_EQ(0, NotificationHelper::RemoveNotificationSlot(NotificationConstant::SOCIAL_COMMUNICATION)); in HWTEST_F() 123 EXPECT_EQ(0, NotificationHelper::GetNotificationSlot(NotificationConstant::SOCIAL_COMMUNICATION, spSlot)); in HWTEST_F() 314 * @tc.desc : Create notification slot(type is SOCIAL_COMMUNICATION), get sound and vibration. 319 NotificationSlot slot(NotificationConstant::SOCIAL_COMMUNICATION); in HWTEST_F() [all...] |
H A D | ans_innerkits_module_publish_test.cpp | 172 EXPECT_EQ(NotificationConstant::SOCIAL_COMMUNICATION, notificationRequest.GetSlotType()); 1122 * @tc.desc : Add notification slot(type is SOCIAL_COMMUNICATION), make a subscriber and publish a local normal 1128 NotificationSlot slot(NotificationConstant::SOCIAL_COMMUNICATION); in HWTEST_F() 1141 req.SetSlotType(NotificationConstant::SOCIAL_COMMUNICATION); in HWTEST_F() 1187 * @tc.desc : Add notification slot(type is SOCIAL_COMMUNICATION), make a subscriber and publish a local group 1193 NotificationSlot slot(NotificationConstant::SOCIAL_COMMUNICATION); in HWTEST_F() 1207 req.SetSlotType(NotificationConstant::SOCIAL_COMMUNICATION); in HWTEST_F()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | notification_preferences_info_test.cpp | 49 const char *res= bundleInfo.GetSlotFlagsKeyFromType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 89 bundleInfo.SetSlotFlagsForSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 90 int res = bundleInfo.GetSlotFlagsForSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
|
H A D | notification_slot_filter_test.cpp | 100 record->slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
|
H A D | permission_filter_test.cpp | 69 record->slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
|
H A D | advanced_notification_publish_service_test.cpp | 660 req->SetSlotType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 669 auto slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 861 request->SetSlotType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 880 request->SetSlotType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 897 request->SetSlotType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 914 request->SetSlotType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 933 request->SetSlotType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 1057 request->SetSlotType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 1089 request->SetSlotType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
|
H A D | notification_preferences_database_test.cpp | 51 sptr<NotificationSlot> slot1 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 66 sptr<NotificationSlot> slot1 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 326 sptr<NotificationSlot> slot1 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 331 OHOS::Notification::NotificationConstant::SlotType::SOCIAL_COMMUNICATION, -1)); in HWTEST_F() 342 std::string(), OHOS::Notification::NotificationConstant::SlotType::SOCIAL_COMMUNICATION, -1)); in HWTEST_F() 364 sptr<NotificationSlot> slot1 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 389 sptr<NotificationSlot> slot = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F()
|
H A D | advanced_notification_service_test.cpp | 222 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 557 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 972 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 987 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 1057 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 1071 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 1086 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 1101 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 1116 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 2439 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() [all...] |
H A D | advanced_notification_live_view_service_test.cpp | 284 auto slotType = NotificationConstant::SlotType::SOCIAL_COMMUNICATION; in HWTEST_F()
|
H A D | advanced_notification_service_branch_test.cpp | 974 NotificationConstant::SlotType::SOCIAL_COMMUNICATION, enabled, false); in HWTEST_F() 979 NotificationConstant::SlotType::SOCIAL_COMMUNICATION, enabled); in HWTEST_F()
|
/base/notification/distributed_notification_service/services/test/moduletest/ |
H A D | ans_module_test.cpp | 133 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in TestAddSlots() 189 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 369 * @tc.desc : Test publish notification when slot type is SOCIAL_COMMUNICATION. 387 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 411 * @tc.desc : Test publish notification when slot type is SOCIAL_COMMUNICATION. 429 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 453 * @tc.desc : Test publish notification when slot type is SOCIAL_COMMUNICATION. 471 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 495 * @tc.desc : Test publish notification when slot type is SOCIAL_COMMUNICATION. 513 sptr<NotificationSlot> slot0 = new NotificationSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/frameworks/core/common/src/ |
H A D | ans_convert_enum.cpp | 86 case SlotType::SOCIAL_COMMUNICATION: in SlotTypeJSToC() 87 outType = NotificationConstant::SlotType::SOCIAL_COMMUNICATION; in SlotTypeJSToC() 121 case NotificationConstant::SlotType::SOCIAL_COMMUNICATION: in SlotTypeCToJS() 122 outType = SlotType::SOCIAL_COMMUNICATION; in SlotTypeCToJS()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_slot.cpp | 129 case NotificationConstant::SlotType::SOCIAL_COMMUNICATION: in SetType() 130 id_ = "SOCIAL_COMMUNICATION"; in SetType() 131 SetName("SOCIAL_COMMUNICATION"); in SetType() 492 convertStrToSlotType_[SOCIAL_COMMUNICATION] = NotificationConstant::SlotType::SOCIAL_COMMUNICATION; in GetSlotTypeByString() 513 case NotificationConstant::SlotType::SOCIAL_COMMUNICATION: in GetDefaultReminderMode()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/ |
H A D | advanced_notification_service_publish_test.cpp | 425 * @tc.desc : Create a slot of type SOCIAL_COMMUNICATION and successfully publish a notification 429 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 434 req->SetSlotType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 568 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 571 req->SetSlotType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 860 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 863 req->SetSlotType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 891 TestAddSlot(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 894 req->SetSlotType(NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 906 NotificationConstant::SlotType::SOCIAL_COMMUNICATION, in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/services/ans/src/common/ |
H A D | notification_config_parse.cpp | 32 {NotificationConstant::SlotType::SOCIAL_COMMUNICATION, 0b111111}, in NotificationConfigParse()
|
/base/notification/distributed_notification_service/frameworks/core/common/include/ |
H A D | ans_convert_enum.h | 39 SOCIAL_COMMUNICATION = 1, member in OHOS::NotificationNapi::SlotType
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_constant.h | 60 SOCIAL_COMMUNICATION, // the notification type is social communication enumerator
|
H A D | notification_slot.h | 187 * The value can be DEFAULT, SOCIAL_COMMUNICATION, SERVICE_REMINDER, CONTENT_INFORMATION, or OTHER. 450 constexpr static const char* SOCIAL_COMMUNICATION = "Social_communication"; member in OHOS::Notification::NotificationSlot
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | ans_log_test.cpp | 118 NotificationNapi::SlotType inType = NotificationNapi::SlotType::SOCIAL_COMMUNICATION; in HWTEST_F() 120 EXPECT_EQ(outType, NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in HWTEST_F() 156 inType = NotificationConstant::SlotType::SOCIAL_COMMUNICATION; in HWTEST_F() 158 EXPECT_EQ(outType, NotificationNapi::SlotType::SOCIAL_COMMUNICATION); 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 | 464 NotificationConstant::SlotType type = NotificationConstant::SlotType::SOCIAL_COMMUNICATION;
in HWTEST_F() 481 NotificationConstant::SlotType type = NotificationConstant::SlotType::SOCIAL_COMMUNICATION;
in HWTEST_F() 500 NotificationConstant::SlotType type = NotificationConstant::SlotType::SOCIAL_COMMUNICATION;
in HWTEST_F()
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | notification_preferences_info.cpp | 115 case NotificationConstant::SlotType::SOCIAL_COMMUNICATION: in GetSlotFlagsKeyFromType() 116 return NotificationConstant::SLOTTYPECCMNAMES[NotificationConstant::SlotType::SOCIAL_COMMUNICATION]; in GetSlotFlagsKeyFromType()
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/ |
H A D | notification_utils.h | 144 SOCIAL_COMMUNICATION = 1, member in SlotType
|
/base/usb/usb_manager/services/native/src/ |
H A D | usb_mass_storage_notification.cpp | 224 request.SetSlotType(OHOS::Notification::NotificationConstant::SlotType::SOCIAL_COMMUNICATION); in PublishUsbNotification()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_proxy_test/ |
H A D | ans_manager_proxy_unit_test.cpp | 813 NotificationConstant::SlotType slotType = NotificationConstant::SOCIAL_COMMUNICATION;
in HWTEST_F() 836 NotificationConstant::SlotType slotType = NotificationConstant::SOCIAL_COMMUNICATION;
in HWTEST_F() 856 NotificationConstant::SlotType slotType = NotificationConstant::SOCIAL_COMMUNICATION;
in HWTEST_F() 878 NotificationConstant::SlotType slotType = NotificationConstant::SOCIAL_COMMUNICATION;
in HWTEST_F() 1131 NotificationConstant::SlotType slotType = NotificationConstant::SOCIAL_COMMUNICATION;
in HWTEST_F() 1154 NotificationConstant::SlotType slotType = NotificationConstant::SOCIAL_COMMUNICATION;
in HWTEST_F() 1174 NotificationConstant::SlotType slotType = NotificationConstant::SOCIAL_COMMUNICATION;
in HWTEST_F() 1196 NotificationConstant::SlotType slotType = NotificationConstant::SOCIAL_COMMUNICATION;
in HWTEST_F() 1318 NotificationConstant::SlotType slotType = NotificationConstant::SOCIAL_COMMUNICATION;
in HWTEST_F() 1342 NotificationConstant::SlotType slotType = NotificationConstant::SOCIAL_COMMUNICATION;
in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_utils.cpp | 653 case SlotType::SOCIAL_COMMUNICATION: in SlotTypeCJToC() 654 outType = NotificationConstant::SlotType::SOCIAL_COMMUNICATION; in SlotTypeCJToC() 685 case NotificationConstant::SlotType::SOCIAL_COMMUNICATION: in SlotTypeCToCJ() 686 outType = SlotType::SOCIAL_COMMUNICATION; in SlotTypeCToCJ()
|