Searched refs:pduStr (Results 1 – 6 of 6) sorted by relevance
/base/telephony/sms_mms/services/include/cdma/ |
D | cdma_sms_pdu_codec.h | 31 static bool CheckInvalidPDU(const std::vector<unsigned char> &pduStr); 32 … static int EncodeMsg(const struct SmsTransMsg &transMsg, unsigned char *pduStr, size_t pduStrLen); 33 static int DecodeMsg(const unsigned char *pduStr, int pduLen, struct SmsTransMsg &transMsg); 36 static int EncodeP2PMsg(const struct SmsTransP2PMsg &p2pMsg, unsigned char *pduStr); 37 static int EncodeAckMsg(const struct SmsTransAckMsg &ackMsg, unsigned char *pduStr); 38 static int EncodeCBMsg(const struct SmsTransBroadCastMsg &cbMsg, unsigned char *pduStr); 40 static int EncodeTelesvcMsg(const struct SmsTeleSvcMsg &svcMsg, unsigned char *pduStr); 42 …static int EncodeTelesvcCancelMsg(const struct SmsTeleSvcCancel &cancelMsg, unsigned char *pduStr); 43 static int EncodeTelesvcSubmitMsg(const struct SmsTeleSvcSubmit &sbMsg, unsigned char *pduStr); 44 … EncodeTelesvcDeliverReportMsg(const struct SmsTeleSvcDeliverReport &dRMsg, unsigned char *pduStr); [all …]
|
/base/telephony/sms_mms/services/cdma/ |
D | cdma_sms_pdu_codec.cpp | 150 bool CdmaSmsPduCodec::CheckInvalidPDU(const std::vector<unsigned char> &pduStr) in CheckInvalidPDU() argument 153 if (pduStr.size() < MIN_PDU_LEN) { in CheckInvalidPDU() 157 if (!(pduStr[offset] == SMS_TRANS_P2P_MSG || pduStr[offset] == SMS_TRANS_BROADCAST_MSG || in CheckInvalidPDU() 158 pduStr[offset] == SMS_TRANS_ACK_MSG)) { in CheckInvalidPDU() 159 TELEPHONY_LOGE("Invalid PDU : Message Type [%{public}2x]", pduStr[offset]); in CheckInvalidPDU() 163 while (offset < pduStr.size()) { in CheckInvalidPDU() 164 if (pduStr[offset] >= 0 && pduStr[offset] <= 0x08) { in CheckInvalidPDU() 165 offset += (pduStr[offset + 1] + HEX_BYTE_STEP); in CheckInvalidPDU() 167 TELEPHONY_LOGE("Invalid PDU : Parameter ID [%{public}2x]", pduStr[offset]); in CheckInvalidPDU() 171 if (offset != pduStr.size()) { in CheckInvalidPDU() [all …]
|
D | cdma_sms_sender.cpp | 105 uint8_t pduStr[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1] = { 0 }; in TextBasedSmsDelivery() local 106 … int len = CdmaSmsPduCodec::EncodeMsg(*transMsg.get(), pduStr, TAPI_NETTEXT_SMDATA_SIZE_MAX + 1); in TextBasedSmsDelivery() 107 std::vector<uint8_t> pdu(pduStr, pduStr + len); in TextBasedSmsDelivery() 343 uint8_t pduStr[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1] = { 0 }; in DataBasedSmsDelivery() local 344 int len = CdmaSmsPduCodec::EncodeMsg(*transMsg.get(), pduStr, TAPI_NETTEXT_SMDATA_SIZE_MAX + 1); in DataBasedSmsDelivery() 364 std::vector<uint8_t> pdu(pduStr, pduStr + len); in DataBasedSmsDelivery() 637 uint8_t pduStr[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1] = { 0 }; in ResendTextDelivery() local 638 int len = CdmaSmsPduCodec::EncodeMsg(*transMsg.get(), pduStr, TAPI_NETTEXT_SMDATA_SIZE_MAX + 1); in ResendTextDelivery() 639 std::vector<uint8_t> pdu(pduStr, pduStr + len); in ResendTextDelivery() 688 uint8_t pduStr[TAPI_NETTEXT_SMDATA_SIZE_MAX + 1] = { 0 }; in ResendDataDelivery() local [all …]
|
/base/telephony/sms_mms/frameworks/js/napi/src/ |
D | delivery_callback.cpp | 51 std::string pduStr_ = pContext->pduStr; in CompleteSmsDeliveryWork() 73 std::string pduStr = "pdu"; in CompleteSmsDeliveryWork() local 74 napi_set_named_property(env_, callbackValues[1], pduStr.c_str(), arrayValue); in CompleteSmsDeliveryWork() 113 pContext->pduStr = NapiUtil::ToUtf8(pdu); in OnSmsDeliveryResult()
|
/base/telephony/sms_mms/test/gtest/ |
D | sms_delivery_callback_gtest.cpp | 38 std::string pduStr = StringUtils::ToUtf8(pdu); in OnSmsDeliveryResult() local 39 int32_t deliveryPduLen = static_cast<int32_t>(pduStr.size()); in OnSmsDeliveryResult()
|
/base/telephony/sms_mms/frameworks/js/napi/include/ |
D | delivery_callback.h | 28 std::string pduStr; member
|