/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_local_live_view_content_test.cpp | 68 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 D | notification_live_view_content_test.cpp | 280 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 D | notification_request_test.cpp | 1072 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 D | notification_content_test.cpp | 153 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 D | live_publish_process.cpp | 104 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 D | ans_notification_branch_test.cpp | 753 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 D | notification_napi_convert_liveview.cpp | 439 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 D | common_convert_liveview.cpp | 316 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 D | notification_subscriber_manager.cpp | 492 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 D | advanced_notification_live_view_service.cpp | 126 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 D | advanced_notification_utils.cpp | 230 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 D | advanced_notification_service.cpp | 2061 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 D | notification_content.cpp | 102 NotificationContent::NotificationContent(const std::shared_ptr<NotificationLiveViewContent> &liveViewContent) in NotificationContent() argument 104 if (!liveViewContent) { in NotificationContent() 110 content_ = liveViewContent; in NotificationContent()
|
H A D | notification_request.cpp | 2662 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 D | advanced_notification_service_test.cpp | 2860 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 D | advanced_notification_publish_service_test.cpp | 844 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 D | notification_content.h | 154 * @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 D | notification_analytics_util.cpp | 334 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 D | advanced_notification_service_publish_test.cpp | 1466 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 D | notification_napi.h | 1128 * @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 D | common.h | 1516 * @param liveViewContent Indicates a NotificationMultiLineContent object from specified js object 1520 std::shared_ptr<NotificationLiveViewContent> &liveViewContent);
|