/base/telephony/sms_mms/services/sms/include/gsm/ |
H A D | gsm_sms_param_encode.h | 31 uint8_t EncodeSmscPdu(const char *pAddress, uint8_t *pEncodeAddr); 32 uint8_t EncodeSmscPdu(const struct AddressNumber *pAddress, uint8_t *pSMSC, uint8_t smscLen);
|
H A D | gsm_sms_param_codec.h | 38 void DecodeSmscPdu(uint8_t *pAddress, uint8_t addrLen, enum TypeOfNum ton, std::string &decodeAddr);
|
/base/telephony/sms_mms/test/fuzztest/gsmsmsparamcodec_fuzzer/ |
H A D | gsmsmsparamcodec_fuzzer.cpp | 196 AddressNumber *pAddress = new AddressNumber(); in EncodePduItemsTest() local 198 codec->EncodeAddressPdu(pAddress, addrParam); in EncodePduItemsTest() 206 pAddress->address[0] = data[0]; in EncodePduItemsTest() 207 codec->EncodeAddressPdu(pAddress, addrParam); in EncodePduItemsTest() 208 codec->EncodeSmscPdu(pAddress, decodeData, len); in EncodePduItemsTest()
|
/base/telephony/sms_mms/services/sms/gsm/ |
H A D | gsm_sms_message.cpp | 275 struct AddressNumber pAddress; in GetSubmitEncodeInfo() local 276 if (memset_s(&pAddress.address, sizeof(pAddress.address), 0x00, sizeof(pAddress.address)) != EOK) { in GetSubmitEncodeInfo() 280 if (sc.length() > sizeof(pAddress.address)) { in GetSubmitEncodeInfo() 283 if (memcpy_s(&pAddress.address, sizeof(pAddress.address), sc.data(), sc.length()) != EOK) { in GetSubmitEncodeInfo() 287 pAddress.address[sc.length()] = '\0'; in GetSubmitEncodeInfo() 289 pAddress.ton = TYPE_INTERNATIONAL; in GetSubmitEncodeInfo() 291 pAddress in GetSubmitEncodeInfo() [all...] |
H A D | gsm_sms_param_codec.cpp | 74 void GsmSmsParamCodec::DecodeSmscPdu(uint8_t *pAddress, uint8_t addrLen, enum TypeOfNum ton, std::string &decodeAddr) in DecodeSmscPdu() argument 77 codec.DecodeSmscPdu(pAddress, addrLen, ton, decodeAddr); in DecodeSmscPdu()
|
/base/telephony/sms_mms/test/gtest/ |
H A D | zero_branch_sms_test.cpp | 680 AddressNumber *pAddress = new AddressNumber(); in HWTEST_F() local 685 EXPECT_GT(gsmSmsParamCodec->EncodeAddressPdu(pAddress, paramStr), 0); in HWTEST_F() 686 pAddress->address[0] = '+'; in HWTEST_F() 688 EXPECT_GT(gsmSmsParamCodec->EncodeAddressPdu(pAddress, paramStr), 0); in HWTEST_F() 790 AddressNumber *pAddress = new AddressNumber(); in HWTEST_F() local 803 EXPECT_EQ(gsmSmsParamCodec->EncodeSmscPdu(pAddress, nullptr, 0), 0); in HWTEST_F() 804 EXPECT_EQ(gsmSmsParamCodec->EncodeSmscPdu(pAddress, pSMSC, 0), 0); in HWTEST_F() 806 EXPECT_EQ(gsmSmsParamCodec->DecodeAddressPdu(*decodeBuffer, pAddress), 0); in HWTEST_F() 823 AddressNumber *pAddress = new AddressNumber(); in HWTEST_F() local 826 EXPECT_TRUE(gsmSmsParamCodec->DecodeAddressPdu(*decodeBuffer, pAddress)); in HWTEST_F() 836 AddressNumber *pAddress = new AddressNumber(); HWTEST_F() local 849 AddressNumber *pAddress = new AddressNumber(); HWTEST_F() local 951 AddressNumber *pAddress = new AddressNumber(); HWTEST_F() local 982 AddressNumber *pAddress = new AddressNumber(); HWTEST_F() local 1013 AddressNumber *pAddress = new AddressNumber(); HWTEST_F() local 1043 AddressNumber *pAddress = new AddressNumber(); HWTEST_F() local 2209 AddressNumber *pAddress = new AddressNumber(); HWTEST_F() local [all...] |
H A D | zero_branch_sms_part_test.cpp | 643 AddressNumber *pAddress = new AddressNumber(); in HWTEST_F() local 646 EXPECT_FALSE(gsmSmsParamDecode->DecodeAddressAlphaNum(*buffer, pAddress, bcdLen, addrLen)); // third branch in HWTEST_F() 651 EXPECT_FALSE(gsmSmsParamDecode->DecodeAddressAlphaNum(*buffer, pAddress, bcdLen, addrLen)); // first branch in HWTEST_F() 847 AddressNumber *pAddress = new AddressNumber(); in HWTEST_F() local 851 memcpy_s(&pAddress->address, sizeof(pAddress->address), smsc.data(), smsc.length()); in HWTEST_F() 852 pAddress->address[smsc.length()] = '\0'; in HWTEST_F() 853 pAddress->ton = TYPE_INTERNATIONAL; in HWTEST_F() 854 pAddress->npi = SMS_NPI_ISDN; in HWTEST_F() 855 EXPECT_FALSE(gsmSmsParamCodec->EncodeAddressPdu(pAddress, paramSt in HWTEST_F() 871 AddressNumber *pAddress = new AddressNumber(); HWTEST_F() local [all...] |