Home
last modified time | relevance | path

Searched refs:attachment (Results 1 - 7 of 7) sorted by relevance

/base/telephony/sms_mms/frameworks/native/mms/src/
H A Dmms_msg.cpp271 bool MmsMsg::AddAttachment(MmsAttachment &attachment) in AddAttachment() argument
274 if (!bodyPart.SetAttachment(attachment)) { in AddAttachment()
314 MmsAttachment attachment; in GetAllAttachment() local
318 attachment.SetContentId(contentId); in GetAllAttachment()
320 attachment.SetIsSmilFile(isSmil); in GetAllAttachment()
328 attachment.SetFileName(fileName); in GetAllAttachment()
332 attachment.SetContentType(contentType); in GetAllAttachment()
333 attachment.SetCharSet(part.GetContentType().GetContentParam().GetCharSet()); in GetAllAttachment()
337 attachment.SetContentLocation(contentLocation); in GetAllAttachment()
341 attachment in GetAllAttachment()
[all...]
H A Dmms_body_part.cpp241 bool MmsBodyPart::SetAttachment(MmsAttachment &attachment) in SetAttachment() argument
243 std::string filePathName = attachment.GetAttachmentFilePath(); in SetAttachment()
246 std::string tempFileName = attachment.GetFileName(); in SetAttachment()
258 if (!WriteBodyFromAttachmentBuffer(attachment)) { in SetAttachment()
262 SetFileName(attachment.GetFileName()); in SetAttachment()
269 if (!SetContentType(attachment.GetContentType())) { in SetAttachment()
273 if (!SetContentId(attachment.GetContentId())) { in SetAttachment()
277 if (!SetContentLocation(attachment.GetContentLocation())) { in SetAttachment()
281 if (!mmsBodyPartHeader_.SetContentTransferEncoding(attachment.GetContentTransferEncoding())) { in SetAttachment()
285 SetSmilFile(attachment in SetAttachment()
478 WriteBodyFromAttachmentBuffer(MmsAttachment &attachment) WriteBodyFromAttachmentBuffer() argument
[all...]
/base/telephony/sms_mms/test/gtest/
H A Dmms_gtest.cpp205 imageAttachment.SetContentDisposition("attachment"); in MmsAddAttachment()
510 MmsAttachment attachment; in HWTEST_F() local
513 retBool = attachment.SetAttachmentFilePath("", false); in HWTEST_F()
515 retBool = attachment.SetAttachmentFilePath(pathName, true); in HWTEST_F()
517 retStr = attachment.GetAttachmentFilePath(); in HWTEST_F()
519 retBool = attachment.SetContentId(""); in HWTEST_F()
521 retBool = attachment.SetContentId("0000"); in HWTEST_F()
523 retBool = attachment.SetContentId("<0000>"); in HWTEST_F()
525 retStr = attachment.GetContentId(); in HWTEST_F()
527 retBool = attachment in HWTEST_F()
558 MmsAttachment attachment; HWTEST_F() local
[all...]
/base/telephony/sms_mms/frameworks/native/mms/include/
H A Dmms_body_part.h36 bool SetAttachment(MmsAttachment &attachment);
58 bool WriteBodyFromAttachmentBuffer(MmsAttachment &attachment);
/base/telephony/sms_mms/frameworks/js/napi/src/
H A Dnapi_mms.cpp28 const std::string attachmentKey = "attachment";
122 return "attachment"; in parseDispositionValue()
135 } else if (std::string("attachment") == value) { in formatDispositionValue()
271 std::vector<MmsAttachment> attachment; in getAttachmentByDecodeMms() local
272 mmsMsg.GetAllAttachment(attachment); in getAttachmentByDecodeMms()
273 if (attachment.empty()) { in getAttachmentByDecodeMms()
276 for (auto it : attachment) { in getAttachmentByDecodeMms()
290 context.attachment.push_back(std::move(attachmentContext)); in getAttachmentByDecodeMms()
349 napi_value attachment = nullptr; in CreateAttachmentValue() local
350 napi_create_object(env, &attachment); in CreateAttachmentValue()
1067 ReadEncodeMmsAttachment(napi_env env, napi_value value, std::vector<MmsAttachmentContext> &attachment) ReadEncodeMmsAttachment() argument
1143 SetAttachmentToCore(MmsMsg &mmsMsg, std::vector<MmsAttachmentContext> &attachment) SetAttachmentToCore() argument
[all...]
/base/telephony/sms_mms/interfaces/innerkits/
H A Dmms_msg.h276 * @brief add attachment to mms message if attachment is smil file must to add first.
278 * @param attachment the MmsAttachment object, indicates the attachment
282 bool AddAttachment(MmsAttachment &attachment);
287 * @param attachments a list of MmsAttachment objects, indicates the attachment
/base/telephony/sms_mms/frameworks/js/napi/include/
H A Dnapi_mms.h170 std::vector<MmsAttachmentContext> attachment {};
186 std::vector<MmsAttachmentContext> attachment {};

Completed in 7 milliseconds