Home
last modified time | relevance | path

Searched refs:pContent (Results 1 – 8 of 8) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_normal_content.cpp43 auto pContent = new (std::nothrow) NotificationNormalContent(); in FromJson() local
44 if (pContent == nullptr) { in FromJson()
49 pContent->ReadFromJson(jsonObject); in FromJson()
51 return pContent; in FromJson()
61 auto pContent = new (std::nothrow) NotificationNormalContent(); in Unmarshalling() local
62 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()
63 delete pContent; in Unmarshalling()
64 pContent = nullptr; in Unmarshalling()
67 return pContent; in Unmarshalling()
Dnotification_media_content.cpp74 auto pContent = new (std::nothrow) NotificationMediaContent(); in FromJson() local
75 if (pContent == nullptr) { in FromJson()
80 pContent->ReadFromJson(jsonObject); in FromJson()
84 pContent->sequenceNumbers_ = jsonObject.at("sequenceNumbers").get<std::vector<uint32_t>>(); in FromJson()
87 return pContent; in FromJson()
107 auto pContent = new (std::nothrow) NotificationMediaContent(); in Unmarshalling() local
108 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()
109 delete pContent; in Unmarshalling()
110 pContent = nullptr; in Unmarshalling()
113 return pContent; in Unmarshalling()
Dnotification_long_text_content.cpp101 auto pContent = new (std::nothrow) NotificationLongTextContent(); in FromJson() local
102 if (pContent == nullptr) { in FromJson()
107 pContent->ReadFromJson(jsonObject); in FromJson()
111 pContent->longText_ = jsonObject.at("longText").get<std::string>(); in FromJson()
115 pContent->expandedTitle_ = jsonObject.at("expandedTitle").get<std::string>(); in FromJson()
119 pContent->briefText_ = jsonObject.at("briefText").get<std::string>(); in FromJson()
122 return pContent; in FromJson()
152 auto pContent = new (std::nothrow) NotificationLongTextContent(); in Unmarshalling() local
153 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()
154 delete pContent; in Unmarshalling()
[all …]
Dnotification_multiline_content.cpp96 auto pContent = new (std::nothrow) NotificationMultiLineContent(); in FromJson() local
97 if (pContent == nullptr) { in FromJson()
102 pContent->ReadFromJson(jsonObject); in FromJson()
106 pContent->expandedTitle_ = jsonObject.at("expandedTitle").get<std::string>(); in FromJson()
110 pContent->briefText_ = jsonObject.at("briefText").get<std::string>(); in FromJson()
114 pContent->allLines_ = jsonObject.at("allLines").get<std::vector<std::string>>(); in FromJson()
117 return pContent; in FromJson()
147 auto pContent = new (std::nothrow) NotificationMultiLineContent(); in Unmarshalling() local
148 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()
149 delete pContent; in Unmarshalling()
[all …]
Dnotification_picture_content.cpp82 auto pContent = new (std::nothrow) NotificationPictureContent(); in FromJson() local
83 if (pContent == nullptr) { in FromJson()
88 pContent->ReadFromJson(jsonObject); in FromJson()
92 pContent->expandedTitle_ = jsonObject.at("expandedTitle").get<std::string>(); in FromJson()
96 pContent->briefText_ = jsonObject.at("briefText").get<std::string>(); in FromJson()
101 pContent->bigPicture_ = AnsImageUtil::UnPackImage(picStr); in FromJson()
104 return pContent; in FromJson()
142 auto pContent = new (std::nothrow) NotificationPictureContent(); in Unmarshalling() local
143 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()
144 delete pContent; in Unmarshalling()
[all …]
Dnotification_conversational_content.cpp140 auto pContent = new (std::nothrow) NotificationConversationalContent(); in FromJson() local
141 if (pContent == nullptr) { in FromJson()
146 pContent->ReadFromJson(jsonObject); in FromJson()
153 pContent->messageUser_ = *pUser; in FromJson()
167 delete pContent; in FromJson()
168 pContent = nullptr; in FromJson()
172 pContent->messages_.emplace_back(pMsg); in FromJson()
176 return pContent; in FromJson()
229 auto pContent = new (std::nothrow) NotificationConversationalContent(); in Unmarshalling() local
230 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()
[all …]
Dnotification_content.cpp146 auto pContent = new (std::nothrow) NotificationContent(); in FromJson() local
147 if (pContent == nullptr) { in FromJson()
152 if (!ConvertJsonToContent(pContent, jsonObject)) { in FromJson()
153 delete pContent; in FromJson()
154 pContent = nullptr; in FromJson()
158 return pContent; in FromJson()
186 auto pContent = new (std::nothrow) NotificationContent(); in Unmarshalling() local
187 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()
188 delete pContent; in Unmarshalling()
189 pContent = nullptr; in Unmarshalling()
[all …]
Dnotification_request.cpp1785 … auto pContent = NotificationJsonConverter::ConvertFromJson<NotificationContent>(contentObj); in ConvertJsonToNotificationContent() local
1786 if (pContent == nullptr) { in ConvertJsonToNotificationContent()
1791 target->notificationContent_ = std::shared_ptr<NotificationContent>(pContent); in ConvertJsonToNotificationContent()