Home
last modified time | relevance | path

Searched refs:pContent (Results 1 - 10 of 10) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/src/
H A 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()
[all...]
H A 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 in Unmarshalling()
[all...]
H A Dnotification_multiline_content.cpp98 auto pContent = new (std::nothrow) NotificationMultiLineContent(); in FromJson() local
99 if (pContent == nullptr) { in FromJson()
104 pContent->ReadFromJson(jsonObject); in FromJson()
108 pContent->expandedTitle_ = jsonObject.at("expandedTitle").get<std::string>(); in FromJson()
112 pContent->briefText_ = jsonObject.at("briefText").get<std::string>(); in FromJson()
116 pContent->allLines_ = jsonObject.at("allLines").get<std::vector<std::string>>(); in FromJson()
119 return pContent; in FromJson()
149 auto pContent = new (std::nothrow) NotificationMultiLineContent(); in Unmarshalling() local
150 if ((pContent != nullptr) && !pContent in Unmarshalling()
[all...]
H A 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 in Unmarshalling()
[all...]
H A 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()
93 pContent->expandedTitle_ = jsonObject.at("expandedTitle").get<std::string>(); in FromJson()
97 pContent->briefText_ = jsonObject.at("briefText").get<std::string>(); in FromJson()
102 pContent->bigPicture_ = AnsImageUtil::UnPackImage(picStr); in FromJson()
105 return pContent; in FromJson()
143 auto pContent = new (std::nothrow) NotificationPictureContent(); in Unmarshalling() local
144 if ((pContent != nullptr) && !pContent in Unmarshalling()
[all...]
H A 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 ! in Unmarshalling()
[all...]
H A Dnotification_local_live_view_content.cpp162 auto pContent = new (std::nothrow) NotificationLocalLiveViewContent(); in FromJson() local
163 if (pContent == nullptr) { in FromJson()
168 pContent->ReadFromJson(jsonObject); in FromJson()
172 pContent->type_ = jsonObject.at("typeCode").get<int32_t>(); in FromJson()
179 pContent->capsule_ = *pCapsule; in FromJson()
189 pContent->button_ = *pButton; in FromJson()
199 pContent->progress_ = *pProgress; in FromJson()
209 pContent->time_ = *pTime; in FromJson()
216 pContent->flags_ = jsonObject.at("flags").get<std::vector<int32_t>>(); in FromJson()
219 return pContent; in FromJson()
268 auto pContent = new (std::nothrow) NotificationLocalLiveViewContent(); Unmarshalling() local
[all...]
H A Dnotification_live_view_content.cpp163 auto *pContent = new (std::nothrow) NotificationLiveViewContent(); in FromJson() local
164 if (pContent == nullptr) { in FromJson()
169 pContent->ReadFromJson(jsonObject); in FromJson()
174 pContent->liveViewStatus_ = static_cast<NotificationLiveViewContent::LiveViewStatus>(statusValue); in FromJson()
178 pContent->version_ = jsonObject.at("version").get<uint32_t>(); in FromJson()
185 pContent->extraInfo_ = std::make_shared<AAFwk::WantParams>(params); in FromJson()
189 pContent->isOnlyLocalUpdate_ = jsonObject.at("isOnlyLocalUpdate").get<bool>(); in FromJson()
191 pContent->ConvertPictureFromJson(jsonObject); in FromJson()
192 return pContent; in FromJson()
240 auto *pContent in Unmarshalling() local
[all...]
H A Dnotification_content.cpp175 auto pContent = new (std::nothrow) NotificationContent(); in FromJson() local
176 if (pContent == nullptr) { in FromJson()
181 if (!ConvertJsonToContent(pContent, jsonObject)) { in FromJson()
182 delete pContent; in FromJson()
183 pContent = nullptr; in FromJson()
187 return pContent; in FromJson()
215 auto pContent = new (std::nothrow) NotificationContent(); in Unmarshalling() local
216 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()
217 delete pContent; in Unmarshalling()
[all...]
H A Dnotification_request.cpp2297 auto pContent = NotificationJsonConverter::ConvertFromJson<NotificationContent>(contentObj); in ConvertJsonToNotificationContent() local
2298 if (pContent == nullptr) { in ConvertJsonToNotificationContent()
2303 target->notificationContent_ = std::shared_ptr<NotificationContent>(pContent); in ConvertJsonToNotificationContent()

Completed in 10 milliseconds