Home
last modified time | relevance | path

Searched refs:pMsgText (Results 1 – 3 of 3) sorted by relevance

/base/telephony/sms_mms/test/gtest/
Dzero_branch_utils_test.cpp65 const uint8_t *pMsgText = (const uint8_t *)TEXT_SMS_CONTENT.c_str(); variable
67 …der::Instance().Utf8ToGsm7bit(pDestText, BUF_SIZE, const_cast<uint8_t *>(pMsgText), 0, langId), 0);
68 … EXPECT_GE(TextCoder::Instance().CdmaUtf8ToAuto(pDestText, 1, pMsgText, 1, DataCodingScheme), -1);
69 EXPECT_GE(TextCoder::Instance().GsmUtf8ToAuto(pDestText, 1, pMsgText, 1, DataCodingScheme), -1);
70 EXPECT_EQ(TextCoder::Instance().Utf8ToUcs2(pDestText, 1, pMsgText, -1), -1);
71 EXPECT_EQ(TextCoder::Instance().Utf8ToUcs2(pDestText, 0, pMsgText, -1), 0);
72 EXPECT_EQ(TextCoder::Instance().CdmaUtf8ToAuto(pDestText, 1, pMsgText, 0, DataCodingScheme), 0);
73 EXPECT_EQ(TextCoder::Instance().GsmUtf8ToAuto(pDestText, 1, pMsgText, 0, DataCodingScheme), 0);
74 EXPECT_EQ(TextCoder::Instance().Gsm7bitToUtf8(pDestText, 0, pMsgText, 0, msgLangInfo), 0);
75 EXPECT_GE(TextCoder::Instance().ShiftjisToUtf8(pDestText, 1, pMsgText, -1), 0);
[all …]
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_message.cpp236 const uint8_t *pMsgText = data; in CreateDataSubmitSmsTpdu() local
239 …pDestText, ((MAX_GSM_7BIT_DATA_LEN * MAX_SEGMENT_NUM) + 1), pMsgText, static_cast<int16_t>(dataLen… in CreateDataSubmitSmsTpdu()
690 const uint8_t *pMsgText = reinterpret_cast<const uint8_t *>(msgText.c_str()); in DecodeMessage() local
700 decodeData, maxDecodeLen, const_cast<uint8_t *>(pMsgText), dataLen, langId); in DecodeMessage()
708 if (memcpy_s(decodeData, maxDecodeLen, pMsgText, dataLen) != EOK) { in DecodeMessage()
716 … decodeLen = TextCoder::Instance().Utf8ToUcs2(decodeData, maxDecodeLen, pMsgText, dataLen); in DecodeMessage()
722 …decodeLen = TextCoder::Instance().GsmUtf8ToAuto(decodeData, maxDecodeLen, pMsgText, dataLen, encod… in DecodeMessage()
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_message.cpp538 const unsigned char *pMsgText = reinterpret_cast<const unsigned char *>(msgText.c_str()); in DecodeMessage() local
551 if (memcpy_s(decodeData, maxDecodeLen, pMsgText, dataLen) != EOK) { in DecodeMessage()
560 if (memcpy_s(decodeData, maxDecodeLen, pMsgText, dataLen) != EOK) { in DecodeMessage()
568 … decodeLen = TextCoder::Instance().Utf8ToUcs2(decodeData, maxDecodeLen, pMsgText, dataLen); in DecodeMessage()
573 …decodeLen = TextCoder::Instance().CdmaUtf8ToAuto(decodeData, maxDecodeLen, pMsgText, dataLen, codi… in DecodeMessage()