/base/telephony/sms_mms/test/fuzztest/cdmasmsencode_fuzzer/ |
D | cdmasmsencode_fuzzer.cpp | 39 auto pduBuffer = pdu.GetPduBuffer(); in TeleserviceIdEncode() local 54 auto pduBuffer = pdu.GetPduBuffer(); in ServiceCategoryEncode() local 69 auto pduBuffer = pdu.GetPduBuffer(); in BearerReplyEncode() local 84 auto pduBuffer = pdu.GetPduBuffer(); in CauseCodesEncode() local 99 auto pduBuffer = pdu.GetPduBuffer(); in AddressParameterEncode() local 114 auto pduBuffer = pdu.GetPduBuffer(); in SubaddressEncode() local 129 auto pduBuffer = pdu.GetPduBuffer(); in BearerDataEncode() local 144 auto pduBuffer = pdu.GetPduBuffer(); in BaseParameterEncode() local 155 auto pduBuffer = pdu.GetPduBuffer(); in ReservedParameterEncode() local 170 auto pduBuffer = pdu.GetPduBuffer(); in MessageIdEncode() local [all …]
|
/base/telephony/sms_mms/services/sms/gsm/ |
D | gsm_sms_tpdu_codec.cpp | 56 SmsWriteBuffer pduBuffer; in EncodeSmsPdu() local 59 encodeRet = tpduEncode->EncodeSubmitPdu(pduBuffer, &(sourceData->data.submit)); in EncodeSmsPdu() 62 encodeRet = tpduEncode->EncodeDeliverPdu(pduBuffer, &(sourceData->data.deliver)); in EncodeSmsPdu() 65 … encodeRet = tpduEncode->EncodeDeliverReportPdu(pduBuffer, &(sourceData->data.deliverRep)); in EncodeSmsPdu() 68 encodeRet = tpduEncode->EncodeStatusReportPdu(pduBuffer, &(sourceData->data.statusRep)); in EncodeSmsPdu() 73 bufLen = pduBuffer.GetIndex(); in EncodeSmsPdu() 78 auto bufferRet = pduBuffer.GetPduBuffer(); in EncodeSmsPdu()
|
/base/telephony/sms_mms/test/gtest/ |
D | cdma_sms_gtest.cpp | 202 SmsWriteBuffer pduBuffer; variable 205 EXPECT_EQ(transportMessage->Encode(pduBuffer), true); 206 std::unique_ptr<std::vector<uint8_t>> pdu = pduBuffer.GetPduBuffer(); 222 SmsReadBuffer pduBuffer(pdu); 226 CdmaSmsTransportMessage::CreateTransportMessage(msg, pduBuffer); 229 EXPECT_EQ(transportMessage->Decode(pduBuffer), true); 280 SmsReadBuffer pduBuffer(pdu); 284 CdmaSmsTransportMessage::CreateTransportMessage(msg, pduBuffer); 287 EXPECT_TRUE(transportMessage->Decode(pduBuffer));
|
/base/telephony/sms_mms/services/sms/ |
D | sms_wap_push_handler.cpp | 66 std::unique_ptr<char[]> pduBuffer = nullptr; in DecodeWapPushPduData() local 67 pduBuffer = decodeBuffer.ReadDataBuffer(posData, dataLength); in DecodeWapPushPduData() 68 if (pduBuffer == nullptr) { in DecodeWapPushPduData() 72 hexWbXmlData_ = StringUtils::StringToHex(static_cast<char *>(pduBuffer.get()), dataLength); in DecodeWapPushPduData()
|
/base/telephony/sms_mms/services/mms/ |
D | mms_network_client.cpp | 141 std::unique_ptr<char[]> pduBuffer = std::make_unique<char[]>(fileLen); in GetMmsPduFromFile() local 142 if (!pduBuffer) { in GetMmsPduFromFile() 148 …int32_t totolLength = static_cast<int32_t>(fread(pduBuffer.get(), 1, CODE_BUFFER_MAX_SIZE, pFile)); in GetMmsPduFromFile() 154 strBuf += pduBuffer[i]; in GetMmsPduFromFile()
|
/base/telephony/sms_mms/test/fuzztest/smspdubuffer_fuzzer/ |
D | smspdubuffer_fuzzer.cpp | 88 auto pduBuffer = buffer->GetPduBuffer(); in WriteBuffer() local
|
/base/telephony/sms_mms/services/sms/cdma/ |
D | cdma_sms_sender.cpp | 353 SmsWriteBuffer pduBuffer; in EncodeMsgData() local 355 if (msg == nullptr || msg->IsEmpty() || !msg->Encode(pduBuffer)) { in EncodeMsgData() 366 std::unique_ptr<std::vector<uint8_t>> pdu = pduBuffer.GetPduBuffer(); in EncodeMsgData() 609 SmsWriteBuffer pduBuffer; in EncodeMsg() local 610 if (msg == nullptr || msg->IsEmpty() || !msg->Encode(pduBuffer)) { in EncodeMsg() 614 return pduBuffer.GetPduBuffer(); in EncodeMsg()
|
D | cdma_sms_message.cpp | 178 SmsReadBuffer pduBuffer(pdu); in PduAnalysis() local 180 CdmaSmsTransportMessage::CreateTransportMessage(*transMsg_, pduBuffer); in PduAnalysis() 181 …ansportMessage == nullptr || transportMessage->IsEmpty() || !transportMessage->Decode(pduBuffer)) { in PduAnalysis()
|
/base/telephony/sms_mms/test/unittest/ |
D | cdma_sms_test.cpp | 492 SmsWriteBuffer pduBuffer; in EncodeMsg() local 493 if (!transportMessage->Encode(pduBuffer)) { in EncodeMsg() 497 std::unique_ptr<std::vector<uint8_t>> pdu = pduBuffer.GetPduBuffer(); in EncodeMsg() 699 SmsReadBuffer pduBuffer(StringUtils::HexToString(pdu)); in TestDecodeMsg() local 700 …CdmaSmsTransportMessage> message = CdmaSmsTransportMessage::CreateTransportMessage(msg, pduBuffer); in TestDecodeMsg() 705 if (!message->Decode(pduBuffer)) { in TestDecodeMsg()
|
/base/telephony/sms_mms/frameworks/js/napi/src/ |
D | napi_mms.cpp | 1499 std::unique_ptr<char[]> pduBuffer = std::make_unique<char[]>(fileLen); in GetMmsPduFromFile() local 1500 if (!pduBuffer) { in GetMmsPduFromFile() 1506 int32_t totolLength = static_cast<int32_t>(fread(pduBuffer.get(), 1, MMS_PDU_MAX_SIZE, pFile)); in GetMmsPduFromFile() 1511 mmsPdu += pduBuffer[i]; in GetMmsPduFromFile()
|