Home
last modified time | relevance | path

Searched refs:mmsHeader (Results 1 – 3 of 3) sorted by relevance

/base/telephony/sms_mms/test/gtest/
Dzero_branch_mms_test.cpp82 auto mmsHeader = std::make_shared<MmsHeader>(); variable
91 mmsHeader->octetValueMap_.insert(pair<uint8_t, uint8_t>(1, 1));
92 mmsHeader->longValueMap_.insert(pair<uint8_t, int64_t>(1, 1));
93 mmsHeader->textValueMap_.insert(pair<uint8_t, std::string>(1, "1"));
94 mmsHeader->encodeStringsMap_.insert(pair<uint8_t, MmsEncodeString>(1, encodeString));
95 mmsHeader->addressMap_.insert(pair<uint8_t, std::vector<MmsAddress>>(1, addressValue));
96 mmsHeader->DumpMmsHeader();
97 EXPECT_TRUE(mmsHeader->DecodeMmsHeader(decodeBuffer));
98 EXPECT_FALSE(mmsHeader->EncodeMmsHeader(encodeBuffer));
99 EXPECT_TRUE(mmsHeader->GetOctetValue(1, value));
[all …]
/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_body.cpp123 bool MmsBody::EncodeMmsHeaderContentType(MmsHeader &mmsHeader, MmsEncodeBuffer &encodeBuffer) in EncodeMmsHeaderContentType() argument
130 mmsHeader.GetHeaderContentType().GetContentType(strContentType); in EncodeMmsHeaderContentType()
135 if (!mmsHeader.IsHaveBody() || GetBodyPartCount() == 0) { in EncodeMmsHeaderContentType()
149 mmsHeader.GetHeaderContentType().EncodeTextField(tmpEncodeBuffer); in EncodeMmsHeaderContentType()
150 mmsHeader.GetHeaderContentType().EncodeTypeField(tmpEncodeBuffer); in EncodeMmsHeaderContentType()
151 mmsHeader.GetHeaderContentType().EncodeCharsetField(tmpEncodeBuffer); in EncodeMmsHeaderContentType()
/base/telephony/sms_mms/frameworks/native/mms/include/
Dmms_body.h34 bool EncodeMmsHeaderContentType(MmsHeader &mmsHeader, MmsEncodeBuffer &encodeBuffer);