Home
last modified time | relevance | path

Searched refs:pAddress (Results 1 – 5 of 5) sorted by relevance

/base/telephony/sms_mms/services/sms/include/gsm/
Dgsm_sms_param_encode.h31 uint8_t EncodeSmscPdu(const char *pAddress, uint8_t *pEncodeAddr);
32 uint8_t EncodeSmscPdu(const struct AddressNumber *pAddress, uint8_t *pSMSC, uint8_t smscLen);
Dgsm_sms_param_codec.h38 …void DecodeSmscPdu(uint8_t *pAddress, uint8_t addrLen, enum TypeOfNum ton, std::string &decodeAddr…
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_param_codec.cpp74 void GsmSmsParamCodec::DecodeSmscPdu(uint8_t *pAddress, uint8_t addrLen, enum TypeOfNum ton, std::s… in DecodeSmscPdu() argument
77 codec.DecodeSmscPdu(pAddress, addrLen, ton, decodeAddr); in DecodeSmscPdu()
Dgsm_sms_message.cpp278 struct AddressNumber pAddress; in GetSubmitEncodeInfo() local
279 …if (memset_s(&pAddress.address, sizeof(pAddress.address), 0x00, sizeof(pAddress.address)) != EOK) { in GetSubmitEncodeInfo()
283 if (sc.length() > sizeof(pAddress.address)) { in GetSubmitEncodeInfo()
286 if (memcpy_s(&pAddress.address, sizeof(pAddress.address), sc.data(), sc.length()) != EOK) { in GetSubmitEncodeInfo()
290 pAddress.address[sc.length()] = '\0'; in GetSubmitEncodeInfo()
292 pAddress.ton = TYPE_INTERNATIONAL; in GetSubmitEncodeInfo()
294 pAddress.ton = TYPE_NATIONAL; in GetSubmitEncodeInfo()
296 pAddress.npi = SMS_NPI_ISDN; /* app cannot set this value */ in GetSubmitEncodeInfo()
298 encodeSmscLen = codec.EncodeSmscPdu(&pAddress, encodeSmscAddr, sizeof(encodeSmscAddr)); in GetSubmitEncodeInfo()
/base/telephony/sms_mms/test/gtest/
Dzero_branch_sms_test.cpp502 AddressNumber *pAddress = new AddressNumber(); variable
507 EXPECT_GT(gsmSmsParamCodec->EncodeAddressPdu(pAddress, paramStr), 0);
508 pAddress->address[0] = '+';
510 EXPECT_GT(gsmSmsParamCodec->EncodeAddressPdu(pAddress, paramStr), 0);
612 AddressNumber *pAddress = new AddressNumber(); variable
625 EXPECT_EQ(gsmSmsParamCodec->EncodeSmscPdu(pAddress, nullptr, 0), 0);
626 EXPECT_EQ(gsmSmsParamCodec->EncodeSmscPdu(pAddress, pSMSC, 0), 0);
628 EXPECT_EQ(gsmSmsParamCodec->DecodeAddressPdu(*decodeBuffer, pAddress), 0);