Home
last modified time | relevance | path

Searched refs:smsIndexer (Results 1 – 10 of 10) sorted by relevance

/base/telephony/sms_mms/services/
Dsms_sender.cpp42 shared_ptr<SmsSendIndexer> smsIndexer = nullptr; in ProcessEvent() local
50 smsIndexer = FindCacheMapAndTransform(event); in ProcessEvent()
51 HandleMessageResponse(smsIndexer); in ProcessEvent()
55 smsIndexer = event->GetSharedObject<SmsSendIndexer>(); in ProcessEvent()
57 sendRetryFun_(smsIndexer); in ProcessEvent()
89 void SmsSender::HandleMessageResponse(const shared_ptr<SmsSendIndexer> &smsIndexer) in HandleMessageResponse() argument
91 if (smsIndexer == nullptr) { in HandleMessageResponse()
95 if (!SendCacheMapEraseItem(smsIndexer->GetMsgRefId64Bit())) { in HandleMessageResponse()
99 if (!smsIndexer->GetIsFailure()) { in HandleMessageResponse()
100 if (smsIndexer->GetDeliveryCallback() != nullptr) { in HandleMessageResponse()
[all …]
Dsms_send_manager.cpp190 void SmsSendManager::RetriedSmsDelivery(const shared_ptr<SmsSendIndexer> smsIndexer) in RetriedSmsDelivery() argument
192 if (smsIndexer == nullptr) { in RetriedSmsDelivery()
201 NetWorkType oldNetWorkType = smsIndexer->GetNetWorkType(); in RetriedSmsDelivery()
204 smsIndexer->SetNetWorkType(newNetWorkType); in RetriedSmsDelivery()
205 shared_ptr<SmsSendIndexer> indexer = smsIndexer; in RetriedSmsDelivery()
208 if (smsIndexer->GetIsText()) { in RetriedSmsDelivery()
215 if (smsIndexer->GetIsText()) { in RetriedSmsDelivery()
223 smsIndexer, ISendShortMessageCallback::SEND_SMS_FAILURE_SERVICE_UNAVAILABLE); in RetriedSmsDelivery()
231 gsmSmsSender_->SendSmsToRil(smsIndexer); in RetriedSmsDelivery()
233 cdmaSmsSender_->SendSmsToRil(smsIndexer); in RetriedSmsDelivery()
[all …]
Dsms_receive_handler.cpp151 void SmsReceiveHandler::DeleteMessageFormDb(const std::shared_ptr<SmsReceiveIndexer> &smsIndexer) in DeleteMessageFormDb() argument
153 if (smsIndexer == nullptr) { in DeleteMessageFormDb()
159 predicates.EqualTo(SmsMmsData::SMS_SUBSECTION_ID, std::to_string(smsIndexer->GetMsgRefId())); in DeleteMessageFormDb()
163 bool SmsReceiveHandler::IsRepeatedMessagePart(const shared_ptr<SmsReceiveIndexer> &smsIndexer) in IsRepeatedMessagePart() argument
165 if (smsIndexer != nullptr) { in IsRepeatedMessagePart()
168 predicates.EqualTo(SmsMmsData::SENDER_NUMBER, smsIndexer->GetOriginatingAddress()) in IsRepeatedMessagePart()
170 ->EqualTo(SmsMmsData::SMS_SUBSECTION_ID, std::to_string(smsIndexer->GetMsgRefId())) in IsRepeatedMessagePart()
172 ->EqualTo(SmsMmsData::SIZE, std::to_string(smsIndexer->GetMsgCount())); in IsRepeatedMessagePart()
176 if (it.GetMsgSeqId() == smsIndexer->GetMsgSeqId()) { in IsRepeatedMessagePart()
/base/telephony/sms_mms/services/gsm/
Dgsm_sms_sender.cpp307 void GsmSmsSender::SendSmsToRil(const shared_ptr<SmsSendIndexer> &smsIndexer) in SendSmsToRil() argument
309 if (smsIndexer == nullptr) { in SendSmsToRil()
310 SendResultCallBack(smsIndexer, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in SendSmsToRil()
315 … SendResultCallBack(smsIndexer, ISendShortMessageCallback::SEND_SMS_FAILURE_SERVICE_UNAVAILABLE); in SendSmsToRil()
322 if (!SendCacheMapAddItem(refId, smsIndexer)) { in SendSmsToRil()
329 smsData.smscPdu = StringUtils::StringToHex(smsIndexer->GetEncodeSmca()); in SendSmsToRil()
330 smsData.pdu = StringUtils::StringToHex(smsIndexer->GetEncodePdu()); in SendSmsToRil()
332 if ((!isImsNetDomain_ || !imsSmsCfg_) || (smsIndexer->GetPsResendCount() == MAX_SEND_RETRIES)) { in SendSmsToRil()
336 SendCsSms(smsIndexer, smsData); in SendSmsToRil()
338 SendImsSms(smsIndexer, smsData); in SendSmsToRil()
[all …]
/base/telephony/sms_mms/services/cdma/
Dcdma_sms_sender.cpp271 void CdmaSmsSender::SetPduSeqInfo(const std::shared_ptr<SmsSendIndexer> &smsIndexer, const std::siz… in SetPduSeqInfo() argument
275 smsIndexer->SetIsConcat(true); in SetPduSeqInfo()
289 smsIndexer->SetSmsConcat(smsConcat); in SetPduSeqInfo()
456 void CdmaSmsSender::SendSmsToRil(const shared_ptr<SmsSendIndexer> &smsIndexer) in SendSmsToRil() argument
458 if (smsIndexer == nullptr) { in SendSmsToRil()
463 … SendResultCallBack(smsIndexer, ISendShortMessageCallback::SEND_SMS_FAILURE_SERVICE_UNAVAILABLE); in SendSmsToRil()
470 if (!SendCacheMapAddItem(refId, smsIndexer)) { in SendSmsToRil()
474 std::string pdu = StringUtils::StringToHex(smsIndexer->GetEncodePdu()); in SendSmsToRil()
475 bool sendImsSMS = smsIndexer->IsImsSmsForCdma(); in SendSmsToRil()
476 if (lastSmsDomain_ == IMS_DOMAIN && smsIndexer->GetPsResendCount() < MAX_SEND_RETRIES) { in SendSmsToRil()
[all …]
/base/telephony/sms_mms/services/include/
Dsms_sender.h52 virtual void SendSmsToRil(const std::shared_ptr<SmsSendIndexer> &smsIndexer) = 0;
53 void HandleMessageResponse(const std::shared_ptr<SmsSendIndexer> &smsIndexer);
56 virtual void ResendTextDelivery(const std::shared_ptr<SmsSendIndexer> &smsIndexer) = 0;
57 virtual void ResendDataDelivery(const std::shared_ptr<SmsSendIndexer> &smsIndexer) = 0;
82 bool SendCacheMapAddItem(int64_t id, const std::shared_ptr<SmsSendIndexer> &smsIndexer);
88 void SendMessageSucceed(const std::shared_ptr<SmsSendIndexer> &smsIndexer);
89 void SendMessageFailed(const std::shared_ptr<SmsSendIndexer> &smsIndexer);
117 void HandleResend(const std::shared_ptr<SmsSendIndexer> &smsIndexer);
Dsms_receive_handler.h45 void CombineMessagePart(const std::shared_ptr<SmsReceiveIndexer> &smsIndexer);
46 void DeleteMessageFormDb(const std::shared_ptr<SmsReceiveIndexer> &smsIndexer);
47 bool IsRepeatedMessagePart(const std::shared_ptr<SmsReceiveIndexer> &smsIndexer);
Dsms_send_manager.h40 void RetriedSmsDelivery(const std::shared_ptr<SmsSendIndexer> smsIndexer);
/base/telephony/sms_mms/services/include/cdma/
Dcdma_sms_sender.h56 void SendSmsToRil(const std::shared_ptr<SmsSendIndexer> &smsIndexer) override;
58 void ReceiveStatusReport(const std::shared_ptr<SmsReceiveIndexer> &smsIndexer);
59 void ResendTextDelivery(const std::shared_ptr<SmsSendIndexer> &smsIndexer) override;
60 void ResendDataDelivery(const std::shared_ptr<SmsSendIndexer> &smsIndexer) override;
74 void SetConcact(const std::shared_ptr<SmsSendIndexer> &smsIndexer,
78 void SetPduSeqInfo(const std::shared_ptr<SmsSendIndexer> &smsIndexer, const std::size_t size,
81 …void SendCsSms(const std::shared_ptr<SmsSendIndexer> &smsIndexer, int64_t &refId, std::string &pdu…
82 …void SendImsSms(const std::shared_ptr<SmsSendIndexer> &smsIndexer, int64_t &refId, std::string &pd…
/base/telephony/sms_mms/services/include/gsm/
Dgsm_sms_sender.h61 void SendSmsToRil(const std::shared_ptr<SmsSendIndexer> &smsIndexer) override;
62 void ResendTextDelivery(const std::shared_ptr<SmsSendIndexer> &smsIndexer) override;
63 void ResendDataDelivery(const std::shared_ptr<SmsSendIndexer> &smsIndexer) override;
76 …bool SetPduInfo(const std::shared_ptr<SmsSendIndexer> &smsIndexer, GsmSmsMessage &gsmSmsMessage, b…
77 void SendImsSms(const std::shared_ptr<SmsSendIndexer> &smsIndexer, GsmSimMessageParam smsData);
78 void SendCsSms(const std::shared_ptr<SmsSendIndexer> &smsIndexer, GsmSimMessageParam smsData);