Searched refs:longText (Results 1 - 5 of 5) sorted by relevance
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_long_text_content.cpp | 30 NotificationLongTextContent::NotificationLongTextContent(const std::string &longText) in NotificationLongTextContent() argument 32 SetLongText(longText); in NotificationLongTextContent() 55 void NotificationLongTextContent::SetLongText(const std::string &longText) in SetLongText() argument 57 if (longText.empty()) { in SetLongText() 62 auto length = std::min(NotificationLongTextContent::MAX_LONGTEXT_LENGTH, longText.length()); in SetLongText() 63 longText_.assign(longText.begin(), longText.begin() + length); in SetLongText() 74 ", longText = " + longText_ + in Dump() 87 jsonObject["longText"] = longText_; in ToJson() 110 if (jsonObject.find("longText") ! in FromJson() [all...] |
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_long_text_content.h | 29 * @brief A constructor used to create a NotificationLongTextContent instance with the input parameter longText 32 * @param longText Indicates the long text to be included. The value contains a maximum of 1024 characters. 34 explicit NotificationLongTextContent(const std::string &longText); 74 * @param longText Indicates the long text to be included. The value contains a maximum of 1024 characters. 76 void SetLongText(const std::string &longText);
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_long_text_content_test.cpp | 43 std::string longText = "";
in HWTEST_F() local 45 rrc->SetLongText(longText);
in HWTEST_F() 46 EXPECT_EQ(rrc->GetLongText(), longText);
in HWTEST_F() 72 nlohmann::json jsonObject = nlohmann::json{"processName", "longText", "name", "arrivedTime1"};
in HWTEST_F() 153 {"longText", "test"},
in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_utils.cpp | 297 // longText: String in GetNotificationLongTextContentDetailed() 298 if (strcpy_s(long_str, LONG_STR_MAX_SIZE + 1, contentResult->longText) != EOK) { in GetNotificationLongTextContentDetailed() 302 LOGE("Property longText is empty"); in GetNotificationLongTextContentDetailed() 847 if (content.longText == nullptr || !GetNotificationLongTextContent(content.longText, request)) { in GetNotificationContent() 1085 static void freeNotificationLongTextContent(CNotificationLongTextContent* longText) in freeNotificationLongTextContent() argument 1087 free(longText->title); in freeNotificationLongTextContent() 1088 free(longText->text); in freeNotificationLongTextContent() 1089 free(longText->additionalText); in freeNotificationLongTextContent() 1090 free(longText in freeNotificationLongTextContent() 1101 SetNotificationLongTextContent( NotificationBasicContent *basicContent, CNotificationLongTextContent* longText) SetNotificationLongTextContent() argument [all...] |
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/ |
H A D | notification_utils.h | 56 char* longText; member 120 CNotificationLongTextContent* longText; member 310 CNotificationLongTextContent* longText);
|
Completed in 4 milliseconds