Home
last modified time | relevance | path

Searched refs:desAddr (Results 1 – 25 of 36) sorted by relevance

12

/base/telephony/sms_mms/test/fuzztest/textbasedsmsdelivery_fuzzer/
Dtextbasedsmsdelivery_fuzzer.cpp48 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/
Ddatabasedsmsdelivery_fuzzer.cpp48 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/
Dzero_branch_sms_test.cpp145 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/
Dcdma_sms_sender.h33 …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/
Dsms_interface_stub.cpp150 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 …]
Dsms_send_manager.cpp117 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()
Dsms_interface_manager.cpp72 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()
Dsms_send_indexer.cpp21 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()
Dsms_service.cpp139 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/
Dreject_call_sms.cpp35 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/
Dgsm_sms_sender.h41 …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…
Dgsm_sms_message.h45 …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/
Dsms_send_manager.h34 …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…
Dsms_service.h52 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);
Dsms_interface_manager.h39 …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…
Dsms_send_indexer.h33 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 …
Dsms_sender.h44 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/
Dsendmessage_fuzzer.cpp53 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/
Dsendmessagedata_fuzzer.cpp53 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/
Dcdma_sms_sender.cpp39 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/
Dsms_service_manager_client.cpp94 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/
Dreject_call_sms.h37 void SendMessage(int32_t slotId, const std::u16string &desAddr, const std::u16string &text);
/base/telephony/sms_mms/test/fuzztest/smseventissue_fuzzer/
Dsmseventissue_fuzzer.cpp33 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/
Dsms_service_manager_client.h78 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/
Dgsm_sms_message.cpp59 …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()

12