Home
last modified time | relevance | path

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

/base/telephony/sms_mms/services/gsm/
Dgsm_sms_sender.cpp56 std::shared_ptr<struct SmsTpdu> tpdu = in TextBasedSmsDelivery() local
58 if (tpdu == nullptr) { in TextBasedSmsDelivery()
71 isStatusReport = tpdu->data.submit.bStatusReport; in TextBasedSmsDelivery()
92 …(void)memset_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, 0x00, MAX_USER_DATA_LEN + 1… in TextBasedSmsDelivery()
97 …ret = memcpy_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, &cellsInfos[i].encodeData[0… in TextBasedSmsDelivery()
103 tpdu->data.submit.userData.length = cellsInfos[i].encodeData.size(); in TextBasedSmsDelivery()
104 tpdu->data.submit.userData.data[cellsInfos[i].encodeData.size()] = 0; in TextBasedSmsDelivery()
105 tpdu->data.submit.msgRef = msgRef8bit; in TextBasedSmsDelivery()
121 tpdu->data.submit.userData.headerCnt = headerCnt; in TextBasedSmsDelivery()
122 tpdu->data.submit.bHeaderInd = (headerCnt > 0) ? true : false; in TextBasedSmsDelivery()
[all …]
/base/telephony/sms_mms/utils/
Dsms_common_utils.cpp63 int SmsCommonUtils::Unpack7bitChar(const unsigned char *tpdu, unsigned char dataLen, int fillBits, in Unpack7bitChar() argument
69 if (unpackData == nullptr || tpdu == nullptr || dataLen > unpackDataLen) { in Unpack7bitChar()
77 unpackData[dstIdx] = tpdu[srcIdx] & 0x7F; in Unpack7bitChar()
87 …((unsigned int)tpdu[srcIdx - 1] >> shift) + (tpdu[srcIdx] << (SmsCommonUtils::SMS_BYTE_BIT - shift… in Unpack7bitChar()
Dsms_common_utils.h29 static int Unpack7bitChar(const unsigned char *tpdu, unsigned char dataLen, int fillBits,
/base/telephony/sms_mms/services/cdma/
Dcdma_sms_sender.cpp127 std::shared_ptr<struct SmsTpdu> tpdu = in TextBasedSmsDeliveryViaIms() local
132 …if (TpduNullOrSmsPageOverNormalOrSmsEncodeFail(cellsInfos, tpdu, unSentCellCount, hasCellFailed, s… in TextBasedSmsDeliveryViaIms()
139 …SendSmsForEveryIndexer(i, cellsInfos, desAddr, scAddr, tpdu, gsmSmsMessage, unSentCellCount, hasCe… in TextBasedSmsDeliveryViaIms()
146 const string &scAddr, std::shared_ptr<struct SmsTpdu> tpdu, GsmSmsMessage gsmSmsMessage, in SendSmsForEveryIndexer() argument
159 …(void)memset_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, 0x00, MAX_USER_DATA_LEN + 1… in SendSmsForEveryIndexer()
164 … if (memcpy_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, &cellsInfos[i].encodeData[0], in SendSmsForEveryIndexer()
170 tpdu->data.submit.userData.length = cellsInfos[i].encodeData.size(); in SendSmsForEveryIndexer()
171 tpdu->data.submit.userData.data[cellsInfos[i].encodeData.size()] = 0; in SendSmsForEveryIndexer()
172 tpdu->data.submit.msgRef = msgRef8bit; in SendSmsForEveryIndexer()
195 tpdu->data.submit.userData.headerCnt = headerCnt; in SendSmsForEveryIndexer()
[all …]
/base/telephony/sms_mms/services/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,
/base/telephony/sms_mms/services/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,
/base/telephony/sms_mms/services/
Dsms_cb_message.cpp312 const unsigned char *tpdu = pdu.data(); in Decode3g7Bit() local
320 dataLen = tpdu[pageLenOffset]; in Decode3g7Bit()
330 unpackLen = SmsCommonUtils::Unpack7bitChar(&tpdu[offset], dataLen, 0x00, pageData, in Decode3g7Bit()
345 const unsigned char *tpdu = pdu.data(); in Decode3gUCS2() local
354 dataLen = tpdu[pageLenOffset] - 0x02; in Decode3gUCS2()
357 dataLen = tpdu[pageLenOffset]; in Decode3gUCS2()
361 messageRaw_.insert(messageRaw_.size(), (const char *)&tpdu[offset], dataLen); in Decode3gUCS2()