Home
last modified time | relevance | path

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

12

/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()
308 uint8_t oneByte = 0; in DecodeCharsetField() local
311 if (decodeBuffer.PeekOneByte(oneByte) == false) { in DecodeCharsetField()
315 if (((oneByte > textMinValue) && (oneByte < textMaxValue)) || (oneByte == 0)) { in DecodeCharsetField()
359 uint8_t oneByte = 0; in DecodeTypeField() local
[all …]
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()
174 uint8_t oneByte = 0; in DecodeDispositionParameter() local
180 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeDispositionParameter()
184 if (oneByte == pFileNameValue) { in DecodeDispositionParameter()
220 uint8_t oneByte = 0; in DecodeWellKnownHeader() local
221 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeWellKnownHeader()
227 fieldCode = oneByte & 0x7f; in DecodeWellKnownHeader()
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.cpp164 uint8_t oneByte = 0; in DecodePartHeader() local
166 if (!decodeBuffer.PeekOneByte(oneByte)) { in DecodePartHeader()
170 if (headerAccept <= oneByte && headerCacheControl >= oneByte) { in DecodePartHeader()
175 } else if ((oneByte >= textMin) && (oneByte <= textMax)) { in DecodePartHeader()
181 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()
549 uint8_t oneByte = 0; in DecodeMmsMsgType() local
550 if (!buff.GetOneByte(oneByte)) { in DecodeMmsMsgType()
554 if (oneByte < MMS_MSGTYPE_SEND_REQ || oneByte > MMS_MSGTYPE_CANCEL_CONF) { in DecodeMmsMsgType()
558 octetValueMap_.emplace(fieldId, oneByte); in DecodeMmsMsgType()
608 uint8_t oneByte = 0; in DecodeFieldOctetValue() local
609 if (!buff.GetOneByte(oneByte)) { in DecodeFieldOctetValue()
613 octetValueMap_.emplace(fieldId, oneByte); in DecodeFieldOctetValue()
[all …]
/base/telephony/sms_mms/services/sms/
Dsms_wap_push_buffer.cpp121 bool SmsWapPushBuffer::PeekOneByte(uint8_t &oneByte) in PeekOneByte() argument
127 oneByte = pduBuffer_[curPosition_]; in PeekOneByte()
131 bool SmsWapPushBuffer::GetOneByte(uint8_t &oneByte) in GetOneByte() argument
137 oneByte = pduBuffer_[curPosition_]; in GetOneByte()
177 uint8_t oneByte = 0; in DecodeUintvar() local
178 if (!GetOneByte(oneByte)) { in DecodeUintvar()
184 while ((oneByte & setNotHighestBitZero) != 0) { in DecodeUintvar()
186 uintVar |= oneByte & setHighestBitZero; in DecodeUintvar()
188 if (!GetOneByte(oneByte)) { in DecodeUintvar()
195 uintVar |= oneByte & setHighestBitZero; in DecodeUintvar()
[all …]
Dgsm_cb_gsm_codec.cpp57 uint8_t oneByte = 0; in Decode2gHeader() local
58 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode2gHeader()
62 uint8_t temp = oneByte; in Decode2gHeader()
66 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode2gHeader()
70 temp = oneByte; in Decode2gHeader()
74 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode2gHeader()
78 temp = oneByte; in Decode2gHeader()
80 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode2gHeader()
84 cbHeader_->msgId = (temp << HEX_VALUE_08) | oneByte; in Decode2gHeader()
101 uint8_t oneByte = 0; in Decode2gHeaderEtws() local
[all …]
Dgsm_cb_umts_codec.cpp57 uint8_t oneByte = 0; in Decode3gHeader() local
58 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
62 uint8_t temp = oneByte; in Decode3gHeader()
63 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
67 cbHeader_->msgId = (temp << HEX_VALUE_08) | oneByte; in Decode3gHeader()
69 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
73 temp = oneByte; in Decode3gHeader()
77 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
81 temp = oneByte; in Decode3gHeader()
85 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
[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()
195 uint8_t oneByte = 0; in DecodeParameter() local
196 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeParameter()
200 uint8_t paramCode = oneByte; in DecodeParameter()
296 uint8_t oneByte = 0; in DecodeCharsetField() local
[all …]
Dgsm_cb_pdu_decode_buffer.cpp43 bool GsmCbPduDecodeBuffer::PickOneByte(uint8_t &oneByte) in PickOneByte() argument
49 oneByte = pduBuffer_[curPosition_]; in PickOneByte()
53 bool GsmCbPduDecodeBuffer::GetOneByte(uint8_t &oneByte) in GetOneByte() argument
58 oneByte = pduBuffer_[curPosition_++]; in GetOneByte()
Dsms_wap_push_handler.cpp299 uint8_t oneByte = 0; in DecodeXWapAbandonHeaderValue() local
300 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeXWapAbandonHeaderValue()
305 if (oneByte <= wapShortLengthMax) { in DecodeXWapAbandonHeaderValue()
306 if (!decodeBuffer.IncreasePointer(oneByte)) { in DecodeXWapAbandonHeaderValue()
310 } else if (oneByte == wapLengthQuote) { in DecodeXWapAbandonHeaderValue()
321 } else if (oneByte <= textLengthMax) { in DecodeXWapAbandonHeaderValue()
Dgsm_cb_codec.cpp121 uint8_t oneByte = 0; in PduAnalysis() local
122 if (!cbPduBuffer_->PickOneByte(oneByte)) { in PduAnalysis()
126 cbHeader_->cbMsgType = oneByte; in PduAnalysis()
177 uint8_t oneByte = 0; in GetPduData() local
179 if (!cbPduBuffer_->GetOneByte(oneByte)) { in GetPduData()
182 dataPdu.push_back(oneByte); in GetPduData()
Dsms_pdu_buffer.cpp321 bool SmsWriteBuffer::GetTopValue(uint8_t &oneByte) in GetTopValue() argument
327 oneByte = data_[index_]; in GetTopValue()
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_tpdu_decode.cpp45 uint8_t oneByte = 0; in DecodeSubmit() local
46 if (!buffer.PickOneByte(oneByte)) { in DecodeSubmit()
50 if (oneByte & HEX_VALUE_04) { in DecodeSubmit()
56 if (!buffer.PickOneByte(oneByte)) { in DecodeSubmit()
60 submit->vpf = static_cast<enum SmsVpf>(oneByte & HEX_VALUE_18); in DecodeSubmit()
62 if (!buffer.PickOneByte(oneByte)) { in DecodeSubmit()
66 if (oneByte & HEX_VALUE_20) { in DecodeSubmit()
72 if (!buffer.PickOneByte(oneByte)) { in DecodeSubmit()
76 if (oneByte & HEX_VALUE_40) { in DecodeSubmit()
90 uint8_t oneByte = 0; in DecodeSubmitPartData() local
[all …]
Dgsm_user_data_pdu.cpp376 uint8_t oneByte = 0; in DecodeHeader() local
377 if (!buffer.ReadByte(oneByte)) { in DecodeHeader()
381 pHeader.udhType = oneByte; in DecodeHeader()
408 if (!DecodeHeaderPartData(buffer, pHeader, oneByte)) { in DecodeHeader()
423 …smUserDataPdu::DecodeHeaderPartData(SmsReadBuffer &buffer, struct SmsUDH &pHeader, uint8_t oneByte) in DecodeHeaderPartData() argument
425 pHeader.udhType = oneByte; in DecodeHeaderPartData()
464 uint8_t oneByte = 0; in DecodeHeaderConcat8Bit() local
465 if (!buffer.ReadByte(oneByte)) { in DecodeHeaderConcat8Bit()
469 if (oneByte == 0) { in DecodeHeaderConcat8Bit()
472 if (!buffer.ReadByte(oneByte)) { in DecodeHeaderConcat8Bit()
[all …]
Dgsm_sms_common_utils.cpp63 uint8_t oneByte = 0; in Pack7bitChar() local
64 if (!buffer.GetValueFromIndex(buffer.GetIndex() - 1, oneByte)) { in Pack7bitChar()
68 oneByte |= (userData[srcIdx] << shift); in Pack7bitChar()
69 if (!buffer.InsertByte(oneByte, (buffer.GetIndex() - 1))) { in Pack7bitChar()
83 uint8_t oneByte = 0; in Pack7bitCharPartData() local
84 if (!buffer.GetValueFromIndex(buffer.GetIndex() - 1, oneByte)) { in Pack7bitCharPartData()
88 oneByte |= (userData[srcIdx] << shift); in Pack7bitCharPartData()
89 if (!buffer.InsertByte(oneByte, (buffer.GetIndex() - 1))) { in Pack7bitCharPartData()
93 if (!buffer.GetTopValue(oneByte)) { in Pack7bitCharPartData()
98 if (!buffer.WriteByte(oneByte | nextByte)) { in Pack7bitCharPartData()
[all …]
Dgsm_sms_param_codec.cpp88 uint8_t oneByte = 0; in CheckVoicemail() local
89 if (!buffer.ReadByte(oneByte)) { in CheckVoicemail()
94 if (oneByte != HEX_VALUE_04) { in CheckVoicemail()
99 if (!buffer.ReadByte(oneByte)) { in CheckVoicemail()
103 if (oneByte != HEX_VALUE_D0) { in CheckVoicemail()
108 if (!buffer.PickOneByte(oneByte)) { in CheckVoicemail()
118 if (oneByte == HEX_VALUE_11 || nextByte == HEX_VALUE_10) { in CheckVoicemail()
120 if (!buffer.ReadByte(oneByte)) { in CheckVoicemail()
124 *setType = static_cast<int32_t>(oneByte & HEX_VALUE_01); /* 0 : clear, 1 : set */ in CheckVoicemail()
125 if (!buffer.PickOneByte(oneByte)) { in CheckVoicemail()
[all …]
Dgsm_sms_tpdu_encode.cpp123 uint8_t oneByte = 0; in EncodeSubmitTpduType() local
124 if (!buffer.GetTopValue(oneByte)) { in EncodeSubmitTpduType()
128 if (!buffer.InsertByte(oneByte | HEX_VALUE_04, buffer.GetIndex())) { in EncodeSubmitTpduType()
138 uint8_t oneByte = 0; in EncodeSubmitTypePartData() local
144 if (!buffer.GetTopValue(oneByte)) { in EncodeSubmitTypePartData()
148 if (!buffer.InsertByte(oneByte | HEX_VALUE_08, buffer.GetIndex())) { in EncodeSubmitTypePartData()
154 if (!buffer.GetTopValue(oneByte)) { in EncodeSubmitTypePartData()
158 if (!buffer.InsertByte(oneByte | HEX_VALUE_10, buffer.GetIndex())) { in EncodeSubmitTypePartData()
164 if (!buffer.GetTopValue(oneByte)) { in EncodeSubmitTypePartData()
168 if (!buffer.InsertByte(oneByte | HEX_VALUE_18, buffer.GetIndex())) { in EncodeSubmitTypePartData()
[all …]
Dgsm_sms_param_decode.cpp41 uint8_t oneByte = 0; in DecodeAddressPdu() local
42 if (!buffer.ReadByte(oneByte) || oneByte >= BCD_TO_DIGITAL * (MAX_ADDRESS_LEN + 1)) { in DecodeAddressPdu()
46 uint8_t addrLen = oneByte; in DecodeAddressPdu()
54 if (!buffer.PickOneByte(oneByte)) { in DecodeAddressPdu()
58 resultNum->ton = (oneByte & HEX_VALUE_70) >> HEX_VALUE_04; in DecodeAddressPdu()
92 uint8_t oneByte = 0; in DecodeAddressInternationalNum() local
96 if (!buffer.ReadByte(oneByte)) { in DecodeAddressInternationalNum()
100 bcdArr[index++] = oneByte; in DecodeAddressInternationalNum()
123 uint8_t oneByte = 0; in DecodeAddressDefaultNum() local
126 if (!buffer.ReadByte(oneByte)) { in DecodeAddressDefaultNum()
[all …]
Dgsm_sms_tpdu_codec.cpp151 uint8_t oneByte = 0; in DebugTpdu() local
160 if (!buffer.PickOneByteFromIndex(i, oneByte)) { in DebugTpdu()
164 if (snprintf_s(tpduTmp + (i * step), len - 1, len - 1, "%02X", oneByte) < 0) { in DebugTpdu()
/base/telephony/sms_mms/frameworks/native/mms/include/
Dmms_decode_buffer.h25 bool PeekOneByte(uint8_t &oneByte);
26 bool GetOneByte(uint8_t &oneByte);
38 static bool CharIsToken(uint8_t oneByte);
/base/telephony/sms_mms/services/sms/include/
Dgsm_cb_pdu_decode_buffer.h27 bool GetOneByte(uint8_t &oneByte);
31 bool PickOneByte(uint8_t &oneByte);
Dsms_wap_push_buffer.h37 bool PeekOneByte(uint8_t &oneByte);
38 bool GetOneByte(uint8_t &oneByte);
50 static bool CharIsToken(uint8_t oneByte);
Dsms_pdu_buffer.h61 bool GetTopValue(uint8_t &oneByte);

12