Home
last modified time | relevance | path

Searched refs:encodeBuffer (Results 1 – 17 of 17) sorted by relevance

/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_body_part_header.cpp367 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 …]
Dmms_content_type.cpp397 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 …]
Dmms_body.cpp91 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()
Dmms_encode_string.cpp93 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()
Dmms_msg.cpp66 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()
83 return encodeBuffer.ReadDataBuffer(0, outLen); in EncodeMsg()
Dmms_body_part.cpp356 bool MmsBodyPart::EncodeMmsBodyPart(MmsEncodeBuffer &encodeBuffer) in EncodeMmsBodyPart() argument
367 if (!encodeBuffer.EncodeUintvar(tmpEncodeBuffer.GetCurPosition())) { in EncodeMmsBodyPart()
371 if (!encodeBuffer.EncodeUintvar(bodyLen_)) { in EncodeMmsBodyPart()
375 if (!encodeBuffer.WriteBuffer(tmpEncodeBuffer)) { in EncodeMmsBodyPart()
385 if (!encodeBuffer.WriteBuffer(std::move(bodyBuff), bodyLen)) { in EncodeMmsBodyPart()
Dmms_header.cpp185 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/
Dmms_body_part_header.h51 bool EncodeContentLocation(MmsEncodeBuffer &encodeBuffer);
52 bool EncodeContentId(MmsEncodeBuffer &encodeBuffer);
53 bool EncodeContentDisposition(MmsEncodeBuffer &encodeBuffer);
54 bool EncodeContentTransferEncoding(MmsEncodeBuffer &encodeBuffer);
55 bool EncodeMmsBodyPartHeader(MmsEncodeBuffer &encodeBuffer);
Dmms_body.h33 bool EncodeMmsBody(MmsEncodeBuffer &encodeBuffer);
34 bool EncodeMmsHeaderContentType(MmsHeader &mmsHeader, MmsEncodeBuffer &encodeBuffer);
Dmms_content_type.h220 bool EncodeTextField(MmsEncodeBuffer &encodeBuffer);
221 bool EncodeCharsetField(MmsEncodeBuffer &encodeBuffer);
222 bool EncodeTypeField(MmsEncodeBuffer &encodeBuffer);
223 bool EncodeMmsBodyPartContentType(MmsEncodeBuffer &encodeBuffer);
224 bool EncodeMmsBodyPartContentParam(MmsEncodeBuffer &encodeBuffer);
Dmms_encode_string.h33 bool EncodeEncodeString(MmsEncodeBuffer &encodeBuffer);
Dmms_body_part.h35 bool EncodeMmsBodyPart(MmsEncodeBuffer &encodeBuffer);
Dmms_header.h36 bool EncodeMmsHeader(MmsEncodeBuffer &encodeBuffer);
/base/telephony/sms_mms/test/gtest/
Dzero_branch_sms_test.cpp649 auto encodeBuffer = std::make_shared<SmsWriteBuffer>(); variable
651 …EXPECT_GT(udPdu->EncodeUserDataPdu(*encodeBuffer, pUserData, DataCodingScheme::DATA_CODING_7BIT), …
652 …EXPECT_GT(udPdu->EncodeUserDataPdu(*encodeBuffer, pUserData, DataCodingScheme::DATA_CODING_8BIT), …
653 …EXPECT_GT(udPdu->EncodeUserDataPdu(*encodeBuffer, pUserData, DataCodingScheme::DATA_CODING_UCS2), …
654 …EXPECT_EQ(udPdu->EncodeUserDataPdu(*encodeBuffer, pUserData, DataCodingScheme::DATA_CODING_ASCII7B…
668 EXPECT_TRUE(encode->Encode8bitPdu(*encodeBuffer, userData));
669 EXPECT_TRUE(encode->EncodeUcs2Pdu(*encodeBuffer, userData));
672 EXPECT_EQ(encode->Encode8bitPdu(*encodeBuffer, userData), 0);
673 EXPECT_EQ(encode->EncodeUcs2Pdu(*encodeBuffer, userData), 0);
692 auto encodeBuffer = std::make_shared<SmsWriteBuffer>(); variable
[all …]
Dmms_gtest.cpp345 MmsEncodeBuffer encodeBuffer; variable
346 mmsBodyPartHeader.EncodeContentLocation(encodeBuffer);
347 mmsBodyPartHeader.EncodeContentId(encodeBuffer);
348 mmsBodyPartHeader.EncodeContentDisposition(encodeBuffer);
349 mmsBodyPartHeader.EncodeContentTransferEncoding(encodeBuffer);
350 mmsBodyPartHeader.EncodeMmsBodyPartHeader(encodeBuffer);
443 MmsEncodeBuffer encodeBuffer; variable
444 mmsContentType.EncodeTextField(encodeBuffer);
445 mmsContentType.EncodeCharsetField(encodeBuffer);
446 mmsContentType.EncodeTypeField(encodeBuffer);
[all …]
Dzero_branch_mms_test.cpp85 MmsEncodeBuffer encodeBuffer; variable
98 EXPECT_FALSE(mmsHeader->EncodeMmsHeader(encodeBuffer));
652 MmsEncodeBuffer encodeBuffer; variable
653 ASSERT_FALSE(mmsBodyPart.EncodeMmsBodyPart(encodeBuffer));
895 MmsEncodeBuffer encodeBuffer; variable
897 EXPECT_TRUE(mmsBodyPartHeader->EncodeContentTransferEncoding(encodeBuffer));
898 EXPECT_TRUE(mmsBodyPartHeader->EncodeContentLocation(encodeBuffer));
899 EXPECT_TRUE(mmsBodyPartHeader->EncodeContentId(encodeBuffer));
900 encodeBuffer.curPosition_ = CODE_BUFFER_MAX_SIZE;
902 EXPECT_FALSE(mmsBodyPartHeader->EncodeMmsBodyPartHeader(encodeBuffer));
[all …]
/base/hiviewdfx/hievent_lite/frameworks/
Dhiview_event.c57 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()