/base/telephony/sms_mms/test/fuzztest/textbasedsmsdelivery_fuzzer/ |
D | textbasedsmsdelivery_fuzzer.cpp | 48 std::string desAddr(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI() 63 … smsInterfaceManager->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); in DoSomethingInterestingWithMyAPI() 70 smsSendManager->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); in DoSomethingInterestingWithMyAPI() 73 …smsSendManager->gsmSmsSender_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryC… in DoSomethingInterestingWithMyAPI() 76 …smsSendManager->cdmaSmsSender_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, delivery… in DoSomethingInterestingWithMyAPI()
|
/base/telephony/sms_mms/test/fuzztest/databasedsmsdelivery_fuzzer/ |
D | databasedsmsdelivery_fuzzer.cpp | 48 std::string desAddr(reinterpret_cast<const char *>(data), size); in DoSomethingInterestingWithMyAPI() 63 …smsInterfaceManager->DataBasedSmsDelivery(desAddr, scAddr, port, data, size, sendCallback, deliver… in DoSomethingInterestingWithMyAPI() 68 …smsSendManager->DataBasedSmsDelivery(desAddr, scAddr, port, data, size, sendCallback, deliveryCall… in DoSomethingInterestingWithMyAPI() 72 desAddr, scAddr, port, data, size, sendCallback, deliveryCallback); in DoSomethingInterestingWithMyAPI() 76 desAddr, scAddr, port, data, size, sendCallback, deliveryCallback); in DoSomethingInterestingWithMyAPI()
|
/base/telephony/sms_mms/test/gtest/ |
D | zero_branch_sms_test.cpp | 145 const std::string desAddr = "qwe"; variable 149 cdmaSmsSender->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); 150 … cdmaSmsSender->TextBasedSmsDeliveryViaIms(desAddr, scAddr, text, sendCallback, deliveryCallback); 155 …smsIndexer = std::make_shared<SmsSendIndexer>(desAddr, scAddr, text, sendCallback, deliveryCallbac… 219 std::string desAddr = ""; variable 233 desAddr = "+SetSmsTpduDestAddress"; 234 EXPECT_EQ(gsmSmsMessage->SetSmsTpduDestAddress(tPdu, desAddr), 22); 235 desAddr = "SetSmsTpduDestAddress"; 236 EXPECT_EQ(gsmSmsMessage->SetSmsTpduDestAddress(tPdu, desAddr), 21); 238 EXPECT_EQ(gsmSmsMessage->SetSmsTpduDestAddress(tPdu, desAddr), 0); [all …]
|
/base/telephony/sms_mms/services/sms/include/cdma/ |
D | cdma_sms_sender.h | 33 …void TextBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, const std::string… 36 …void TextBasedSmsDeliveryViaIms(const std::string &desAddr, const std::string &scAddr, const std::… 42 …endSmsForEveryIndexer(int &i, std::vector<struct SplitInfo> cellsInfos, const std::string &desAddr, 50 …void DataBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, int32_t port, con… 53 …void DataBasedSmsDeliveryViaIms(const std::string &desAddr, const std::string &scAddr, int32_t por…
|
/base/telephony/sms_mms/services/sms/ |
D | sms_interface_stub.cpp | 150 u16string desAddr = data.ReadString16(); in OnSendSmsTextRequest() local 167 RemoveSpacesInDesAddr(desAddr); in OnSendSmsTextRequest() 170 int32_t result = SendMessage(slotId, desAddr, scAddr, text, sendCallback, deliveryCallback); in OnSendSmsTextRequest() 172 …dSingleton<SmsService>::GetInstance()->InsertSessionAndDetail(slotId, StringUtils::ToUtf8(desAddr), in OnSendSmsTextRequest() 183 u16string desAddr = data.ReadString16(); in OnSendSmsDataRequest() local 201 RemoveSpacesInDesAddr(desAddr); in OnSendSmsDataRequest() 202 …int32_t result = SendMessage(slotId, desAddr, scAddr, port, buffer, dataLen, sendCallback, deliver… in OnSendSmsDataRequest() 206 void SmsInterfaceStub::RemoveSpacesInDesAddr(std::u16string &desAddr) in RemoveSpacesInDesAddr() argument 209 if (desAddr.empty() || desAddr.size() >= MAX_ADDRESS_LEN) { in RemoveSpacesInDesAddr() 214 std::u16string storeAddr = desAddr; in RemoveSpacesInDesAddr() [all …]
|
D | sms_send_manager.cpp | 117 void SmsSendManager::TextBasedSmsDelivery(const string &desAddr, const string &scAddr, const string… in TextBasedSmsDelivery() argument 121 if (desAddr.empty() || text.empty()) { in TextBasedSmsDelivery() 141 gsmSmsSender_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); in TextBasedSmsDelivery() 144 cdmaSmsSender_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); in TextBasedSmsDelivery() 153 void SmsSendManager::DataBasedSmsDelivery(const string &desAddr, const string &scAddr, uint16_t por… in DataBasedSmsDelivery() argument 157 if (desAddr.empty() || data == nullptr) { in DataBasedSmsDelivery() 176 …gsmSmsSender_->DataBasedSmsDelivery(desAddr, scAddr, port, data, dataLen, sendCallback, deliveryCa… in DataBasedSmsDelivery() 179 …cdmaSmsSender_->DataBasedSmsDelivery(desAddr, scAddr, port, data, dataLen, sendCallback, deliveryC… in DataBasedSmsDelivery()
|
D | sms_interface_manager.cpp | 72 int32_t SmsInterfaceManager::TextBasedSmsDelivery(const string &desAddr, const string &scAddr, cons… in TextBasedSmsDelivery() argument 75 if (desAddr.empty() || text.empty()) { in TextBasedSmsDelivery() 89 smsSendManager_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); in TextBasedSmsDelivery() 93 int32_t SmsInterfaceManager::DataBasedSmsDelivery(const string &desAddr, const string &scAddr, cons… in DataBasedSmsDelivery() argument 97 if (desAddr.empty() || (data == nullptr)) { in DataBasedSmsDelivery() 111 …smsSendManager_->DataBasedSmsDelivery(desAddr, scAddr, port, data, dataLen, sendCallback, delivery… in DataBasedSmsDelivery()
|
D | sms_send_indexer.cpp | 21 SmsSendIndexer::SmsSendIndexer(const string &desAddr, const string &scAddr, const string &text, in SmsSendIndexer() argument 24 : text_(text), scAddr_(scAddr), destAddr_(desAddr), sendCallback_(sendCallback), in SmsSendIndexer() 28 SmsSendIndexer::SmsSendIndexer(const string &desAddr, const string &scAddr, int32_t port, const uin… in SmsSendIndexer() argument 31 …: data_(std::vector<uint8_t>(data, data + dataLen)), scAddr_(scAddr), destAddr_(desAddr), destPort… in SmsSendIndexer()
|
D | sms_service.cpp | 139 int32_t SmsService::SendMessage(int32_t slotId, const u16string desAddr, const u16string scAddr, co… in SendMessage() argument 147 if (desAddr.empty()) { in SendMessage() 160 if (!ValidDestinationAddress(StringUtils::ToUtf8(desAddr))) { in SendMessage() 165 …return interfaceManager->TextBasedSmsDelivery(StringUtils::ToUtf8(desAddr), StringUtils::ToUtf8(sc… in SendMessage() 253 int32_t SmsService::SendMessage(int32_t slotId, const u16string desAddr, const u16string scAddr, ui… in SendMessage() argument 262 if (desAddr.empty()) { in SendMessage() 275 if (!ValidDestinationAddress(StringUtils::ToUtf8(desAddr))) { in SendMessage() 281 …StringUtils::ToUtf8(desAddr), StringUtils::ToUtf8(scAddr), port, data, dataLen, sendCallback, deli… in SendMessage() 676 bool SmsService::ValidDestinationAddress(std::string desAddr) in ValidDestinationAddress() argument 680 return std::regex_match(desAddr, regexMode); in ValidDestinationAddress()
|
/base/telephony/call_manager/services/call/call_state_observer/src/ |
D | reject_call_sms.cpp | 35 void RejectCallSms::SendMessage(int32_t slotId, const std::u16string &desAddr, const std::u16string… in SendMessage() argument 43 msgManager->SendMessage(slotId, desAddr, ConvertToUtf16(""), text, nullptr, nullptr); in SendMessage()
|
/base/telephony/sms_mms/services/sms/include/gsm/ |
D | gsm_sms_sender.h | 41 …void TextBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, const std::string… 44 void DataBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, int32_t port, 48 …std::shared_ptr<struct SmsTpdu> tpdu, uint8_t msgRef8bit, const std::string &desAddr, const std::s…
|
D | gsm_sms_message.h | 45 …std::shared_ptr<struct SmsTpdu> CreateDataSubmitSmsTpdu(const std::string &desAddr, const std::str… 88 int SetSmsTpduDestAddress(std::shared_ptr<struct SmsTpdu> &tPdu, const std::string &desAddr);
|
/base/telephony/sms_mms/services/sms/include/ |
D | sms_send_manager.h | 34 …void TextBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, const std::string… 37 …void DataBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, const uint16_t po…
|
D | sms_service.h | 52 int32_t SendMessage(int32_t slotId, const std::u16string desAddr, const std::u16string scAddr, 70 …int32_t SendMessage(int32_t slotId, const std::u16string desAddr, const std::u16string scAddr, uin… 322 bool ValidDestinationAddress(std::string desAddr);
|
D | sms_interface_manager.h | 39 …int32_t TextBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, const std::str… 42 …int32_t DataBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, const uint16_t…
|
D | sms_send_indexer.h | 33 SmsSendIndexer(const std::string &desAddr, const std::string &scAddr, const std::string &text, 36 …SmsSendIndexer(const std::string &desAddr, const std::string &scAddr, int32_t port, const uint8_t …
|
D | sms_sender.h | 44 virtual void TextBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, 48 …virtual void DataBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, int32_t p…
|
/base/telephony/sms_mms/test/fuzztest/sendmessage_fuzzer/ |
D | sendmessage_fuzzer.cpp | 53 std::string desAddr(reinterpret_cast<const char *>(data), size); in SendSmsTextRequest() 56 auto desAddrU16 = Str8ToStr16(desAddr); in SendSmsTextRequest()
|
/base/telephony/sms_mms/test/fuzztest/sendmessagedata_fuzzer/ |
D | sendmessagedata_fuzzer.cpp | 53 std::string desAddr(reinterpret_cast<const char *>(data), size); in SendSmsDataRequest() 55 auto desAddrU16 = Str8ToStr16(desAddr); in SendSmsDataRequest()
|
/base/telephony/sms_mms/services/sms/cdma/ |
D | cdma_sms_sender.cpp | 39 void CdmaSmsSender::TextBasedSmsDelivery(const string &desAddr, const string &scAddr, const string … in TextBasedSmsDelivery() argument 44 TextBasedSmsDeliveryViaIms(desAddr, scAddr, text, sendCallback, deliveryCallback); in TextBasedSmsDelivery() 60 message.CreateSubmitTransMsg(desAddr, scAddr, text, bStatusReport, codingType); in TextBasedSmsDelivery() 98 …indexer = make_shared<SmsSendIndexer>(desAddr, scAddr, segmentText, sendCallback, deliveryCallback… in TextBasedSmsDelivery() 124 void CdmaSmsSender::TextBasedSmsDeliveryViaIms(const string &desAddr, const string &scAddr, const s… in TextBasedSmsDeliveryViaIms() argument 133 gsmSmsMessage.CreateDefaultSubmitSmsTpdu(desAddr, scAddr, text, isStatusReport, codingType); in TextBasedSmsDeliveryViaIms() 144 …SendSmsForEveryIndexer(i, cellsInfos, desAddr, scAddr, tpdu, gsmSmsMessage, unSentCellCount, hasCe… in TextBasedSmsDeliveryViaIms() 150 …er::SendSmsForEveryIndexer(int &i, std::vector<struct SplitInfo> cellsInfos, const string &desAddr, in SendSmsForEveryIndexer() argument 159 make_shared<SmsSendIndexer>(desAddr, scAddr, segmentText, sendCallback, deliveryCallback); in SendSmsForEveryIndexer() 299 void CdmaSmsSender::DataBasedSmsDelivery(const string &desAddr, const string &scAddr, int32_t port,… in DataBasedSmsDelivery() argument [all …]
|
/base/telephony/sms_mms/frameworks/native/sms/src/ |
D | sms_service_manager_client.cpp | 94 int32_t SmsServiceManagerClient::SendMessage(int32_t slotId, const std::u16string desAddr, const st… in SendMessage() argument 99 …return smsServiceInterface_->SendMessage(slotId, desAddr, scAddr, text, callback, deliveryCallback… in SendMessage() 104 int32_t SmsServiceManagerClient::SendMessage(int32_t slotId, const std::u16string desAddr, const st… in SendMessage() argument 110 slotId, desAddr, scAddr, port, data, dataLen, callback, deliveryCallback); in SendMessage()
|
/base/telephony/call_manager/services/call/call_state_observer/include/ |
D | reject_call_sms.h | 37 void SendMessage(int32_t slotId, const std::u16string &desAddr, const std::u16string &text);
|
/base/telephony/sms_mms/test/fuzztest/smseventissue_fuzzer/ |
D | smseventissue_fuzzer.cpp | 33 std::string desAddr(reinterpret_cast<const char *>(data), size); in DoSentIssueTest() 47 std::make_shared<SmsSendIndexer>(desAddr, scAddr, text, sendCallback, deliveryCallback); in DoSentIssueTest()
|
/base/telephony/sms_mms/interfaces/innerkits/ |
D | sms_service_manager_client.h | 78 int32_t SendMessage(int32_t slotId, const std::u16string desAddr, const std::u16string scAddr, 96 int32_t SendMessage(int32_t slotId, const std::u16string desAddr, const std::u16string scAddr,
|
/base/telephony/sms_mms/services/sms/gsm/ |
D | gsm_sms_message.cpp | 59 …msMessage::SetSmsTpduDestAddress(std::shared_ptr<struct SmsTpdu> &tPdu, const std::string &desAddr) in SetSmsTpduDestAddress() argument 67 addLen = static_cast<int>(desAddr.length()); in SetSmsTpduDestAddress() 72 desAddr.c_str(), addLen); in SetSmsTpduDestAddress() 79 if (desAddr[0] == '+') { in SetSmsTpduDestAddress() 81 desAddr.c_str(), MAX_ADDRESS_LEN); in SetSmsTpduDestAddress() 84 desAddr.c_str(), MAX_ADDRESS_LEN - 1); in SetSmsTpduDestAddress() 221 std::shared_ptr<struct SmsTpdu> GsmSmsMessage::CreateDataSubmitSmsTpdu(const std::string &desAddr, in CreateDataSubmitSmsTpdu() argument 226 SetDestAddress(desAddr); in CreateDataSubmitSmsTpdu() 228 SetSmsTpduDestAddress(smsTpdu_, desAddr); in CreateDataSubmitSmsTpdu()
|