Home
last modified time | relevance | path

Searched refs:oneByte (Results 1 – 25 of 27) 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()
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.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()
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/sms/
Dsms_wap_push_buffer.cpp120 bool SmsWapPushBuffer::PeekOneByte(uint8_t &oneByte) in PeekOneByte() argument
126 oneByte = pduBuffer_[curPosition_]; in PeekOneByte()
130 bool SmsWapPushBuffer::GetOneByte(uint8_t &oneByte) in GetOneByte() argument
136 oneByte = pduBuffer_[curPosition_]; in GetOneByte()
176 uint8_t oneByte = 0; in DecodeUintvar() local
177 if (!GetOneByte(oneByte)) { in DecodeUintvar()
183 while ((oneByte & setNotHighestBitZero) != 0) { in DecodeUintvar()
185 uintVar |= oneByte & setHighestBitZero; in DecodeUintvar()
187 if (!GetOneByte(oneByte)) { in DecodeUintvar()
194 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()
102 uint8_t oneByte = 0; in Decode2gHeaderEtws() local
[all …]
Dgsm_cb_umts_codec.cpp53 uint8_t oneByte = 0; in Decode3gHeader() local
54 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
58 uint8_t temp = oneByte; in Decode3gHeader()
59 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
63 cbHeader_->msgId = (temp << HEX_VALUE_08) | oneByte; in Decode3gHeader()
65 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
69 temp = oneByte; in Decode3gHeader()
73 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
77 temp = oneByte; in Decode3gHeader()
81 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()
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 …]
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.cpp284 uint8_t oneByte = 0; in DecodeXWapAbandonHeaderValue() local
285 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeXWapAbandonHeaderValue()
290 if ((oneByte >= 0) && (oneByte <= wapShortLengthMax)) { in DecodeXWapAbandonHeaderValue()
291 if (!decodeBuffer.IncreasePointer(oneByte)) { in DecodeXWapAbandonHeaderValue()
295 } else if (oneByte == wapLengthQuote) { in DecodeXWapAbandonHeaderValue()
306 } else if ((wapLengthQuote < oneByte) && (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()
/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.cpp374 uint8_t oneByte = 0; in DecodeHeader() local
375 if (!buffer.ReadByte(oneByte)) { in DecodeHeader()
379 pHeader.udhType = oneByte; in DecodeHeader()
406 if (!DecodeHeaderPartData(buffer, pHeader, oneByte)) { in DecodeHeader()
421 …smUserDataPdu::DecodeHeaderPartData(SmsReadBuffer &buffer, struct SmsUDH &pHeader, uint8_t oneByte) in DecodeHeaderPartData() argument
423 pHeader.udhType = oneByte; in DecodeHeaderPartData()
462 uint8_t oneByte = 0; in DecodeHeaderConcat8Bit() local
463 if (!buffer.ReadByte(oneByte)) { in DecodeHeaderConcat8Bit()
467 if (oneByte == 0) { in DecodeHeaderConcat8Bit()
470 if (!buffer.ReadByte(oneByte)) { in DecodeHeaderConcat8Bit()
[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_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_tpdu_encode.cpp120 uint8_t oneByte = 0; in EncodeSubmitTpduType() local
122 if (!buffer.GetTopValue(oneByte)) { in EncodeSubmitTpduType()
126 if (!buffer.InsertByte(oneByte | HEX_VALUE_04, buffer.GetIndex())) { in EncodeSubmitTpduType()
136 uint8_t oneByte = 0; in EncodeSubmitTypePartData() local
142 if (!buffer.GetTopValue(oneByte)) { in EncodeSubmitTypePartData()
146 if (!buffer.InsertByte(oneByte | HEX_VALUE_08, buffer.GetIndex())) { in EncodeSubmitTypePartData()
152 if (!buffer.GetTopValue(oneByte)) { in EncodeSubmitTypePartData()
156 if (!buffer.InsertByte(oneByte | HEX_VALUE_10, buffer.GetIndex())) { in EncodeSubmitTypePartData()
162 if (!buffer.GetTopValue(oneByte)) { in EncodeSubmitTypePartData()
166 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);
/base/telephony/sms_mms/services/sms/include/gsm/
Dgsm_user_data_pdu.h40 bool DecodeHeaderPartData(SmsReadBuffer &buffer, struct SmsUDH &pHeader, uint8_t oneByte);

12