/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 | 231 const std::string desAddr = "qwe"; variable 234 cdmaSmsSender->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); 241 …desAddr, scAddr, splits, std::move(transMsg), msgRef8bit, msgId, timeStamp, sendCallback, delivery… 242 … cdmaSmsSender->TextBasedSmsDeliveryViaIms(desAddr, scAddr, text, sendCallback, deliveryCallback); 247 …smsIndexer = std::make_shared<SmsSendIndexer>(desAddr, scAddr, text, sendCallback, deliveryCallbac… 346 std::string desAddr = ""; variable 360 desAddr = "+SetSmsTpduDestAddress"; 361 EXPECT_EQ(gsmSmsMessage->SetSmsTpduDestAddress(tPdu, desAddr), 22); 362 desAddr = "SetSmsTpduDestAddress"; 363 EXPECT_EQ(gsmSmsMessage->SetSmsTpduDestAddress(tPdu, desAddr), 21); [all …]
|
D | zero_branch_sms_part_test.cpp | 120 std::u16string desAddr = Str8ToStr16(SMS_ADDR_ONE); variable 121 DelayedSingleton<SmsService>::GetInstance()->RemoveSpacesInDesAddr(desAddr); 122 EXPECT_GE(desAddr.size(), 0); 123 desAddr = Str8ToStr16(SMS_ADDR_TWO); 124 DelayedSingleton<SmsService>::GetInstance()->RemoveSpacesInDesAddr(desAddr); 125 EXPECT_GE(desAddr.size(), 0); 126 desAddr = Str8ToStr16(SMS_ADDR_THREE); 127 DelayedSingleton<SmsService>::GetInstance()->RemoveSpacesInDesAddr(desAddr); 128 EXPECT_GE(desAddr.size(), 0); 129 desAddr = Str8ToStr16(SMS_ADDR_FOUR); [all …]
|
/base/telephony/sms_mms/services/sms/include/cdma/ |
D | cdma_sms_sender.h | 32 …void TextBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, const std::string… 35 …void TextBasedSmsDeliveryViaIms(const std::string &desAddr, const std::string &scAddr, const std::… 41 …endSmsForEveryIndexer(int &i, std::vector<struct SplitInfo> cellsInfos, const std::string &desAddr, 49 …void DataBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, int32_t port, con… 52 …void DataBasedSmsDeliveryViaIms(const std::string &desAddr, const std::string &scAddr, int32_t por… 86 void TextBasedSmsSplitDelivery(const std::string &desAddr, const std::string &scAddr,
|
/base/telephony/sms_mms/services/sms/ |
D | sms_interface_stub.cpp | 148 u16string desAddr = data.ReadString16(); in OnSendSmsTextRequest() local 165 RemoveSpacesInDesAddr(desAddr); in OnSendSmsTextRequest() 168 int32_t result = SendMessage(slotId, desAddr, scAddr, text, sendCallback, deliveryCallback); in OnSendSmsTextRequest() 170 …dSingleton<SmsService>::GetInstance()->InsertSessionAndDetail(slotId, StringUtils::ToUtf8(desAddr), in OnSendSmsTextRequest() 181 u16string desAddr = data.ReadString16(); in OnSendSmsDataRequest() local 199 RemoveSpacesInDesAddr(desAddr); in OnSendSmsDataRequest() 200 …int32_t result = SendMessage(slotId, desAddr, scAddr, port, buffer, dataLen, sendCallback, deliver… in OnSendSmsDataRequest() 204 void SmsInterfaceStub::RemoveSpacesInDesAddr(std::u16string &desAddr) in RemoveSpacesInDesAddr() argument 207 if (desAddr.empty() || desAddr.size() >= MAX_ADDRESS_LEN) { in RemoveSpacesInDesAddr() 212 std::u16string storeAddr = desAddr; in RemoveSpacesInDesAddr() [all …]
|
D | sms_send_manager.cpp | 101 void SmsSendManager::TextBasedSmsDelivery(const string &desAddr, const string &scAddr, const string… in TextBasedSmsDelivery() argument 105 if (desAddr.empty() || text.empty()) { in TextBasedSmsDelivery() 125 gsmSmsSender_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); in TextBasedSmsDelivery() 128 cdmaSmsSender_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); in TextBasedSmsDelivery() 137 void SmsSendManager::DataBasedSmsDelivery(const string &desAddr, const string &scAddr, uint16_t por… in DataBasedSmsDelivery() argument 141 if (desAddr.empty() || data == nullptr) { in DataBasedSmsDelivery() 160 …gsmSmsSender_->DataBasedSmsDelivery(desAddr, scAddr, port, data, dataLen, sendCallback, deliveryCa… in DataBasedSmsDelivery() 163 …cdmaSmsSender_->DataBasedSmsDelivery(desAddr, scAddr, port, data, dataLen, sendCallback, deliveryC… in DataBasedSmsDelivery()
|
D | sms_interface_manager.cpp | 66 int32_t SmsInterfaceManager::TextBasedSmsDelivery(const string &desAddr, const string &scAddr, cons… in TextBasedSmsDelivery() argument 69 if (desAddr.empty() || text.empty()) { in TextBasedSmsDelivery() 83 smsSendManager_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); in TextBasedSmsDelivery() 87 int32_t SmsInterfaceManager::DataBasedSmsDelivery(const string &desAddr, const string &scAddr, cons… in DataBasedSmsDelivery() argument 91 if (desAddr.empty() || (data == nullptr)) { in DataBasedSmsDelivery() 105 …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 | 135 int32_t SmsService::SendMessage(int32_t slotId, const u16string desAddr, const u16string scAddr, co… in SendMessage() argument 143 if (desAddr.empty()) { in SendMessage() 156 if (!ValidDestinationAddress(StringUtils::ToUtf8(desAddr))) { in SendMessage() 161 …bool ret = interfaceManager->TextBasedSmsDelivery(StringUtils::ToUtf8(desAddr), StringUtils::ToUtf… in SendMessage() 163 DelayedSingleton<SmsPersistHelper>::GetInstance()->UpdateContact(StringUtils::ToUtf8(desAddr)); in SendMessage() 251 int32_t SmsService::SendMessage(int32_t slotId, const u16string desAddr, const u16string scAddr, ui… in SendMessage() argument 260 if (desAddr.empty()) { in SendMessage() 273 if (!ValidDestinationAddress(StringUtils::ToUtf8(desAddr))) { in SendMessage() 279 …StringUtils::ToUtf8(desAddr), StringUtils::ToUtf8(scAddr), port, data, dataLen, sendCallback, deli… in SendMessage() 280 DelayedSingleton<SmsPersistHelper>::GetInstance()->UpdateContact(StringUtils::ToUtf8(desAddr)); in SendMessage() [all …]
|
/base/telephony/sms_mms/test/fuzztest/gsmsmssender_fuzzer/ |
D | gsmsmssender_fuzzer.cpp | 143 std::string desAddr(reinterpret_cast<const char *>(data), size); in SendSmsTest() 150 sender->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); in SendSmsTest() 151 sender->DataBasedSmsDelivery(desAddr, scAddr, size, data, size, sendCallback, deliveryCallback); in SendSmsTest() 163 msg.CreateDefaultSubmitSmsTpdu(desAddr, scAddr, text, isStatusReport, codingType); in SendSmsTest() 169 std::make_shared<SmsSendIndexer>(desAddr, scAddr, text, sendCallback, deliveryCallback); in SendSmsTest() 191 std::string desAddr(reinterpret_cast<const char *>(data), size); in SendSmsTest2() 204 std::make_shared<SmsSendIndexer>(desAddr, scAddr, text, sendCallback, deliveryCallback); in SendSmsTest2()
|
/base/telephony/sms_mms/services/sms/include/gsm/ |
D | gsm_sms_sender.h | 37 …void TextBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, const std::string… 40 …void DataBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, int32_t port, con… 65 void TextBasedSmsSplitDelivery(const std::string &desAddr, const std::string &scAddr,
|
D | gsm_sms_message.h | 45 …std::shared_ptr<struct SmsTpdu> CreateDataSubmitSmsTpdu(const std::string &desAddr, const std::str… 71 int SetSmsTpduDestAddress(std::shared_ptr<struct SmsTpdu> &tPdu, const std::string &desAddr);
|
/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/ |
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_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_sender.h | 40 virtual void TextBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, 44 …virtual void DataBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, int32_t p… 70 …std::shared_ptr<struct SmsTpdu> tpdu, uint8_t msgRef8bit, const std::string &desAddr, const std::s…
|
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… 323 bool ValidDestinationAddress(std::string desAddr);
|
/base/telephony/sms_mms/services/sms/cdma/ |
D | cdma_sms_sender.cpp | 40 void CdmaSmsSender::TextBasedSmsDelivery(const string &desAddr, const string &scAddr, const string … in TextBasedSmsDelivery() argument 45 TextBasedSmsDeliveryViaIms(desAddr, scAddr, text, sendCallback, deliveryCallback); in TextBasedSmsDelivery() 62 message.CreateSubmitTransMsg(desAddr, scAddr, text, bStatusReport, codingType); in TextBasedSmsDelivery() 77 …desAddr, scAddr, splits, std::move(transMsg), msgRef8bit, msgId, timeStamp, sendCallback, delivery… in TextBasedSmsDelivery() 80 void CdmaSmsSender::TextBasedSmsSplitDelivery(const std::string &desAddr, const std::string &scAddr, in TextBasedSmsSplitDelivery() argument 107 …auto indexer = make_shared<SmsSendIndexer>(desAddr, scAddr, segmentText, sendCallback, deliveryCal… in TextBasedSmsSplitDelivery() 133 void CdmaSmsSender::TextBasedSmsDeliveryViaIms(const string &desAddr, const string &scAddr, const s… in TextBasedSmsDeliveryViaIms() argument 144 gsmSmsMessage.CreateDefaultSubmitSmsTpdu(desAddr, scAddr, text, isStatusReport, codingType); in TextBasedSmsDeliveryViaIms() 156 …SendSmsForEveryIndexer(i, cellsInfos, desAddr, scAddr, tpdu, gsmSmsMessage, unSentCellCount, hasCe… in TextBasedSmsDeliveryViaIms() 162 …er::SendSmsForEveryIndexer(int &i, std::vector<struct SplitInfo> cellsInfos, const string &desAddr, in SendSmsForEveryIndexer() 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/sms_mms/services/sms/gsm/ |
D | gsm_sms_sender.cpp | 43 void GsmSmsSender::TextBasedSmsDelivery(const string &desAddr, const string &scAddr, const string &… in TextBasedSmsDelivery() argument 55 gsmSmsMessage.CreateDefaultSubmitSmsTpdu(desAddr, scAddr, text, isStatusReport, codingType); in TextBasedSmsDelivery() 73 …desAddr, scAddr, cellsInfos, codingType, isStatusReport, tpdu, gsmSmsMessage, sendCallback, delive… in TextBasedSmsDelivery() 76 void GsmSmsSender::TextBasedSmsSplitDelivery(const std::string &desAddr, const std::string &scAddr, in TextBasedSmsSplitDelivery() argument 93 …indexer = make_shared<SmsSendIndexer>(desAddr, scAddr, segmentText, sendCallback, deliveryCallback… in TextBasedSmsSplitDelivery() 152 void GsmSmsSender::DataBasedSmsDelivery(const std::string &desAddr, const std::string &scAddr, int3… in DataBasedSmsDelivery() argument 162 …msMessage.SplitMessage(cellsInfos, dataStr, CheckForce7BitEncodeType(), codingType, true, desAddr); in DataBasedSmsDelivery() 166 …desAddr, scAddr, port, data, dataLen, msgRef8bit, codingType, (deliveryCallback == nullptr) ? fals… in DataBasedSmsDelivery() 172 …gsmSmsMessage, cellsInfos, tpdu, msgRef8bit, desAddr, scAddr, port, sendCallback, deliveryCallback… in DataBasedSmsDelivery()
|
D | gsm_sms_message.cpp | 55 …msMessage::SetSmsTpduDestAddress(std::shared_ptr<struct SmsTpdu> &tPdu, const std::string &desAddr) in SetSmsTpduDestAddress() argument 63 addLen = static_cast<int>(desAddr.length()); in SetSmsTpduDestAddress() 68 desAddr.c_str(), addLen); in SetSmsTpduDestAddress() 75 if (desAddr[0] == '+') { in SetSmsTpduDestAddress() 77 desAddr.c_str(), MAX_ADDRESS_LEN); in SetSmsTpduDestAddress() 80 desAddr.c_str(), MAX_ADDRESS_LEN - 1); in SetSmsTpduDestAddress() 217 std::shared_ptr<struct SmsTpdu> GsmSmsMessage::CreateDataSubmitSmsTpdu(const std::string &desAddr, in CreateDataSubmitSmsTpdu() argument 222 SetDestAddress(desAddr); in CreateDataSubmitSmsTpdu() 224 SetSmsTpduDestAddress(smsTpdu_, desAddr); in CreateDataSubmitSmsTpdu()
|
/base/telephony/sms_mms/test/fuzztest/gsmsmsmessage_fuzzer/ |
D | gsmsmsmessage_fuzzer.cpp | 127 std::string desAddr(reinterpret_cast<const char *>(data), size); in SplitMessageAndCreateSubmitTest() 129 msg.CreateDefaultSubmitSmsTpdu(desAddr, scAddr, text, isStatusReport, codingType); in SplitMessageAndCreateSubmitTest() 132 …msg.CreateDataSubmitSmsTpdu(desAddr, scAddr, size, data, size, msgRef8bit, codingType, isStatusRep… in SplitMessageAndCreateSubmitTest()
|
/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/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,
|