Home
last modified time | relevance | path

Searched refs:ToUtf16 (Results 1 – 19 of 19) sorted by relevance

/base/telephony/sms_mms/test/unittest/
Dgsm_sms_sender_test.cpp57 … smsService->SendMessage(slotId, StringUtils::ToUtf16(dest), StringUtils::ToUtf16(sca), port, data, in TestGsmSendShortData()
89 … smsService->SendMessage(slotId, StringUtils::ToUtf16(dest), StringUtils::ToUtf16(sca), port, data, in TestGsmSendLongData()
116 smsService->SendMessage(slotId, StringUtils::ToUtf16(dest), StringUtils::ToUtf16(sca), in TestSendShortText()
117 StringUtils::ToUtf16(text), sendCallBackPtr, deliveryCallBackPtr); in TestSendShortText()
134 std::u16string mmsc(StringUtils::ToUtf16(CU_MMSC)); in TestSendMms()
135 std::u16string data(StringUtils::ToUtf16(SEND_MMS_FILE_URL)); in TestSendMms()
171 smsService->SendMessage(slotId, StringUtils::ToUtf16(dest), StringUtils::ToUtf16(sca), in TestSendLongText()
172 StringUtils::ToUtf16(text), sendCallBackPtr, deliveryCallBackPtr); in TestSendLongText()
193 result = smsService->SetSmscAddr(slotId, StringUtils::ToUtf16(sca)); in TestSetSmscAddr()
243 … result = smsService->AddSimMessage(slotId, StringUtils::ToUtf16(smsc), StringUtils::ToUtf16(pdu), in TestAddSimMessage()
[all …]
/base/telephony/core_service/utils/common/include/
Dstr_convert.h23 std::u16string ToUtf16(std::string str);
/base/telephony/sms_mms/utils/
Dstring_utils.h32 static std::u16string ToUtf16(const std::string &str);
Dstring_utils.cpp127 std::u16string StringUtils::ToUtf16(const std::string &str) in ToUtf16() function in OHOS::Telephony::StringUtils
/base/telephony/core_service/utils/common/src/
Dstr_convert.cpp22 std::u16string ToUtf16(std::string str) in ToUtf16() function
/base/telephony/sms_mms/services/sms/
Dsms_send_manager.cpp265 splitMessage.emplace_back(StringUtils::ToUtf16(item.text)); in SplitMessage()
347 format = StringUtils::ToUtf16(NET_TYPE_UNKNOWN_STRING); in GetImsShortMessageFormat()
354 format = StringUtils::ToUtf16(NET_TYPE_GSM_STRING); in GetImsShortMessageFormat()
357 format = StringUtils::ToUtf16(NET_TYPE_CDMA_STRING); in GetImsShortMessageFormat()
Dsms_interface_stub.cpp464 reply.WriteString16(StringUtils::ToUtf16(dest)); in OnGetBase64Encode()
477 reply.WriteString16(StringUtils::ToUtf16(dest)); in OnGetBase64Decode()
498 reply.WriteString16(StringUtils::ToUtf16(encodeString)); in OnGetEncodeStringFunc()
Dsms_service.cpp701 message.visibleMessageBody_ = StringUtils::ToUtf16(baseMessage->GetVisibleMessageBody()); in CreateMessage()
702 message.visibleRawAddress_ = StringUtils::ToUtf16(baseMessage->GetVisibleOriginatingAddress()); in CreateMessage()
704 message.scAddress_ = StringUtils::ToUtf16(baseMessage->GetSmscAddr()); in CreateMessage()
Dsms_misc_manager.cpp417 smscAddress = StringUtils::ToUtf16(smscAddr_); in GetSmscAddr()
/base/telephony/sms_mms/test/gtest/
Dsms_gtest.cpp283 helper.slotId, StringUtils::ToUtf16(scAddr)); in SetSmscAddrTestFuc()
890 …ton<SmsServiceManagerClient>::GetInstance()->SendMessage(helper.slotId, StringUtils::ToUtf16(dest), in SendDataMessageTestFuc()
891 …StringUtils::ToUtf16(sca), port, DATA_SMS, (sizeof(DATA_SMS) / sizeof(DATA_SMS[0]) - 1), sendCallB… in SendDataMessageTestFuc()
918 …ton<SmsServiceManagerClient>::GetInstance()->SendMessage(helper.slotId, StringUtils::ToUtf16(dest), in SendDataMessageTestFuc2()
919 …StringUtils::ToUtf16(sca), port, DATA_SMS, (sizeof(DATA_SMS) / sizeof(DATA_SMS[0]) - 1), sendCallB… in SendDataMessageTestFuc2()
1021 …ton<SmsServiceManagerClient>::GetInstance()->SendMessage(helper.slotId, StringUtils::ToUtf16(dest), in SendTextMessageTestFuc()
1022 … StringUtils::ToUtf16(sca), StringUtils::ToUtf16(text), sendCallBackPtr, deliveryCallBackPtr); in SendTextMessageTestFuc()
1050 …ton<SmsServiceManagerClient>::GetInstance()->SendMessage(helper.slotId, StringUtils::ToUtf16(dest), in SendTextMessageTestFuc2()
1051 … StringUtils::ToUtf16(sca), StringUtils::ToUtf16(text), sendCallBackPtr, deliveryCallBackPtr); in SendTextMessageTestFuc2()
/base/telephony/core_service/frameworks/js/napi/
Dnapi_util.h33 static std::u16string ToUtf16(std::string str);
Dnapi_util.cpp103 std::u16string NapiUtil::ToUtf16(std::string str) in ToUtf16() function in OHOS::Telephony::NapiUtil
/base/telephony/core_service/frameworks/js/sim/src/
Dnapi_sim.cpp280 telNumber->name_ = NapiUtil::ToUtf16(info.alphaTag.data()); in GetDiallingNumberInfo()
281 telNumber->number_ = NapiUtil::ToUtf16(info.number.data()); in GetDiallingNumberInfo()
282 telNumber->pin2_ = NapiUtil::ToUtf16(info.pin2.data()); in GetDiallingNumberInfo()
1185 pinContext->asyncContext.slotId, NapiUtil::ToUtf16(pinContext->inStr1.data()), response); in NativeUnlockPin()
1242 …NapiUtil::ToUtf16(pukContext->inStr1.data()), NapiUtil::ToUtf16(pukContext->inStr2.data()), respon… in NativeUnlockPuk()
1302 alterPinContext->asyncContext.slotId, NapiUtil::ToUtf16(alterPinContext->inStr1.data()), in NativeAlterPin()
1303 NapiUtil::ToUtf16(alterPinContext->inStr2.data()), response); in NativeAlterPin()
1363 …const LockInfo info { static_cast<LockType>(lockContext->result), NapiUtil::ToUtf16(lockContext->i… in NativeSetLockState()
1514 std::u16string name = NapiUtil::ToUtf16(std::data(context->inputStr)); in NativeSetShowName()
1600 context->asyncContext.slotId, NapiUtil::ToUtf16(std::data(context->inputStr))); in NativeSetShowNumber()
[all …]
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsim_type_convert_test.cpp166 EXPECT_EQ(ToUtf16(testU8Str), testU16Str);
/base/telephony/sms_mms/frameworks/js/napi/src/
Dnapi_sms.cpp115 return NapiUtil::ToUtf16(str8); in GetU16StrFromNapiValue()
281 context.textContent = NapiUtil::ToUtf16(text); in ParseMessageParameter()
423 std::u16string specification16 = NapiUtil::ToUtf16(asyncContext->specification); in NativeCreateMessage()
766 NapiUtil::ToUtf16(context->smscAddr)); in NativeSetSmscAddr()
929 … context->slotId, NapiUtil::ToUtf16(context->smsc), NapiUtil::ToUtf16(context->pdu), status); in NativeAddSimMessage()
1110 NapiUtil::ToUtf16(context->pdu), NapiUtil::ToUtf16(context->smsc)); in NativeUpdateSimMessage()
1393 std::u16string content = NapiUtil::ToUtf16(context->content); in NativeSplitMessage()
1480 std::u16string content = NapiUtil::ToUtf16(context->content); in NativeGetSmsSegmentsInfo()
Dnapi_mms.cpp1579 asyncContext->data = NapiUtil::ToUtf16(helper.GetDbUrl()); in NativeSendMms()
1661 context.mmsc = NapiUtil::ToUtf16(str8); in GetMmsNameProperty()
1669 context.data = NapiUtil::ToUtf16(str8); in GetMmsNameProperty()
1679 context.mmsConfig.userAgent = NapiUtil::ToUtf16(str8); in GetMmsNameProperty()
1687 context.mmsConfig.userAgentProfile = NapiUtil::ToUtf16(str8); in GetMmsNameProperty()
1810 context.data = NapiUtil::ToUtf16(dbUrl); in StoreDownloadMmsPduToDataBase()
/base/telephony/sms_mms/frameworks/native/sms/src/
Dsms_service_proxy.cpp624 dataParcel.WriteString16(StringUtils::ToUtf16(src)); in GetBase64Encode()
656 dataParcel.WriteString16(StringUtils::ToUtf16(src)); in GetBase64Decode()
691 dataParcel.WriteString16(StringUtils::ToUtf16(strEncodeString)); in GetEncodeStringFunc()
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_sender.cpp432 deliveryCallback->OnSmsDeliveryResult(StringUtils::ToUtf16(ackpdu)); in StatusReportAnalysis()
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_sender.cpp461 deliveryCallback->OnSmsDeliveryResult(StringUtils::ToUtf16(ackpdu)); in StatusReportAnalysis()