Home
last modified time | relevance | path

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

/ohos5.0/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()
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()
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()
155 pContent = nullptr; 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()
119 return pContent; in FromJson()
149 auto pContent = new (std::nothrow) NotificationMultiLineContent(); in Unmarshalling() local
150 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()
151 delete pContent; in Unmarshalling()
152 pContent = nullptr; 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()
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->ReadFromParcel(parcel)) { in Unmarshalling()
145 delete pContent; in Unmarshalling()
146 pContent = nullptr; 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 = nullptr; in Unmarshalling()
113 return pContent; in Unmarshalling()
H A Dnotification_local_live_view_content.cpp163 if (pContent == nullptr) { in FromJson()
168 pContent->ReadFromJson(jsonObject); 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()
219 return pContent; in FromJson()
269 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()
270 delete pContent; in Unmarshalling()
271 pContent = nullptr; in Unmarshalling()
[all …]
H A Dnotification_conversational_content.cpp141 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()
230 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()
231 delete pContent; in Unmarshalling()
232 pContent = nullptr; in Unmarshalling()
[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()
178 pContent->version_ = jsonObject.at("version").get<uint32_t>(); in FromJson()
191 pContent->ConvertPictureFromJson(jsonObject); in FromJson()
192 return pContent; in FromJson()
240 auto *pContent = new (std::nothrow) NotificationLiveViewContent(); in Unmarshalling() local
241 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()
242 delete pContent; in Unmarshalling()
243 pContent = nullptr; in Unmarshalling()
[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()
218 pContent = nullptr; in Unmarshalling()
[all …]
H A Dnotification_request.cpp2241 … auto pContent = NotificationJsonConverter::ConvertFromJson<NotificationContent>(contentObj); in ConvertJsonToNotificationContent() local
2242 if (pContent == nullptr) { in ConvertJsonToNotificationContent()
2247 target->notificationContent_ = std::shared_ptr<NotificationContent>(pContent); in ConvertJsonToNotificationContent()
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/
H A Dapi.c920 IN FILLP_CONST void *pContent) in FillpDebugControl() argument
933 FillpDebugCmdSocketConfigRes(pContent); in FillpDebugControl()
938 FillpDebugCmdSetPrintLevel(pContent); in FillpDebugControl()