Home
last modified time | relevance | path

Searched refs:oneByte (Results 1 – 12 of 12) sorted by relevance

/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_decode_buffer.cpp26 bool MmsDecodeBuffer::PeekOneByte(uint8_t &oneByte) in PeekOneByte() argument
32 oneByte = pduBuffer_[curPosition_]; in PeekOneByte()
36 bool MmsDecodeBuffer::GetOneByte(uint8_t &oneByte) in GetOneByte() argument
42 oneByte = pduBuffer_[curPosition_]; in GetOneByte()
81 uint8_t oneByte = 0; in DecodeUintvar() local
83 if (!GetOneByte(oneByte)) { in DecodeUintvar()
89 while ((oneByte & setNotHighestBitZero) != 0) { in DecodeUintvar()
91 uintVar |= oneByte & setHighestBitZero; in DecodeUintvar()
93 if (!GetOneByte(oneByte)) { in DecodeUintvar()
100 uintVar |= oneByte & setHighestBitZero; in DecodeUintvar()
[all …]
Dmms_content_type.cpp65 uint8_t oneByte = 0; in DecodeMmsContentType() local
67 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeMmsContentType()
71 contentType_ = GetContentTypeFromInt(oneByte & setHighestBitZero); in DecodeMmsContentType()
126 uint8_t oneByte = 0; in DecodeMmsCTGeneralForm() local
127 if (!decodeBuffer.PeekOneByte(oneByte)) { in DecodeMmsCTGeneralForm()
132 contentType_ = GetContentTypeFromInt(oneByte & setHighestBitZero); in DecodeMmsCTGeneralForm()
201 uint8_t oneByte = 0; in DecodeParameter() local
204 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeParameter()
208 paramCode = oneByte; in DecodeParameter()
310 uint8_t oneByte = 0; in DecodeCharsetField() local
[all …]
Dmms_encode_string.cpp47 uint8_t oneByte = 0; in DecodeEncodeString() local
50 if (!decodeBuffer.PeekOneByte(oneByte)) { in DecodeEncodeString()
55 if (oneByte == 0) { in DecodeEncodeString()
62 if (oneByte < maxHasCharsetNum) { in DecodeEncodeString()
Dmms_body_part_header.cpp112 uint8_t oneByte = 0; in DecodeContentDisposition() local
113 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeContentDisposition()
118 switch (static_cast<MmsDispositonParam>(oneByte)) { in DecodeContentDisposition()
175 uint8_t oneByte = 0; in DecodeDispositionParameter() local
177 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeDispositionParameter()
181 if (oneByte == pFileNameValue) { in DecodeDispositionParameter()
218 uint8_t oneByte = 0; in DecodeWellKnownHeader() local
219 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeWellKnownHeader()
225 fieldCode = oneByte & 0x7f; in DecodeWellKnownHeader()
Dmms_body_part.cpp153 uint8_t oneByte = 0; in DecodePartHeader() local
155 if (!decodeBuffer.PeekOneByte(oneByte)) { in DecodePartHeader()
159 if (headerAccept <= oneByte && headerCacheControl >= oneByte) { in DecodePartHeader()
164 } else if ((oneByte >= textMin) && (oneByte <= textMax)) { in DecodePartHeader()
170 TELEPHONY_LOGE("Header Field[%{pulbic}02X] is not support.", oneByte); in DecodePartHeader()
Dmms_header.cpp163 uint8_t oneByte = 0; in DecodeMmsHeader() local
165 while (decodeBuffer.GetOneByte(oneByte)) { in DecodeMmsHeader()
166 fieldCode = (oneByte | setHighestBitOne); in DecodeMmsHeader()
515 uint8_t oneByte = 0; in DecodeMmsMsgType() local
516 if (!buff.GetOneByte(oneByte)) { in DecodeMmsMsgType()
520 if (oneByte < MMS_MSGTYPE_SEND_REQ || oneByte > MMS_MSGTYPE_CANCEL_CONF) { in DecodeMmsMsgType()
524 octetValueMap_.emplace(fieldId, oneByte); in DecodeMmsMsgType()
574 uint8_t oneByte = 0; in DecodeFieldOctetValue() local
575 if (!buff.GetOneByte(oneByte)) { in DecodeFieldOctetValue()
579 octetValueMap_.emplace(fieldId, oneByte); in DecodeFieldOctetValue()
[all …]
/base/telephony/sms_mms/services/
Dsms_wap_push_buffer.cpp116 bool SmsWapPushBuffer::PeekOneByte(uint8_t &oneByte) in PeekOneByte() argument
122 oneByte = pduBuffer_[curPosition_]; in PeekOneByte()
126 bool SmsWapPushBuffer::GetOneByte(uint8_t &oneByte) in GetOneByte() argument
132 oneByte = pduBuffer_[curPosition_]; in GetOneByte()
172 uint8_t oneByte = 0; in DecodeUintvar() local
173 if (!GetOneByte(oneByte)) { in DecodeUintvar()
179 while ((oneByte & setNotHighestBitZero) != 0) { in DecodeUintvar()
181 uintVar |= oneByte & setHighestBitZero; in DecodeUintvar()
183 if (!GetOneByte(oneByte)) { in DecodeUintvar()
190 uintVar |= oneByte & setHighestBitZero; in DecodeUintvar()
[all …]
Dsms_wap_push_content_type.cpp79 uint8_t oneByte = 0; in DecodeContentType() local
80 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeContentType()
84 contentType_ = GetContentTypeFromInt(oneByte & setHighestBitZero); in DecodeContentType()
139 uint8_t oneByte = 0; in DecodeCTGeneralForm() local
140 if (!decodeBuffer.PeekOneByte(oneByte)) { in DecodeCTGeneralForm()
145 contentType_ = GetContentTypeFromInt(oneByte & setHighestBitZero); in DecodeCTGeneralForm()
194 uint8_t oneByte = 0; in DecodeParameter() local
197 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeParameter()
201 paramCode = oneByte; in DecodeParameter()
297 uint8_t oneByte = 0; in DecodeCharsetField() local
[all …]
Dsms_wap_push_handler.cpp274 uint8_t oneByte = 0; in DecodeXWapAbandonHeaderValue() local
275 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeXWapAbandonHeaderValue()
280 if ((oneByte >= 0) && (oneByte <= wapShortLengthMax)) { in DecodeXWapAbandonHeaderValue()
281 if (!decodeBuffer.IncreasePointer(oneByte)) { in DecodeXWapAbandonHeaderValue()
285 } else if (oneByte == wapLengthQuote) { in DecodeXWapAbandonHeaderValue()
296 } else if ((wapLengthQuote < oneByte) && (oneByte <= textLengthMax)) { in DecodeXWapAbandonHeaderValue()
/base/telephony/sms_mms/frameworks/native/mms/include/
Dmms_decode_buffer.h27 bool PeekOneByte(uint8_t &oneByte);
28 bool GetOneByte(uint8_t &oneByte);
40 static bool CharIsToken(uint8_t oneByte);
/base/telephony/sms_mms/services/include/
Dsms_wap_push_buffer.h37 bool PeekOneByte(uint8_t &oneByte);
38 bool GetOneByte(uint8_t &oneByte);
50 static bool CharIsToken(uint8_t oneByte);
/base/telephony/sms_mms/test/gtest/
Dzero_branch_test.cpp422 uint8_t oneByte = 0; variable
429 EXPECT_FALSE(smsWapPushBuffer->GetOneByte(oneByte));
442 EXPECT_FALSE(smsWapPushBuffer->DecodeShortInteger(oneByte));