/ohos5.0/base/telephony/sms_mms/services/sms/cdma/ |
H A D | cdma_sms_sub_parameter.cpp | 33 if (pdu.IsEmpty() || !pdu.ReadByte(id) || !pdu.ReadByte(len_) || id != id_) { in IsInvalidPdu() 52 if (pdu.WriteByte(id_) && pdu.WriteByte(len_) && pdu.WriteByte(data_)) { in Encode() 189 …if (!pdu.ReadByte(v1) || !pdu.ReadByte(v2) || !pdu.ReadByte(v3) || !pdu.ReadByte(v4) || !pdu.ReadB… in Decode() 331 …if (!pdu.ReadBits(v1, BIT1) || !pdu.ReadBits(v2, BIT1) || !pdu.ReadBits(v3, BIT1) || !pdu.ReadBits… in Decode() 350 if (pdu.IsEmpty() || !pdu.WriteByte(id_)) { in Encode() 882 …if (!pdu.ReadBits(v1, BIT8) || !pdu.ReadBits(v2, BIT8) || !pdu.ReadBits(v3, BIT4) || !pdu.ReadBits… in DecodeType1Data() 1160 if (pdu.WriteByte(id_) && pdu.WriteByte(len_) && pdu.WriteWord(index_)) { in Encode() 1295 …if (DecodeHeader(pdu) && DecodeVoiceMail(pdu) && DecodeAccessNumber(pdu) && DecodeCallingPartyNumb… in Decode() 1310 …if (!pdu.ReadBits(v1, BIT2) || !pdu.ReadBits(v2, BIT1) || !pdu.ReadBits(v3, BIT1) || !pdu.ReadBits… in DecodeHeader() 1338 …if (!pdu.ReadBits(v1, BIT1) || !pdu.ReadBits(v2, BIT1) || !pdu.ReadBits(v3, BIT1) || !pdu.ReadBits… in DecodeVoiceMail() [all …]
|
H A D | cdma_sms_parameter_record.cpp | 27 if (pdu.IsEmpty() || !pdu.ReadByte(id) || !pdu.ReadByte(len_) || id != id_) { in IsInvalidPdu() 42 if (pdu.IsEmpty()) { in Encode() 47 if (pdu.WriteByte(id_) && pdu.WriteByte(len_) && pdu.WriteWord(teleserviceId_)) { in Encode() 77 if (pdu.WriteByte(id_) && pdu.WriteByte(len_) && pdu.WriteWord(serviceCat_)) { in Encode() 107 if (pdu.WriteByte(id_) && pdu.WriteByte(len_) && pdu.WriteBits(replySeq_, BIT6)) { in Encode() 108 pdu.SkipBits(); in Encode() 191 pdu.SkipBits(); in Decode() 251 if (!pdu.ReadBits(v1) || !pdu.ReadBits(v2)) { in Decode() 271 pdu.SkipBits(); in Decode() 392 if (!pdu.ReadBits(v1, BIT3) || !pdu.ReadBits(v2) || !pdu.ReadBits(v3, BIT8)) { in Decode() [all …]
|
H A D | cdma_sms_transport_message.cpp | 35 if (pdu.IsEmpty()) { in Encode() 44 pdu.SetIndex(0); in Encode() 45 if (!pdu.WriteByte(type_)) { in Encode() 60 if (pdu.IsEmpty()) { in Decode() 69 pdu.SetIndex(0); in Decode() 70 if (!pdu.ReadByte(type_)) { in Decode() 113 if (pdu.IsEmpty()) { in CreateTransportMessage() 119 if (!pdu.ReadByte(type)) { in CreateTransportMessage() 165 if (pdu.IsEmpty()) { in CdmaSmsP2pMessage() 208 if (pdu.IsEmpty()) { in CdmaSmsBroadcastMessage() [all …]
|
H A D | cdma_sms_teleservice_message.cpp | 32 if (pdu.IsEmpty()) { in Encode() 52 if (pdu.IsEmpty()) { in Decode() 72 if (pdu.IsEmpty()) { in GetMessageType() 80 while (pdu.ReadByte(id)) { in GetMessageType() 84 pdu.MoveBack(); in GetMessageType() 94 pdu.MoveForward(len); in GetMessageType() 130 if (pdu.IsEmpty()) { in CdmaSmsSubmitMessage() 201 if (pdu.IsEmpty()) { in CdmaSmsDeliverMessage() 261 if (pdu.IsEmpty()) { in CdmaSmsDeliveryAck() 288 if (pdu.IsEmpty()) { in CdmaSmsUserAck() [all …]
|
/ohos5.0/base/telephony/sms_mms/services/sms/include/cdma/ |
H A D | cdma_sms_sub_parameter.h | 29 virtual bool Decode(SmsReadBuffer &pdu) = 0; 71 bool Decode(SmsReadBuffer &pdu) override; 81 bool Decode(SmsReadBuffer &pdu) override; 88 bool Decode(SmsReadBuffer &pdu) override; 100 bool Decode(SmsReadBuffer &pdu) override; 149 bool EncodeGsm7Bit(SmsWriteBuffer &pdu); 150 bool EncodeUnicode(SmsWriteBuffer &pdu); 157 bool Decode8BitData(SmsReadBuffer &pdu); 186 bool DecodeData(SmsReadBuffer &pdu); 190 bool DecodeAbsTime(SmsReadBuffer &pdu); [all …]
|
H A D | cdma_sms_parameter_record.h | 30 virtual bool Decode(SmsReadBuffer &pdu) = 0; 56 bool Encode(SmsWriteBuffer &pdu) override; 57 bool Decode(SmsReadBuffer &pdu) override; 66 bool Encode(SmsWriteBuffer &pdu) override; 67 bool Decode(SmsReadBuffer &pdu) override; 77 bool Decode(SmsReadBuffer &pdu) override; 87 bool Decode(SmsReadBuffer &pdu) override; 98 bool Decode(SmsReadBuffer &pdu) override; 101 bool EncodeAddress(SmsWriteBuffer &pdu); 102 bool DecodeAddress(SmsReadBuffer &pdu); [all …]
|
H A D | cdma_sms_teleservice_message.h | 31 virtual bool Encode(SmsWriteBuffer &pdu); 32 virtual bool Decode(SmsReadBuffer &pdu); 33 static uint8_t GetMessageType(SmsReadBuffer &pdu); 56 CdmaSmsSubmitMessage(TeleserviceSubmit &msg, SmsReadBuffer &pdu); 71 CdmaSmsDeliverMessage(TeleserviceDeliver &msg, SmsReadBuffer &pdu, bool isCMAS = false); 78 CdmaSmsDeliveryAck(TeleserviceDeliverAck &msg, SmsReadBuffer &pdu); 83 CdmaSmsUserAck(TeleserviceUserAck &msg, SmsReadBuffer &pdu); 88 CdmaSmsReadAck(TeleserviceReadAck &msg, SmsReadBuffer &pdu);
|
H A D | cdma_sms_transport_message.h | 32 virtual bool Encode(SmsWriteBuffer &pdu); 33 virtual bool Decode(SmsReadBuffer &pdu); 37 …que_ptr<CdmaSmsTransportMessage> CreateTransportMessage(CdmaTransportMsg &msg, SmsReadBuffer &pdu); 48 CdmaSmsP2pMessage(CdmaP2PMsg &msg, SmsReadBuffer &pdu); 54 CdmaSmsBroadcastMessage(CdmaBroadCastMsg &msg, SmsReadBuffer &pdu); 60 CdmaSmsAckMessage(CdmaAckMsg &msg, SmsReadBuffer &pdu);
|
/ohos5.0/base/telephony/sms_mms/test/fuzztest/cdmasmsencode_fuzzer/ |
H A D | cdmasmsencode_fuzzer.cpp | 38 SmsWriteBuffer pdu; in TeleserviceIdEncode() local 53 SmsWriteBuffer pdu; in ServiceCategoryEncode() local 68 SmsWriteBuffer pdu; in BearerReplyEncode() local 83 SmsWriteBuffer pdu; in CauseCodesEncode() local 100 SmsWriteBuffer pdu; in AddressParameterEncode() local 116 SmsWriteBuffer pdu; in SubaddressEncode() local 131 SmsWriteBuffer pdu; in BearerDataEncode() local 146 SmsWriteBuffer pdu; in BaseParameterEncode() local 157 SmsWriteBuffer pdu; in ReservedParameterEncode() local 173 SmsWriteBuffer pdu; in MessageIdEncode() local [all …]
|
/ohos5.0/base/telephony/sms_mms/test/unittest/ |
H A D | sms_gsm_message_test.cpp | 122 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in Test7BitSubmitSms() 140 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in TestUcs2SubmitSms() 152 std::vector<unsigned char> pdu = in Test7BitDeliverySms() local 159 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in Test7BitDeliverySms() 171 std::vector<unsigned char> pdu = in TestUcs2DeliverySms() local 178 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in TestUcs2DeliverySms() 190 std::vector<unsigned char> pdu = in TestStatusReportSms() local 198 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in TestStatusReportSms() 221 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in TestMultiPageUcs2Sms() 244 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in TestWapPushSms() [all …]
|
/ohos5.0/base/telephony/sms_mms/test/fuzztest/gsmsmsparamcodec_fuzzer/ |
H A D | gsmsmsparamcodec_fuzzer.cpp | 54 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in T7BitSubmitSms() 65 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in Ucs2SubmitSms() 71 std::vector<unsigned char> pdu = in T7BitDeliverySms() local 77 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in T7BitDeliverySms() 83 std::vector<unsigned char> pdu = in Ucs2DeliverySms() local 89 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in Ucs2DeliverySms() 95 std::vector<unsigned char> pdu = in StatusReportSms() local 102 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in StatusReportSms() 118 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in MultiPageUcs2Sms() 134 ShortMessage::CreateMessage(pdu, u"3gpp", *message); in WapPushSms() [all …]
|
/ohos5.0/base/telephony/sms_mms/test/fuzztest/cdmasmsdecode_fuzzer/ |
H A D | cdmasmsdecode_fuzzer.cpp | 40 parameter->Decode(pdu); in TeleserviceIdDecode() 62 parameter->Decode(pdu); in ServiceCategoryDecode() 84 parameter->Decode(pdu); in BearerReplyDecode() 106 parameter->Decode(pdu); in CauseCodesDecode() 128 parameter->Decode(pdu); in AddressParameterDecode() 150 parameter->Decode(pdu); in SubaddressDecode() 166 pdu.MoveForward(); in BearerDataDecode() 167 pdu.MoveForward(); in BearerDataDecode() 173 pdu.SetIndex(0); in BearerDataDecode() 174 parameter->Decode(pdu); in BearerDataDecode() [all …]
|
/ohos5.0/base/telephony/ril_adapter/services/hril/src/ |
H A D | hril_sms.cpp | 152 CopyToCharPoint(&msg.pdu, message.pdu); in AddSimMessage() 155 SafeFrees(msg.pdu); in AddSimMessage() 162 SafeFrees(msg.pdu, msg.smsc); in AddSimMessage() 194 CopyToCharPoint(&msg.pdu, message.pdu); in UpdateSimMessage() 197 SafeFrees(msg.pdu); in UpdateSimMessage() 204 SafeFrees(msg.pdu, msg.smsc); in UpdateSimMessage() 501 len = message.pdu.size() + 1; in UpdateCdmaSimMessage() 506 CopyToCharPoint(&msg.pdu, message.pdu); in UpdateCdmaSimMessage() 510 SafeFrees(msg.pdu); in UpdateCdmaSimMessage() 775 uint8_t *bytes = ConvertHexStringToBytes(message->pdu, strlen(message->pdu)); in NewCdmaSmsNotify() [all …]
|
/ohos5.0/base/telephony/core_service/services/tel_ril/src/ |
H A D | tel_ril_sms.cpp | 32 msg.pdu = pdu.empty() ? "" : pdu; in ConstructGsmSendSmsRequestLinkList() 37 std::string &smsPdu, std::string &pdu) in ConstructSmsMessageIOInfoRequestLinkList() argument 41 msg.pdu = pdu.empty() ? "" : pdu; in ConstructSmsMessageIOInfoRequestLinkList() 54 cdmaSmsMessageInfo.smscPdu = pdu; in SendCdmaSms() 147 mSmsMessageIOInfo.pdu = pdu; in AddCdmaSimMessage() 162 smsMessageIOInfo.pdu = pdu; in UpdateCdmaSimMessage() 229 if (smsMessageInfo->pdu.empty()) { in NewCdmaSmsNotify() 373 sendSmsResultInfo->pdu = iSendSmsResultInfo.pdu; in BuildSendSmsResultInfo() 408 for (auto pduInfo : iSmsMessageInfo.pdu) { in BuildSmsMessageInfo() 409 smsMessageInfo->pdu.push_back(pduInfo); in BuildSmsMessageInfo() [all …]
|
/ohos5.0/docs/zh-cn/device-dev/reference/hdi-apis/ril/ |
H A D | _c_b_config_report_info_v10.md | 25 | int [length](#length) | pdu字节数 | 28 | String [pdu](#pdu) | 协议数据单元 | 75 pdu字节数 108 ### pdu subsection 111 String CBConfigReportInfo::pdu
|
H A D | _c_b_config_report_info_v11.md | 25 | int [length](#length) | pdu字节数 | 28 | String [pdu](#pdu) | 协议数据单元 | 75 pdu字节数 108 ### pdu subsection 111 String CBConfigReportInfo::pdu
|
H A D | _sms_message_info_v10.md | 22 | List< unsigned char > [pdu](#pdu) | 协议数据单元 | 42 ### pdu subsection 45 List<unsigned char> SmsMessageInfo::pdu
|
H A D | _sms_message_info_v11.md | 22 | List< unsigned char > [pdu](#pdu) | 协议数据单元 | 42 ### pdu subsection 45 List<unsigned char> SmsMessageInfo::pdu
|
H A D | _mode_data_v11.md | 23 | String [pdu](#pdu) | 协议数据单元 | 41 ### pdu subsection 44 String ModeData::pdu
|
H A D | _send_sms_result_info_v10.md | 21 | String [pdu](#pdu) | 协议数据单元 | 59 ### pdu subsection 62 String SendSmsResultInfo::pdu
|
/ohos5.0/base/telephony/core_service/interfaces/innerkits/include/ |
H A D | tel_ril_sms_parcel.h | 35 std::string pdu = ""; member 66 std::string pdu = ""; member 182 std::string pdu = ""; member 200 std::vector<uint8_t> pdu {}; 220 std::string pdu = ""; member 234 std::string pdu = ""; member 285 std::string pdu = ""; member
|
/ohos5.0/base/telephony/sms_mms/frameworks/native/sms/src/ |
H A D | short_message.cpp | 200 std::vector<unsigned char> &pdu, std::u16string specification, ShortMessage &messageObj) in CreateMessage() argument 202 if (pdu.size() <= 0) { in CreateMessage() 208 int32_t errorCode = client->CreateMessage(StringUtils::StringToHex(pdu), indicates, messageObj); in CreateMessage() 216 ShortMessage ShortMessage::CreateIccMessage(std::vector<unsigned char> &pdu, std::string specificat… in CreateIccMessage() argument 219 if (pdu.size() <= MIN_ICC_PDU_LEN) { in CreateIccMessage() 223 unsigned char simStatus = pdu.at(0); in CreateIccMessage() 228 std::vector<unsigned char> pduTemp(pdu.begin() + MIN_ICC_PDU_LEN, pdu.end()); in CreateIccMessage()
|
/ohos5.0/base/telephony/sms_mms/services/sms/ |
H A D | sms_receive_indexer.cpp | 40 SmsReceiveIndexer::SmsReceiveIndexer(const std::vector<uint8_t> &pdu, int64_t timestamp, int16_t de… in SmsReceiveIndexer() argument 43 …: pdu_(pdu), timestamp_(timestamp), destPort_(destPort), isCdma_(isCdma), isCdmaWapPdu_(isCdmaWapP… in SmsReceiveIndexer() 48 SmsReceiveIndexer::SmsReceiveIndexer(const std::vector<uint8_t> &pdu, int64_t timestamp, int16_t de… in SmsReceiveIndexer() argument 50 …: pdu_(pdu), timestamp_(timestamp), destPort_(destPort), isCdma_(isCdma), isCdmaWapPdu_(isCdmaWapP… in SmsReceiveIndexer() 187 void SmsReceiveIndexer::SetPdu(const std::vector<uint8_t> &pdu) in SetPdu() argument 189 pdu_ = pdu; in SetPdu() 192 void SmsReceiveIndexer::SetPdu(const std::vector<uint8_t> &&pdu) in SetPdu() argument 194 pdu_ = std::forward<const std::vector<uint8_t>>(pdu); in SetPdu()
|
/ohos5.0/base/telephony/sms_mms/test/gtest/ |
H A D | zero_branch_cb_test.cpp | 65 std::vector<unsigned char> pdu; variable 67 pdu.push_back(data); 69 cbCodec->PduAnalysis(pdu); 101 std::vector<unsigned char> pdu; variable 103 pdu.push_back(data); 105 cbCodec->PduAnalysis(pdu); 256 std::vector<unsigned char> pdu; variable 257 pdu.push_back(data); 258 cbMsg->PduAnalysis(pdu); 558 pdu.push_back(data); [all …]
|
H A D | cdma_sms_gtest.cpp | 120 cdmaSmsMessage.CreateMessage(pdu); 121 cdmaSmsMessage.PduAnalysis(pdu); 244 std::string pdu = StringUtils::HexToString(pduHex); variable 289 EXPECT_NE(pdu, nullptr); 290 EXPECT_GT(pdu->size(), static_cast<uint32_t>(0)); 304 SmsReadBuffer pduBuffer(pdu); 362 SmsReadBuffer pduBuffer(pdu); 395 void CheckDeliverUserData(string pdu, string userData) in CheckDeliverUserData() argument 400 ss << StringUtils::HexToString(pdu); in CheckDeliverUserData() 412 void CheckSubmitUserData(string pdu, string userData) in CheckSubmitUserData() argument [all …]
|