/base/telephony/sms_mms/services/sms/ |
D | sms_base_message.cpp | 263 …DataCodingScheme &codingScheme, int dataLen, bool bPortNum, MSG_LANGUAGE_ID_T &langId, int replyAd… in GetSegmentSize() argument 283 if (langId != MSG_ID_RESERVED_LANG) { in GetSegmentSize() 311 …DataCodingScheme &codingScheme, int dataLen, bool bPortNum, MSG_LANGUAGE_ID_T &langId, int replyAd… in GetMaxSegmentSize() argument 329 if (langId != MSG_ID_RESERVED_LANG) { in GetMaxSegmentSize() 409 MSG_LANGUAGE_ID_T langId = MSG_ID_RESERVED_LANG; in SplitMessage() local 411 … encodeLen = DecodeMessage(decodeData, sizeof(decodeData), codingType, msgText, bAbnormal, langId); in SplitMessage() 420 segSize = GetSegmentSize(codingType, encodeLen, bPortNum, langId, MAX_ADD_PARAM_LEN); in SplitMessage() 428 splitInfo.langId = langId; in SplitMessage() 457 MSG_LANGUAGE_ID_T langId = MSG_ID_RESERVED_LANG; in GetSmsSegmentsInfo() local 459 … encodeLen = DecodeMessage(decodeData, sizeof(decodeData), codingType, message, bAbnormal, langId); in GetSmsSegmentsInfo() [all …]
|
D | sms_send_indexer.cpp | 328 void SmsSendIndexer::SetLangId(uint8_t langId) in SetLangId() argument 330 langId_ = langId; in SetLangId()
|
/base/telephony/sms_mms/services/sms/include/ |
D | sms_base_message.h | 53 MSG_LANGUAGE_ID_T langId = 0; member 94 …DataCodingScheme &codingScheme, int dataLen, bool bPortNum, MSG_LANGUAGE_ID_T &langId, int replyAd… 101 …DataCodingScheme &codingScheme, int dataLen, bool bPortNum, MSG_LANGUAGE_ID_T &langId, int replyAd… 143 const std::string &msgText, bool &bAbnormal, MSG_LANGUAGE_ID_T &langId) = 0;
|
D | sms_pdu_code_type.h | 128 uint8_t langId; member 132 uint8_t langId; member
|
D | sms_send_indexer.h | 97 void SetLangId(uint8_t langId);
|
/base/telephony/sms_mms/services/sms/gsm/ |
D | gsm_user_data_pdu.cpp | 204 if (!buffer.WriteByte(header.udh.singleShift.langId)) { in EncodeHeader() 218 if (!buffer.WriteByte(header.udh.lockingShift.langId)) { in EncodeHeader() 666 pHeader.udh.singleShift.langId = oneByte; in DecodeHeaderSingleShift() 667 TELEPHONY_LOGI("singleShift.langId [%{public}02x]", pHeader.udh.singleShift.langId); in DecodeHeaderSingleShift() 685 pHeader.udh.lockingShift.langId = oneByte; in DecodeHeaderLockingShift() 686 TELEPHONY_LOGI("lockingShift.langId [%{public}02x]", pHeader.udh.lockingShift.langId); in DecodeHeaderLockingShift() 731 TELEPHONY_LOGI("singleShift.langId [%{public}02x]", pHeader.udh.singleShift.langId); in DebugDecodeHeader() 735 TELEPHONY_LOGI("lockingShift.langId [%{public}02x]", pHeader.udh.lockingShift.langId); in DebugDecodeHeader()
|
D | gsm_sms_message.cpp | 95 …essage::SetHeaderLang(int index, const DataCodingScheme codingType, const MSG_LANGUAGE_ID_T langId) in SetHeaderLang() argument 104 if (codingType == DATA_CODING_7BIT && langId != MSG_ID_RESERVED_LANG) { in SetHeaderLang() 106 smsTpdu_->data.submit.userData.header[index].udh.singleShift.langId = langId; in SetHeaderLang() 230 MSG_LANGUAGE_ID_T langId = MSG_ID_RESERVED_LANG; in CreateDataSubmitSmsTpdu() local 239 … ((MAX_GSM_7BIT_DATA_LEN * MAX_SEGMENT_NUM) + 1), pMsgText, static_cast<int16_t>(dataLen), langId); in CreateDataSubmitSmsTpdu() 674 const std::string &msgText, bool &bAbnormal, MSG_LANGUAGE_ID_T &langId) in DecodeMessage() argument 689 decodeData, maxDecodeLen, const_cast<uint8_t *>(pMsgText), dataLen, langId); in DecodeMessage()
|
D | gsm_sms_sender.cpp | 118 headerCnt += gsmSmsMessage.SetHeaderLang(headerCnt, codingType, cellsInfos[i].langId); in TextBasedSmsDelivery() 119 indexer->SetLangId(cellsInfos[i].langId); in TextBasedSmsDelivery() 239 MSG_LANGUAGE_ID_T langId = MSG_ID_RESERVED_LANG; in DataBasedSmsDeliveryPacketSplitPage() local 240 headerCnt += gsmSmsMessage.SetHeaderLang(headerCnt, pCodingType, langId); in DataBasedSmsDeliveryPacketSplitPage()
|
/base/telephony/sms_mms/test/gtest/ |
D | zero_branch_utils_test.cpp | 62 MSG_LANGUAGE_ID_T langId = 0; variable 67 …der::Instance().Utf8ToGsm7bit(pDestText, BUF_SIZE, const_cast<uint8_t *>(pMsgText), 0, langId), 0); 81 EXPECT_EQ(TextCoder::Instance().Ucs2ToGsm7bit(pDestText, 0, pMsgText, 0, langId), -1); 82 EXPECT_GT(TextCoder::Instance().Ucs2ToGsm7bit(pDestText, 1, pMsgText, TEXT_LENGTH, langId), 0);
|
D | zero_branch_sms_test.cpp | 218 unsigned char langId = 0; variable 226 EXPECT_EQ(gsmSmsMessage->SetHeaderLang(1, DataCodingScheme::DATA_CODING_UCS2, langId), 0); 239 langId = 1; 240 EXPECT_EQ(gsmSmsMessage->SetHeaderLang(1, DataCodingScheme::DATA_CODING_7BIT, langId), 1); 952 MSG_LANGUAGE_ID_T langId = 1; variable 954 EXPECT_GT(smsBaseMessage->GetMaxSegmentSize(codingType, 1, true, langId, 1), 0); 955 EXPECT_GT(smsBaseMessage->GetSegmentSize(codingType, 1, true, langId, 1), 0); 957 EXPECT_GT(smsBaseMessage->GetMaxSegmentSize(codingType, 1, true, langId, 1), 0); 958 EXPECT_GT(smsBaseMessage->GetSegmentSize(codingType, 1, true, langId, 1), 0); 960 EXPECT_GT(smsBaseMessage->GetMaxSegmentSize(codingType, 1, true, langId, 1), 0); [all …]
|
/base/telephony/sms_mms/services/sms/include/gsm/ |
D | gsm_sms_message.h | 39 int SetHeaderLang(int index, const DataCodingScheme codingType, const MSG_LANGUAGE_ID_T langId); 91 const std::string &msgText, bool &bAbnormal, MSG_LANGUAGE_ID_T &langId);
|
/base/telephony/sms_mms/utils/ |
D | text_coder.h | 34 …sm7bit(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength, MSG_LANGUAGE_ID_T &langId); 46 …sm7bit(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength, MSG_LANGUAGE_ID_T &langId);
|
D | text_coder.cpp | 241 …Gsm7bit(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength, MSG_LANGUAGE_ID_T &langId) in Utf8ToGsm7bit() argument 270 … return Ucs2ToGsm7bit(dest, maxLength, reinterpret_cast<uint8_t *>(pUcs2Text), ucs2Length, langId); in Utf8ToGsm7bit() 511 …Gsm7bit(uint8_t *dest, int maxLength, const uint8_t *src, int srcLength, MSG_LANGUAGE_ID_T &langId) in Ucs2ToGsm7bit() argument 535 langId = MSG_ID_TURKISH_LANG; in Ucs2ToGsm7bit() 540 langId = MSG_ID_SPANISH_LANG; in Ucs2ToGsm7bit() 545 langId = MSG_ID_PORTUGUESE_LANG; in Ucs2ToGsm7bit()
|
/base/telephony/sms_mms/services/sms/include/cdma/ |
D | cdma_sms_message.h | 77 const std::string &msgText, bool &bAbnormal, MSG_LANGUAGE_ID_T &langId);
|
/base/telephony/sms_mms/services/sms/cdma/ |
D | cdma_sms_sender.cpp | 199 headerCnt += gsmSmsMessage.SetHeaderLang(headerCnt, codingType, cellsInfos[i].langId); in SendSmsForEveryIndexer() 200 indexer->SetLangId(cellsInfos[i].langId); in SendSmsForEveryIndexer()
|
D | cdma_sms_message.cpp | 533 const std::string &msgText, bool &bAbnormal, MSG_LANGUAGE_ID_T &langId) in DecodeMessage() argument
|
/base/telephony/sms_mms/test/unittest/ |
D | cdma_sms_test.cpp | 172 …cout << s << "singleShift.langId [" << static_cast<int>(header.udh.singleShift.langId) << "]" << e… in PrintHeader() 177 …cout << s << "lockingShift.langId [" << static_cast<int>(header.udh.lockingShift.langId) << "]" <<… in PrintHeader()
|