Home
last modified time | relevance | path

Searched refs:NotificationMultiLineContent (Results 1 - 18 of 18) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_multiline_content.cpp24 const std::vector<std::string>::size_type NotificationMultiLineContent::MAX_LINES {7};
26 void NotificationMultiLineContent::SetExpandedTitle(const std::string &exTitle) in SetExpandedTitle()
31 std::string NotificationMultiLineContent::GetExpandedTitle() const in GetExpandedTitle()
36 void NotificationMultiLineContent::SetBriefText(const std::string &briefText) in SetBriefText()
41 std::string NotificationMultiLineContent::GetBriefText() const in GetBriefText()
46 void NotificationMultiLineContent::AddSingleLine(const std::string &oneLine) in AddSingleLine()
48 if (allLines_.size() >= NotificationMultiLineContent::MAX_LINES) { in AddSingleLine()
56 std::vector<std::string> NotificationMultiLineContent::GetAllLines() const in GetAllLines()
61 std::string NotificationMultiLineContent::Dump() in Dump()
70 return "NotificationMultiLineContent{ " in Dump()
[all...]
H A Dnotification_content.cpp68 NotificationContent::NotificationContent(const std::shared_ptr<NotificationMultiLineContent> &multiLineContent) in NotificationContent()
71 ANS_LOGE("NotificationMultiLineContent can not be null"); in NotificationContent()
252 std::shared_ptr<NotificationMultiLineContent>(parcel.ReadParcelable<NotificationMultiLineContent>())); in ReadFromParcel()
311 pBasicContent = NotificationJsonConverter::ConvertFromJson<NotificationMultiLineContent>(contentObj); in ConvertJsonToContent()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_multiline_content_test.cpp44 auto rrc = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
58 auto rrc = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
72 auto rrc = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
86 auto rrc = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
87 std::string ret = "NotificationMultiLineContent{ title = , text = , " in HWTEST_F()
101 auto rrc = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
115 auto rrc = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
129 std::shared_ptr<NotificationMultiLineContent> result = in HWTEST_F()
130 std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
149 auto rrc = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
[all...]
H A Dnotification_content_test.cpp147 std::shared_ptr<NotificationMultiLineContent> multiLineContent = nullptr; in HWTEST_F()
214 std::shared_ptr<NotificationMultiLineContent> multiLineContent = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
367 std::shared_ptr<NotificationMultiLineContent> multiLineContent = nullptr; in HWTEST_F()
448 auto multiLineContent = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
H A Dnotification_request_test.cpp1164 auto multiLineContent = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
1183 auto multiLineContent = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_multiline_content.h24 class NotificationMultiLineContent : public NotificationBasicContent { class
26 NotificationMultiLineContent() = default;
28 ~NotificationMultiLineContent() = default;
88 * @brief Converts a NotificationMultiLineContent object into a Json.
96 * @brief Creates a NotificationMultiLineContent object from a Json.
99 * @return Returns the NotificationMultiLineContent object.
101 static NotificationMultiLineContent *FromJson(const nlohmann::json &jsonObject);
115 * @return Returns the NotificationMultiLineContent object.
117 static NotificationMultiLineContent *Unmarshalling(Parcel &parcel);
121 * @brief Read a NotificationMultiLineContent objec
[all...]
H A Dnotification_content.h61 * Such notifications are created using NotificationMultiLineContent.
123 * @brief A constructor used to create a NotificationMultiLineContent instance (obtained by calling
127 * @param multiLineContent Indicates the NotificationMultiLineContent object.
129 explicit NotificationContent(const std::shared_ptr<NotificationMultiLineContent> &multiLineContent);
181 * NotificationMultiLineContent, or
/base/notification/distributed_notification_service/test/fuzztest/notificationmultilinecontent_fuzzer/
H A Dnotificationmultilinecontent_fuzzer.cpp23 Notification::NotificationMultiLineContent notificationMultiLineContent; in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/notificationmultilinecontentannex_fuzzer/
H A Dnotificationmultilinecontentannex_fuzzer.cpp26 Notification::NotificationMultiLineContent notificationMultiLineContent; in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/
H A Dnotification_utils.h274 std::shared_ptr<OHOS::Notification::NotificationMultiLineContent> &multiLineContent);
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon_convert_content.cpp44 case ContentType::NOTIFICATION_CONTENT_MULTILINE: // multiLine?: NotificationMultiLineContent in GetPropertyNameByContentType()
87 case ContentType::NOTIFICATION_CONTENT_MULTILINE: // multiLine?: NotificationMultiLineContent in SetNotificationContentDetailed()
302 OHOS::Notification::NotificationMultiLineContent *multiLineContent = in SetNotificationMultiLineContent()
303 static_cast<OHOS::Notification::NotificationMultiLineContent *>(basicContent); in SetNotificationMultiLineContent()
1324 std::shared_ptr<OHOS::Notification::NotificationMultiLineContent> multiLineContent = in GetNotificationMultiLineContent()
1325 std::make_shared<OHOS::Notification::NotificationMultiLineContent>(); in GetNotificationMultiLineContent()
1392 std::shared_ptr<OHOS::Notification::NotificationMultiLineContent> &multiLineContent) in GetNotificationMultiLineContentLines()
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_utils.cpp415 std::shared_ptr<OHOS::Notification::NotificationMultiLineContent> &multiLineContent) in GetNotificationMultiLineContentLines()
438 std::shared_ptr<OHOS::Notification::NotificationMultiLineContent> multiLineContent = in GetNotificationMultiLineContent()
439 std::make_shared<OHOS::Notification::NotificationMultiLineContent>(); in GetNotificationMultiLineContent()
1250 OHOS::Notification::NotificationMultiLineContent *multiLineContent = in SetNotificationMultiLineContent()
1251 static_cast<OHOS::Notification::NotificationMultiLineContent *>(basicContent); in SetNotificationMultiLineContent()
1491 case ContentType::NOTIFICATION_CONTENT_MULTILINE: // multiLine?: NotificationMultiLineContent in SetNotificationContentDetailed()
/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi_convert_content.cpp44 case ContentType::NOTIFICATION_CONTENT_MULTILINE: // multiLine?: NotificationMultiLineContent in GetPropertyNameByContentType()
924 std::shared_ptr<OHOS::Notification::NotificationMultiLineContent> multiLineContent = in GetNotificationMultiLineContent()
925 std::make_shared<OHOS::Notification::NotificationMultiLineContent>(); in GetNotificationMultiLineContent()
987 std::shared_ptr<OHOS::Notification::NotificationMultiLineContent> &multiLineContent) in GetNotificationMultiLineContentLines()
/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_innerkits_module_publish_test.cpp333 std::shared_ptr<NotificationMultiLineContent> notificationMultineContent = in CheckCaseFiveResult()
334 std::static_pointer_cast<NotificationMultiLineContent>(notificationContent->GetNotificationContent()); in CheckCaseFiveResult()
893 std::shared_ptr<NotificationMultiLineContent> multiLineContent = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
/base/location/frameworks/js/napi/notification/include/
H A Dnotification_napi.h1102 * @brief Gets the lines of NotificationMultiLineContent object from specified js object
1106 * @param multiLineContent Indicates a NotificationMultiLineContent object from specified js object
1110 std::shared_ptr<OHOS::Notification::NotificationMultiLineContent> &multiLineContent);
1128 * @param liveViewContent Indicates a NotificationMultiLineContent object from specified js object
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Dcommon.h418 * @brief Sets a js NotificationMultiLineContent object by specified NotificationBasicContent object
1490 * @brief Gets the lines of NotificationMultiLineContent object from specified js object
1494 * @param multiLineContent Indicates a NotificationMultiLineContent object from specified js object
1498 std::shared_ptr<OHOS::Notification::NotificationMultiLineContent> &multiLineContent);
1516 * @param liveViewContent Indicates a NotificationMultiLineContent object from specified js object
/base/notification/distributed_notification_service/services/test/moduletest/
H A Dans_module_test.cpp661 std::shared_ptr<NotificationMultiLineContent> contentImpl = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
1919 std::shared_ptr<NotificationMultiLineContent> contentImpl = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_publish_service_test.cpp664 auto multiLineContent = std::make_shared<NotificationMultiLineContent>(); in HWTEST_F()

Completed in 29 milliseconds