Home
last modified time | relevance | path

Searched refs:normalContent (Results 1 – 23 of 23) sorted by relevance

/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/
H A Dadvanced_notification_service_publish_test.cpp210 EXPECT_NE(normalContent, nullptr);
237 EXPECT_NE(normalContent, nullptr);
265 EXPECT_NE(normalContent, nullptr);
293 EXPECT_NE(normalContent, nullptr);
322 EXPECT_NE(normalContent, nullptr);
350 EXPECT_NE(normalContent, nullptr);
377 EXPECT_NE(normalContent, nullptr);
404 EXPECT_NE(normalContent, nullptr);
770 normalContent->SetText("text");
771 normalContent->SetTitle("title");
[all …]
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/
H A Dmock_notification_helper.cpp88 std::shared_ptr<NotificationNormalContent> normalContent in GetAllActiveNotifications() local
90 normalContent->SetTitle("appName1"); in GetAllActiveNotifications()
91 normalContent->SetText("prompt1"); in GetAllActiveNotifications()
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/frameworks/ans/test/unittest/
H A Dnotification_content_test.cpp46 EXPECT_NE(normalContent, nullptr); in HWTEST_F()
47 NotificationContent notificationContent(normalContent); in HWTEST_F()
62 EXPECT_NE(normalContent, nullptr); in HWTEST_F()
63 NotificationContent notificationContent(normalContent); in HWTEST_F()
160 NotificationContent notificationContent(normalContent); in HWTEST_F()
355 std::shared_ptr<NotificationNormalContent> normalContent = nullptr; in HWTEST_F() local
356 auto sptr1 = std::make_shared<NotificationContent>(normalContent); in HWTEST_F()
384 EXPECT_NE(normalContent, nullptr);
385 NotificationContent notificationContent(normalContent);
421 auto normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local
[all …]
/ohos5.0/base/telephony/call_manager/services/call/call_state_observer/src/
H A Dincoming_call_notification.cpp78 std::shared_ptr<Notification::NotificationNormalContent> normalContent = in PublishIncomingCallNotification() local
80 if (normalContent == nullptr) { in PublishIncomingCallNotification()
84 normalContent->SetTitle(INCOMING_CALL_NOTIFICATION_TITLE); in PublishIncomingCallNotification()
85 normalContent->SetText(callObjectPtr->GetAccountNumber()); in PublishIncomingCallNotification()
87 std::make_shared<Notification::NotificationContent>(normalContent); in PublishIncomingCallNotification()
H A Dmissed_call_notification.cpp120 std::shared_ptr<Notification::NotificationNormalContent> normalContent = in PublishMissedCallNotification() local
122 if (normalContent == nullptr) { in PublishMissedCallNotification()
126 normalContent->SetTitle(INCOMING_CALL_MISSED_TITLE); in PublishMissedCallNotification()
127 normalContent->SetText(callObjectPtr->GetAccountNumber()); in PublishMissedCallNotification()
129 std::make_shared<Notification::NotificationContent>(normalContent); in PublishMissedCallNotification()
/ohos5.0/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
H A Dnotification_service_test.cpp201 …std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalCont… in BENCHMARK_F() local
202 EXPECT_NE(normalContent, nullptr); in BENCHMARK_F()
203 normalContent->SetText("normalContent's text"); in BENCHMARK_F()
204 normalContent->SetTitle("normalContent's title"); in BENCHMARK_F()
205 …td::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in BENCHMARK_F()
232 …std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalCont… in BENCHMARK_F() local
233 EXPECT_NE(normalContent, nullptr); in BENCHMARK_F()
234 normalContent->SetText("normalContent's text"); in BENCHMARK_F()
235 normalContent->SetTitle("normalContent's title"); in BENCHMARK_F()
236 …td::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in BENCHMARK_F()
/ohos5.0/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_innerkits_module_publish_test.cpp1010 EXPECT_NE(normalContent, nullptr);
1054 EXPECT_NE(normalContent, nullptr);
1103 EXPECT_NE(normalContent, nullptr);
1136 EXPECT_NE(normalContent, nullptr);
1168 EXPECT_NE(normalContent, nullptr);
1202 EXPECT_NE(normalContent, nullptr);
1283 EXPECT_NE(normalContent, nullptr);
1369 EXPECT_NE(normalContent, nullptr);
1397 EXPECT_NE(normalContent, nullptr);
1477 EXPECT_NE(normalContent, nullptr);
[all …]
H A Dans_fw_module_test.cpp415 auto normalContent = std::make_shared<NotificationNormalContent>(); in CreateDistributedRequest() local
416 auto content = std::make_shared<NotificationContent>(normalContent); in CreateDistributedRequest()
/ohos5.0/base/request/request/services/src/cxx/
H A Drequest_utils.cpp106 …std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalCont… in RequestBackgroundNotify() local
109 normalContent->SetTitle("下载"); in RequestBackgroundNotify()
112 normalContent->SetTitle("上传"); in RequestBackgroundNotify()
115 normalContent->SetText(std::string(fileName)); in RequestBackgroundNotify()
117 auto content = std::make_shared<NotificationContent>(normalContent); in RequestBackgroundNotify()
/ohos5.0/base/usb/usb_manager/services/native/src/
H A Dusb_mass_storage_notification.cpp182 std::shared_ptr<OHOS::Notification::NotificationNormalContent> normalContent = in PublishUsbNotification() local
184 if (normalContent == nullptr) { in PublishUsbNotification()
188 normalContent->SetTitle(notificationMap[MASS_STORAGE_NOTIFICATION_TITLE_KEY]); in PublishUsbNotification()
189 normalContent->SetText(notificationMap[MASS_STORAGE_NOTIFICATION_TEXT_KEY]); in PublishUsbNotification()
191 std::make_shared<OHOS::Notification::NotificationContent>(normalContent); in PublishUsbNotification()
/ohos5.0/base/notification/distributed_notification_service/test/fuzztest/notificationcontent_fuzzer/
H A Dnotificationcontent_fuzzer.cpp26 std::shared_ptr<Notification::NotificationNormalContent> normalContent = in DoSomethingInterestingWithMyAPI() local
32 Notification::NotificationContent notificationContent(normalContent); in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_annex_test/
H A Dans_notification_annex_test.cpp130 …std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalCont… variable
131 …td::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
256 …std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalCont… variable
257 …td::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
/ohos5.0/foundation/resourceschedule/background_task_mgr/services/continuous_task/src/
H A Dnotification_tools.cpp170 auto const &normalContent = content->GetNotificationContent(); in RefreshContinuousNotifications() local
171 normalContent->SetTitle(newPromptInfos.at(label).first); in RefreshContinuousNotifications()
172 normalContent->SetText(newPromptInfos.at(label).second); in RefreshContinuousNotifications()
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_content.cpp24 …cationContent::NotificationContent(const std::shared_ptr<NotificationNormalContent> &normalContent) in NotificationContent() argument
26 if (!normalContent) { in NotificationContent()
32 content_ = normalContent; in NotificationContent()
/ohos5.0/base/notification/distributed_notification_service/services/test/moduletest/
H A Dans_module_test.cpp425 normalContent->SetText("1");
426 normalContent->SetTitle("1");
465 normalContent->SetText("1");
466 normalContent->SetTitle("1");
505 normalContent->SetText("1");
506 normalContent->SetTitle("1");
1475 normalContent->SetText("1");
1476 normalContent->SetTitle("1");
1697 normalContent->SetText("1");
1698 normalContent->SetTitle("1");
[all …]
/ohos5.0/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_manager_impl.cpp179 …std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalCont… in GetNotificationBasicContent() local
180 if (normalContent == nullptr) { in GetNotificationBasicContent()
185 if (!GetNotificationBasicContentDetailed(contentResult, normalContent)) { in GetNotificationBasicContent()
188 request.SetContent(std::make_shared<NotificationContent>(normalContent)); in GetNotificationBasicContent()
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dpublish.cpp253 …std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalCont… in ParseShowOptions() local
258 normalContent->SetTitle(contentTitle); in ParseShowOptions()
264 normalContent->SetText(contentText); in ParseShowOptions()
267 …td::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in ParseShowOptions()
H A Dcommon_convert_content.cpp526 …std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalCont… in GetNotificationBasicContent() local
527 if (normalContent == nullptr) { in GetNotificationBasicContent()
532 if (GetNotificationBasicContentDetailed(env, contentResult, normalContent) == nullptr) { in GetNotificationBasicContent()
536 request.SetContent(std::make_shared<NotificationContent>(normalContent)); in GetNotificationBasicContent()
/ohos5.0/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_content.h93 explicit NotificationContent(const std::shared_ptr<NotificationNormalContent> &normalContent);
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_service_test.cpp1217 EXPECT_NE(normalContent, nullptr);
1219 normalContent->SetText("normalContent's text");
1220 normalContent->SetTitle("normalContent's title");
1221 …td::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
3019 EXPECT_NE(normalContent, nullptr);
3020 normalContent->SetText("normalContent's text");
3021 normalContent->SetTitle("normalContent's title");
3022 …td::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
3114 EXPECT_NE(normalContent, nullptr);
3115 normalContent->SetText("normalContent's text");
[all …]
H A Dadvanced_notification_publish_service_test.cpp149 auto normalContent = std::make_shared<NotificationNormalContent>(); variable
150 auto content = std::make_shared<NotificationContent>(normalContent);
1093 auto normalContent = std::make_shared<NotificationNormalContent>(); variable
1094 auto content = std::make_shared<NotificationContent>(normalContent);
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/
H A Dans_notification_unit_test.cpp520 …std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalCont… variable
521 …td::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
587 …std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalCont… variable
588 …td::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
839 …std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalCont… variable
840 …td::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
/ohos5.0/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi_convert_content.cpp138 …std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalCont… in GetNotificationBasicContent() local
139 if (GetNotificationBasicContentDetailed(env, contentResult, normalContent) == nullptr) { in GetNotificationBasicContent()
143 request.SetContent(std::make_shared<NotificationContent>(normalContent)); in GetNotificationBasicContent()