Home
last modified time | relevance | path

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

/base/telephony/sms_mms/services/sms/
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.cpp188 void SmsSendManager::RetriedSmsDelivery(const shared_ptr<SmsSendIndexer> smsIndexer) in RetriedSmsDelivery() argument
190 if (smsIndexer == nullptr) { in RetriedSmsDelivery()
199 NetWorkType oldNetWorkType = smsIndexer->GetNetWorkType(); in RetriedSmsDelivery()
202 smsIndexer->SetNetWorkType(newNetWorkType); in RetriedSmsDelivery()
203 shared_ptr<SmsSendIndexer> indexer = smsIndexer; in RetriedSmsDelivery()
206 if (smsIndexer->GetIsText()) { in RetriedSmsDelivery()
213 if (smsIndexer->GetIsText()) { in RetriedSmsDelivery()
221 smsIndexer, ISendShortMessageCallback::SEND_SMS_FAILURE_SERVICE_UNAVAILABLE); in RetriedSmsDelivery()
229 gsmSmsSender_->SendSmsToRil(smsIndexer); in RetriedSmsDelivery()
231 cdmaSmsSender_->SendSmsToRil(smsIndexer); in RetriedSmsDelivery()
[all …]
Dsms_receive_handler.cpp155 bool SmsReceiveHandler::IsRepeatedMessagePart(const shared_ptr<SmsReceiveIndexer> &smsIndexer) in IsRepeatedMessagePart() argument
157 if (smsIndexer != nullptr) { in IsRepeatedMessagePart()
160 predicates.EqualTo(SmsSubsection::SENDER_NUMBER, smsIndexer->GetOriginatingAddress()) in IsRepeatedMessagePart()
162 ->EqualTo(SmsSubsection::SMS_SUBSECTION_ID, std::to_string(smsIndexer->GetMsgRefId())) in IsRepeatedMessagePart()
164 ->EqualTo(SmsSubsection::SIZE, std::to_string(smsIndexer->GetMsgCount())); in IsRepeatedMessagePart()
168 if (it.GetMsgSeqId() == smsIndexer->GetMsgSeqId()) { in IsRepeatedMessagePart()
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_sender.cpp306 void GsmSmsSender::SendSmsToRil(const shared_ptr<SmsSendIndexer> &smsIndexer) in SendSmsToRil() argument
308 if (smsIndexer == nullptr) { in SendSmsToRil()
309 SendResultCallBack(smsIndexer, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in SendSmsToRil()
314 … SendResultCallBack(smsIndexer, ISendShortMessageCallback::SEND_SMS_FAILURE_SERVICE_UNAVAILABLE); in SendSmsToRil()
321 if (!SendCacheMapAddItem(refId, smsIndexer)) { in SendSmsToRil()
328 smsData.smscPdu = StringUtils::StringToHex(smsIndexer->GetEncodeSmca()); in SendSmsToRil()
329 smsData.pdu = StringUtils::StringToHex(smsIndexer->GetEncodePdu()); in SendSmsToRil()
331 if ((!isImsNetDomain_ || !imsSmsCfg_) || (smsIndexer->GetPsResendCount() == MAX_SEND_RETRIES)) { in SendSmsToRil()
335 SendCsSms(smsIndexer, smsData); in SendSmsToRil()
337 SendImsSms(smsIndexer, smsData); in SendSmsToRil()
[all …]
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_sender.cpp277 void CdmaSmsSender::SetPduSeqInfo(const std::shared_ptr<SmsSendIndexer> &smsIndexer, const std::siz… in SetPduSeqInfo() argument
281 smsIndexer->SetIsConcat(true); in SetPduSeqInfo()
295 smsIndexer->SetSmsConcat(smsConcat); in SetPduSeqInfo()
466 void CdmaSmsSender::SendSmsToRil(const shared_ptr<SmsSendIndexer> &smsIndexer) in SendSmsToRil() argument
468 if (smsIndexer == nullptr) { in SendSmsToRil()
473 … SendResultCallBack(smsIndexer, ISendShortMessageCallback::SEND_SMS_FAILURE_SERVICE_UNAVAILABLE); in SendSmsToRil()
480 if (!SendCacheMapAddItem(refId, smsIndexer)) { in SendSmsToRil()
484 std::string pdu = StringUtils::StringToHex(smsIndexer->GetEncodePdu()); in SendSmsToRil()
485 bool sendImsSMS = smsIndexer->IsImsSmsForCdma(); in SendSmsToRil()
486 if (lastSmsDomain_ == IMS_DOMAIN && smsIndexer->GetPsResendCount() < MAX_SEND_RETRIES) { in SendSmsToRil()
[all …]
/base/telephony/sms_mms/services/sms/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);
118 void HandleResend(const std::shared_ptr<SmsSendIndexer> &smsIndexer);
Dsms_receive_handler.h38 void CombineMessagePart(const std::shared_ptr<SmsReceiveIndexer> &smsIndexer);
39 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/sms/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;
75 …const std::shared_ptr<SmsSendIndexer> &smsIndexer, const std::unique_ptr<CdmaTransportMsg> &transM…
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/test/gtest/
Dzero_branch_sms_test.cpp151 std::shared_ptr<SmsSendIndexer> smsIndexer = nullptr; variable
152 cdmaSmsSender->SendSmsToRil(smsIndexer);
153 cdmaSmsSender->ResendTextDelivery(smsIndexer);
154 cdmaSmsSender->ResendDataDelivery(smsIndexer);
155smsIndexer = std::make_shared<SmsSendIndexer>(desAddr, scAddr, text, sendCallback, deliveryCallbac…
156 cdmaSmsSender->SendSmsToRil(smsIndexer);
157 cdmaSmsSender->ResendTextDelivery(smsIndexer);
158 cdmaSmsSender->ResendDataDelivery(smsIndexer);
308 …auto smsIndexer = std::make_shared<SmsSendIndexer>(desAddr, scAddr, text, sendCallback, deliveryCa… variable
309 smsSender->HandleMessageResponse(smsIndexer);
[all …]
/base/telephony/sms_mms/services/sms/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);