Home
last modified time | relevance | path

Searched refs:langId (Results 1 – 17 of 17) sorted by relevance

/base/telephony/sms_mms/services/sms/
Dsms_base_message.cpp263 …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 …]
Dsms_send_indexer.cpp328 void SmsSendIndexer::SetLangId(uint8_t langId) in SetLangId() argument
330 langId_ = langId; in SetLangId()
/base/telephony/sms_mms/services/sms/include/
Dsms_base_message.h53 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;
Dsms_pdu_code_type.h128 uint8_t langId; member
132 uint8_t langId; member
Dsms_send_indexer.h97 void SetLangId(uint8_t langId);
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_user_data_pdu.cpp204 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()
Dgsm_sms_message.cpp95 …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()
Dgsm_sms_sender.cpp118 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/
Dzero_branch_utils_test.cpp62 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);
Dzero_branch_sms_test.cpp218 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/
Dgsm_sms_message.h39 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/
Dtext_coder.h34 …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);
Dtext_coder.cpp241 …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/
Dcdma_sms_message.h77 const std::string &msgText, bool &bAbnormal, MSG_LANGUAGE_ID_T &langId);
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_sender.cpp199 headerCnt += gsmSmsMessage.SetHeaderLang(headerCnt, codingType, cellsInfos[i].langId); in SendSmsForEveryIndexer()
200 indexer->SetLangId(cellsInfos[i].langId); in SendSmsForEveryIndexer()
Dcdma_sms_message.cpp533 const std::string &msgText, bool &bAbnormal, MSG_LANGUAGE_ID_T &langId) in DecodeMessage() argument
/base/telephony/sms_mms/test/unittest/
Dcdma_sms_test.cpp172 …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()