Home
last modified time | relevance | path

Searched refs:contentId (Results 1 - 14 of 14) sorted by relevance

/base/telephony/sms_mms/frameworks/native/mms/src/
H A Dmms_attachment.cpp75 bool MmsAttachment::SetContentId(std::string contentId) in SetContentId() argument
77 if (contentId.empty()) { in SetContentId()
78 TELEPHONY_LOGE("Attachment contentId is empty!"); in SetContentId()
81 if (contentId.length() > 1 && contentId.at(0) == '<' && contentId.at(contentId.length() - 1)) { in SetContentId()
82 contentId_.assign(contentId); in SetContentId()
85 contentId = '<' + contentId in SetContentId()
[all...]
H A Dmms_body.cpp181 bool MmsBody::IsContentIdPartExist(std::string contentId) in IsContentIdPartExist() argument
186 if (contentId == strId) { in IsContentIdPartExist()
195 std::string contentId; in IsBodyPartExist() local
196 bodyPart.GetContentId(contentId); in IsBodyPartExist()
197 if (IsContentIdPartExist(contentId)) { in IsBodyPartExist()
H A Dmms_msg.cpp290 std::string contentId; in AddAttachment() local
292 bodyPart.GetContentId(contentId); in AddAttachment()
295 mmsHeader_.GetHeaderContentType().GetContentParam().SetStart(contentId); in AddAttachment()
315 std::string contentId = ""; in GetAllAttachment() local
316 part.GetPartHeader().GetContentId(contentId); in GetAllAttachment()
317 if (!contentId.empty()) { in GetAllAttachment()
318 attachment.SetContentId(contentId); in GetAllAttachment()
319 bool isSmil = (smilFileName == contentId) ? true : false; in GetAllAttachment()
H A Dmms_body_part.cpp312 bool MmsBodyPart::SetContentId(std::string contentId) in SetContentId() argument
314 return mmsBodyPartHeader_.SetContentId(contentId); in SetContentId()
317 bool MmsBodyPart::GetContentId(std::string &contentId) in GetContentId() argument
319 return mmsBodyPartHeader_.GetContentId(contentId); in GetContentId()
403 std::string contentId = ""; in DecodeSetFileName() local
404 GetPartHeader().GetContentId(contentId); in DecodeSetFileName()
405 if (contentId.length() > 0) { in DecodeSetFileName()
406 strFileName_ = contentId; in DecodeSetFileName()
H A Dmms_body_part_header.cpp239 TELEPHONY_LOGE("Body part header decode contentId fail."); in DecodeWellKnownHeader()
304 bool MmsBodyPartHeader::GetContentId(std::string &contentId) in GetContentId() argument
306 contentId.clear(); in GetContentId()
307 contentId = strContentID_; in GetContentId()
311 bool MmsBodyPartHeader::SetContentId(std::string contentId) in SetContentId() argument
313 strContentID_ = contentId; in SetContentId()
/base/telephony/sms_mms/frameworks/native/mms/include/
H A Dmms_body_part_header.h58 bool GetContentId(std::string &contentId);
63 bool SetContentId(std::string contentId);
H A Dmms_body_part.h43 bool SetContentId(std::string contentId);
44 bool GetContentId(std::string &contentId);
H A Dmms_body.h43 bool IsContentIdPartExist(std::string contentId);
/base/telephony/sms_mms/test/unittest/
H A Dmms_msg_test.h51 MmsMsg &msg, std::string pathName, std::string contentId, std::string contenType, bool isSmil) const;
H A Dmms_msg_test.cpp662 MmsMsg &msg, std::string pathName, std::string contentId, std::string contenType, bool isSmil) const in MmsAddAttachment()
676 if (!imageAttachment.SetContentId(contentId)) { in MmsAddAttachment()
661 MmsAddAttachment( MmsMsg &msg, std::string pathName, std::string contentId, std::string contenType, bool isSmil) const MmsAddAttachment() argument
/base/telephony/sms_mms/interfaces/innerkits/
H A Dmms_attachment.h49 * @param contentId
53 bool SetContentId(std::string contentId);
/base/telephony/sms_mms/frameworks/js/napi/include/
H A Dnapi_mms.h57 std::string contentId = ""; member
/base/telephony/sms_mms/frameworks/js/napi/src/
H A Dnapi_mms.cpp280 attachmentContext.contentId = it.GetContentId(); in getAttachmentByDecodeMms()
353 NapiUtil::SetPropertyStringUtf8(env, attachment, "contentId", context.contentId); in CreateAttachmentValue()
1035 attachmentContext.contentId = GetNapiStringValue(env, value, "contentId"); in BuildMmsAttachment()
1156 if (it->contentId.size() > 0) { in SetAttachmentToCore()
1157 itAttachment.SetContentId(it->contentId); in SetAttachmentToCore()
/base/telephony/sms_mms/test/gtest/
H A Dmms_gtest.cpp180 bool MmsAddAttachment(MmsMsg &msg, std::string pathName, std::string contentId, std::string contenType, bool isSmil) in MmsAddAttachment() argument
193 if (!imageAttachment.SetContentId(contentId)) { in MmsAddAttachment()
616 mmsBodyPartHeader.SetContentId("contentId"); in HWTEST_F()
618 EXPECT_STREQ(testStr.c_str(), "contentId"); in HWTEST_F()

Completed in 14 milliseconds