Searched refs:attachment (Results 1 – 8 of 8) sorted by relevance
/base/telephony/sms_mms/test/gtest/ |
D | mms_gtest.cpp | 236 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/ |
D | mms_msg.cpp | 271 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 …]
|
D | mms_body_part.cpp | 243 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/ |
D | mms_body_part.h | 36 bool SetAttachment(MmsAttachment &attachment); 58 bool WriteBodyFromAttachmentBuffer(MmsAttachment &attachment);
|
/base/telephony/sms_mms/frameworks/js/napi/src/ |
D | napi_mms.cpp | 276 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/ |
D | mms_msg.h | 282 bool AddAttachment(MmsAttachment &attachment);
|
/base/telephony/sms_mms/frameworks/js/napi/include/ |
D | napi_mms.h | 170 std::vector<MmsAttachmentContext> attachment {}; 186 std::vector<MmsAttachmentContext> attachment {};
|
/base/telephony/sms_mms/interfaces/kits/js/ |
D | @ohos.telephony.sms.d.ts | 783 attachment?: Array<MmsAttachment>;
|