Lines Matching defs:desAddr

140 int32_t SmsService::SendMessage(int32_t slotId, const u16string desAddr, const u16string scAddr, const u16string text,
149 if (desAddr.empty()) {
151 TELEPHONY_LOGE("SmsService::SendMessage desAddr empty");
162 if (!ValidDestinationAddress(StringUtils::ToUtf8(desAddr))) {
164 TELEPHONY_LOGE("SmsService::SendMessage desAddr not conform to the regular specification");
170 InsertSessionAndDetail(slotId, StringUtils::ToUtf8(desAddr), StringUtils::ToUtf8(text), dataId);
175 predicates.EqualTo(SmsMmsInfo::RECEIVER_NUMBER, StringUtils::ToUtf8(desAddr));
182 bool ret = interfaceManager->TextBasedSmsDelivery(StringUtils::ToUtf8(desAddr), StringUtils::ToUtf8(scAddr),
184 DelayedSingleton<SmsPersistHelper>::GetInstance()->UpdateContact(StringUtils::ToUtf8(desAddr));
188 int32_t SmsService::SendMessageWithoutSave(int32_t slotId, const u16string desAddr, const u16string scAddr,
192 return SendMessage(slotId, desAddr, scAddr, text, sendCallback, deliveryCallback);
281 int32_t SmsService::SendMessage(int32_t slotId, const u16string desAddr, const u16string scAddr, uint16_t port,
290 if (desAddr.empty()) {
292 TELEPHONY_LOGE("SmsService::SendMessage desAddr empty");
303 if (!ValidDestinationAddress(StringUtils::ToUtf8(desAddr))) {
305 TELEPHONY_LOGE("SmsService::SendMessage desAddr not conform to the regular specification");
309 StringUtils::ToUtf8(desAddr), StringUtils::ToUtf8(scAddr), port, data, dataLen, sendCallback, deliveryCallback);
310 DelayedSingleton<SmsPersistHelper>::GetInstance()->UpdateContact(StringUtils::ToUtf8(desAddr));
706 bool SmsService::ValidDestinationAddress(std::string desAddr)
710 return std::regex_match(desAddr, regexMode);