/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_content.cpp | 22 std::map<std::string, NotificationContent::Type> NotificationContent::convertStrToContentType_; 24 NotificationContent::NotificationContent(const std::shared_ptr<NotificationNormalContent> &normalCo… in NotificationContent() function in OHOS::Notification::NotificationContent 35 NotificationContent::NotificationContent(const std::shared_ptr<NotificationLongTextContent> &longTe… in NotificationContent() function in OHOS::Notification::NotificationContent 46 NotificationContent::NotificationContent(const std::shared_ptr<NotificationPictureContent> &picture… in NotificationContent() function in OHOS::Notification::NotificationContent 79 NotificationContent::NotificationContent(const std::shared_ptr<NotificationMediaContent> &mediaCont… in NotificationContent() function in OHOS::Notification::NotificationContent 102 NotificationContent::NotificationContent(const std::shared_ptr<NotificationLiveViewContent> &liveVi… in NotificationContent() function in OHOS::Notification::NotificationContent 113 NotificationContent::~NotificationContent() in ~NotificationContent() 116 NotificationContent::Type NotificationContent::GetContentType() const in GetContentType() 126 std::string NotificationContent::Dump() in Dump() 163 NotificationContent *NotificationContent::FromJson(const nlohmann::json &jsonObject) in FromJson() [all …]
|
H A D | notification_check_request.cpp | 22 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()
|
H A D | notification_request.cpp | 371 if (NotificationContent::Type::MEDIA != notificationContentType_) { in IsColorEnabled() 400 notificationContentType_ = NotificationContent::Type::NONE; in SetContent() 408 NotificationContent::Type NotificationRequest::GetNotificationType() const in GetNotificationType() 465 if ((NotificationContent::Type::LONG_TEXT == notificationContentType_) || in SetSettingsText() 466 (NotificationContent::Type::PICTURE == notificationContentType_)) { in SetSettingsText() 1555 static_cast<int>(NotificationContent::Type::ILLEGAL_TYPE)); in ReadFromParcel() 1642 …notificationContent_ = std::shared_ptr<NotificationContent>(parcel.ReadParcelable<NotificationCont… in ReadFromParcel() 2388 (notificationContentType_ == NotificationContent::Type::LIVE_VIEW); in IsCommonLiveView() 2650 case NotificationContent::Type::CONVERSATION: in CheckImageSizeForContent() 2652 case NotificationContent::Type::PICTURE: in CheckImageSizeForContent() [all …]
|
/ohos5.0/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_content.h | 33 class NotificationContent : public Parcelable, public NotificationJsonConvertionBase { 138 explicit NotificationContent(const std::shared_ptr<NotificationMediaContent> &mediaContent); 157 virtual ~NotificationContent(); 172 NotificationContent::Type GetContentType() const; 207 static NotificationContent *FromJson(const nlohmann::json &jsonObject); 223 static NotificationContent *Unmarshalling(Parcel &parcel); 236 contentType_ = NotificationContent::Type::BASIC_TEXT; in ResetToBasicContent() 237 content_->SetContentType(static_cast<int32_t>(NotificationContent::Type::BASIC_TEXT)); in ResetToBasicContent() 241 NotificationContent() = default; 272 mutable NotificationContent::Type contentType_ {NotificationContent::Type::NONE}; [all …]
|
H A D | notification_check_request.h | 35 …NotificationCheckRequest(NotificationContent::Type contentType, NotificationConstant::SlotType slo… 52 void SetContentType(NotificationContent::Type contentType); 59 NotificationContent::Type GetContentType() const; 122 NotificationContent::Type contentType_ {};
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_content_test.cpp | 47 NotificationContent notificationContent(normalContent); in HWTEST_F() 63 NotificationContent notificationContent(normalContent); in HWTEST_F() 235 EXPECT_EQ(result, NotificationContent::Type::MEDIA); in HWTEST_F() 302 NotificationContent content; 422 NotificationContent content(normalContent); in HWTEST_F() 434 NotificationContent content2(longContent); in HWTEST_F() 439 NotificationContent content3(pictureContent); in HWTEST_F() 444 NotificationContent content4(mediaContent); in HWTEST_F() 449 NotificationContent content5(multiLineContent); in HWTEST_F() 463 NotificationContent content(localLiveViewContent); in HWTEST_F() [all …]
|
H A D | notification_request_test.cpp | 302 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(mediaContent); in HWTEST_F() 323 …std::shared_ptr<NotificationContent> content1 = std::make_shared<NotificationContent>(pictureConte… in HWTEST_F() 343 …std::shared_ptr<NotificationContent> content1 = std::make_shared<NotificationContent>(pictureConte… in HWTEST_F() 352 …std::shared_ptr<NotificationContent> content2 = std::make_shared<NotificationContent>(longTextCont… in HWTEST_F() 566 auto content = std::make_shared<NotificationContent>(liveContent); in HWTEST_F() 597 auto content = std::make_shared<NotificationContent>(liveContent); in HWTEST_F() 615 auto content = std::make_shared<NotificationContent>(liveContent); in HWTEST_F() 634 auto content = std::make_shared<NotificationContent>(liveContent); in HWTEST_F() 657 auto content = std::make_shared<NotificationContent>(liveContent); in HWTEST_F() 684 auto content = std::make_shared<NotificationContent>(liveContent); in HWTEST_F() [all …]
|
H A D | ans_log_test.cpp | 89 NotificationContent::Type outType; 95 EXPECT_EQ(outType, NotificationContent::Type::LONG_TEXT); 98 EXPECT_EQ(outType, NotificationContent::Type::MULTILINE); 101 EXPECT_EQ(outType, NotificationContent::Type::PICTURE); 123 NotificationContent::Type inType = NotificationContent::Type::BASIC_TEXT; 126 inType = NotificationContent::Type::LONG_TEXT; 129 inType = NotificationContent::Type::MULTILINE; 132 inType = NotificationContent::Type::PICTURE; 135 inType = NotificationContent::Type::CONVERSATION; 138 inType = NotificationContent::Type::LOCAL_LIVE_VIEW; [all …]
|
H A D | notification_check_request_test.cpp | 40 checkRequest.SetContentType(NotificationContent::Type::BASIC_TEXT); 41 EXPECT_EQ(NotificationContent::Type::BASIC_TEXT, checkRequest.GetContentType());
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/ |
H A D | advanced_notification_service_publish_test.cpp | 213 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 240 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 268 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 296 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 325 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 353 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 380 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 407 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 434 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 461 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… [all …]
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/common/src/ |
H A D | ans_convert_enum.cpp | 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() 55 case NotificationContent::Type::BASIC_TEXT: in ContentTypeCToJS() 58 case NotificationContent::Type::LONG_TEXT: in ContentTypeCToJS() 61 case NotificationContent::Type::MULTILINE: in ContentTypeCToJS() 64 case NotificationContent::Type::PICTURE: in ContentTypeCToJS() 67 case NotificationContent::Type::CONVERSATION: in ContentTypeCToJS() 70 case NotificationContent::Type::LOCAL_LIVE_VIEW: in ContentTypeCToJS() [all …]
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_manager_impl.cpp | 308 outType = NotificationContent::Type::LONG_TEXT; in ContentTypeCJToC() 311 outType = NotificationContent::Type::MULTILINE; in ContentTypeCJToC() 314 outType = NotificationContent::Type::PICTURE; in ContentTypeCJToC() 363 NotificationContent::Type outType = NotificationContent::Type::NONE; in GetNotificationContent() 368 case NotificationContent::Type::BASIC_TEXT: in GetNotificationContent() 373 case NotificationContent::Type::LONG_TEXT: in GetNotificationContent() 378 case NotificationContent::Type::PICTURE: in GetNotificationContent() 383 case NotificationContent::Type::CONVERSATION: in GetNotificationContent() 385 case NotificationContent::Type::MULTILINE: in GetNotificationContent() 390 case NotificationContent::Type::LOCAL_LIVE_VIEW: in GetNotificationContent() [all …]
|
/ohos5.0/base/notification/distributed_notification_service/services/test/moduletest/ |
H A D | ans_module_test.cpp | 198 …std::shared_ptr<NotificationContent> content2 = std::make_shared<NotificationContent>(longTextCont… 427 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 467 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 641 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(contentImpl); 694 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(contentImpl); 740 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(contentImpl); 786 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(contentImpl); 828 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(contentImpl); 870 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(contentImpl); 924 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(contentImpl); [all …]
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_innerkits_module_publish_test.cpp | 654 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(mediaContent); 728 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(mediaContent); 790 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(mediaContent); 1012 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 1055 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 1104 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 1137 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 1169 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 1231 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); 1681 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(liveContent); [all …]
|
H A D | ans_fw_module_test.cpp | 646 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); 708 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); 754 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); 798 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); 978 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); 1029 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); 1071 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); 1143 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); 1187 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); 2321 … std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(implContent); [all …]
|
/ohos5.0/base/notification/distributed_notification_service/test/bechmarktest/notification_publish_test/ |
H A D | notification_publish_test.cpp | 69 …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()
|
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/ |
H A D | mock_notification_helper.cpp | 94 notificationRequest1->SetContent(std::make_shared<NotificationContent>(normalContent)); in GetAllActiveNotifications() 99 notificationRequest2->SetContent(std::make_shared<NotificationContent>(normalContent)); in GetAllActiveNotifications() 104 notificationRequest3->SetContent(std::make_shared<NotificationContent>(normalContent)); in GetAllActiveNotifications() 109 notificationRequest4->SetContent(std::make_shared<NotificationContent>(normalContent)); in GetAllActiveNotifications() 122 notificationRequest->SetContent(std::make_shared<NotificationContent>(normalContent)); in GetAllActiveNotifications()
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | advanced_notification_live_view_service_test.cpp | 110 auto content = std::make_shared<NotificationContent>(liveContent); 145 auto content = std::make_shared<NotificationContent>(liveContent); 187 auto content = std::make_shared<NotificationContent>(liveContent); 209 auto newContent = std::make_shared<NotificationContent>(newLiveContent); 216 auto oldContent = std::make_shared<NotificationContent>(oldLiveContent); 241 auto content = std::make_shared<NotificationContent>(liveContent); 263 auto content = std::make_shared<NotificationContent>(localLiveViewContent); 289 auto content = std::make_shared<NotificationContent>(localLiveViewContent); 325 auto content = std::make_shared<NotificationContent>(localLiveViewContent);
|
/ohos5.0/base/notification/distributed_notification_service/test/fuzztest/notificationcontent_fuzzer/ |
H A D | notificationcontent_fuzzer.cpp | 32 Notification::NotificationContent notificationContent(normalContent); in DoSomethingInterestingWithMyAPI() 33 Notification::NotificationContent notificationLongTextContent(longTextContent); in DoSomethingInterestingWithMyAPI() 34 Notification::NotificationContent notificationPictureContent(pictureContent); in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-notification-kit/ |
H A D | js-apis-inner-notification-notificationContent-sys.md | 1 # NotificationContent(系统接口) 9 > 当前界面仅包含本模块的系统接口,其他公开接口参见[NotificationContent](./js-apis-inner-notification-notificationContent.md… 11 ## NotificationContent section
|
/ohos5.0/docs/en/application-dev/reference/apis-notification-kit/ |
H A D | js-apis-inner-notification-notificationContent-sys.md | 1 # NotificationContent (System API) 3 The **NotificationContent** module provides APIs for defining the notification content. 9 …Is provided by the module. For details about its public APIs, see [NotificationContent](./js-apis-… 11 ## NotificationContent section
|
/ohos5.0/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi_convert_content.cpp | 71 NotificationContent::Type outType = NotificationContent::Type::NONE; in GetNotificationContent() 76 case NotificationContent::Type::BASIC_TEXT: in GetNotificationContent() 81 case NotificationContent::Type::LONG_TEXT: in GetNotificationContent() 86 case NotificationContent::Type::PICTURE: in GetNotificationContent() 91 case NotificationContent::Type::CONVERSATION: in GetNotificationContent() 96 case NotificationContent::Type::MULTILINE: in GetNotificationContent() 101 case NotificationContent::Type::LOCAL_LIVE_VIEW: in GetNotificationContent() 106 case NotificationContent::Type::LIVE_VIEW: in GetNotificationContent() 143 request.SetContent(std::make_shared<NotificationContent>(normalContent)); in GetNotificationBasicContent() 230 request.SetContent(std::make_shared<NotificationContent>(longContent)); in GetNotificationLongTextContent() [all …]
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_annex_test/ |
H A D | ans_notification_annex_test.cpp | 131 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent… 257 …std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent…
|
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | common_convert_content.cpp | 57 const std::shared_ptr<NotificationContent> &content, napi_value &result) in SetNotificationContentDetailed() 119 NotificationContent::Type type = content->GetContentType(); in SetNotificationContent() 459 NotificationContent::Type outType = NotificationContent::Type::NONE; in GetNotificationContent() 464 case NotificationContent::Type::BASIC_TEXT: in GetNotificationContent() 469 case NotificationContent::Type::LONG_TEXT: in GetNotificationContent() 474 case NotificationContent::Type::PICTURE: in GetNotificationContent() 479 case NotificationContent::Type::CONVERSATION: in GetNotificationContent() 484 case NotificationContent::Type::MULTILINE: in GetNotificationContent() 489 case NotificationContent::Type::LOCAL_LIVE_VIEW: in GetNotificationContent() 494 case NotificationContent::Type::LIVE_VIEW: in GetNotificationContent() [all …]
|
/ohos5.0/base/telephony/call_manager/services/call/call_state_observer/src/ |
H A D | incoming_call_notification.cpp | 86 std::shared_ptr<Notification::NotificationContent> content = in PublishIncomingCallNotification() 87 std::make_shared<Notification::NotificationContent>(normalContent); in PublishIncomingCallNotification()
|