Home
last modified time | relevance | path

Searched refs:liveViewContent (Results 1 - 21 of 21) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_local_live_view_content_test.cpp68 auto liveViewContent = std::make_shared<NotificationLocalLiveViewContent>(); in HWTEST_F() local
71 liveViewContent->SetCapsule(capsule); in HWTEST_F()
75 liveViewContent->SetButton(button); in HWTEST_F()
79 liveViewContent->SetProgress(progress); in HWTEST_F()
83 liveViewContent->SetTime(time); in HWTEST_F()
85 liveViewContent->addFlag(0); in HWTEST_F()
86 liveViewContent->ToJson(jsonObject); in HWTEST_F()
113 auto liveViewContent = std::make_shared<NotificationLocalLiveViewContent>(); in HWTEST_F() local
118 auto *liveView = liveViewContent->FromJson(jsonObject); in HWTEST_F()
180 auto liveViewContent in HWTEST_F() local
213 auto liveViewContent = std::make_shared<NotificationLocalLiveViewContent>(); HWTEST_F() local
247 auto liveViewContent = std::make_shared<NotificationLocalLiveViewContent>(); HWTEST_F() local
[all...]
H A Dnotification_live_view_content_test.cpp280 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
281 bool isSuccess = liveViewContent->MarshallingPictureMap(parcel); in HWTEST_F()
299 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
300 liveViewContent->SetPicture(pictureMap); in HWTEST_F()
301 bool isEmptyMarshallingMap = liveViewContent->GetPictureMarshallingMap().empty(); in HWTEST_F()
305 bool isSuccess = liveViewContent->MarshallingPictureMap(parcel); in HWTEST_F()
323 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
324 liveViewContent->SetPicture(pictureMap); in HWTEST_F()
325 liveViewContent->FillPictureMarshallingMap(); in HWTEST_F()
326 bool isEmptyMarshallingMap = liveViewContent in HWTEST_F()
[all...]
H A Dnotification_request_test.cpp1072 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
1075 liveViewContent->SetPicture(pictureMap); in HWTEST_F()
1076 auto content = std::make_shared<NotificationContent>(liveViewContent); in HWTEST_F()
1093 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
1096 liveViewContent->SetPicture(pictureMap); in HWTEST_F()
1097 auto content = std::make_shared<NotificationContent>(liveViewContent); in HWTEST_F()
1118 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
1119 liveViewContent->SetPicture(pictureMap); in HWTEST_F()
1120 auto content = std::make_shared<NotificationContent>(liveViewContent); in HWTEST_F()
1144 auto liveViewContent in HWTEST_F() local
[all...]
H A Dnotification_content_test.cpp153 std::shared_ptr<NotificationLiveViewContent> liveViewContent = nullptr; in HWTEST_F() local
154 NotificationContent notificationContent6(liveViewContent); in HWTEST_F()
469 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
470 NotificationContent content1(liveViewContent); in HWTEST_F()
/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() local
105 liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>( in CheckLocalLiveViewSubscribed()
107 if (liveViewContent != nullptr && liveViewContent->GetIsOnlyLocalUpdate() && in CheckLocalLiveViewSubscribed()
/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() local
754 liveViewContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_BUTT); in HWTEST_F()
755 auto content = std::make_shared<NotificationContent>(liveViewContent); in HWTEST_F()
772 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
773 auto content = std::make_shared<NotificationContent>(liveViewContent); in HWTEST_F()
790 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
791 liveViewContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_FULL_UPDATE); in HWTEST_F()
792 auto content = std::make_shared<NotificationContent>(liveViewContent); in HWTEST_F()
809 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
810 auto content = std::make_shared<NotificationContent>(liveViewContent); in HWTEST_F()
828 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); HWTEST_F() local
874 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); HWTEST_F() local
[all...]
/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() local
440 if (GetNotificationLiveViewContentDetailed(env, contentResult, liveViewContent) == nullptr) { in GetNotificationLiveViewContent()
444 request.SetContent(std::make_shared<NotificationContent>(liveViewContent)); in GetNotificationLiveViewContent()
451 std::shared_ptr<NotificationLiveViewContent> &liveViewContent) in GetNotificationLiveViewContentDetailed()
456 if (GetLockScreenPicture(env, contentResult, liveViewContent) == nullptr) { in GetNotificationLiveViewContentDetailed()
472 liveViewContent->SetLiveViewStatus(outType); in GetNotificationLiveViewContentDetailed()
480 liveViewContent->SetVersion(version); in GetNotificationLiveViewContentDetailed()
490 liveViewContent->SetExtraInfo(extras); in GetNotificationLiveViewContentDetailed()
496 liveViewContent->SetIsOnlyLocalUpdate(isLocalUpdateOnly); in GetNotificationLiveViewContentDetailed()
511 liveViewContent in GetNotificationLiveViewContentDetailed()
449 GetNotificationLiveViewContentDetailed( const napi_env &env, const napi_value &contentResult, std::shared_ptr<NotificationLiveViewContent> &liveViewContent) GetNotificationLiveViewContentDetailed() argument
[all...]
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon_convert_liveview.cpp316 auto liveViewContent = static_cast<NotificationLiveViewContent *>(basicContent); in SetNotificationLiveViewContent() local
317 if (liveViewContent == nullptr) { in SetNotificationLiveViewContent()
324 if (!AnsEnumUtil::LiveViewStatusCToJS(liveViewContent->GetLiveViewStatus(), outType)) { in SetNotificationLiveViewContent()
332 napi_create_int32(env, static_cast<int32_t>(liveViewContent->GetVersion()), &value); in SetNotificationLiveViewContent()
336 std::shared_ptr<AAFwk::WantParams> extraInfoData = liveViewContent->GetExtraInfo(); in SetNotificationLiveViewContent()
343 if (liveViewContent->GetPicture().empty()) { in SetNotificationLiveViewContent()
348 napi_value pictureMapObj = SetLiveViewPictureInfo(env, liveViewContent->GetPicture()); in SetNotificationLiveViewContent()
888 std::shared_ptr<NotificationLiveViewContent> liveViewContent = std::make_shared<NotificationLiveViewContent>(); in GetNotificationLiveViewContent() local
889 if (liveViewContent == nullptr) { in GetNotificationLiveViewContent()
894 if (GetNotificationLiveViewContentDetailed(env, contentResult, liveViewContent) in GetNotificationLiveViewContent()
903 GetNotificationLiveViewContentDetailed( const napi_env &env, const napi_value &contentResult, std::shared_ptr<NotificationLiveViewContent> &liveViewContent) GetNotificationLiveViewContentDetailed() argument
[all...]
/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_subscriber_manager.cpp492 std::shared_ptr<NotificationLiveViewContent> liveViewContent = nullptr; in NotifyCanceledInner() local
494 liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>( in NotifyCanceledInner()
496 liveViewContent->FillPictureMarshallingMap(); in NotifyCanceledInner()
507 if (isCommonLiveView && liveViewContent != nullptr) { in NotifyCanceledInner()
508 liveViewContent->ClearPictureMarshallingMap(); in NotifyCanceledInner()
572 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>( in BatchNotifyCanceledInner() local
574 liveViewContent->ClearPictureMap(); in BatchNotifyCanceledInner()
575 liveViewContent->ClearPictureMarshallingMap(); in BatchNotifyCanceledInner()
H A Dadvanced_notification_live_view_service.cpp126 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>(content); in UpdateNotificationTimerInfo() local
127 auto status = liveViewContent->GetLiveViewStatus(); in UpdateNotificationTimerInfo()
216 auto liveViewContent = in IsLiveViewCanRecover()
218 auto liveViewStatus = liveViewContent->GetLiveViewStatus(); in IsLiveViewCanRecover()
H A Dadvanced_notification_utils.cpp230 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>( in FillRequestByKeys() local
232 auto liveViewExtraInfo = liveViewContent->GetExtraInfo(); in FillRequestByKeys()
237 requestLiveViewContent->SetLiveViewStatus(liveViewContent->GetLiveViewStatus()); in FillRequestByKeys()
238 requestLiveViewContent->SetVersion(liveViewContent->GetVersion()); in FillRequestByKeys()
239 requestLiveViewContent->SetLockScreenPicture(liveViewContent->GetLockScreenPicture()); in FillRequestByKeys()
719 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>( in GetCommonTargetRecordList() local
724 liveViewContent->GetIsOnlyLocalUpdate()) { in GetCommonTargetRecordList()
H A Dadvanced_notification_service.cpp2061 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>(content->GetNotificationContent()); in IsNeedPushCheck() local
2062 auto status = liveViewContent->GetLiveViewStatus(); in IsNeedPushCheck()
2087 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>(content->GetNotificationContent()); in FillExtraInfoToJson() local
2088 auto extraInfo = liveViewContent->GetExtraInfo(); in FillExtraInfoToJson()
2221 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>(content); in IsNeedNotifyConsumed() local
2222 auto status = liveViewContent->GetLiveViewStatus(); in IsNeedNotifyConsumed()
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_content.cpp102 NotificationContent::NotificationContent(const std::shared_ptr<NotificationLiveViewContent> &liveViewContent) in NotificationContent() argument
104 if (!liveViewContent) { in NotificationContent()
110 content_ = liveViewContent; in NotificationContent()
H A Dnotification_request.cpp2662 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>(content); in CheckImageSizeForLiveView() local
2663 auto pictureMap = liveViewContent->GetPicture(); in CheckImageSizeForLiveView()
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_service_test.cpp2860 std::shared_ptr<NotificationLiveViewContent> liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
2861 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(liveViewContent); 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() local
2879 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(liveViewContent); 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() local
2898 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(liveViewContent); in HWTEST_F()
2899 liveViewContent->SetLiveViewStatus(NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE); in HWTEST_F()
2957 std::shared_ptr<NotificationLiveViewContent> liveViewContent in HWTEST_F() local
2992 std::shared_ptr<NotificationLiveViewContent> liveViewContent = std::make_shared<NotificationLiveViewContent>(); HWTEST_F() local
3090 std::shared_ptr<NotificationLiveViewContent> liveViewContent = std::make_shared<NotificationLiveViewContent>(); HWTEST_F() local
3354 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); HWTEST_F() local
3551 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); HWTEST_F() local
3585 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); HWTEST_F() local
[all...]
H A Dadvanced_notification_publish_service_test.cpp844 auto liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
845 auto content = std::make_shared<NotificationContent>(liveViewContent); in HWTEST_F()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_content.h154 * @param liveViewContent Indicates the NotificationMediaContent object.
156 explicit NotificationContent(const std::shared_ptr<NotificationLiveViewContent> &liveViewContent);
/base/notification/distributed_notification_service/services/ans/src/common/
H A Dnotification_analytics_util.cpp334 auto liveViewContent = std::static_pointer_cast<NotificationLiveViewContent>(content); in BuildExtraInfoWithReq() local
335 reason["status"] = static_cast<int32_t>(liveViewContent->GetLiveViewStatus()); in BuildExtraInfoWithReq()
/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/
H A Dadvanced_notification_service_publish_test.cpp1466 std::shared_ptr<NotificationLiveViewContent> liveViewContent = std::make_shared<NotificationLiveViewContent>(); in HWTEST_F() local
1467 EXPECT_NE(liveViewContent, nullptr); in HWTEST_F()
1468 liveViewContent->SetText("notification text"); in HWTEST_F()
1469 liveViewContent->SetTitle("notification title"); in HWTEST_F()
1470 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(liveViewContent); in HWTEST_F()
/base/location/frameworks/js/napi/notification/include/
H A Dnotification_napi.h1128 * @param liveViewContent Indicates a NotificationMultiLineContent object from specified js object
1132 std::shared_ptr<NotificationLiveViewContent> &liveViewContent);
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Dcommon.h1516 * @param liveViewContent Indicates a NotificationMultiLineContent object from specified js object
1520 std::shared_ptr<NotificationLiveViewContent> &liveViewContent);

Completed in 35 milliseconds