/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/ |
H A D | advanced_notification_service_publish_test.cpp | 209 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 210 EXPECT_NE(normalContent, nullptr); in HWTEST_F() 211 normalContent->SetText("normalContent's text"); in HWTEST_F() 212 normalContent->SetTitle("normalContent's title"); in HWTEST_F() 213 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F() 236 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 237 EXPECT_NE(normalContent, nullptr); in HWTEST_F() 238 normalContent in HWTEST_F() 271 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 299 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 327 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 356 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 384 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 411 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 438 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 465 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 492 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 519 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 546 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 575 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 803 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 830 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 866 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 897 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 954 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 985 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1013 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1049 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1084 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1120 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1154 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1186 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local [all...] |
/base/telephony/call_manager/services/call/call_state_observer/src/ |
H A D | incoming_call_notification.cpp | 78 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 D | missed_call_notification.cpp | 112 std::shared_ptr<Notification::NotificationNormalContent> normalContent = in PublishMissedCallNotification() local 114 if (normalContent == nullptr) { in PublishMissedCallNotification() 118 normalContent->SetTitle(INCOMING_CALL_MISSED_TITLE); in PublishMissedCallNotification() 119 normalContent->SetText(callObjectPtr->GetAccountNumber()); in PublishMissedCallNotification() 121 std::make_shared<Notification::NotificationContent>(normalContent); in PublishMissedCallNotification()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_content_test.cpp | 45 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 46 EXPECT_NE(normalContent, nullptr); in HWTEST_F() 47 NotificationContent notificationContent(normalContent); in HWTEST_F() 61 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 62 EXPECT_NE(normalContent, nullptr); in HWTEST_F() 63 NotificationContent notificationContent(normalContent); in HWTEST_F() 159 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 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() 383 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 421 auto normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local [all...] |
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/ |
H A D | notification_service_test.cpp | 202 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>();
in BENCHMARK_F() local 203 EXPECT_NE(normalContent, nullptr);
in BENCHMARK_F() 204 normalContent->SetText("normalContent's text");
in BENCHMARK_F() 205 normalContent->SetTitle("normalContent's title");
in BENCHMARK_F() 206 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
in BENCHMARK_F() 233 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>();
in BENCHMARK_F() local 234 EXPECT_NE(normalContent, nullptr);
in BENCHMARK_F() 235 normalContent in BENCHMARK_F() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/notificationcontent_fuzzer/ |
H A D | notificationcontent_fuzzer.cpp | 26 std::shared_ptr<Notification::NotificationNormalContent> normalContent =
in DoSomethingInterestingWithMyAPI() local 32 Notification::NotificationContent notificationContent(normalContent);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_innerkits_module_publish_test.cpp | 1009 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 1010 EXPECT_NE(normalContent, nullptr); in HWTEST_F() 1011 GTEST_LOG_(INFO) << "ANS_Interface_MT_Publish_00800::normalContentis::" << normalContent->Dump(); in HWTEST_F() 1012 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F() 1053 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 1054 EXPECT_NE(normalContent, nullptr); in HWTEST_F() 1055 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F() 1102 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 1103 EXPECT_NE(normalContent, nullptr); in HWTEST_F() 1104 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F() 1135 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1167 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1201 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1282 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1368 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1396 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1476 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1510 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1539 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1575 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1623 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local [all...] |
H A D | ans_fw_module_test.cpp | 415 auto normalContent = std::make_shared<NotificationNormalContent>(); in CreateDistributedRequest() local 416 auto content = std::make_shared<NotificationContent>(normalContent); in CreateDistributedRequest()
|
/base/usb/usb_manager/services/native/src/ |
H A D | usb_mass_storage_notification.cpp | 182 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()
|
/base/request/request/services/src/cxx/ |
H A D | notification_bar.cpp | 188 std::shared_ptr<Notification::NotificationNormalContent> normalContent = in RequestCompletedNotification() local 195 normalContent->SetText(std::string(fileName)); in RequestCompletedNotification() 212 normalContent->SetTitle(title); in RequestCompletedNotification() 215 auto content = std::make_shared<Notification::NotificationContent>(normalContent); in RequestCompletedNotification()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_annex_test/ |
H A D | ans_notification_annex_test.cpp | 130 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>();
in HWTEST_F() local 131 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
in HWTEST_F() 256 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>();
in HWTEST_F() local 257 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_content.cpp | 24 NotificationContent::NotificationContent(const std::shared_ptr<NotificationNormalContent> &normalContent) in NotificationContent() argument 26 if (!normalContent) { in NotificationContent() 32 content_ = normalContent; in NotificationContent()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_content.h | 91 * @param normalContent Indicates the NotificationNormalContent object. 93 explicit NotificationContent(const std::shared_ptr<NotificationNormalContent> &normalContent);
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | publish.cpp | 253 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in ParseShowOptions() local 258 normalContent->SetTitle(contentTitle); in ParseShowOptions() 264 normalContent->SetText(contentText); in ParseShowOptions() 267 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in ParseShowOptions()
|
H A D | common_convert_content.cpp | 526 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in GetNotificationBasicContent() local 527 if (normalContent == nullptr) { in GetNotificationBasicContent() 528 ANS_LOGE("normalContent is null"); in GetNotificationBasicContent() 532 if (GetNotificationBasicContentDetailed(env, contentResult, normalContent) == nullptr) { in GetNotificationBasicContent() 536 request.SetContent(std::make_shared<NotificationContent>(normalContent)); in GetNotificationBasicContent()
|
/base/notification/distributed_notification_service/services/test/moduletest/ |
H A D | ans_module_test.cpp | 437 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 438 normalContent->SetText("1"); in HWTEST_F() 439 normalContent->SetTitle("1"); in HWTEST_F() 440 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F() 479 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 480 normalContent->SetText("1"); in HWTEST_F() 481 normalContent->SetTitle("1"); in HWTEST_F() 482 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F() 521 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 522 normalContent in HWTEST_F() 1531 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1763 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local 1814 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local [all...] |
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | advanced_notification_service_test.cpp | 1218 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 1219 EXPECT_NE(normalContent, nullptr); in HWTEST_F() 1221 normalContent->SetText("normalContent's text"); in HWTEST_F() 1222 normalContent->SetTitle("normalContent's title"); in HWTEST_F() 1223 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F() 3021 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 3022 EXPECT_NE(normalContent, nullptr); in HWTEST_F() 3023 normalContent in HWTEST_F() 3116 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); HWTEST_F() local [all...] |
H A D | advanced_notification_publish_service_test.cpp | 149 auto normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 150 auto content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F() 1093 auto normalContent = std::make_shared<NotificationNormalContent>(); in HWTEST_F() local 1094 auto content = std::make_shared<NotificationContent>(normalContent); in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/ |
H A D | ans_notification_unit_test.cpp | 520 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>();
in HWTEST_F() local 521 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
in HWTEST_F() 587 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>();
in HWTEST_F() local 588 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
in HWTEST_F() 839 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>();
in HWTEST_F() local 840 std::shared_ptr<NotificationContent> content = std::make_shared<NotificationContent>(normalContent);
in HWTEST_F()
|
/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi_convert_content.cpp | 138 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in GetNotificationBasicContent() local 139 if (GetNotificationBasicContentDetailed(env, contentResult, normalContent) == nullptr) { in GetNotificationBasicContent() 143 request.SetContent(std::make_shared<NotificationContent>(normalContent)); in GetNotificationBasicContent()
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_utils.cpp | 268 std::shared_ptr<NotificationNormalContent> normalContent = std::make_shared<NotificationNormalContent>(); in GetNotificationBasicContent() local 269 if (normalContent == nullptr) { in GetNotificationBasicContent() 270 LOGE("normalContent is null"); in GetNotificationBasicContent() 274 if (!GetNotificationBasicContentDetailed(contentResult, normalContent)) { in GetNotificationBasicContent() 277 request.SetContent(std::make_shared<NotificationContent>(normalContent)); in GetNotificationBasicContent()
|