Home
last modified time | relevance | path

Searched refs:ToUtf8 (Results 1 - 25 of 39) sorted by relevance

12

/base/telephony/sms_mms/services/mms/
H A Dmms_send_manager.cpp46 StringUtils::ToUtf8(mmsc), StringUtils::ToUtf8(data), StringUtils::ToUtf8(ua), StringUtils::ToUtf8(uaprof)); in SendMms()
H A Dmms_receive_manager.cpp46 StringUtils::ToUtf8(mmsc), dataPdu, StringUtils::ToUtf8(ua), StringUtils::ToUtf8(uaprof)); in DownloadMms()
H A Dmms_apn_info.cpp118 std::string mccmnc = StringUtils::ToUtf8(operatorNumeric); in PdpProfileSelect()
/base/telephony/core_service/utils/common/include/
H A 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/
H A 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/core_service/frameworks/cj/telephony_sim/src/
H A Dtelephony_sim_impl.cpp109 static std::string ToUtf8(std::u16string str16) in ToUtf8() function
161 operatorName = errCode == ERROR_NONE ? ToUtf8(countryCode) : ""; in getISOCountryCodeForSim()
177 std::string operatorNumeric = errCode == ERROR_NONE ? ToUtf8(u16OperatorNumeric) : ""; in getSimOperatorNumeric()
192 std::string spn = errCode == ERROR_NONE ? ToUtf8(u16Spn) : ""; in getSimSpn()
245 accountInfo.iccId = MallocCString(ToUtf8(iccAccountInfo.iccId)); in IccAccountInfoConversion()
246 accountInfo.showName = MallocCString(ToUtf8(iccAccountInfo.showName)); in IccAccountInfoConversion()
247 accountInfo.showNumber = MallocCString(ToUtf8(iccAccountInfo.showNumber)); in IccAccountInfoConversion()
318 std::string opkey = errCode == ERROR_NONE ? ToUtf8(u16Opkey) : ""; in getOpKey()
333 std::string opName = errCode == ERROR_NONE ? ToUtf8(u16OpName) : ""; in getOpName()
/base/telephony/sms_mms/test/unittest/
H A Dshort_message_test.cpp70 std::cout << "GetVisibleMessageBody = " << StringUtils::ToUtf8(shortMessage_->GetVisibleMessageBody()) in TestGetVisibleMessageBody()
82 std::cout << "GetSmscAddr = " << StringUtils::ToUtf8(smscAddress) << std::endl; in TestShowShortMessage()
83 std::cout << "GetVisibleMessageBody = " << StringUtils::ToUtf8(shortMessage_->GetVisibleMessageBody()) in TestShowShortMessage()
85 std::cout << "GetVisibleRawAddress = " << StringUtils::ToUtf8(shortMessage_->GetVisibleRawAddress()) in TestShowShortMessage()
H A Dgsm_sms_sender_test.cpp232 std::cout << "TestGetSmscAddr:" << StringUtils::ToUtf8(result) << std::endl; in TestGetSmscAddr()
350 << " message:" << StringUtils::ToUtf8(item.GetVisibleMessageBody()) << std::endl; in TestGetAllSimMessages()
498 std::cout << StringUtils::ToUtf8(item) << std::endl; in TestSplitMessage()
572 std::cout << "GetImsShortMessageFormat:" << StringUtils::ToUtf8(format) << std::endl; in TestGetImsShortMessageFormat()
/base/telephony/sms_mms/services/sms/
H A Dsms_service.cpp162 if (!ValidDestinationAddress(StringUtils::ToUtf8(desAddr))) { in SendMessage()
170 InsertSessionAndDetail(slotId, StringUtils::ToUtf8(desAddr), StringUtils::ToUtf8(text), dataId); in SendMessage()
175 predicates.EqualTo(SmsMmsInfo::RECEIVER_NUMBER, StringUtils::ToUtf8(desAddr)); in SendMessage()
177 predicates.EqualTo(SmsMmsInfo::MSG_CONTENT, StringUtils::ToUtf8(text)); in SendMessage()
182 bool ret = interfaceManager->TextBasedSmsDelivery(StringUtils::ToUtf8(desAddr), StringUtils::ToUtf8(scAddr), in SendMessage()
183 StringUtils::ToUtf8(text), sendCallback, deliveryCallback, dataId, isMmsApp); in SendMessage()
184 DelayedSingleton<SmsPersistHelper>::GetInstance()->UpdateContact(StringUtils::ToUtf8(desAddr)); in SendMessage()
303 if (!ValidDestinationAddress(StringUtils::ToUtf8(desAdd in SendMessage()
[all...]
H A Dsms_interface_stub.cpp508 result = GetBase64Encode(StringUtils::ToUtf8(src), dest); in OnGetBase64Encode()
521 result = GetBase64Decode(StringUtils::ToUtf8(src), dest); in OnGetBase64Decode()
535 std::string str = StringUtils::ToUtf8(strEncodeString); in OnGetEncodeStringFunc()
584 TELEPHONY_LOGI("SmsInterfaceStub::OnDownloadMms dbUrls:%{public}s", StringUtils::ToUtf8(mmsData).c_str()); in OnDownloadMms()
/base/telephony/state_registry/frameworks/cj/src/
H A Dtelephony_observer_utils.cpp33 std::string ToUtf8(std::u16string str16) in ToUtf8() function
H A Dtelephony_observer_utils.h38 std::string ToUtf8(std::u16string str16);
/base/telephony/sms_mms/test/gtest/
H A Dsms_delivery_callback_gtest.cpp38 std::string pduStr = StringUtils::ToUtf8(pdu); in OnSmsDeliveryResult()
/base/telephony/sms_mms/utils/
H A Dstring_utils.h31 static std::string ToUtf8(const std::u16string &str16);
H A 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/
H A Dsim_type_convert_test.cpp167 EXPECT_EQ(ToUtf8(testU16Str), testU8Str); in HWTEST_F()
169 EXPECT_EQ(ToUtf8(testU32Str), testU8Str); in HWTEST_F()
170 EXPECT_EQ(ToUtf8(testWstr), testU8Str); in HWTEST_F()
/base/location/services/location_gnss/gnss/include/
H A Dstring_utils.h33 static std::string ToUtf8(const std::u16string &str16);
/base/telephony/core_service/frameworks/js/esim/src/
H A Dnapi_esim.cpp180 SetPropertyToNapiObject(env, val, "osVersion", NapiUtil::ToUtf8(resultInfo.osVersion_)); in EuiccInfoConversion()
200 SetPropertyToNapiObject(env, val, "certificateHashHexStr", NapiUtil::ToUtf8(accessInfo.certificateHashHexStr_)); in AccessRuleInfoConversion()
201 SetPropertyToNapiObject(env, val, "packageName", NapiUtil::ToUtf8(accessInfo.packageName_)); in AccessRuleInfoConversion()
211 SetPropertyToNapiObject(env, val, "activationCode", NapiUtil::ToUtf8(profileInfo.encodedActivationCode_)); in ProfileInfoConversion()
212 SetPropertyToNapiObject(env, val, "confirmationCode", NapiUtil::ToUtf8(profileInfo.confirmationCode_)); in ProfileInfoConversion()
213 SetPropertyToNapiObject(env, val, "carrierName", NapiUtil::ToUtf8(profileInfo.carrierName_)); in ProfileInfoConversion()
259 SetPropertyToNapiObject(env, val, "mcc", NapiUtil::ToUtf8(operatorId.mcc_)); in OperatorIdConversion()
260 SetPropertyToNapiObject(env, val, "mnc", NapiUtil::ToUtf8(operatorId.mnc_)); in OperatorIdConversion()
261 SetPropertyToNapiObject(env, val, "gid1", NapiUtil::ToUtf8(operatorId.gid1_)); in OperatorIdConversion()
262 SetPropertyToNapiObject(env, val, "gid2", NapiUtil::ToUtf8(operatorI in OperatorIdConversion()
[all...]
/base/telephony/sms_mms/frameworks/js/napi/src/
H A Dnapi_send_recv_mms.cpp151 std::string pduFileName = NapiUtil::ToUtf8(asyncContext->data); in NativeSendMms()
409 std::string fileName = NapiUtil::ToUtf8(context.data); in DownloadExceptionCase()
468 TELEPHONY_LOGI("NativeDownloadMms dbUrls:%{public}s", NapiUtil::ToUtf8(dbUrls).c_str()); in NativeDownloadMms()
474 helper.SetDbUrl(NapiUtil::ToUtf8(dbUrls)); in NativeDownloadMms()
475 helper.SetStoreFileName(NapiUtil::ToUtf8(asyncContext->data)); in NativeDownloadMms()
H A Ddelivery_callback.cpp127 pContext->pduStr = NapiUtil::ToUtf8(pdu); in OnSmsDeliveryResult()
/base/telephony/core_service/frameworks/js/sim/src/
H A Dnapi_sim.cpp299 SetPropertyToNapiObject(env, val, "iccId", NapiUtil::ToUtf8(iccAccountInfo.iccId)); in IccAccountInfoConversion()
300 SetPropertyToNapiObject(env, val, "showName", NapiUtil::ToUtf8(iccAccountInfo.showName)); in IccAccountInfoConversion()
301 SetPropertyToNapiObject(env, val, "showNumber", NapiUtil::ToUtf8(iccAccountInfo.showNumber)); in IccAccountInfoConversion()
637 asyncContext->callbackVal = NapiUtil::ToUtf8(countryCode); in NativeGetIsoForSim()
668 std::string code = NapiUtil::ToUtf8(countryCode); in GetISOCountryCodeForSimSync()
675 std::string code = NapiUtil::ToUtf8(countryCode); in GetISOCountryCodeForSimSync()
682 std::string code = NapiUtil::ToUtf8(countryCode); in GetISOCountryCodeForSimSync()
702 asyncContext->callbackVal = NapiUtil::ToUtf8(operatorNumeric); in NativeGetSimOperatorNumeric()
733 std::string numeric = NapiUtil::ToUtf8(operatorNumeric); in GetSimOperatorNumericSync()
740 std::string numeric = NapiUtil::ToUtf8(operatorNumeri in GetSimOperatorNumericSync()
[all...]
/base/telephony/core_service/services/sim/src/
H A Desim_file.cpp292 std::string appId = OHOS::Telephony::ToUtf8(aid); in ProcessEsimOpenChannel()
757 std::string str = OHOS::Telephony::ToUtf8(esimProfile_.iccId); in ProcessDisableProfile()
1128 std::string iccid = OHOS::Telephony::ToUtf8(esimProfile_.iccId); in ProcessGetProfile()
1339 std::string address = OHOS::Telephony::ToUtf8(esimProfile_.defaultSmdpAddress); in ProcessEstablishDefaultSmdpAddress()
1471 std::string hexStr = OHOS::Telephony::ToUtf8(esimProfile_.apduData.data_); in ProcessSendApduData()
1600 dst.smdpSigned2 = OHOS::Telephony::ToUtf8(src.smdpSigned2); in ConvertPreDownloadParaFromApiStru()
1601 dst.smdpSignature2 = OHOS::Telephony::ToUtf8(src.smdpSignature2); in ConvertPreDownloadParaFromApiStru()
1602 dst.smdpCertificate = OHOS::Telephony::ToUtf8(src.smdpCertificate); in ConvertPreDownloadParaFromApiStru()
1603 dst.hashCc = OHOS::Telephony::ToUtf8(src.hashCc); in ConvertPreDownloadParaFromApiStru()
1852 std::string boundProfilePackage = OHOS::Telephony::ToUtf8(esimProfile in ProcessLoadBoundProfilePackage()
[all...]
/base/telephony/core_service/frameworks/cj/telephony_radio/src/
H A Dtelephony_radio_impl.cpp169 static std::string ToUtf8(std::u16string str16) in ToUtf8() function
277 std::string code = ToUtf8(countryCode); in GetISOCountryCodeForNetwork()
391 std::string operatorName = ToUtf8(u16OperatorName); in GetOperatorName()
/base/telephony/sms_mms/frameworks/native/sms/src/
H A Dshort_message.cpp206 std::string indicates = StringUtils::ToUtf8(specification); in CreateMessage()
/base/telephony/core_service/frameworks/js/napi/
H A Dnapi_util.h32 static std::string ToUtf8(std::u16string str16);

Completed in 22 milliseconds

12