Lines Matching refs:SmsService

40 bool g_registerResult = SystemAbility::MakeAndRegisterAbility(DelayedSingleton<SmsService>::GetInstance().get());
42 SmsService::SmsService() : SystemAbility(TELEPHONY_SMS_MMS_SYS_ABILITY_ID, true) {}
44 SmsService::~SmsService() {}
46 void SmsService::OnStart()
48 TELEPHONY_LOGI("SmsService::OnStart start service Enter.");
57 TELEPHONY_LOGE("failed to init SmsService");
64 TELEPHONY_LOGI("SmsService::OnStart start service Exit.");
67 bool SmsService::Init()
74 bool ret = Publish(DelayedSingleton<SmsService>::GetInstance().get());
76 TELEPHONY_LOGE("SmsService::Init Publish failed!");
86 void SmsService::OnStop()
92 TELEPHONY_LOGI("SmsService::OnStop stop service.");
95 int32_t SmsService::Dump(std::int32_t fd, const std::vector<std::u16string> &args)
121 void SmsService::WaitCoreServiceToInit()
127 TELEPHONY_LOGI("SmsService Connection successful");
135 std::string SmsService::GetBindTime()
140 int32_t SmsService::SendMessage(int32_t slotId, const u16string desAddr, const u16string scAddr, const u16string text,
151 TELEPHONY_LOGE("SmsService::SendMessage desAddr empty");
159 TELEPHONY_LOGE("SmsService::SendMessage interfaceManager nullptr error.");
164 TELEPHONY_LOGE("SmsService::SendMessage desAddr not conform to the regular specification");
188 int32_t SmsService::SendMessageWithoutSave(int32_t slotId, const u16string desAddr, const u16string scAddr,
195 void SmsService::InsertSessionAndDetail(int32_t slotId, const std::string &telephone, const std::string &text,
214 bool SmsService::QuerySessionByTelephone(const std::string &telephone, uint16_t &sessionId, uint16_t &messageCount)
221 void SmsService::InsertSmsMmsInfo(
254 bool SmsService::InsertSession(
281 int32_t SmsService::SendMessage(int32_t slotId, const u16string desAddr, const u16string scAddr, uint16_t port,
292 TELEPHONY_LOGE("SmsService::SendMessage desAddr empty");
298 TELEPHONY_LOGE("SmsService::SendMessage interfaceManager nullptr error.");
305 TELEPHONY_LOGE("SmsService::SendMessage desAddr not conform to the regular specification");
314 bool SmsService::CheckSmsPermission(const sptr<ISendShortMessageCallback> &sendCallback)
324 int32_t SmsService::IsImsSmsSupported(int32_t slotId, bool &isSupported)
338 int32_t SmsService::GetImsShortMessageFormat(std::u16string &format)
357 bool SmsService::HasSmsCapability()
368 int32_t SmsService::SetSmscAddr(int32_t slotId, const std::u16string &scAddr)
393 void SmsService::TrimSmscAddr(std::string &sca)
406 int32_t SmsService::GetSmscAddr(int32_t slotId, std::u16string &smscAddress)
419 TELEPHONY_LOGE("SmsService::GetSmscAddr interfaceManager nullptr error");
425 int32_t SmsService::AddSimMessage(
443 TELEPHONY_LOGE("SmsService::AddSimMessage interfaceManager nullptr error");
449 TELEPHONY_LOGE("SmsService::AddSimMessage pdu empty error");
455 int32_t SmsService::DelSimMessage(int32_t slotId, uint32_t msgIndex)
472 TELEPHONY_LOGE("SmsService::DelSimMessage interfaceManager nullptr error.");
476 TELEPHONY_LOGE("SmsService::DelSimMessage msgIndex inValid");
483 int32_t SmsService::UpdateSimMessage(int32_t slotId, uint32_t msgIndex, SimMessageStatus newStatus,
501 TELEPHONY_LOGE("SmsService::UpdateSimMessage interfaceManager nullptr error.");
507 TELEPHONY_LOGE("SmsService::UpdateSimMessage msgIndex inValid");
511 TELEPHONY_LOGE("SmsService::UpdateSimMessage pdu empty error");
517 int32_t SmsService::GetAllSimMessages(int32_t slotId, std::vector<ShortMessage> &message)
530 TELEPHONY_LOGE("SmsService::GetAllSimMessages interfaceManager nullptr error.");
536 bool SmsService::CheckSimMessageIndexValid(int32_t slotId, uint32_t msgIndex)
541 TELEPHONY_LOGE("SmsService::CheckSimMessageIndexValid get result fail");
546 TELEPHONY_LOGE("SmsService::CheckSimMessageIndexValid msgIndex error");
554 TELEPHONY_LOGI("SmsService::CheckSimMessageIndexValid msgIndex not founded");
558 int32_t SmsService::SetCBConfig(int32_t slotId, bool enable, uint32_t fromMsgId, uint32_t toMsgId, uint8_t netType)
571 TELEPHONY_LOGE("SmsService::SetCBConfig interfaceManager nullptr error.");
577 bool SmsService::SetImsSmsConfig(int32_t slotId, int32_t enable)
585 TELEPHONY_LOGE("SmsService::SetImsSmsConfig interfaceManager nullptr error.");
591 int32_t SmsService::SetDefaultSmsSlotId(int32_t slotId)
604 TELEPHONY_LOGE("SmsService::SetDefaultSmsSlotId interfaceManager nullptr error.");
610 int32_t SmsService::GetDefaultSmsSlotId()
614 TELEPHONY_LOGE("SmsService::GetDefaultSmsSlotId interfaceManager nullptr error.");
620 int32_t SmsService::GetDefaultSmsSimId(int32_t &simId)
630 int32_t SmsService::SplitMessage(const std::u16string &message, std::vector<std::u16string> &splitMessage)
647 TELEPHONY_LOGE("SmsService::SplitMessage interfaceManager nullptr error.");
654 int32_t SmsService::GetSmsSegmentsInfo(
696 int32_t SmsService::GetServiceRunningState()
701 int64_t SmsService::GetEndTime()
706 bool SmsService::ValidDestinationAddress(std::string desAddr)
713 int64_t SmsService::GetSpendTime()
719 int32_t SmsService::CreateMessage(std::string pdu, std::string specification, ShortMessage &message)
746 bool SmsService::GetBase64Encode(std::string src, std::string &dest)
752 bool SmsService::GetBase64Decode(std::string src, std::string &dest)
758 bool SmsService::GetEncodeStringFunc(
765 int32_t SmsService::SendMms(int32_t slotId, const std::u16string &mmsc, const std::u16string &data,
798 TELEPHONY_LOGI("SmsService::SendMms. slot:%{public}d;;time:%{public}s;id:%{public}d",
816 void SmsService::ServiceAfterSendMmsComplete(int32_t slotId, int64_t &time, uint16_t &dataBaseId,
820 TELEPHONY_LOGE("SmsService::SendMms. slot:%{public}d;time:%{public}s",
826 TELEPHONY_LOGE("SmsService::SendMms. Failed UpdateSms;dataBaseId:%{public}d;", dataBaseId);
828 TELEPHONY_LOGI("before send boradcast. SmsService::SendMms %{public}d", dataBaseId);
836 int32_t SmsService::DownloadMms(int32_t slotId, const std::u16string &mmsc, std::u16string &data,
867 int32_t SmsService::OnRilAdapterHostDied(int32_t slotId)