Home
last modified time | relevance | path

Searched refs:ToUtf8 (Results 1 – 25 of 27) sorted by relevance

12

/base/telephony/sms_mms/services/mms/
Dmms_send_manager.cpp48 …StringUtils::ToUtf8(mmsc), StringUtils::ToUtf8(data), StringUtils::ToUtf8(ua), StringUtils::ToUtf8 in SendMms()
Dmms_receive_manager.cpp48 …StringUtils::ToUtf8(mmsc), StringUtils::ToUtf8(data), StringUtils::ToUtf8(ua), StringUtils::ToUtf8 in DownloadMms()
Dmms_apn_info.cpp76 std::string mccmnc = StringUtils::ToUtf8(operatorNumeric); in PdpProfileSelect()
/base/telephony/core_service/utils/common/include/
Dstr_convert.h24 std::string ToUtf8(std::u16string str16);
26 std::string ToUtf8(std::u32string str32);
27 std::string ToUtf8(std::wstring wstr);
/base/telephony/core_service/utils/common/src/
Dstr_convert.cpp27 std::string ToUtf8(std::u16string str16) in ToUtf8() function
37 std::string ToUtf8(std::u32string str32) in ToUtf8() function
42 std::string ToUtf8(std::wstring wstr) in ToUtf8() function
/base/telephony/sms_mms/test/unittest/
Dshort_message_test.cpp70 …std::cout << "GetVisibleMessageBody = " << StringUtils::ToUtf8(shortMessage_->GetVisibleMessageBod… in TestGetVisibleMessageBody()
82 std::cout << "GetSmscAddr = " << StringUtils::ToUtf8(smscAddress) << std::endl; in TestShowShortMessage()
83 …std::cout << "GetVisibleMessageBody = " << StringUtils::ToUtf8(shortMessage_->GetVisibleMessageBod… in TestShowShortMessage()
85 …std::cout << "GetVisibleRawAddress = " << StringUtils::ToUtf8(shortMessage_->GetVisibleRawAddress(… in TestShowShortMessage()
Dgsm_sms_sender_test.cpp216 std::cout << "TestGetSmscAddr:" << StringUtils::ToUtf8(result) << std::endl; in TestGetSmscAddr()
335 << " message:" << StringUtils::ToUtf8(item.GetVisibleMessageBody()) << std::endl; in TestGetAllSimMessages()
485 std::cout << StringUtils::ToUtf8(item) << std::endl; in TestSplitMessage()
559 std::cout << "GetImsShortMessageFormat:" << StringUtils::ToUtf8(format) << std::endl; in TestGetImsShortMessageFormat()
Dsms_broadcast_subscriber.cpp49 std::string messageBody = StringUtils::ToUtf8(message->GetVisibleMessageBody()); in OnReceiveEvent()
/base/telephony/sms_mms/services/sms/
Dsms_service.cpp160 if (!ValidDestinationAddress(StringUtils::ToUtf8(desAddr))) { in SendMessage()
165 …return interfaceManager->TextBasedSmsDelivery(StringUtils::ToUtf8(desAddr), StringUtils::ToUtf8(sc… in SendMessage()
166 StringUtils::ToUtf8(text), sendCallback, deliveryCallback); in SendMessage()
275 if (!ValidDestinationAddress(StringUtils::ToUtf8(desAddr))) { in SendMessage()
281 …StringUtils::ToUtf8(desAddr), StringUtils::ToUtf8(scAddr), port, data, dataLen, sendCallback, deli… in SendMessage()
354 string sca = StringUtils::ToUtf8(scAddr); in SetSmscAddr()
416 std::string smscData = StringUtils::ToUtf8(smsc); in AddSimMessage()
417 std::string pduData = StringUtils::ToUtf8(pdu); in AddSimMessage()
474 std::string pduData = StringUtils::ToUtf8(pdu); in UpdateSimMessage()
475 std::string smscData = StringUtils::ToUtf8(smsc); in UpdateSimMessage()
[all …]
Dsms_interface_stub.cpp172 …dSingleton<SmsService>::GetInstance()->InsertSessionAndDetail(slotId, StringUtils::ToUtf8(desAddr), in OnSendSmsTextRequest()
173 StringUtils::ToUtf8(text)); in OnSendSmsTextRequest()
459 result = GetBase64Encode(StringUtils::ToUtf8(src), dest); in OnGetBase64Encode()
472 result = GetBase64Decode(StringUtils::ToUtf8(src), dest); in OnGetBase64Decode()
486 std::string str = StringUtils::ToUtf8(strEncodeString); in OnGetEncodeStringFunc()
/base/telephony/sms_mms/utils/
Dstring_utils.h31 static std::string ToUtf8(const std::u16string &str16);
Dstring_utils.cpp118 std::string StringUtils::ToUtf8(const std::u16string &str16) in ToUtf8() function in OHOS::Telephony::StringUtils
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsim_type_convert_test.cpp167 EXPECT_EQ(ToUtf8(testU16Str), testU8Str);
169 EXPECT_EQ(ToUtf8(testU32Str), testU8Str);
170 EXPECT_EQ(ToUtf8(testWstr), testU8Str);
/base/telephony/sms_mms/test/gtest/
Dsms_delivery_callback_gtest.cpp38 std::string pduStr = StringUtils::ToUtf8(pdu); in OnSmsDeliveryResult()
Dsms_gtest.cpp873 dest = StringUtils::ToUtf8(simcardNumber); in SendDataMessageTestFuc()
901 dest = StringUtils::ToUtf8(simcardNumber); in SendDataMessageTestFuc2()
1002 dest = StringUtils::ToUtf8(simcardNumber); in SendTextMessageTestFuc()
1031 dest = StringUtils::ToUtf8(simcardNumber); in SendTextMessageTestFuc2()
/base/telephony/core_service/frameworks/js/sim/src/
Dnapi_sim.cpp237 SetPropertyToNapiObject(env, val, "iccId", NapiUtil::ToUtf8(iccAccountInfo.iccId)); in IccAccountInfoConversion()
238 SetPropertyToNapiObject(env, val, "showName", NapiUtil::ToUtf8(iccAccountInfo.showName)); in IccAccountInfoConversion()
239 SetPropertyToNapiObject(env, val, "showNumber", NapiUtil::ToUtf8(iccAccountInfo.showNumber)); in IccAccountInfoConversion()
565 asyncContext->callbackVal = NapiUtil::ToUtf8(countryCode); in NativeGetIsoForSim()
596 std::string code = NapiUtil::ToUtf8(countryCode); in GetISOCountryCodeForSimSync()
603 std::string code = NapiUtil::ToUtf8(countryCode); in GetISOCountryCodeForSimSync()
610 std::string code = NapiUtil::ToUtf8(countryCode); in GetISOCountryCodeForSimSync()
630 asyncContext->callbackVal = NapiUtil::ToUtf8(operatorNumeric); in NativeGetSimOperatorNumeric()
661 std::string numeric = NapiUtil::ToUtf8(operatorNumeric); in GetSimOperatorNumericSync()
668 std::string numeric = NapiUtil::ToUtf8(operatorNumeric); in GetSimOperatorNumericSync()
[all …]
/base/telephony/sms_mms/frameworks/js/napi/src/
Ddelivery_callback.cpp113 pContext->pduStr = NapiUtil::ToUtf8(pdu); in OnSmsDeliveryResult()
Dnapi_sms.cpp440 env, object, "visibleMessageBody", NapiUtil::ToUtf8(shortMessage.GetVisibleMessageBody())); in CreateShortMessageValue()
442 env, object, "visibleRawAddress", NapiUtil::ToUtf8(shortMessage.GetVisibleRawAddress())); in CreateShortMessageValue()
447 NapiUtil::SetPropertyStringUtf8(env, object, "scAddress", NapiUtil::ToUtf8(smscAddress)); in CreateShortMessageValue()
845 context->smscAddr = NapiUtil::ToUtf8(smscAddress); in NativeGetSmscAddr()
1411 std::string message = NapiUtil::ToUtf8(context->messageArray[i]); in SplitMessageCallback()
/base/telephony/sms_mms/frameworks/native/sms/src/
Dshort_message.cpp195 std::string indicates = StringUtils::ToUtf8(specification); in CreateMessage()
Dsms_service_proxy.cpp637 dest = StringUtils::ToUtf8(dataParcel.ReadString16()); in GetBase64Encode()
669 dest = StringUtils::ToUtf8(dataParcel.ReadString16()); in GetBase64Decode()
704 encodeString = StringUtils::ToUtf8(dataParcel.ReadString16()); in GetEncodeStringFunc()
/base/telephony/core_service/frameworks/js/napi/
Dnapi_util.h32 static std::string ToUtf8(std::u16string str16);
Dnapi_util.cpp98 std::string NapiUtil::ToUtf8(std::u16string str16) in ToUtf8() function in OHOS::Telephony::NapiUtil
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_cb_handler.cpp171 …TELEPHONY_LOGI("plmn = %{private}s lac = %{private}s cid = %{private}s", StringUtils::ToUtf8(info.… in InitLocation()
344 want.SetParam(SmsCbData::PLMN, StringUtils::ToUtf8(plmn_)); in SetWantData()
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_receive_handler.cpp229 want.SetParam(SmsCbData::PLMN, StringUtils::ToUtf8(plmn_)); in SetCBBroadcastParam()
/base/telephony/core_service/frameworks/js/network_search/src/
Dnapi_radio.cpp966 context->countryCode = NapiUtil::ToUtf8(countryCode); in NativeGetCountryCode()
1030 std::string code = NapiUtil::ToUtf8(countryCode); in GetISOCountryCodeForNetworkSync()
1037 std::string code = NapiUtil::ToUtf8(countryCode); in GetISOCountryCodeForNetworkSync()
1044 std::string code = NapiUtil::ToUtf8(countryCode); in GetISOCountryCodeForNetworkSync()
1327 std::string operatorName = NapiUtil::ToUtf8(u16OperatorName); in NativeGetOperatorName()
1395 std::string name = NapiUtil::ToUtf8(operatorName); in GetOperatorNameSync()
1402 std::string name = NapiUtil::ToUtf8(operatorName); in GetOperatorNameSync()
1409 std::string name = NapiUtil::ToUtf8(operatorName); in GetOperatorNameSync()
1725 context->getIMEIResult = NapiUtil::ToUtf8(imei); in NativeGetIMEI()
1795 context->getMEIDResult = NapiUtil::ToUtf8(meid); in NativeGetMEID()
[all …]

12