/base/telephony/sms_mms/frameworks/native/mms/src/ |
D | mms_body_part_header.cpp | 367 bool MmsBodyPartHeader::EncodeContentLocation(MmsEncodeBuffer &encodeBuffer) in EncodeContentLocation() argument 375 …if (!encodeBuffer.WriteByte(static_cast<uint8_t>(MmsHeaderParam::P_CONTENT_LOCATION_V2) | setHighe… in EncodeContentLocation() 379 if (!encodeBuffer.EncodeText(strContentLocation_)) { in EncodeContentLocation() 394 bool MmsBodyPartHeader::EncodeContentId(MmsEncodeBuffer &encodeBuffer) in EncodeContentId() argument 402 …if (!encodeBuffer.WriteByte(static_cast<uint8_t>(MmsHeaderParam::P_CONTENT_ID) | setHighestBitOne)… in EncodeContentId() 406 if (!encodeBuffer.EncodeQuotedText(strContentID_)) { in EncodeContentId() 425 bool MmsBodyPartHeader::EncodeContentDisposition(MmsEncodeBuffer &encodeBuffer) in EncodeContentDisposition() argument 435 …if (!encodeBuffer.WriteByte(static_cast<uint8_t>(MmsHeaderParam::P_CONTENT_DISPOSITION_V1) | setHi… in EncodeContentDisposition() 439 if (!encodeBuffer.EncodeUintvar(0x01)) { in EncodeContentDisposition() 444 … if (!encodeBuffer.WriteByte(static_cast<uint8_t>(MmsDispositonParam::P_DISPOSITION_FROM_DATA))) { in EncodeContentDisposition() [all …]
|
D | mms_content_type.cpp | 397 bool MmsContentType::EncodeTextField(MmsEncodeBuffer &encodeBuffer) in EncodeTextField() argument 409 if (!encodeBuffer.WriteByte(fields[i])) { in EncodeTextField() 413 if (!encodeBuffer.EncodeText(msgContentParm_.GetParamMap()[fields[i]])) { in EncodeTextField() 431 bool MmsContentType::EncodeCharsetField(MmsEncodeBuffer &encodeBuffer) in EncodeCharsetField() argument 436 if (!encodeBuffer.WriteByte(static_cast<uint8_t>(ContentParam::CT_P_CHARSET))) { in EncodeCharsetField() 440 if (!encodeBuffer.EncodeLongInteger(msgContentParm_.GetCharSet())) { in EncodeCharsetField() 456 bool MmsContentType::EncodeTypeField(MmsEncodeBuffer &encodeBuffer) in EncodeTypeField() argument 461 if (!encodeBuffer.WriteByte(static_cast<uint8_t>(ContentParam::CT_P_TYPE))) { in EncodeTypeField() 465 if (!encodeBuffer.EncodeText(msgContentParm_.GetType())) { in EncodeTypeField() 488 bool MmsContentType::EncodeMmsBodyPartContentParam(MmsEncodeBuffer &encodeBuffer) in EncodeMmsBodyPartContentParam() argument [all …]
|
D | mms_body.cpp | 91 bool MmsBody::EncodeMmsBody(MmsEncodeBuffer &encodeBuffer) in EncodeMmsBody() argument 94 if (!encodeBuffer.EncodeUintvar(partsNum)) { in EncodeMmsBody() 99 if (!mmsBodyParts_.at(i).EncodeMmsBodyPart(encodeBuffer)) { in EncodeMmsBody() 123 bool MmsBody::EncodeMmsHeaderContentType(MmsHeader &mmsHeader, MmsEncodeBuffer &encodeBuffer) in EncodeMmsHeaderContentType() argument 125 if (!encodeBuffer.WriteByte((int8_t)(MMS_CONTENT_TYPE))) { in EncodeMmsHeaderContentType() 136 if (!encodeBuffer.EncodeText(strContentType)) { in EncodeMmsHeaderContentType() 153 if (!encodeBuffer.EncodeValueLength(tmpEncodeBuffer.GetCurPosition())) { in EncodeMmsHeaderContentType() 157 if (!encodeBuffer.WriteBuffer(tmpEncodeBuffer)) { in EncodeMmsHeaderContentType()
|
D | mms_encode_string.cpp | 93 bool MmsEncodeString::EncodeEncodeString(MmsEncodeBuffer &encodeBuffer) in EncodeEncodeString() argument 106 if (!encodeBuffer.EncodeValueLength(tempBuffer.GetCurPosition())) { in EncodeEncodeString() 110 if (!encodeBuffer.WriteBuffer(tempBuffer)) { in EncodeEncodeString() 116 if (!encodeBuffer.EncodeText(strEncodeString_)) { in EncodeEncodeString()
|
D | mms_msg.cpp | 66 MmsEncodeBuffer encodeBuffer; in EncodeMsg() local 67 if (!mmsHeader_.EncodeMmsHeader(encodeBuffer)) { in EncodeMsg() 72 if (!mmsBody_.EncodeMmsHeaderContentType(mmsHeader_, encodeBuffer)) { in EncodeMsg() 76 if (!mmsBody_.EncodeMmsBody(encodeBuffer)) { in EncodeMsg() 81 outLen = encodeBuffer.GetCurPosition(); in EncodeMsg() 82 return encodeBuffer.ReadDataBuffer(0, outLen); in EncodeMsg()
|
D | mms_body_part.cpp | 345 bool MmsBodyPart::EncodeMmsBodyPart(MmsEncodeBuffer &encodeBuffer) in EncodeMmsBodyPart() argument 356 if (!encodeBuffer.EncodeUintvar(tmpEncodeBuffer.GetCurPosition())) { in EncodeMmsBodyPart() 360 if (!encodeBuffer.EncodeUintvar(bodyLen_)) { in EncodeMmsBodyPart() 364 if (!encodeBuffer.WriteBuffer(tmpEncodeBuffer)) { in EncodeMmsBodyPart() 370 if (!encodeBuffer.WriteBuffer(std::move(bodyBuff), bodyLen)) { in EncodeMmsBodyPart()
|
D | mms_header.cpp | 185 bool MmsHeader::EncodeMmsHeader(MmsEncodeBuffer &encodeBuffer) in EncodeMmsHeader() argument 210 if (!EncodeCommontFieldValue(encodeBuffer)) { in EncodeMmsHeader() 216 return EncodeMmsSendReq(encodeBuffer); in EncodeMmsHeader() 218 return EncodeMmsSendConf(encodeBuffer); in EncodeMmsHeader() 220 return EncodeMmsNotificationInd(encodeBuffer); in EncodeMmsHeader() 222 return EnocdeMmsNotifyRespInd(encodeBuffer); in EncodeMmsHeader() 224 return EnocdeMmsRetrieveConf(encodeBuffer); in EncodeMmsHeader() 226 return EnocdeMmsAcknowledgeInd(encodeBuffer); in EncodeMmsHeader() 228 return EnocdeMmsDeliveryInd(encodeBuffer); in EncodeMmsHeader() 230 return EncodeMmsReadRecInd(encodeBuffer); in EncodeMmsHeader() [all …]
|
/base/telephony/sms_mms/frameworks/native/mms/include/ |
D | mms_body_part_header.h | 53 bool EncodeContentLocation(MmsEncodeBuffer &encodeBuffer); 54 bool EncodeContentId(MmsEncodeBuffer &encodeBuffer); 55 bool EncodeContentDisposition(MmsEncodeBuffer &encodeBuffer); 56 bool EncodeContentTransferEncoding(MmsEncodeBuffer &encodeBuffer); 57 bool EncodeMmsBodyPartHeader(MmsEncodeBuffer &encodeBuffer);
|
D | mms_body.h | 36 bool EncodeMmsBody(MmsEncodeBuffer &encodeBuffer); 37 bool EncodeMmsHeaderContentType(MmsHeader &mmsHeader, MmsEncodeBuffer &encodeBuffer);
|
D | mms_content_type.h | 220 bool EncodeTextField(MmsEncodeBuffer &encodeBuffer); 221 bool EncodeCharsetField(MmsEncodeBuffer &encodeBuffer); 222 bool EncodeTypeField(MmsEncodeBuffer &encodeBuffer); 223 bool EncodeMmsBodyPartContentType(MmsEncodeBuffer &encodeBuffer); 224 bool EncodeMmsBodyPartContentParam(MmsEncodeBuffer &encodeBuffer);
|
D | mms_encode_string.h | 33 bool EncodeEncodeString(MmsEncodeBuffer &encodeBuffer);
|
D | mms_body_part.h | 35 bool EncodeMmsBodyPart(MmsEncodeBuffer &encodeBuffer);
|
D | mms_header.h | 35 bool EncodeMmsHeader(MmsEncodeBuffer &encodeBuffer);
|
/base/hiviewdfx/hievent_lite/frameworks/ |
D | hiview_event.c | 57 uint8 encodeBuffer[SINGLE_VALUE_MAX_LEN] = { 0 }; in HiEventPrintf() local 66 e.common.len = HiEventEncode((uint8)key, value, 1, encodeBuffer); in HiEventPrintf() 67 e.payload = encodeBuffer; in HiEventPrintf()
|
/base/telephony/sms_mms/test/gtest/ |
D | sms_mms_gtest.cpp | 2087 MmsEncodeBuffer encodeBuffer; variable 2088 mmsBodyPartHeader.EncodeContentLocation(encodeBuffer); 2089 mmsBodyPartHeader.EncodeContentId(encodeBuffer); 2090 mmsBodyPartHeader.EncodeContentDisposition(encodeBuffer); 2091 mmsBodyPartHeader.EncodeContentTransferEncoding(encodeBuffer); 2092 mmsBodyPartHeader.EncodeMmsBodyPartHeader(encodeBuffer); 2185 MmsEncodeBuffer encodeBuffer; variable 2186 mmsContentType.EncodeTextField(encodeBuffer); 2187 mmsContentType.EncodeCharsetField(encodeBuffer); 2188 mmsContentType.EncodeTypeField(encodeBuffer); [all …]
|
D | zero_branch_test.cpp | 159 MmsEncodeBuffer encodeBuffer; variable 172 EXPECT_FALSE(mmsHeader->EncodeMmsHeader(encodeBuffer));
|