Home
last modified time | relevance | path

Searched refs:pictureContent (Results 1 - 16 of 16) sorted by relevance

/base/notification/distributed_notification_service/test/fuzztest/notificationcontent_fuzzer/
H A Dnotificationcontent_fuzzer.cpp30 std::shared_ptr<Notification::NotificationPictureContent> pictureContent = in DoSomethingInterestingWithMyAPI() local
34 Notification::NotificationContent notificationPictureContent(pictureContent); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_content_test.cpp141 std::shared_ptr<NotificationPictureContent> pictureContent = nullptr; in HWTEST_F() local
142 NotificationContent notificationContent2(pictureContent); in HWTEST_F()
196 std::shared_ptr<NotificationPictureContent> pictureContent = std::make_shared<NotificationPictureContent>(); in HWTEST_F() local
197 NotificationContent notificationContent(pictureContent); in HWTEST_F()
361 std::shared_ptr<NotificationPictureContent> pictureContent = nullptr; in HWTEST_F() local
362 auto sptr3 = std::make_shared<NotificationContent>(pictureContent); in HWTEST_F()
438 auto pictureContent = std::make_shared<NotificationPictureContent>(); in HWTEST_F() local
439 NotificationContent content3(pictureContent); in HWTEST_F()
H A Dnotification_request_test.cpp322 std::shared_ptr<NotificationPictureContent> pictureContent = std::make_shared<NotificationPictureContent>(); in HWTEST_F() local
323 std::shared_ptr<NotificationContent> content1 = std::make_shared<NotificationContent>(pictureContent); in HWTEST_F()
342 std::shared_ptr<NotificationPictureContent> pictureContent = std::make_shared<NotificationPictureContent>(); in HWTEST_F() local
343 std::shared_ptr<NotificationContent> content1 = std::make_shared<NotificationContent>(pictureContent); in HWTEST_F()
1053 auto pictureContent = std::make_shared<NotificationPictureContent>(); in HWTEST_F() local
1054 pictureContent->SetBigPicture(TestMakePixelMap(ICON_SIZE, ICON_SIZE)); in HWTEST_F()
1055 auto content = std::make_shared<NotificationContent>(pictureContent); in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/
H A Dadvanced_notification_service_publish_test.cpp705 std::shared_ptr<NotificationPictureContent> pictureContent = std::make_shared<NotificationPictureContent>(); in HWTEST_F() local
706 EXPECT_NE(pictureContent, nullptr); in HWTEST_F()
707 pictureContent->SetText("notification text"); in HWTEST_F()
708 pictureContent->SetTitle("notification title"); in HWTEST_F()
711 pictureContent->SetBigPicture(bigPicture); in HWTEST_F()
712 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(pictureContent); in HWTEST_F()
739 std::shared_ptr<NotificationPictureContent> pictureContent = std::make_shared<NotificationPictureContent>(); in HWTEST_F() local
740 EXPECT_NE(pictureContent, nullptr); in HWTEST_F()
741 pictureContent->SetText("notification text"); in HWTEST_F()
742 pictureContent in HWTEST_F()
773 std::shared_ptr<NotificationPictureContent> pictureContent = std::make_shared<NotificationPictureContent>(); HWTEST_F() local
1434 std::shared_ptr<NotificationPictureContent> pictureContent = std::make_shared<NotificationPictureContent>(); HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_utils.cpp350 std::shared_ptr<NotificationPictureContent> &pictureContent) in GetNotificationPictureContentDetailed()
359 if (!GetNotificationBasicContentDetailed(tempContent.get(), pictureContent)) { in GetNotificationPictureContentDetailed()
371 pictureContent->SetBriefText(std::string(str)); in GetNotificationPictureContentDetailed()
381 pictureContent->SetExpandedTitle(std::string(str)); in GetNotificationPictureContentDetailed()
389 pictureContent->SetBigPicture(pixelMap->GetRealPixelMap()); in GetNotificationPictureContentDetailed()
398 std::shared_ptr<OHOS::Notification::NotificationPictureContent> pictureContent = in GetNotificationPictureContent() local
400 if (pictureContent == nullptr) { in GetNotificationPictureContent()
401 LOGE("pictureContent is null"); in GetNotificationPictureContent()
405 if (!GetNotificationPictureContentDetailed(contentResult, pictureContent)) { in GetNotificationPictureContent()
409 request.SetContent(std::make_shared<NotificationContent>(pictureContent)); in GetNotificationPictureContent()
348 GetNotificationPictureContentDetailed( CNotificationPictureContent* contentResult, std::shared_ptr<NotificationPictureContent> &pictureContent) GetNotificationPictureContentDetailed() argument
1173 OHOS::Notification::NotificationPictureContent *pictureContent = SetNotificationPictureContent() local
[all...]
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_content.cpp46 NotificationContent::NotificationContent(const std::shared_ptr<NotificationPictureContent> &pictureContent) in NotificationContent() argument
48 if (!pictureContent) { in NotificationContent()
54 content_ = pictureContent; in NotificationContent()
H A Dnotification_request.cpp2651 auto pictureContent = std::static_pointer_cast<NotificationPictureContent>(content); in CheckImageSizeForPicture() local
2652 auto bigPicture = pictureContent->GetBigPicture(); in CheckImageSizeForPicture()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon_convert_content.cpp207 OHOS::Notification::NotificationPictureContent *pictureContent = in SetNotificationPictureContent() local
209 if (pictureContent == nullptr) { in SetNotificationPictureContent()
210 ANS_LOGE("pictureContent is null"); in SetNotificationPictureContent()
214 if (!SetNotificationBasicContent(env, pictureContent, result)) { in SetNotificationPictureContent()
220 napi_create_string_utf8(env, pictureContent->GetBriefText().c_str(), NAPI_AUTO_LENGTH, &value); in SetNotificationPictureContent()
224 napi_create_string_utf8(env, pictureContent->GetExpandedTitle().c_str(), NAPI_AUTO_LENGTH, &value); in SetNotificationPictureContent()
228 std::shared_ptr<Media::PixelMap> picture = pictureContent->GetBigPicture(); in SetNotificationPictureContent()
734 std::shared_ptr<OHOS::Notification::NotificationPictureContent> pictureContent = in GetNotificationPictureContent() local
736 if (pictureContent == nullptr) { in GetNotificationPictureContent()
737 ANS_LOGE("pictureContent i in GetNotificationPictureContent()
749 GetNotificationPictureContentDetailed(const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationPictureContent> &pictureContent) GetNotificationPictureContentDetailed() argument
[all...]
/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi_convert_content.cpp336 std::shared_ptr<OHOS::Notification::NotificationPictureContent> pictureContent = in GetNotificationPictureContent() local
338 if (GetNotificationPictureContentDetailed(env, contentResult, pictureContent) == nullptr) { in GetNotificationPictureContent()
342 request.SetContent(std::make_shared<NotificationContent>(pictureContent)); in GetNotificationPictureContent()
348 const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationPictureContent> &pictureContent) in GetNotificationPictureContentDetailed()
358 if (GetNotificationBasicContentDetailed(env, contentResult, pictureContent) == nullptr) { in GetNotificationPictureContentDetailed()
379 pictureContent->SetBriefText(str); in GetNotificationPictureContentDetailed()
398 pictureContent->SetExpandedTitle(str); in GetNotificationPictureContentDetailed()
418 pictureContent->SetBigPicture(pixelMap); in GetNotificationPictureContentDetailed()
347 GetNotificationPictureContentDetailed(const napi_env &env, const napi_value &contentResult, std::shared_ptr<OHOS::Notification::NotificationPictureContent> &pictureContent) GetNotificationPictureContentDetailed() argument
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_content.h109 * @param pictureContent Indicates the NotificationPictureContent object.
111 explicit NotificationContent(const std::shared_ptr<NotificationPictureContent> &pictureContent);
/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_fw_module_test.cpp1247 std::shared_ptr<NotificationPictureContent> pictureContent = std::make_shared<NotificationPictureContent>(); in HWTEST_F() local
1248 EXPECT_NE(pictureContent, nullptr); in HWTEST_F()
1249 pictureContent->SetText("notification text"); in HWTEST_F()
1250 pictureContent->SetTitle("notification title"); in HWTEST_F()
1253 pictureContent->SetBigPicture(bigPicture); in HWTEST_F()
1254 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(pictureContent); in HWTEST_F()
1279 std::shared_ptr<NotificationPictureContent> pictureContent = std::make_shared<NotificationPictureContent>(); in HWTEST_F() local
1280 EXPECT_NE(pictureContent, nullptr); in HWTEST_F()
1281 pictureContent->SetText("notification text"); in HWTEST_F()
1282 pictureContent in HWTEST_F()
1311 std::shared_ptr<NotificationPictureContent> pictureContent = std::make_shared<NotificationPictureContent>(); HWTEST_F() local
[all...]
H A Dans_innerkits_module_publish_test.cpp932 std::shared_ptr<NotificationPictureContent> pictureContent = std::make_shared<NotificationPictureContent>(); in HWTEST_F() local
933 EXPECT_NE(pictureContent, nullptr); in HWTEST_F()
934 pictureContent->SetExpandedTitle("expendedtitle"); in HWTEST_F()
935 pictureContent->SetBriefText("brieftext"); in HWTEST_F()
936 pictureContent->SetBigPicture(nullptr); in HWTEST_F()
937 GTEST_LOG_(INFO) << "ANS_Interface_MT_Publish_00600::pictureContent is::" << pictureContent->Dump(); in HWTEST_F()
938 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(pictureContent); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/
H A Dnotification_utils.h270 std::shared_ptr<OHOS::Notification::NotificationPictureContent> &pictureContent);
/base/notification/distributed_notification_service/services/test/moduletest/
H A Dans_module_test.cpp618 std::shared_ptr<NotificationPictureContent> pictureContent = std::make_shared<NotificationPictureContent>(); in HWTEST_F() local
619 pictureContent->SetText("1"); in HWTEST_F()
620 pictureContent->SetTitle("1"); in HWTEST_F()
621 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(pictureContent); in HWTEST_F()
2525 std::shared_ptr<NotificationContent> pictureContent = std::make_shared<NotificationContent>(contentImpl); in HWTEST_F() local
2537 req->SetContent(pictureContent); in HWTEST_F()
2581 std::shared_ptr<NotificationContent> pictureContent = std::make_shared<NotificationContent>(contentImpl); in HWTEST_F() local
2593 req->SetContent(pictureContent); in HWTEST_F()
/base/location/frameworks/js/napi/notification/include/
H A Dnotification_napi.h878 * @param pictureContent Indicates a NotificationPictureContent object from specified js object
883 std::shared_ptr<OHOS::Notification::NotificationPictureContent> &pictureContent);
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Dcommon.h1266 * @param pictureContent Indicates a NotificationPictureContent object from specified js object
1271 std::shared_ptr<OHOS::Notification::NotificationPictureContent> &pictureContent);

Completed in 34 milliseconds