Home
last modified time | relevance | path

Searched refs:pTpdu (Results 1 – 7 of 7) sorted by relevance

/ohos5.0/base/telephony/sms_mms/services/sms/gsm/
H A Dgsm_sms_tpdu_codec.cpp91 bool GsmSmsTpduCodec::DecodeSmsPdu(const uint8_t *pTpdu, uint16_t TpduLen, struct SmsTpdu *pSmsTpdu) in DecodeSmsPdu() argument
93 if (pTpdu == nullptr || pSmsTpdu == nullptr || TpduLen == 0 || TpduLen > MAX_DECODE_LEN) { in DecodeSmsPdu()
100 pduData[locate] = static_cast<char>(pTpdu[locate]); in DecodeSmsPdu()
110 const char mti = pTpdu[0] & HEX_VALUE_03; in DecodeSmsPdu()
H A Dgsm_sms_tpdu_decode.cpp136 void DecodePartData(const uint8_t &pTpdu, struct SmsDeliver &deliver) in DecodePartData() argument
139 if (pTpdu & HEX_VALUE_04) { in DecodePartData()
145 if (pTpdu & HEX_VALUE_20) { in DecodePartData()
151 if (pTpdu & HEX_VALUE_40) { in DecodePartData()
157 if (pTpdu & HEX_VALUE_80) { in DecodePartData()
H A Dgsm_sms_param_decode.cpp181 uint8_t GsmSmsParamDecode::DecodeSmscPdu(const uint8_t *pTpdu, uint8_t pduLen, struct AddressNumber… in DecodeSmscPdu() argument
183 if (pTpdu == nullptr || pduLen == 0) { in DecodeSmscPdu()
193 uint8_t addrLen = pTpdu[offset++]; in DecodeSmscPdu()
202 desAddrObj.ton = (pTpdu[offset] & HEX_VALUE_70) >> HEX_VALUE_04; in DecodeSmscPdu()
203 desAddrObj.npi = pTpdu[offset++] & HEX_VALUE_0F; in DecodeSmscPdu()
212 utils.BcdToDigit(&(pTpdu[offset]), addrLen, addrNum, SMS_MAX_ADDRESS_LEN); in DecodeSmscPdu()
225 utils.BcdToDigit(&(pTpdu[offset]), addrLen, addrNum, SMS_MAX_ADDRESS_LEN); in DecodeSmscPdu()
H A Dgsm_sms_param_codec.cpp80 uint8_t GsmSmsParamCodec::DecodeSmscPdu(const uint8_t *pTpdu, uint8_t pduLen, struct AddressNumber … in DecodeSmscPdu() argument
83 return codec.DecodeSmscPdu(pTpdu, pduLen, address); in DecodeSmscPdu()
/ohos5.0/base/telephony/sms_mms/services/sms/include/gsm/
H A Dgsm_sms_tpdu_codec.h39 …bool EncodeSmsPdu(std::shared_ptr<SmsTpdu> sourceData, char *pTpdu, uint16_t pduLen, uint16_t &buf…
40 bool DecodeSmsPdu(const uint8_t *pTpdu, uint16_t TpduLen, struct SmsTpdu *pSmsTpdu);
H A Dgsm_sms_param_codec.h39 uint8_t DecodeSmscPdu(const uint8_t *pTpdu, uint8_t pduLen, struct AddressNumber &address);
H A Dgsm_sms_param_decode.h30 uint8_t DecodeSmscPdu(const uint8_t *pTpdu, uint8_t pduLen, struct AddressNumber &desAddrObj);