Home
last modified time | relevance | path

Searched refs:pduLen (Results 1 – 10 of 10) sorted by relevance

/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_tpdu_codec.cpp38 bool GsmSmsTpduCodec::EncodeSmsPdu(std::shared_ptr<SmsTpdu> sourceData, char *pdu, uint16_t pduLen,… in EncodeSmsPdu() argument
40 if (pduLen == 0 || pduLen > MAX_ENCODE_LEN) { in EncodeSmsPdu()
74 if (!encodeRet || bufLen > pduLen) { in EncodeSmsPdu()
Dgsm_sms_param_codec.cpp80 uint8_t GsmSmsParamCodec::DecodeSmscPdu(const uint8_t *pTpdu, uint8_t pduLen, struct AddressNumber … in DecodeSmscPdu() argument
83 return codec.DecodeSmscPdu(pTpdu, pduLen, address); in DecodeSmscPdu()
Dgsm_sms_param_decode.cpp166 uint8_t GsmSmsParamDecode::DecodeSmscPdu(const uint8_t *pTpdu, uint8_t pduLen, struct AddressNumber… in DecodeSmscPdu() argument
168 if (pTpdu == nullptr || pduLen == 0) { in DecodeSmscPdu()
183 if (addrLen >= pduLen || offset >= pduLen) { in DecodeSmscPdu()
192 if (addrLen > SMS_MAX_ADDRESS_LEN || (offset + addrLen) >= pduLen) { in DecodeSmscPdu()
205 if (addrLen > SMS_MAX_ADDRESS_LEN || (offset + addrLen) >= pduLen) { in DecodeSmscPdu()
/base/telephony/sms_mms/services/sms/
Dgsm_cb_umts_codec.cpp167 uint16_t pduLen = cbPduBuffer_->GetSize() - cbPduBuffer_->GetCurPosition(); in Decode3g7Bit() local
172 if (pduLen <= pageLenOffset) { in Decode3g7Bit()
173 TELEPHONY_LOGE("CB Msg Size err [%{pulbic}d]", pduLen); in Decode3g7Bit()
209 uint16_t pduLen = cbPduBuffer_->GetSize() - cbPduBuffer_->GetCurPosition(); in Decode3gUCS2() local
216 if (pduLen <= pageLenOffset) { in Decode3gUCS2()
Dsms_wap_push_handler.cpp176 uint32_t pduLen = pdustr.length(); in DeocdeCheckIsBlock() local
178 std::unique_ptr<char[]> pdus = std::make_unique<char[]>(pduLen); in DeocdeCheckIsBlock()
179 if (pdus == nullptr || pduLen == 0) { in DeocdeCheckIsBlock()
183 if (memcpy_s(pdus.get(), pduLen, pdustr.data(), pduLen) != EOK) { in DeocdeCheckIsBlock()
189 bool result = mmsMsg.DecodeMsg(std::move(pdus), pduLen); in DeocdeCheckIsBlock()
/base/telephony/sms_mms/test/gtest/
Dzero_branch_cdma_sms_test.cpp186 uint16_t pduLen = pdu.length(); variable
195 EXPECT_TRUE(buffer->SetIndex(pduLen));
196 EXPECT_EQ(buffer->GetIndex(), pduLen);
197 EXPECT_FALSE(buffer->SetIndex(pduLen + 1));
198 EXPECT_EQ(buffer->GetIndex(), pduLen);
210 EXPECT_TRUE(buffer->SetIndex(pduLen));
211 EXPECT_EQ(buffer->GetIndex(), pduLen);
212 EXPECT_EQ(buffer->MoveForward(), pduLen);
213 EXPECT_EQ(buffer->MoveForward(), pduLen);
214 EXPECT_EQ(buffer->MoveBack(1), pduLen);
[all …]
/base/telephony/sms_mms/services/sms/include/gsm/
Dgsm_sms_tpdu_codec.h39 …bool EncodeSmsPdu(std::shared_ptr<SmsTpdu> sourceData, char *pTpdu, uint16_t pduLen, uint16_t &buf…
Dgsm_sms_param_codec.h39 uint8_t DecodeSmscPdu(const uint8_t *pTpdu, uint8_t pduLen, struct AddressNumber &address);
Dgsm_sms_param_decode.h30 uint8_t DecodeSmscPdu(const uint8_t *pTpdu, uint8_t pduLen, struct AddressNumber &desAddrObj);
/base/telephony/ril_adapter/services/hril/src/
Dhril_sms.cpp102 size_t pduLen = message.pdu.length(); in AddSimMessage() local
103 if (pduLen > MAX_PDU_LEN) { in AddSimMessage()