Home
last modified time | relevance | path

Searched refs:NotificationLiveViewContent (Results 1 - 25 of 35) sorted by relevance

12

/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_live_view_content.cpp25 const uint32_t NotificationLiveViewContent::MAX_VERSION {0xffffffff};
26 void NotificationLiveViewContent::SetLiveViewStatus(const LiveViewStatus status) in SetLiveViewStatus()
31 NotificationLiveViewContent::LiveViewStatus NotificationLiveViewContent::GetLiveViewStatus() const in GetLiveViewStatus()
36 void NotificationLiveViewContent::SetVersion(uint32_t version) in SetVersion()
41 uint32_t NotificationLiveViewContent::GetVersion() const in GetVersion()
46 void NotificationLiveViewContent::SetExtraInfo(const std::shared_ptr<AAFwk::WantParams> &extras) in SetExtraInfo()
51 std::shared_ptr<AAFwk::WantParams> NotificationLiveViewContent::GetExtraInfo() const in GetExtraInfo()
56 void NotificationLiveViewContent::SetPicture(const PictureMap &pictureMap) in SetPicture()
61 PictureMap NotificationLiveViewContent
[all...]
H A Dnotification_content.cpp102 NotificationContent::NotificationContent(const std::shared_ptr<NotificationLiveViewContent> &liveViewContent) in NotificationContent()
105 ANS_LOGE("NotificationLiveViewContent can not be null"); in NotificationContent()
265 std::shared_ptr<NotificationLiveViewContent>(parcel.ReadParcelable<NotificationLiveViewContent>())); in ReadFromParcel()
320 pBasicContent = NotificationJsonConverter::ConvertFromJson<NotificationLiveViewContent>(contentObj); in ConvertJsonToContent()
H A Dnotification_request.cpp2456 auto liveView = std::static_pointer_cast<NotificationLiveViewContent>(content); in CheckVersion()
2458 auto oldLiveView = std::static_pointer_cast<NotificationLiveViewContent>(oldContent); in CheckVersion()
2460 if (oldLiveView->GetVersion() == NotificationLiveViewContent::MAX_VERSION) { in CheckVersion()
2463 if (liveView->GetVersion() == NotificationLiveViewContent::MAX_VERSION) { in CheckVersion()
2489 using StatusType = NotificationLiveViewContent::LiveViewStatus; in CheckNotificationRequest()
2491 auto liveView = std::static_pointer_cast<NotificationLiveViewContent>(content); in CheckNotificationRequest()
2515 auto oldLiveView = std::static_pointer_cast<NotificationLiveViewContent>(oldContent); in CheckNotificationRequest()
2542 auto newLiveViewContent = std::static_pointer_cast<NotificationLiveViewContent>(content); in FillMissingParameters()
2544 NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_FULL_UPDATE) { in FillMissingParameters()
2549 auto oldLiveViewContent = std::static_pointer_cast<NotificationLiveViewContent>(oldConten in FillMissingParameters()
[all...]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_live_view_content_test.cpp44 auto rrc = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
45 rrc->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE); in HWTEST_F()
46 EXPECT_EQ(rrc->GetLiveViewStatus(), NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE); in HWTEST_F()
47 rrc->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_BUTT); in HWTEST_F()
48 EXPECT_EQ(rrc->GetLiveViewStatus(), NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_BUTT); in HWTEST_F()
59 auto rrc = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
60 rrc->SetVersion(NotificationLiveViewContent::MAX_VERSION); in HWTEST_F()
61 EXPECT_EQ(rrc->GetVersion(), NotificationLiveViewContent::MAX_VERSION); in HWTEST_F()
73 auto rrc = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
86 auto rrc = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
[all...]
H A Dnotification_request_test.cpp565 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
595 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
596 liveContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE); in HWTEST_F()
613 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
614 liveContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_INCREMENTAL_UPDATE); in HWTEST_F()
632 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
633 liveContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_INCREMENTAL_UPDATE); in HWTEST_F()
655 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
656 liveContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_INCREMENTAL_UPDATE); in HWTEST_F()
663 auto oldLiveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
[all...]
H A Dans_log_test.cpp213 NotificationLiveViewContent::LiveViewStatus outType; in HWTEST_F()
216 EXPECT_EQ(outType, NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE); in HWTEST_F()
219 EXPECT_EQ(outType, NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_INCREMENTAL_UPDATE); in HWTEST_F()
222 EXPECT_EQ(outType, NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_END); in HWTEST_F()
225 EXPECT_EQ(outType, NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_FULL_UPDATE); in HWTEST_F()
405 NotificationLiveViewContent::LiveViewStatus inType = NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE; in HWTEST_F()
408 inType = NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_INCREMENTAL_UPDATE; in HWTEST_F()
411 inType = NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_END; in HWTEST_F()
414 inType = NotificationLiveViewContent in HWTEST_F()
[all...]
H A Dnotification_content_test.cpp153 std::shared_ptr<NotificationLiveViewContent> liveViewContent = nullptr; in HWTEST_F()
469 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_live_view_content.h28 class NotificationLiveViewContent : public NotificationBasicContent { class
39 NotificationLiveViewContent() = default;
40 ~NotificationLiveViewContent() override = default;
105 * @brief Converts a NotificationLiveViewContent object into a Json.
113 * @brief Creates a NotificationLiveViewContent object from a Json.
116 * @return Returns the NotificationLiveViewContent object.
118 static NotificationLiveViewContent *FromJson(const nlohmann::json &jsonObject);
138 * @return Returns the NotificationLiveViewContent object.
140 static NotificationLiveViewContent *Unmarshalling(Parcel &parcel);
158 * @brief Read a NotificationLiveViewContent objec
[all...]
H A Dnotification_content.h76 * Such notifications are created using NotificationLiveViewContent.
150 * @brief A constructor used to create a NotificationLiveViewContent instance (obtained by calling
156 explicit NotificationContent(const std::shared_ptr<NotificationLiveViewContent> &liveViewContent);
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_live_view_service_test.cpp109 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
143 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
144 liveContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_END); in HWTEST_F()
186 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
208 auto newLiveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
215 auto oldLiveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
239 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
240 liveContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE); in HWTEST_F()
H A Dadvanced_notification_service_branch_test.cpp65 const NotificationLiveViewContent::LiveViewStatus &status);
1124 const NotificationLiveViewContent::LiveViewStatus &status) in InitNotificationRecord()
1128 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in InitNotificationRecord()
1145 using Status = NotificationLiveViewContent::LiveViewStatus; in HWTEST_F()
1164 using Status = NotificationLiveViewContent::LiveViewStatus; in HWTEST_F()
1184 using Status = NotificationLiveViewContent::LiveViewStatus; in HWTEST_F()
H A Dadvanced_notification_service_test.cpp2860 std::shared_ptr<NotificationLiveViewContent> liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
2862 liveViewContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_END); in HWTEST_F()
2878 std::shared_ptr<NotificationLiveViewContent> liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
2880 liveViewContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE); in HWTEST_F()
2897 std::shared_ptr<NotificationLiveViewContent> liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
2899 liveViewContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE); in HWTEST_F()
2957 std::shared_ptr<NotificationLiveViewContent> liveViewConten in HWTEST_F()
[all...]
H A Dadvanced_notification_utils_test.cpp151 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
235 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
236 liveContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE); in HWTEST_F()
H A Dadvanced_notification_publish_service_test.cpp174 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
205 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
245 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
271 auto liveContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
844 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/core/common/src/
H A Dans_convert_enum.cpp176 const LiveViewStatus &inType, NotificationLiveViewContent::LiveViewStatus &outType) in LiveViewStatusJSToC()
180 outType = NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE; in LiveViewStatusJSToC()
183 outType = NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_INCREMENTAL_UPDATE; in LiveViewStatusJSToC()
186 outType = NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_END; in LiveViewStatusJSToC()
189 outType = NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_FULL_UPDATE; in LiveViewStatusJSToC()
432 bool AnsEnumUtil::LiveViewStatusCToJS(const NotificationLiveViewContent::LiveViewStatus &inType, in LiveViewStatusCToJS()
436 case NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE: in LiveViewStatusCToJS()
439 case NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_INCREMENTAL_UPDATE: in LiveViewStatusCToJS()
442 case NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_END: in LiveViewStatusCToJS()
445 case NotificationLiveViewContent in LiveViewStatusCToJS()
[all...]
/base/notification/distributed_notification_service/services/ans/src/advanced_notification_publish/
H A Dlive_publish_process.cpp104 std::shared_ptr<NotificationLiveViewContent> liveViewContent = nullptr; in CheckLocalLiveViewSubscribed()
105 liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>( in CheckLocalLiveViewSubscribed()
/base/notification/distributed_notification_service/frameworks/core/common/include/
H A Dans_convert_enum.h180 static bool LiveViewStatusJSToC(const LiveViewStatus &inType, NotificationLiveViewContent::LiveViewStatus &outType);
261 static bool LiveViewStatusCToJS(const NotificationLiveViewContent::LiveViewStatus &inType, LiveViewStatus &outType);
/base/notification/distributed_notification_service/test/fuzztest/notificationhelper_fuzzer/
H A Dnotificationhelper_fuzzer.cpp34 auto content = std::make_shared<Notification::NotificationLiveViewContent>(); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_live_view_service.cpp126 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>(content); in UpdateNotificationTimerInfo()
129 case NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE: in UpdateNotificationTimerInfo()
137 case NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_INCREMENTAL_UPDATE: in UpdateNotificationTimerInfo()
138 case NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_FULL_UPDATE: in UpdateNotificationTimerInfo()
144 case NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_END: in UpdateNotificationTimerInfo()
215 using StatusType = NotificationLiveViewContent::LiveViewStatus; in IsLiveViewCanRecover()
217 std::static_pointer_cast<NotificationLiveViewContent>(request->GetContent()->GetNotificationContent()); in IsLiveViewCanRecover()
245 auto content = std::static_pointer_cast<NotificationLiveViewContent>( in SetNotificationRequestToDb()
247 if (content->GetLiveViewStatus() == NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_END && in SetNotificationRequestToDb()
H A Dnotification_subscriber_manager.cpp492 std::shared_ptr<NotificationLiveViewContent> liveViewContent = nullptr; in NotifyCanceledInner()
494 liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>( in NotifyCanceledInner()
572 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>( in BatchNotifyCanceledInner()
H A Dadvanced_notification_service.cpp2061 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>(content->GetNotificationContent()); in IsNeedPushCheck()
2063 if (status != NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE) { in IsNeedPushCheck()
2087 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>(content->GetNotificationContent()); in FillExtraInfoToJson()
2221 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>(content); in IsNeedNotifyConsumed()
2223 if (status != NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_END) { in IsNeedNotifyConsumed()
/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi_convert_liveview.cpp439 std::shared_ptr<NotificationLiveViewContent> liveViewContent = std::make_shared<NotificationLiveViewContent>(); in GetNotificationLiveViewContent()
451 std::shared_ptr<NotificationLiveViewContent> &liveViewContent) in GetNotificationLiveViewContentDetailed()
461 // status: NotificationLiveViewContent::LiveViewStatus in GetNotificationLiveViewContentDetailed()
467 NotificationLiveViewContent::LiveViewStatus outType = NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_BUTT; in GetNotificationLiveViewContentDetailed()
478 int32_t version = NotificationLiveViewContent::MAX_VERSION; in GetNotificationLiveViewContentDetailed()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
H A Dans_notification_branch_test.cpp753 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
754 liveViewContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_BUTT); in HWTEST_F()
772 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
790 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
791 liveViewContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_FULL_UPDATE); in HWTEST_F()
809 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
828 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
874 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon_convert_liveview.cpp316 auto liveViewContent = static_cast<NotificationLiveViewContent *>(basicContent); in SetNotificationLiveViewContent()
888 std::shared_ptr<NotificationLiveViewContent> liveViewContent = std::make_shared<NotificationLiveViewContent>(); in GetNotificationLiveViewContent()
905 std::shared_ptr<NotificationLiveViewContent> &liveViewContent) in GetNotificationLiveViewContentDetailed()
915 // status: NotificationLiveViewContent::LiveViewStatus in GetNotificationLiveViewContentDetailed()
921 NotificationLiveViewContent::LiveViewStatus outType = NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_BUTT; in GetNotificationLiveViewContentDetailed()
932 int32_t version = NotificationLiveViewContent::MAX_VERSION; in GetNotificationLiveViewContentDetailed()
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
H A Dadvancednotificationservice_fuzzer.cpp48 auto content = std::make_shared<Notification::NotificationLiveViewContent>(); in DoSomethingInterestingWithMyAPI()
221 auto content = std::make_shared<Notification::NotificationLiveViewContent>(); in DoTestForAdvancedNotificationUtils()
272 auto content = std::make_shared<Notification::NotificationLiveViewContent>(); in DoTestForAdvancedNotificationService()

Completed in 33 milliseconds

12