Home
last modified time | relevance | path

Searched refs:tpdu (Results 1 – 11 of 11) sorted by relevance

/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_sender.cpp55 std::shared_ptr<struct SmsTpdu> tpdu = in TextBasedSmsDelivery() local
57 if (tpdu == nullptr) { in TextBasedSmsDelivery()
70 isStatusReport = tpdu->data.submit.bStatusReport; in TextBasedSmsDelivery()
91 …(void)memset_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, 0x00, MAX_USER_DATA_LEN + 1… in TextBasedSmsDelivery()
96 …ret = memcpy_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, &cellsInfos[i].encodeData[0… in TextBasedSmsDelivery()
102 tpdu->data.submit.userData.length = cellsInfos[i].encodeData.size(); in TextBasedSmsDelivery()
103 tpdu->data.submit.userData.data[cellsInfos[i].encodeData.size()] = 0; in TextBasedSmsDelivery()
104 tpdu->data.submit.msgRef = msgRef8bit; in TextBasedSmsDelivery()
120 tpdu->data.submit.userData.headerCnt = headerCnt; in TextBasedSmsDelivery()
121 tpdu->data.submit.bHeaderInd = (headerCnt > 0) ? true : false; in TextBasedSmsDelivery()
[all …]
Dgsm_sms_tpdu_decode.cpp27 std::shared_ptr<GsmSmsParamCodec> paramCodec, std::shared_ptr<GsmSmsTpduCodec> tpdu) in GsmSmsTpduDecode() argument
31 tpdu_ = tpdu; in GsmSmsTpduDecode()
Dgsm_sms_tpdu_encode.cpp27 std::shared_ptr<GsmSmsParamCodec> paramCodec, std::shared_ptr<GsmSmsTpduCodec> tpdu) in GsmSmsTpduEncode() argument
31 tpdu_ = tpdu; in GsmSmsTpduEncode()
/base/telephony/sms_mms/services/sms/
Dgsm_cb_umts_codec.cpp169 const uint8_t *tpdu = dataPdu.data(); in Decode3g7Bit() local
177 uint16_t dataLen = tpdu[pageLenOffset]; in Decode3g7Bit()
187 &tpdu[offset], dataLen, 0x00, pageData, MAX_PAGE_PDU_LEN * SMS_BYTE_BIT / GSM_CODE_BIT); in Decode3g7Bit()
211 uint8_t *tpdu = dataPdu.data(); in Decode3gUCS2() local
224 if (tpdu[pageLenOffset] >= HEX_VALUE_02) { in Decode3gUCS2()
225 dataLen = tpdu[pageLenOffset] - HEX_VALUE_02; in Decode3gUCS2()
229 dataLen = tpdu[pageLenOffset]; in Decode3gUCS2()
234 messageRaw_.push_back(static_cast<char>(tpdu[position])); in Decode3gUCS2()
/base/telephony/sms_mms/utils/
Dsms_common_utils.cpp74 …const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataL… in Unpack7bitChar() argument
79 …if (unpackData == nullptr || tpdu == nullptr || dataLen == 0 || unpackDataLen == 0 || dataLen > un… in Unpack7bitChar()
88 unpackData[dstIdx] = tpdu[srcIdx] & 0x7F; in Unpack7bitChar()
98 …unpackData[dstIdx] = ((unsigned int)tpdu[srcIdx - 1] >> shift) + (tpdu[srcIdx] << (SMS_BYTE_BIT - … in Unpack7bitChar()
Dsms_common_utils.h30 …const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataL…
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_sender.cpp132 std::shared_ptr<struct SmsTpdu> tpdu = in TextBasedSmsDeliveryViaIms() local
137 …if (TpduNullOrSmsPageOverNormalOrSmsEncodeFail(cellsInfos, tpdu, unSentCellCount, hasCellFailed, s… in TextBasedSmsDeliveryViaIms()
144 …SendSmsForEveryIndexer(i, cellsInfos, desAddr, scAddr, tpdu, gsmSmsMessage, unSentCellCount, hasCe… in TextBasedSmsDeliveryViaIms()
151 const string &scAddr, std::shared_ptr<struct SmsTpdu> tpdu, GsmSmsMessage gsmSmsMessage, in SendSmsForEveryIndexer() argument
165 …(void)memset_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, 0x00, MAX_USER_DATA_LEN + 1… in SendSmsForEveryIndexer()
170 … if (memcpy_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, &cellsInfos[i].encodeData[0], in SendSmsForEveryIndexer()
176 tpdu->data.submit.userData.length = cellsInfos[i].encodeData.size(); in SendSmsForEveryIndexer()
177 tpdu->data.submit.userData.data[cellsInfos[i].encodeData.size()] = 0; in SendSmsForEveryIndexer()
178 tpdu->data.submit.msgRef = msgRef8bit; in SendSmsForEveryIndexer()
201 tpdu->data.submit.userData.headerCnt = headerCnt; in SendSmsForEveryIndexer()
[all …]
/base/telephony/sms_mms/services/sms/include/gsm/
Dgsm_sms_sender.h48 …std::shared_ptr<struct SmsTpdu> tpdu, uint8_t msgRef8bit, const std::string &desAddr, const std::s…
51 …BasedSmsDeliveryPacketSplitPage(GsmSmsMessage &gsmSmsMessage, std::shared_ptr<struct SmsTpdu> tpdu,
Dgsm_sms_tpdu_decode.h26 std::shared_ptr<GsmSmsTpduCodec> tpdu);
Dgsm_sms_tpdu_encode.h26 std::shared_ptr<GsmSmsTpduCodec> tpdu);
/base/telephony/sms_mms/services/sms/include/cdma/
Dcdma_sms_sender.h40 std::shared_ptr<struct SmsTpdu> tpdu, std::shared_ptr<uint8_t> unSentCellCount,
43 … const std::string &scAddr, std::shared_ptr<struct SmsTpdu> tpdu, GsmSmsMessage gsmSmsMessage,