/base/telephony/sms_mms/utils/ |
H A D | sms_common_utils.cpp | 76 const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataLen) in Unpack7bitChar() 81 if (unpackData == nullptr || tpdu == nullptr || dataLen == 0 || unpackDataLen == 0 || dataLen > unpackDataLen) { in Unpack7bitChar() 90 unpackData[dstIdx] = tpdu[srcIdx] & 0x7F; in Unpack7bitChar() 100 unpackData[dstIdx] = ((unsigned int)tpdu[srcIdx - 1] >> shift) + (tpdu[srcIdx] << (SMS_BYTE_BIT - shift)); in Unpack7bitChar() 112 const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataLen) in Unpack7bitCharForCBPdu() 117 if (unpackData == nullptr || tpdu == nullptr || dataLen == 0 || unpackDataLen == 0 || dataLen > unpackDataLen) { in Unpack7bitCharForCBPdu() 126 unpackData[dstIdx] = tpdu[srcIdx] & 0x7F; in Unpack7bitCharForCBPdu() 132 unpackData[dstIdx] = ((unsigned int)tpdu[srcIdx - 1] >> shift) + (tpdu[srcId in Unpack7bitCharForCBPdu() 75 Unpack7bitChar( const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataLen) Unpack7bitChar() argument 111 Unpack7bitCharForCBPdu( const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataLen) Unpack7bitCharForCBPdu() argument [all...] |
H A D | sms_common_utils.h | 30 const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataLen); 32 const uint8_t *tpdu, uint16_t dataLen, uint8_t fillBits, uint8_t *unpackData, uint16_t unpackDataLen);
|
/base/telephony/sms_mms/services/sms/gsm/ |
H A D | gsm_sms_sender.cpp | 54 std::shared_ptr<struct SmsTpdu> tpdu = in TextBasedSmsDelivery() local 56 if (tpdu == nullptr) { in TextBasedSmsDelivery() 68 isStatusReport = tpdu->data.submit.bStatusReport; in TextBasedSmsDelivery() 72 TextBasedSmsSplitDelivery(desAddr, scAddr, cellsInfos, codingType, isStatusReport, tpdu, in TextBasedSmsDelivery() 78 std::shared_ptr<struct SmsTpdu> tpdu, GsmSmsMessage &gsmSmsMessage, in TextBasedSmsSplitDelivery() 102 (void)memset_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, 0x00, MAX_USER_DATA_LEN + 1); in TextBasedSmsSplitDelivery() 107 int ret = memcpy_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, &cellsInfos[i].encodeData[0], in TextBasedSmsSplitDelivery() 113 tpdu->data.submit.userData.length = cellsInfos[i].encodeData.size(); in TextBasedSmsSplitDelivery() 114 tpdu->data.submit.userData.data[cellsInfos[i].encodeData.size()] = 0; in TextBasedSmsSplitDelivery() 115 tpdu in TextBasedSmsSplitDelivery() 76 TextBasedSmsSplitDelivery(const std::string &desAddr, const std::string &scAddr, std::vector<struct SplitInfo> cellsInfos, DataCodingScheme codingType, bool isStatusReport, std::shared_ptr<struct SmsTpdu> tpdu, GsmSmsMessage &gsmSmsMessage, const sptr<ISendShortMessageCallback> &sendCallback, const sptr<IDeliveryShortMessageCallback> &deliveryCallback, uint16_t dataBaseId, bool isMmsApp) TextBasedSmsSplitDelivery() argument 168 std::shared_ptr<struct SmsTpdu> tpdu = gsmSmsMessage.CreateDataSubmitSmsTpdu( DataBasedSmsDelivery() local 485 std::shared_ptr<struct SmsTpdu> tpdu = nullptr; ResendDataDelivery() local 535 std::shared_ptr<struct SmsTpdu> tpdu = nullptr; SetPduInfo() local [all...] |
H A D | gsm_sms_tpdu_decode.cpp | 27 std::shared_ptr<GsmSmsParamCodec> paramCodec, std::shared_ptr<GsmSmsTpduCodec> tpdu) in GsmSmsTpduDecode() 31 tpdu_ = tpdu; in GsmSmsTpduDecode() 26 GsmSmsTpduDecode(std::shared_ptr<GsmUserDataPdu> dataCodec, std::shared_ptr<GsmSmsParamCodec> paramCodec, std::shared_ptr<GsmSmsTpduCodec> tpdu) GsmSmsTpduDecode() argument
|
H A D | gsm_sms_tpdu_encode.cpp | 29 std::shared_ptr<GsmSmsParamCodec> paramCodec, std::shared_ptr<GsmSmsTpduCodec> tpdu) in GsmSmsTpduEncode() 33 tpdu_ = tpdu; in GsmSmsTpduEncode() 28 GsmSmsTpduEncode(std::shared_ptr<GsmUserDataPdu> dataCodec, std::shared_ptr<GsmSmsParamCodec> paramCodec, std::shared_ptr<GsmSmsTpduCodec> tpdu) GsmSmsTpduEncode() argument
|
/base/telephony/sms_mms/services/sms/ |
H A D | gsm_cb_umts_codec.cpp | 170 const uint8_t *tpdu = dataPdu.data(); in Decode3g7Bit() local 178 uint16_t dataLen = tpdu[pageLenOffset]; in Decode3g7Bit() 188 &tpdu[offset], dataLen, 0x00, pageData, MAX_PAGE_PDU_LEN * SMS_BYTE_BIT / GSM_CODE_BIT); in Decode3g7Bit() 212 uint8_t *tpdu = dataPdu.data(); in Decode3gUCS2() local 225 if (tpdu[pageLenOffset] >= HEX_VALUE_02) { in Decode3gUCS2() 226 dataLen = tpdu[pageLenOffset] - HEX_VALUE_02; in Decode3gUCS2() 230 dataLen = tpdu[pageLenOffset]; in Decode3gUCS2() 235 messageRaw_.push_back(static_cast<char>(tpdu[position])); in Decode3gUCS2()
|
H A D | sms_sender.cpp | 474 std::shared_ptr<struct SmsTpdu> tpdu, uint8_t msgRef8bit, const std::string &desAddr, const std::string &scAddr, in DataBasedSmsDeliverySplitPage() 491 (void)memset_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, 0x00, MAX_USER_DATA_LEN + 1); in DataBasedSmsDeliverySplitPage() 496 int ret = memcpy_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, &cellsInfos[indexData].encodeData[0], in DataBasedSmsDeliverySplitPage() 503 DataBasedSmsDeliveryPacketSplitPage(gsmSmsMessage, tpdu, msgRef8bit, indexData, port, scAddr, sendCallback, in DataBasedSmsDeliverySplitPage() 508 void SmsSender::DataBasedSmsDeliveryPacketSplitPage(GsmSmsMessage &gsmSmsMessage, std::shared_ptr<struct SmsTpdu> tpdu, in DataBasedSmsDeliveryPacketSplitPage() argument 513 tpdu->data.submit.userData.length = static_cast<int>(cellsInfos[indexData].encodeData.size()); in DataBasedSmsDeliveryPacketSplitPage() 514 tpdu->data.submit.userData.data[cellsInfos[indexData].encodeData.size()] = 0; in DataBasedSmsDeliveryPacketSplitPage() 515 tpdu->data.submit.msgRef = msgRef8bit; in DataBasedSmsDeliveryPacketSplitPage() 533 tpdu->data.submit.userData.header[headerCnt].udhType = UDH_APP_PORT_16BIT; in DataBasedSmsDeliveryPacketSplitPage() 534 tpdu in DataBasedSmsDeliveryPacketSplitPage() 473 DataBasedSmsDeliverySplitPage(GsmSmsMessage &gsmSmsMessage, std::vector<struct SplitInfo> cellsInfos, std::shared_ptr<struct SmsTpdu> tpdu, uint8_t msgRef8bit, const std::string &desAddr, const std::string &scAddr, int32_t port, const sptr<ISendShortMessageCallback> &sendCallback, const sptr<IDeliveryShortMessageCallback> &deliveryCallback) DataBasedSmsDeliverySplitPage() argument [all...] |
/base/telephony/sms_mms/services/sms/cdma/ |
H A D | cdma_sms_sender.cpp | 160 std::shared_ptr<struct SmsTpdu> tpdu = in TextBasedSmsDeliveryViaIms() local 165 if (TpduNullOrSmsPageOverNormalOrSmsEncodeFail(cellsInfos, tpdu, unSentCellCount, hasCellFailed, sendCallback)) { in TextBasedSmsDeliveryViaIms() 173 SendSmsForEveryIndexer(i, cellsInfos, desAddr, scAddr, tpdu, gsmSmsMessage, unSentCellCount, hasCellFailed, in TextBasedSmsDeliveryViaIms() 180 const string &scAddr, std::shared_ptr<struct SmsTpdu> tpdu, GsmSmsMessage gsmSmsMessage, in SendSmsForEveryIndexer() 194 (void)memset_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, 0x00, MAX_USER_DATA_LEN + 1); in SendSmsForEveryIndexer() 199 if (memcpy_s(tpdu->data.submit.userData.data, MAX_USER_DATA_LEN + 1, &cellsInfos[i].encodeData[0], in SendSmsForEveryIndexer() 205 tpdu->data.submit.userData.length = cellsInfos[i].encodeData.size(); in SendSmsForEveryIndexer() 206 tpdu->data.submit.userData.data[cellsInfos[i].encodeData.size()] = 0; in SendSmsForEveryIndexer() 207 tpdu->data.submit.msgRef = msgRef8bit; in SendSmsForEveryIndexer() 230 tpdu in SendSmsForEveryIndexer() 179 SendSmsForEveryIndexer(int &i, std::vector<struct SplitInfo> cellsInfos, const string &desAddr, const string &scAddr, std::shared_ptr<struct SmsTpdu> tpdu, GsmSmsMessage gsmSmsMessage, shared_ptr<uint8_t> unSentCellCount, shared_ptr<bool> hasCellFailed, DataCodingScheme codingType, uint8_t msgRef8bit, const sptr<ISendShortMessageCallback> &sendCallback, const sptr<IDeliveryShortMessageCallback> &deliveryCallback, uint16_t dataBaseId, bool isMmsApp) SendSmsForEveryIndexer() argument 260 TpduNullOrSmsPageOverNormalOrSmsEncodeFail(std::vector<struct SplitInfo> cellsInfos, std::shared_ptr<struct SmsTpdu> tpdu, shared_ptr<uint8_t> unSentCellCount, shared_ptr<bool> hasCellFailed, const sptr<ISendShortMessageCallback> &sendCallback) TpduNullOrSmsPageOverNormalOrSmsEncodeFail() argument 428 std::shared_ptr<struct SmsTpdu> tpdu = gsmSmsMessage.CreateDataSubmitSmsTpdu( DataBasedSmsDeliveryViaIms() local [all...] |
/base/telephony/sms_mms/services/sms/include/gsm/ |
H A D | gsm_sms_tpdu_decode.h | 26 std::shared_ptr<GsmSmsTpduCodec> tpdu);
|
H A D | gsm_sms_tpdu_encode.h | 26 std::shared_ptr<GsmSmsTpduCodec> tpdu);
|
H A D | gsm_sms_sender.h | 67 std::shared_ptr<struct SmsTpdu> tpdu, GsmSmsMessage &gsmSmsMessage,
|
/base/telephony/sms_mms/services/sms/include/cdma/ |
H A D | cdma_sms_sender.h | 39 std::shared_ptr<struct SmsTpdu> tpdu, std::shared_ptr<uint8_t> unSentCellCount, 42 const std::string &scAddr, std::shared_ptr<struct SmsTpdu> tpdu, GsmSmsMessage gsmSmsMessage,
|
/base/telephony/sms_mms/services/sms/include/ |
H A D | sms_sender.h | 75 std::shared_ptr<struct SmsTpdu> tpdu, uint8_t msgRef8bit, const std::string &desAddr, const std::string &scAddr, 78 void DataBasedSmsDeliveryPacketSplitPage(GsmSmsMessage &gsmSmsMessage, std::shared_ptr<struct SmsTpdu> tpdu,
|
/base/telephony/sms_mms/test/fuzztest/gsmsmssender_fuzzer/ |
H A D | gsmsmssender_fuzzer.cpp | 165 std::shared_ptr<struct SmsTpdu> tpdu = in SendSmsTest() local 168 text, text, cellsInfos, codingType, isStatusReport, tpdu, msg, sendCallback, deliveryCallback, dataBaseId); in SendSmsTest()
|