Searched refs:tpdu (Results 1 – 7 of 7) sorted by relevance
/base/telephony/sms_mms/services/gsm/ |
D | gsm_sms_sender.cpp | 56 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/ |
D | sms_common_utils.cpp | 63 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()
|
D | sms_common_utils.h | 29 static int Unpack7bitChar(const unsigned char *tpdu, unsigned char dataLen, int fillBits,
|
/base/telephony/sms_mms/services/cdma/ |
D | cdma_sms_sender.cpp | 127 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/ |
D | gsm_sms_sender.h | 48 …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/ |
D | cdma_sms_sender.h | 40 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/ |
D | sms_cb_message.cpp | 312 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()
|