Home
last modified time | relevance | path

Searched refs:NotificationContent (Results 1 - 25 of 64) sorted by relevance

123

/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_content.cpp22 std::map<std::string, NotificationContent::Type> NotificationContent::convertStrToContentType_;
24 NotificationContent::NotificationContent(const std::shared_ptr<NotificationNormalContent> &normalContent) in NotificationContent() function in OHOS::Notification::NotificationContent
31 contentType_ = NotificationContent::Type::BASIC_TEXT; in NotificationContent()
35 NotificationContent::NotificationContent(const std::shared_ptr<NotificationLongTextContent> &longTextContent) in NotificationContent() function in OHOS::Notification::NotificationContent
42 contentType_ = NotificationContent::Type::LONG_TEXT; in NotificationContent()
46 NotificationContent::NotificationContent(cons function in OHOS::Notification::NotificationContent
57 NotificationContent::NotificationContent(const std::shared_ptr<NotificationConversationalContent> &conversationContent) NotificationContent() function in OHOS::Notification::NotificationContent
68 NotificationContent::NotificationContent(const std::shared_ptr<NotificationMultiLineContent> &multiLineContent) NotificationContent() function in OHOS::Notification::NotificationContent
79 NotificationContent::NotificationContent(const std::shared_ptr<NotificationMediaContent> &mediaContent) NotificationContent() function in OHOS::Notification::NotificationContent
90 NotificationContent::NotificationContent(const std::shared_ptr<NotificationLocalLiveViewContent> &localLiveViewContent) NotificationContent() function in OHOS::Notification::NotificationContent
102 NotificationContent::NotificationContent(const std::shared_ptr<NotificationLiveViewContent> &liveViewContent) NotificationContent() function in OHOS::Notification::NotificationContent
[all...]
H A Dnotification_check_request.cpp22 NotificationCheckRequest::NotificationCheckRequest(NotificationContent::Type contentType, in NotificationCheckRequest()
30 void NotificationCheckRequest::SetContentType(NotificationContent::Type contentType) in SetContentType()
35 NotificationContent::Type NotificationCheckRequest::GetContentType() const in GetContentType()
101 contentType_ = static_cast<NotificationContent::Type>(parcel.ReadInt32()); in ReadFromParcel()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_content.h33 class NotificationContent : public Parcelable, public NotificationJsonConvertionBase { class
88 * GetNotificationContent()) and set the content type to NotificationContent::Type::BASIC_TEXT (obtained by calling
93 explicit NotificationContent(const std::shared_ptr<NotificationNormalContent> &normalContent);
97 * GetNotificationContent()) and set the content type to NotificationContent::Type::LONG_TEXT (obtained by calling
102 explicit NotificationContent(const std::shared_ptr<NotificationLongTextContent> &longTextContent);
106 * GetNotificationContent()) and set the content type to NotificationContent::Type::PICTURE (obtained by calling
111 explicit NotificationContent(const std::shared_ptr<NotificationPictureContent> &pictureContent);
115 * GetNotificationContent()) and set the content type to NotificationContent::Type::CONVERSATION (obtained by
120 explicit NotificationContent(const std::shared_ptr<NotificationConversationalContent> &conversationContent);
124 * GetNotificationContent()) and set the content type to NotificationContent
[all...]
H A Dnotification_check_request.h35 NotificationCheckRequest(NotificationContent::Type contentType, NotificationConstant::SlotType slotType,
52 void SetContentType(NotificationContent::Type contentType);
59 NotificationContent::Type GetContentType() const;
122 NotificationContent::Type contentType_ {};
H A Dnotification_request.h607 * NotificationRequest::setContent(NotificationContent) and an AVToken has been attached to
621 void SetContent(const std::shared_ptr<NotificationContent> &content);
624 * @brief Obtains the notification content set by calling the setContent(NotificationContent) method.
628 const std::shared_ptr<NotificationContent> GetContent() const;
634 * NotificationContent::Type::BASIC_TEXT,
635 * NotificationContent::Type::LONG_TEXT,
636 * NotificationContent::Type::PICTURE,
637 * NotificationContent::Type::CONVERSATION,
638 * NotificationContent::Type::MULTILINE,
639 * NotificationContent
[all...]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_content_test.cpp47 NotificationContent notificationContent(normalContent); in HWTEST_F()
63 NotificationContent notificationContent(normalContent); in HWTEST_F()
136 NotificationContent notificationContent0(normalContent0); in HWTEST_F()
139 NotificationContent notificationContent1(longTextContent); in HWTEST_F()
142 NotificationContent notificationContent2(pictureContent); in HWTEST_F()
145 NotificationContent notificationContent3(conversationContent); in HWTEST_F()
148 NotificationContent notificationContent4(multiLineContent); in HWTEST_F()
151 NotificationContent notificationContent5(mediaContent); in HWTEST_F()
154 NotificationContent notificationContent6(liveViewContent); in HWTEST_F()
157 NotificationContent notificationContent in HWTEST_F()
[all...]
H A Dnotification_request_test.cpp302 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(mediaContent); in HWTEST_F()
304 std::shared_ptr<NotificationContent> result = notificationRequest.GetContent(); in HWTEST_F()
323 std::shared_ptr<NotificationContent> content1 = std::make_shared<NotificationContent>(pictureContent); in HWTEST_F()
325 std::shared_ptr<NotificationContent> result = notificationRequest.GetContent(); in HWTEST_F()
343 std::shared_ptr<NotificationContent> content1 = std::make_shared<NotificationContent>(pictureContent); in HWTEST_F()
345 std::shared_ptr<NotificationContent> result = notificationRequest.GetContent(); in HWTEST_F()
352 std::shared_ptr<NotificationContent> content in HWTEST_F()
[all...]
H A Dans_log_test.cpp52 NotificationContent::Type outType; in HWTEST_F()
55 EXPECT_EQ(outType, NotificationContent::Type::BASIC_TEXT); in HWTEST_F()
58 EXPECT_EQ(outType, NotificationContent::Type::LONG_TEXT); in HWTEST_F()
61 EXPECT_EQ(outType, NotificationContent::Type::MULTILINE); in HWTEST_F()
64 EXPECT_EQ(outType, NotificationContent::Type::PICTURE); in HWTEST_F()
67 EXPECT_EQ(outType, NotificationContent::Type::CONVERSATION); in HWTEST_F()
70 EXPECT_EQ(outType, NotificationContent::Type::LOCAL_LIVE_VIEW); in HWTEST_F()
73 EXPECT_EQ(outType, NotificationContent::Type::LIVE_VIEW); in HWTEST_F()
86 NotificationContent::Type inType = NotificationContent in HWTEST_F()
[all...]
H A Dnotification_check_request_test.cpp40 checkRequest.SetContentType(NotificationContent::Type::BASIC_TEXT); in HWTEST_F()
41 EXPECT_EQ(NotificationContent::Type::BASIC_TEXT, checkRequest.GetContentType()); in HWTEST_F()
/base/notification/distributed_notification_service/test/fuzztest/notificationcontent_fuzzer/
H A Dnotificationcontent_fuzzer.cpp32 Notification::NotificationContent notificationContent(normalContent); in DoSomethingInterestingWithMyAPI()
33 Notification::NotificationContent notificationLongTextContent(longTextContent); in DoSomethingInterestingWithMyAPI()
34 Notification::NotificationContent notificationPictureContent(pictureContent); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/
H A Dadvanced_notification_service_publish_test.cpp213 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F()
240 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F()
275 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F()
303 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F()
331 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalConten in HWTEST_F()
[all...]
/base/notification/distributed_notification_service/frameworks/core/common/src/
H A Dans_convert_enum.cpp21 bool AnsEnumUtil::ContentTypeJSToC(const ContentType &inType, NotificationContent::Type &outType) in ContentTypeJSToC()
25 outType = NotificationContent::Type::BASIC_TEXT; in ContentTypeJSToC()
28 outType = NotificationContent::Type::LONG_TEXT; in ContentTypeJSToC()
31 outType = NotificationContent::Type::MULTILINE; in ContentTypeJSToC()
34 outType = NotificationContent::Type::PICTURE; in ContentTypeJSToC()
37 outType = NotificationContent::Type::CONVERSATION; in ContentTypeJSToC()
40 outType = NotificationContent::Type::LOCAL_LIVE_VIEW; in ContentTypeJSToC()
43 outType = NotificationContent::Type::LIVE_VIEW; in ContentTypeJSToC()
52 bool AnsEnumUtil::ContentTypeCToJS(const NotificationContent::Type &inType, ContentType &outType) in ContentTypeCToJS()
55 case NotificationContent in ContentTypeCToJS()
[all...]
/base/notification/distributed_notification_service/test/bechmarktest/notification_publish_test/
H A Dnotification_publish_test.cpp69 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(mediaContent); in InitTextRequest()
82 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(mediaContent); in InitWantAgentRequest()
96 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(mediaContent); in InitButtonRequest()
/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_innerkits_module_publish_test.cpp211 std::shared_ptr<NotificationContent> notificationContent = notificationRequest.GetContent(); in CheckCaseOneResult()
213 EXPECT_EQ(NotificationContent::Type::MEDIA, notificationContent->GetContentType()); in CheckCaseOneResult()
304 std::shared_ptr<NotificationContent> notificationContent = notificationRequest.GetContent(); in CheckCaseFourResult()
306 EXPECT_EQ(NotificationContent::Type::CONVERSATION, notificationContent->GetContentType()); in CheckCaseFourResult()
330 std::shared_ptr<NotificationContent> notificationContent = notificationRequest.GetContent(); in CheckCaseFiveResult()
332 EXPECT_EQ(NotificationContent::Type::MULTILINE, notificationContent->GetContentType()); in CheckCaseFiveResult()
348 std::shared_ptr<NotificationContent> notificationContent = notificationRequest.GetContent(); in CheckCaseSixResult()
350 EXPECT_EQ(NotificationContent::Type::PICTURE, notificationContent->GetContentType()); in CheckCaseSixResult()
364 std::shared_ptr<NotificationContent> notificationContent = notificationRequest.GetContent(); in CheckCaseSevenResult()
366 EXPECT_EQ(NotificationContent in CheckCaseSevenResult()
[all...]
H A Dans_fw_module_test.cpp416 auto content = std::make_shared<NotificationContent>(normalContent); in CreateDistributedRequest()
646 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); in HWTEST_F()
708 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); in HWTEST_F()
754 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); in HWTEST_F()
798 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); in HWTEST_F()
978 std::shared_ptr<NotificationContent> conten in HWTEST_F()
[all...]
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_live_view_service_test.cpp110 auto content = std::make_shared<NotificationContent>(liveContent); in HWTEST_F()
145 auto content = std::make_shared<NotificationContent>(liveContent); in HWTEST_F()
187 auto content = std::make_shared<NotificationContent>(liveContent); in HWTEST_F()
209 auto newContent = std::make_shared<NotificationContent>(newLiveContent); in HWTEST_F()
216 auto oldContent = std::make_shared<NotificationContent>(oldLiveContent); in HWTEST_F()
241 auto content = std::make_shared<NotificationContent>(liveContent); in HWTEST_F()
263 auto content = std::make_shared<NotificationContent>(localLiveViewContent); in HWTEST_F()
289 auto content = std::make_shared<NotificationContent>(localLiveViewContent); in HWTEST_F()
/base/notification/distributed_notification_service/services/test/moduletest/
H A Dans_module_test.cpp201 std::shared_ptr<NotificationContent> content2 = std::make_shared<NotificationContent>(longTextContent); in HWTEST_F()
251 std::shared_ptr<NotificationContent> content2 = std::make_shared<NotificationContent>(longTextContent); in HWTEST_F()
299 std::shared_ptr<NotificationContent> content2 = std::make_shared<NotificationContent>(longTextContent); in HWTEST_F()
349 std::shared_ptr<NotificationContent> content2 = std::make_shared<NotificationContent>(longTextContent); in HWTEST_F()
398 std::shared_ptr<NotificationContent> content2 = std::make_shared<NotificationContent>(longTextConten in HWTEST_F()
[all...]
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_utils.cpp202 // content: NotificationContent in GetNotificationRequestByCustom()
277 request.SetContent(std::make_shared<NotificationContent>(normalContent)); in GetNotificationBasicContent()
344 request.SetContent(std::make_shared<NotificationContent>(longContent)); in GetNotificationLongTextContent()
409 request.SetContent(std::make_shared<NotificationContent>(pictureContent)); in GetNotificationPictureContent()
479 request.SetContent(std::make_shared<NotificationContent>(multiLineContent)); in GetNotificationMultiLineContent()
643 request.SetContent(std::make_shared<NotificationContent>(localLiveViewContent)); in GetNotificationLocalLiveViewContent()
736 bool ContentTypeCJToC(const ContentType &inType, NotificationContent::Type &outType) in ContentTypeCJToC()
740 outType = NotificationContent::Type::BASIC_TEXT; in ContentTypeCJToC()
743 outType = NotificationContent::Type::LONG_TEXT; in ContentTypeCJToC()
746 outType = NotificationContent in ContentTypeCJToC()
[all...]
/base/telephony/call_manager/services/call/call_state_observer/src/
H A Dincoming_call_notification.cpp86 std::shared_ptr<Notification::NotificationContent> content = in PublishIncomingCallNotification()
87 std::make_shared<Notification::NotificationContent>(normalContent); in PublishIncomingCallNotification()
/base/notification/distributed_notification_service/test/fuzztest/publishcontinuoustasknotification_fuzzer/
H A Dpublishcontinuoustasknotification_fuzzer.cpp48 std::shared_ptr<Notification::NotificationContent> content = in DoSomethingInterestingWithMyAPI()
49 std::make_shared<Notification::NotificationContent>(contentType); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/publishnotification_fuzzer/
H A Dpublishnotification_fuzzer.cpp48 std::shared_ptr<Notification::NotificationContent> content = in DoSomethingInterestingWithMyAPI()
49 std::make_shared<Notification::NotificationContent>(contentType); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/src/advanced_notification_publish/
H A Dlive_publish_process.cpp100 if (request->GetNotificationType() == NotificationContent::Type::LOCAL_LIVE_VIEW) { in CheckLocalLiveViewSubscribed()
119 if (request->GetNotificationType() == NotificationContent::Type::LOCAL_LIVE_VIEW) { in CheckLocalLiveViewAllowed()
/base/notification/distributed_notification_service/frameworks/core/common/include/
H A Dans_convert_enum.h132 * @param outType Indicates a NotificationContent object
135 static bool ContentTypeJSToC(const ContentType &inType, NotificationContent::Type &outType);
140 * @param inType Indicates a NotificationContent object
144 static bool ContentTypeCToJS(const NotificationContent::Type &inType, ContentType &outType);
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_annex_test/
H A Dans_notification_annex_test.cpp131 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F()
257 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/
H A Dnotification_utils.h292 bool ContentTypeCJToC(const ContentType &inType, OHOS::Notification::NotificationContent::Type &outType);
293 bool ContentTypeCToCJ(const OHOS::Notification::NotificationContent::Type &inType, ContentType &outType);
323 const std::shared_ptr<OHOS::Notification::NotificationContent> &content,
325 bool SetNotificationContent(const std::shared_ptr<OHOS::Notification::NotificationContent> &content,

Completed in 22 milliseconds

123