Home
last modified time | relevance | path

Searched refs:fillBits (Results 1 – 8 of 8) sorted by relevance

/base/telephony/sms_mms/services/sms/gsm/
Dgsm_user_data_encode.cpp42 uint8_t fillBits = 0; in EncodeGsmPdu() local
43 if (!EncodeGsmHeadPdu(buffer, userData, fillBits)) { in EncodeGsmPdu()
46 return EncodeGsmBodyPdu(buffer, userData, fillBits); in EncodeGsmPdu()
49 …e::EncodeGsmHeadPdu(SmsWriteBuffer &buffer, const struct SmsUDPackage *userData, uint8_t &fillBits) in EncodeGsmHeadPdu() argument
73 fillBits = ((udhl + 1) * NORMAL_BYTE_BITS) % GSM_ENCODE_BITS; /* + UDHL */ in EncodeGsmHeadPdu()
75 if (fillBits > 0 && GSM_ENCODE_BITS > fillBits) { in EncodeGsmHeadPdu()
76 fillBits = GSM_ENCODE_BITS - fillBits; in EncodeGsmHeadPdu()
78 fillBits = 0; in EncodeGsmHeadPdu()
83 uint16_t value = ((udhl + 1) * HEX_08) + fillBits + (userData->length * HEX_07); in EncodeGsmHeadPdu()
101 …de::EncodeGsmBodyPdu(SmsWriteBuffer &buffer, const struct SmsUDPackage *userData, uint8_t fillBits) in EncodeGsmBodyPdu() argument
[all …]
Dgsm_user_data_decode.cpp44 uint8_t fillBits = 0; in DecodeGsmPdu() local
45 if (!DecodeGsmHeadPdu(buffer, bHeaderInd, userData, pTPUD, udl, fillBits)) { in DecodeGsmPdu()
49 return DecodeGsmBodyPdu(buffer, bHeaderInd, userData, pTPUD, udl, fillBits); in DecodeGsmPdu()
53 struct SmsTpud *pTPUD, uint8_t &udl, uint8_t &fillBits) in DecodeGsmHeadPdu() argument
93 return DecodeGsmHeadPduPartData(buffer, bHeaderInd, userData, udl, fillBits); in DecodeGsmHeadPdu()
97 …eadBuffer &buffer, bool bHeaderInd, struct SmsUDPackage *userData, uint8_t &udl, uint8_t &fillBits) in DecodeGsmHeadPduPartData() argument
136 fillBits = ((udl * GSM_ENCODE_BITS) - ((udhl + 1) * NORMAL_BYTE_BITS)) % GSM_ENCODE_BITS; in DecodeGsmHeadPduPartData()
143 struct SmsTpud *pTPUD, uint8_t &udl, uint8_t fillBits) in DecodeGsmBodyPdu() argument
153 …buffer, udl, fillBits, reinterpret_cast<uint8_t *>(userData->data), MAX_USER_DATA_LEN + 1, length); in DecodeGsmBodyPdu()
Dgsm_sms_common_utils.cpp32 …s::Pack7bitChar(SmsWriteBuffer &buffer, const uint8_t *userData, uint8_t dataLen, uint8_t fillBits) in Pack7bitChar() argument
38 auto shift = fillBits; in Pack7bitChar()
105 bool GsmSmsCommonUtils::Unpack7bitChar(SmsReadBuffer &buffer, uint8_t dataLen, uint8_t fillBits, ui… in Unpack7bitChar() argument
108 auto shift = fillBits; in Unpack7bitChar()
109 if (unpackData == nullptr || dataLen >= unpackDataLen || fillBits > SMS_BYTE_BIT - 1) { in Unpack7bitChar()
/base/telephony/sms_mms/services/sms/include/gsm/
Dgsm_user_data_decode.h29 uint8_t &udl, uint8_t &fillBits);
31 uint8_t &udl, uint8_t fillBits);
37 …adBuffer &buffer, bool bHeaderInd, struct SmsUDPackage *userData, uint8_t &udl, uint8_t &fillBits);
Dgsm_sms_common_utils.h30 …l Pack7bitChar(SmsWriteBuffer &buffer, const uint8_t *userData, uint8_t dataLen, uint8_t fillBits);
31 … bool Unpack7bitChar(SmsReadBuffer &buffer, uint8_t dataLen, uint8_t fillBits, uint8_t *unpackData,
Dgsm_user_data_encode.h32 … EncodeGsmHeadPdu(SmsWriteBuffer &buffer, const struct SmsUDPackage *pUserData, uint8_t &fillBits);
33 …l EncodeGsmBodyPdu(SmsWriteBuffer &buffer, const struct SmsUDPackage *pUserData, uint8_t fillBits);
/base/telephony/sms_mms/utils/
Dsms_common_utils.h28 … const uint8_t *userData, uint16_t dataLen, uint8_t fillBits, uint8_t *packData, uint16_t packLen);
30 …const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataL…
Dsms_common_utils.cpp35 … const uint8_t *userData, uint16_t dataLen, uint8_t fillBits, uint8_t *packData, uint16_t packLen) in Pack7bitChar() argument
43 auto shift = fillBits; in Pack7bitChar()
74 …const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataL… in Unpack7bitChar() argument
78 auto shift = fillBits; in Unpack7bitChar()