Home
last modified time | relevance | path

Searched refs:sendCallback (Results 1 – 25 of 29) sorted by relevance

12

/base/telephony/sms_mms/test/fuzztest/textbasedsmsdelivery_fuzzer/
Dtextbasedsmsdelivery_fuzzer.cpp51 const sptr<ISendShortMessageCallback> sendCallback = in DoSomethingInterestingWithMyAPI() local
53 if (sendCallback == nullptr) { 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/
Ddatabasedsmsdelivery_fuzzer.cpp52 const sptr<ISendShortMessageCallback> sendCallback = in DoSomethingInterestingWithMyAPI() local
54 if (sendCallback == nullptr) { 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/services/sms/
Dsms_send_manager.cpp118 const sptr<ISendShortMessageCallback> &sendCallback, in TextBasedSmsDelivery() argument
122 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
127 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
132 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
141 gsmSmsSender_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); in TextBasedSmsDelivery()
144 cdmaSmsSender_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); in TextBasedSmsDelivery()
146 …SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_SERVICE_UN… in TextBasedSmsDelivery()
154 const uint8_t *data, uint16_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback, in DataBasedSmsDelivery() argument
158 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in DataBasedSmsDelivery()
163 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in DataBasedSmsDelivery()
[all …]
Dsms_interface_manager.cpp73 …const sptr<ISendShortMessageCallback> &sendCallback, const sptr<IDeliveryShortMessageCallback> &de… in TextBasedSmsDelivery() argument
76 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
84 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
89 smsSendManager_->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback); in TextBasedSmsDelivery()
94 const uint8_t *data, uint16_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback, in DataBasedSmsDelivery() argument
98 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in DataBasedSmsDelivery()
106 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in DataBasedSmsDelivery()
111 …smsSendManager_->DataBasedSmsDelivery(desAddr, scAddr, port, data, dataLen, sendCallback, delivery… in DataBasedSmsDelivery()
Dsms_send_indexer.cpp22 const sptr<ISendShortMessageCallback> &sendCallback, in SmsSendIndexer() argument
24 : text_(text), scAddr_(scAddr), destAddr_(desAddr), sendCallback_(sendCallback), in SmsSendIndexer()
29 uint32_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback, in SmsSendIndexer() argument
32 sendCallback_(sendCallback), deliveryCallback_(deliveryCallback), isText_(false) in SmsSendIndexer()
172 void SmsSendIndexer::SetSendCallback(const sptr<ISendShortMessageCallback> &sendCallback) in SetSendCallback() argument
174 sendCallback_ = sendCallback; in SetSendCallback()
Dsms_sender.cpp163 sptr<ISendShortMessageCallback> sendCallback = smsIndexer->GetSendCallback(); in SendMessageFailed() local
164 SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in SendMessageFailed()
177 …const sptr<ISendShortMessageCallback> &sendCallback, ISendShortMessageCallback::SmsSendResult resu… in SendResultCallBack() argument
179 if (sendCallback != nullptr) { in SendResultCallBack()
180 sendCallback->OnSmsSendResult(result); in SendResultCallBack()
200 bool SmsSender::SendCacheMapLimitCheck(const sptr<ISendShortMessageCallback> &sendCallback) in SendCacheMapLimitCheck() argument
204 SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in SendCacheMapLimitCheck()
Dsms_service.cpp140 …const sptr<ISendShortMessageCallback> &sendCallback, const sptr<IDeliveryShortMessageCallback> &de… in SendMessage() argument
142 if (!CheckSmsPermission(sendCallback)) { in SendMessage()
148 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in SendMessage()
154 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in SendMessage()
161 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in SendMessage()
166 StringUtils::ToUtf8(text), sendCallback, deliveryCallback); in SendMessage()
254 const uint8_t *data, uint16_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback, in SendMessage() argument
257 if (!CheckSmsPermission(sendCallback)) { in SendMessage()
263 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in SendMessage()
269 … SmsSender::SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in SendMessage()
[all …]
Dsms_interface_stub.cpp147 sptr<ISendShortMessageCallback> sendCallback = nullptr; in OnSendSmsTextRequest() local
161 sendCallback = iface_cast<ISendShortMessageCallback>(remoteSendCallback); in OnSendSmsTextRequest()
170 int32_t result = SendMessage(slotId, desAddr, scAddr, text, sendCallback, deliveryCallback); in OnSendSmsTextRequest()
180 sptr<ISendShortMessageCallback> sendCallback = nullptr; in OnSendSmsDataRequest() local
194 sendCallback = iface_cast<ISendShortMessageCallback>(remoteSendCallback); in OnSendSmsDataRequest()
202 …int32_t result = SendMessage(slotId, desAddr, scAddr, port, buffer, dataLen, sendCallback, deliver… in OnSendSmsDataRequest()
/base/telephony/sms_mms/services/sms/include/gsm/
Dgsm_sms_sender.h42 const sptr<ISendShortMessageCallback> &sendCallback,
45 const uint8_t *data, uint32_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback,
49 int32_t port, const sptr<ISendShortMessageCallback> &sendCallback,
53 const sptr<ISendShortMessageCallback> &sendCallback,
57 … const sptr<ISendShortMessageCallback> &sendCallback, std::shared_ptr<SmsSendIndexer> indexer,
60 …void SendCallbackBecauseTpduNull(const sptr<ISendShortMessageCallback> &sendCallback, std::string …
/base/telephony/sms_mms/services/sms/include/cdma/
Dcdma_sms_sender.h34 const sptr<ISendShortMessageCallback> &sendCallback,
37 const sptr<ISendShortMessageCallback> &sendCallback,
41 std::shared_ptr<bool> hasCellFailed, const sptr<ISendShortMessageCallback> &sendCallback);
45 uint8_t msgRef8bit, const sptr<ISendShortMessageCallback> &sendCallback,
51 uint32_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback,
54 const uint8_t *data, uint32_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback,
84 uint8_t msgRef8bit, const sptr<ISendShortMessageCallback> &sendCallback);
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_sender.cpp40 const sptr<ISendShortMessageCallback> &sendCallback, in TextBasedSmsDelivery() argument
44 TextBasedSmsDeliveryViaIms(desAddr, scAddr, text, sendCallback, deliveryCallback); in TextBasedSmsDelivery()
52 SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
62 SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
75 SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
92 SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
98 …indexer = make_shared<SmsSendIndexer>(desAddr, scAddr, segmentText, sendCallback, deliveryCallback… in TextBasedSmsDelivery()
100 SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
110 SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
125 …const sptr<ISendShortMessageCallback> &sendCallback, const sptr<IDeliveryShortMessageCallback> &de… in TextBasedSmsDeliveryViaIms() argument
[all …]
/base/telephony/sms_mms/test/fuzztest/sendmessage_fuzzer/
Dsendmessage_fuzzer.cpp60 std::unique_ptr<SendCallbackStub> sendCallback = std::make_unique<SendCallbackStub>(); in SendSmsTextRequest() local
67 if (sendCallback != nullptr) { in SendSmsTextRequest()
68 dataParcel.WriteRemoteObject(sendCallback.release()->AsObject().GetRefPtr()); in SendSmsTextRequest()
/base/telephony/sms_mms/test/fuzztest/sendmessagedata_fuzzer/
Dsendmessagedata_fuzzer.cpp59 std::unique_ptr<SendCallbackStub> sendCallback = std::make_unique<SendCallbackStub>(); in SendSmsDataRequest() local
66 if (sendCallback != nullptr) { in SendSmsDataRequest()
67 dataParcel.WriteRemoteObject(sendCallback.release()->AsObject().GetRefPtr()); in SendSmsDataRequest()
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_sender.cpp43 const sptr<ISendShortMessageCallback> &sendCallback, in TextBasedSmsDelivery() argument
58 SendCallbackBecauseTpduNull(sendCallback, "TextBasedSmsDelivery"); in TextBasedSmsDelivery()
63 SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
76 SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
84 …indexer = make_shared<SmsSendIndexer>(desAddr, scAddr, segmentText, sendCallback, deliveryCallback… in TextBasedSmsDelivery()
86 SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN); in TextBasedSmsDelivery()
144 const uint8_t *data, uint32_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback, in DataBasedSmsDelivery() argument
158 SendCallbackBecauseTpduNull(sendCallback, "DataBasedSmsDelivery"); in DataBasedSmsDelivery()
163 …gsmSmsMessage, cellsInfos, tpdu, msgRef8bit, desAddr, scAddr, port, sendCallback, deliveryCallback… in DataBasedSmsDelivery()
168 int32_t port, const sptr<ISendShortMessageCallback> &sendCallback, in DataBasedSmsDeliverySplitPage() argument
[all …]
/base/telephony/sms_mms/services/sms/include/
Dsms_sender.h45 const std::string &text, const sptr<ISendShortMessageCallback> &sendCallback,
49 const uint8_t *data, uint32_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback,
66 …const sptr<ISendShortMessageCallback> &sendCallback, ISendShortMessageCallback::SmsSendResult resu…
81 bool SendCacheMapLimitCheck(const sptr<ISendShortMessageCallback> &sendCallback);
Dsms_send_manager.h35 const sptr<ISendShortMessageCallback> &sendCallback,
38 const uint8_t *data, uint16_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback,
Dsms_send_indexer.h34 const sptr<ISendShortMessageCallback> &sendCallback,
37 uint32_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback,
62 void SetSendCallback(const sptr<ISendShortMessageCallback> &sendCallback);
Dsms_service.h53 const std::u16string text, const sptr<ISendShortMessageCallback> &sendCallback,
71 const uint8_t *data, uint16_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback,
321 bool CheckSmsPermission(const sptr<ISendShortMessageCallback> &sendCallback);
Dsms_interface_manager.h40 const sptr<ISendShortMessageCallback> &sendCallback,
43 const uint8_t *data, uint16_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback,
/base/telephony/sms_mms/test/gtest/
Dzero_branch_sms_test.cpp135 const sptr<ISendShortMessageCallback> sendCallback = variable
137 if (sendCallback == nullptr) {
149 cdmaSmsSender->TextBasedSmsDelivery(desAddr, scAddr, text, sendCallback, deliveryCallback);
150 … cdmaSmsSender->TextBasedSmsDeliveryViaIms(desAddr, scAddr, text, sendCallback, deliveryCallback);
155 …smsIndexer = std::make_shared<SmsSendIndexer>(desAddr, scAddr, text, sendCallback, deliveryCallbac…
301 const sptr<ISendShortMessageCallback> sendCallback = variable
308 …auto smsIndexer = std::make_shared<SmsSendIndexer>(desAddr, scAddr, text, sendCallback, deliveryCa…
356 const sptr<ISendShortMessageCallback> sendCallback = variable
363 …auto smsIndexer = std::make_shared<SmsSendIndexer>(desAddr, scAddr, text, sendCallback, deliveryCa…
374 … smsSender->SendResultCallBack(sendCallback, ISendShortMessageCallback::SEND_SMS_FAILURE_UNKNOWN);
[all …]
/base/telephony/sms_mms/test/fuzztest/smseventissue_fuzzer/
Dsmseventissue_fuzzer.cpp36 const sptr<ISendShortMessageCallback> sendCallback = in DoSentIssueTest() local
38 if (sendCallback == nullptr) { in DoSentIssueTest()
47 std::make_shared<SmsSendIndexer>(desAddr, scAddr, text, sendCallback, deliveryCallback); in DoSentIssueTest()
/base/telephony/sms_mms/interfaces/innerkits/
Dsms_service_proxy.h44 const std::u16string text, const sptr<ISendShortMessageCallback> &sendCallback,
61 const uint8_t *data, uint16_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback,
Di_sms_service_interface.h135 const std::u16string text, const sptr<ISendShortMessageCallback> &sendCallback,
153 …t port, const uint8_t *data, uint16_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback,
/base/telephony/sms_mms/
DREADME_zh.md88 | sendCallback | AsyncCallback\<ISendShortMessageCallback> | 发送结果回调 | 是 |
176 1. 构造SendMessageOptions对象,传入必要的参数;若关注发送结果或送达报告,需要传入sendCallback或deliveryCallback对象。
187 sendCallback: (err, data) => {
/base/telephony/sms_mms/frameworks/native/sms/src/
Dsms_service_proxy.cpp31 const std::u16string text, const sptr<ISendShortMessageCallback> &sendCallback, in SendMessage() argument
47 if (sendCallback != nullptr) { in SendMessage()
48 dataParcel.WriteRemoteObject(sendCallback->AsObject().GetRefPtr()); in SendMessage()
68 …t port, const uint8_t *data, uint16_t dataLen, const sptr<ISendShortMessageCallback> &sendCallback, in SendMessage() argument
84 if (sendCallback == nullptr) { in SendMessage()
88 dataParcel.WriteRemoteObject(sendCallback->AsObject().GetRefPtr()); in SendMessage()

12