Home
last modified time | relevance | path

Searched refs:oneByte (Results 1 - 25 of 29) sorted by relevance

12

/base/telephony/sms_mms/frameworks/native/mms/src/
H A 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 in DecodeUintvar()
114 uint8_t oneByte = 0; DecodeShortLength() local
145 uint8_t oneByte = 0; DecodeValueLengthReturnLen() local
188 uint8_t oneByte = 0; DecodeValueLength() local
226 CharIsToken(uint8_t oneByte) CharIsToken() argument
271 uint8_t oneByte = 0; DecodeTokenText() local
308 uint8_t oneByte = 0; DecodeText() local
349 uint8_t oneByte = 0; DecodeQuotedText() local
380 uint8_t oneByte = 0; DecodeShortInteger() local
405 unsigned char oneByte = 0; DecodeLongInteger() local
465 uint8_t oneByte = 0; DecodeIsShortInt() local
484 uint8_t oneByte = 0; DecodeIsString() local
503 uint8_t oneByte = 0; DecodeIsValueLength() local
[all...]
H A Dmms_content_type.cpp63 uint8_t oneByte = 0; in DecodeMmsContentType() local
65 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeMmsContentType()
69 contentType_ = GetContentTypeFromInt(oneByte & setHighestBitZero); in DecodeMmsContentType()
124 uint8_t oneByte = 0; in DecodeMmsCTGeneralForm() local
125 if (!decodeBuffer.PeekOneByte(oneByte)) { in DecodeMmsCTGeneralForm()
130 contentType_ = GetContentTypeFromInt(oneByte & setHighestBitZero); in DecodeMmsCTGeneralForm()
306 uint8_t oneByte = 0; in DecodeCharsetField() local
309 if (decodeBuffer.PeekOneByte(oneByte) == false) { in DecodeCharsetField()
313 if (((oneByte > textMinValue) && (oneByte < textMaxValu in DecodeCharsetField()
357 uint8_t oneByte = 0; DecodeTypeField() local
[all...]
H A 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()
H A 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()
H A Dmms_header.cpp213 uint8_t oneByte = 0; in DecodeMmsHeader() local
215 while (decodeBuffer.GetOneByte(oneByte)) { in DecodeMmsHeader()
216 fieldCode = (oneByte | setHighestBitOne); in DecodeMmsHeader()
599 uint8_t oneByte = 0; in DecodeMmsMsgType() local
600 if (!buff.GetOneByte(oneByte)) { in DecodeMmsMsgType()
604 if (oneByte < MMS_MSGTYPE_SEND_REQ || oneByte > MMS_MSGTYPE_CANCEL_CONF) { in DecodeMmsMsgType()
608 octetValueMap_.emplace(fieldId, oneByte); in DecodeMmsMsgType()
658 uint8_t oneByte = 0; in DecodeFieldOctetValue() local
659 if (!buff.GetOneByte(oneByte)) { in DecodeFieldOctetValue()
776 uint8_t oneByte = 0; DecodeFromValue() local
842 uint8_t oneByte = 0; DecodeMmsMsgUnKnownField() local
[all...]
H A Dmms_body_part.cpp162 uint8_t oneByte = 0; in DecodePartHeader() local
164 if (!decodeBuffer.PeekOneByte(oneByte)) { in DecodePartHeader()
168 if (headerAccept <= oneByte && headerCacheControl >= oneByte) { in DecodePartHeader()
173 } else if ((oneByte >= textMin) && (oneByte <= textMax)) { in DecodePartHeader()
179 TELEPHONY_LOGE("Header Field[%{public}02X] is not support.", oneByte); in DecodePartHeader()
/base/telephony/sms_mms/services/sms/
H A 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 in DecodeUintvar()
211 uint8_t oneByte = 0; DecodeShortLength() local
241 uint8_t oneByte = 0; DecodeValueLengthReturnLen() local
283 uint8_t oneByte = 0; DecodeValueLength() local
320 CharIsToken(uint8_t oneByte) CharIsToken() argument
350 uint8_t oneByte = 0; DecodeTokenText() local
389 uint8_t oneByte = 0; DecodeText() local
426 uint8_t oneByte = 0; DecodeQuotedText() local
459 uint8_t oneByte = 0; DecodeShortInteger() local
482 unsigned char oneByte = 0; DecodeLongInteger() local
538 uint8_t oneByte = 0; DecodeIsShortInt() local
554 uint8_t oneByte = 0; DecodeIsString() local
571 uint8_t oneByte = 0; DecodeIsValueLength() local
606 unsigned char oneByte = 0; DecodeTextValue() local
656 unsigned char oneByte = 0; DecodeNoValue() local
[all...]
H A 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()
103 uint8_t oneByte in Decode2gHeaderEtws() local
130 uint8_t oneByte = 0; Decode2gHeaderCommonCb() local
[all...]
H A Dgsm_cb_umts_codec.cpp54 uint8_t oneByte = 0; in Decode3gHeader() local
55 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
59 uint8_t temp = oneByte; in Decode3gHeader()
60 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
64 cbHeader_->msgId = (temp << HEX_VALUE_08) | oneByte; in Decode3gHeader()
70 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
74 temp = oneByte; in Decode3gHeader()
78 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
82 temp = oneByte; in Decode3gHeader()
86 if (!cbPduBuffer_->GetOneByte(oneByte)) { in Decode3gHeader()
100 uint8_t oneByte = 0; Decode3gHeaderPartData() local
[all...]
H A 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 in DecodeCharsetField() local
346 uint8_t oneByte = 0; DecodeTypeField() local
[all...]
H A 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()
H A Dsms_wap_push_handler.cpp298 uint8_t oneByte = 0; in DecodeXWapAbandonHeaderValue() local
299 if (!decodeBuffer.GetOneByte(oneByte)) { in DecodeXWapAbandonHeaderValue()
304 if (oneByte <= wapShortLengthMax) { in DecodeXWapAbandonHeaderValue()
305 if (!decodeBuffer.IncreasePointer(oneByte)) { in DecodeXWapAbandonHeaderValue()
309 } else if (oneByte == wapLengthQuote) { in DecodeXWapAbandonHeaderValue()
320 } else if (oneByte <= textLengthMax) { in DecodeXWapAbandonHeaderValue()
H A Dgsm_cb_codec.cpp123 uint8_t oneByte = 0; in PduAnalysis() local
124 if (!cbPduBuffer_->PickOneByte(oneByte)) { in PduAnalysis()
128 cbHeader_->cbMsgType = oneByte; in PduAnalysis()
179 uint8_t oneByte = 0; in GetPduData() local
181 if (!cbPduBuffer_->GetOneByte(oneByte)) { in GetPduData()
184 dataPdu.push_back(oneByte); in GetPduData()
/base/telephony/sms_mms/services/sms/gsm/
H A 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 in DecodeSubmitPartData() local
171 uint8_t oneByte = 0; DecodeDeliver() local
255 uint8_t oneByte = 0; DecodeStatusReport() local
305 uint8_t oneByte = 0; DecodeStatusReportPartData() local
347 uint8_t oneByte = 0; DecodeStatusReportData() local
[all...]
H A 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 bool GsmUserDataPdu::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()
495 uint8_t oneByte = 0; DecodeHeaderConcat16Bit() local
533 uint8_t oneByte = 0; DecodeHeaderAppPort8Bit() local
560 uint8_t oneByte = 0; DecodeHeaderAppPort16Bit() local
605 uint8_t oneByte = 0; DecodeHeaderSpecialSms() local
637 uint8_t oneByte = 0; DecodeHeaderReplyAddress() local
655 uint8_t oneByte = 0; DecodeHeaderSingleShift() local
675 uint8_t oneByte = 0; DecodeHeaderLockingShift() local
694 uint8_t oneByte = 0; DecodeHeaderDefaultCase() local
[all...]
H A 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_1 in EncodeSubmitTypePartData()
181 uint8_t oneByte = 0; EncodeSubmitTypeData() local
231 uint8_t oneByte = 0; EncodeDeliverPdu() local
276 uint8_t oneByte = 0; EncodeDeliverPartData() local
368 uint8_t oneByte = 0; EncodeDeliverReportPdu() local
445 uint8_t oneByte = 0; EncodeStatusReportPdu() local
[all...]
H A Dgsm_sms_param_decode.cpp49 uint8_t oneByte = 0; in DecodeAddressPdu() local
50 if (!buffer.ReadByte(oneByte) || oneByte >= BCD_TO_DIGITAL * (MAX_ADDRESS_LEN + 1)) { in DecodeAddressPdu()
51 TELEPHONY_LOGE("get data error. %{public}d", oneByte); in DecodeAddressPdu()
54 uint8_t addrLen = oneByte; in DecodeAddressPdu()
62 if (!buffer.PickOneByte(oneByte)) { in DecodeAddressPdu()
66 resultNum->ton = (oneByte & HEX_VALUE_70) >> HEX_VALUE_04; in DecodeAddressPdu()
84 uint8_t oneByte = 0; in DecodeAddressAlphaNum() local
85 if (!buffer.ReadByte(oneByte)) { in DecodeAddressAlphaNum()
93 if (!buffer.ReadByte(oneByte)) { in DecodeAddressAlphaNum()
115 uint8_t oneByte = 0; DecodeAddressInternationalNum() local
143 uint8_t oneByte = 0; DecodeAddressDefaultNum() local
426 uint8_t oneByte = 0; DecodeTimePdu() local
456 uint8_t oneByte = 0; DecodeTimePduPartData() local
501 uint8_t oneByte = 0; DecodeTimePduData() local
[all...]
H A 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...]
H A Dgsm_sms_common_utils.cpp64 uint8_t oneByte = 0; in Pack7bitChar() local
65 if (!buffer.GetValueFromIndex(buffer.GetIndex() - 1, oneByte)) { in Pack7bitChar()
69 oneByte |= (userData[srcIdx] << shift); in Pack7bitChar()
70 if (!buffer.InsertByte(oneByte, (buffer.GetIndex() - 1))) { in Pack7bitChar()
84 uint8_t oneByte = 0; in Pack7bitCharPartData() local
85 if (!buffer.GetValueFromIndex(buffer.GetIndex() - 1, oneByte)) { in Pack7bitCharPartData()
89 oneByte |= (userData[srcIdx] << shift); in Pack7bitCharPartData()
90 if (!buffer.InsertByte(oneByte, (buffer.GetIndex() - 1))) { in Pack7bitCharPartData()
94 if (!buffer.GetTopValue(oneByte)) { in Pack7bitCharPartData()
99 if (!buffer.WriteByte(oneByte | nextByt in Pack7bitCharPartData()
119 uint8_t oneByte = 0; Unpack7bitChar() local
132 uint8_t oneByte = 0; Unpack7bitChar() local
[all...]
H A Dgsm_sms_tpdu_codec.cpp150 uint8_t oneByte = 0; in DebugTpdu() local
159 if (!buffer.PickOneByteFromIndex(i, oneByte)) { in DebugTpdu()
163 if (snprintf_s(tpduTmp + (i * step), len - 1, len - 1, "%02X", oneByte) < 0) { in DebugTpdu()
/base/telephony/sms_mms/frameworks/native/mms/include/
H A 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/
H A Dgsm_cb_pdu_decode_buffer.h27 bool GetOneByte(uint8_t &oneByte);
31 bool PickOneByte(uint8_t &oneByte);
H A Dsms_wap_push_buffer.h37 bool PeekOneByte(uint8_t &oneByte);
38 bool GetOneByte(uint8_t &oneByte);
50 static bool CharIsToken(uint8_t oneByte);
H A Dsms_pdu_buffer.h61 bool GetTopValue(uint8_t &oneByte);
/base/telephony/sms_mms/services/sms/include/gsm/
H A Dgsm_user_data_pdu.h40 bool DecodeHeaderPartData(SmsReadBuffer &buffer, struct SmsUDH &pHeader, uint8_t oneByte);

Completed in 18 milliseconds

12