Searched refs:pContent (Results 1 – 8 of 8) sorted by relevance
43 auto pContent = new (std::nothrow) NotificationNormalContent(); in FromJson() local44 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() local62 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()63 delete pContent; in Unmarshalling()64 pContent = nullptr; in Unmarshalling()67 return pContent; in Unmarshalling()
74 auto pContent = new (std::nothrow) NotificationMediaContent(); in FromJson() local75 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() local108 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()109 delete pContent; in Unmarshalling()110 pContent = nullptr; in Unmarshalling()113 return pContent; in Unmarshalling()
101 auto pContent = new (std::nothrow) NotificationLongTextContent(); in FromJson() local102 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() local153 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()154 delete pContent; in Unmarshalling()[all …]
96 auto pContent = new (std::nothrow) NotificationMultiLineContent(); in FromJson() local97 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() local148 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()149 delete pContent; in Unmarshalling()[all …]
82 auto pContent = new (std::nothrow) NotificationPictureContent(); in FromJson() local83 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() local143 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()144 delete pContent; in Unmarshalling()[all …]
140 auto pContent = new (std::nothrow) NotificationConversationalContent(); in FromJson() local141 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() local230 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()[all …]
146 auto pContent = new (std::nothrow) NotificationContent(); in FromJson() local147 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() local187 if ((pContent != nullptr) && !pContent->ReadFromParcel(parcel)) { in Unmarshalling()188 delete pContent; in Unmarshalling()189 pContent = nullptr; in Unmarshalling()[all …]
1785 … auto pContent = NotificationJsonConverter::ConvertFromJson<NotificationContent>(contentObj); in ConvertJsonToNotificationContent() local1786 if (pContent == nullptr) { in ConvertJsonToNotificationContent()1791 target->notificationContent_ = std::shared_ptr<NotificationContent>(pContent); in ConvertJsonToNotificationContent()