Home
last modified time | relevance | path

Searched refs:attachment (Results 1 – 8 of 8) sorted by relevance

/base/telephony/sms_mms/test/gtest/
Dmms_gtest.cpp236 MmsAttachment attachment; variable
239 retBool = attachment.SetAttachmentFilePath("", false);
241 retBool = attachment.SetAttachmentFilePath(pathName, true);
243 retStr = attachment.GetAttachmentFilePath();
245 retBool = attachment.SetContentId("");
247 retBool = attachment.SetContentId("0000");
249 retBool = attachment.SetContentId("<0000>");
251 retStr = attachment.GetContentId();
253 retBool = attachment.SetContentLocation("");
255 retBool = attachment.SetContentLocation("SetContentLocation");
[all …]
/base/telephony/sms_mms/frameworks/native/mms/src/
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.SetContentDisposition(contentDispositon); in GetAllAttachment()
[all …]
Dmms_body_part.cpp243 bool MmsBodyPart::SetAttachment(MmsAttachment &attachment) in SetAttachment() argument
245 std::string filePathName = attachment.GetAttachmentFilePath(); in SetAttachment()
248 std::string tempFileName = attachment.GetFileName(); in SetAttachment()
260 if (!WriteBodyFromAttachmentBuffer(attachment)) { in SetAttachment()
264 SetFileName(attachment.GetFileName()); in SetAttachment()
271 if (!SetContentType(attachment.GetContentType())) { in SetAttachment()
275 if (!SetContentId(attachment.GetContentId())) { in SetAttachment()
279 if (!SetContentLocation(attachment.GetContentLocation())) { in SetAttachment()
283 if (!mmsBodyPartHeader_.SetContentTransferEncoding(attachment.GetContentTransferEncoding())) { in SetAttachment()
287 SetSmilFile(attachment.IsSmilFile()); in SetAttachment()
[all …]
/base/telephony/sms_mms/frameworks/native/mms/include/
Dmms_body_part.h36 bool SetAttachment(MmsAttachment &attachment);
58 bool WriteBodyFromAttachmentBuffer(MmsAttachment &attachment);
/base/telephony/sms_mms/frameworks/js/napi/src/
Dnapi_mms.cpp276 std::vector<MmsAttachment> attachment; in getAttachmentByDecodeMms() local
277 mmsMsg.GetAllAttachment(attachment); in getAttachmentByDecodeMms()
278 if (attachment.empty()) { in getAttachmentByDecodeMms()
281 for (auto it : attachment) { in getAttachmentByDecodeMms()
295 context.attachment.push_back(std::move(attachmentContext)); in getAttachmentByDecodeMms()
354 napi_value attachment = nullptr; in CreateAttachmentValue() local
355 napi_create_object(env, &attachment); in CreateAttachmentValue()
356 NapiUtil::SetPropertyStringUtf8(env, attachment, "path", context.path); in CreateAttachmentValue()
357 NapiUtil::SetPropertyStringUtf8(env, attachment, "fileName", context.fileName); in CreateAttachmentValue()
358 NapiUtil::SetPropertyStringUtf8(env, attachment, "contentId", context.contentId); in CreateAttachmentValue()
[all …]
/base/telephony/sms_mms/interfaces/innerkits/
Dmms_msg.h282 bool AddAttachment(MmsAttachment &attachment);
/base/telephony/sms_mms/frameworks/js/napi/include/
Dnapi_mms.h170 std::vector<MmsAttachmentContext> attachment {};
186 std::vector<MmsAttachmentContext> attachment {};
/base/telephony/sms_mms/interfaces/kits/js/
D@ohos.telephony.sms.d.ts783 attachment?: Array<MmsAttachment>;