Home
last modified time | relevance | path

Searched refs:formatNumber (Results 1 – 23 of 23) sorted by relevance

/ohos5.0/base/telephony/call_manager/utils/src/
H A Dcall_number_utils.cpp46 formatNumber = phoneNumber; in FormatPhoneNumber()
58 phoneUtils->FormatInOriginalFormat(parseResult, tmpCode, &formatNumber); in FormatPhoneNumber()
59 if (formatNumber.empty() || formatNumber == "0") { in FormatPhoneNumber()
60 formatNumber = ""; in FormatPhoneNumber()
76 ProcessSpace(formatNumber); in FormatPhoneNumberToNational()
85 ProcessSpace(formatNumber); in FormatPhoneNumberToInternational()
105 phoneUtils->Format(parseResult, formatInfo, &formatNumber); in FormatNumberBase()
118 formatNumber = phoneNumber; in FormatPhoneNumberAsYouType()
137 formatNumber = formatter->InputDigit(c, &result); in FormatPhoneNumberAsYouType()
139 if (formatNumber.empty() || formatNumber == "0") { in FormatPhoneNumberAsYouType()
[all …]
/ohos5.0/base/telephony/call_manager/utils/include/
H A Dcall_number_utils.h32 const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber);
34 const std::string phoneNumber, const std::string countryCode, std::string &formatNumber);
36 const std::string phoneNumber, const std::string countryCode, std::string &formatNumber);
38 const std::string phoneNumber, const std::string countryCode, std::string &formatNumber);
40 …onst i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat formatInfo, std::string &formatNumber);
42 const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber);
/ohos5.0/base/telephony/call_manager/frameworks/cj/src/
H A Dtelephony_call_impl.cpp102 std::u16string formatNumber = u""; in FormatPhoneNumberToE164() local
108 phoneNumber, countryCode, formatNumber); in FormatPhoneNumberToE164()
110 std::string result = Str16ToStr8(formatNumber); in FormatPhoneNumberToE164()
183 std::u16string formatNumber = u""; in FormatPhoneNumber() local
189 phoneNumber, countryCode, formatNumber); in FormatPhoneNumber()
191 std::string result = Str16ToStr8(formatNumber); in FormatPhoneNumber()
/ohos5.0/base/telephony/call_manager/test/unittest/call_manager_gtest/src/
H A Dcall_manager3_gtest.cpp184 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
185 …T_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber),
204 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
205 …T_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber),
224 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
225 …T_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber),
244 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
245 …T_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber),
264 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
284 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
[all …]
H A Dcall_manager4_gtest.cpp809 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
811 …CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VA…
829 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
831 …CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VA…
849 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
869 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
889 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
909 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
929 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
951 std::u16string formatNumber = Str8ToStr16(formatBefore); variable
[all …]
H A Dcall_manager_connect.cpp379 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) const in FormatPhoneNumber()
382 return callManagerServicePtr_->FormatPhoneNumber(number, countryCode, formatNumber); in FormatPhoneNumber()
389 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) const in FormatPhoneNumberToE164()
392 return callManagerServicePtr_->FormatPhoneNumberToE164(number, countryCode, formatNumber); in FormatPhoneNumberToE164()
/ohos5.0/base/telephony/call_manager/test/unittest/call_manager_zero_gtest/src/
H A Dzero_branch1_test.cpp419 std::string formatNumber = ""; variable
421 …ayedSingleton<CallNumberUtils>::GetInstance()->FormatPhoneNumber(emptyStr, emptyStr, formatNumber),
423 …dSingleton<CallNumberUtils>::GetInstance()->FormatPhoneNumber(phoneNumber, emptyStr, formatNumber),
426 …ngleton<CallNumberUtils>::GetInstance()->FormatPhoneNumber(phoneNumber, countryCode, formatNumber),
429 …ngleton<CallNumberUtils>::GetInstance()->FormatPhoneNumberToE164(emptyStr, emptyStr, formatNumber),
432 …eton<CallNumberUtils>::GetInstance()->FormatPhoneNumberToE164(phoneNumber, emptyStr, formatNumber),
435 phoneNumber, countryCode, formatNumber), TELEPHONY_ERR_SUCCESS);
437 emptyStr, emptyStr, formatNumber), TELEPHONY_ERR_SUCCESS);
439 emptyStr, emptyStr, formatNumber), TELEPHONY_ERR_SUCCESS);
/ohos5.0/base/telephony/call_manager/interfaces/innerkits/
H A Dcall_manager_client.h330 …rmatPhoneNumber(std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
341 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
/ohos5.0/base/telephony/call_manager/frameworks/native/src/
H A Dcall_manager_client.cpp431 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumber() argument
434 return g_callManagerProxy->FormatPhoneNumber(number, countryCode, formatNumber); in FormatPhoneNumber()
442 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumberToE164() argument
445 return g_callManagerProxy->FormatPhoneNumberToE164(number, countryCode, formatNumber); in FormatPhoneNumberToE164()
H A Dcall_manager_service_proxy.cpp813 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumber() argument
834 formatNumber = replyParcel.ReadString16(); in FormatPhoneNumber()
840 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumberToE164() argument
861 formatNumber = replyParcel.ReadString16(); in FormatPhoneNumberToE164()
H A Dcall_manager_proxy.cpp931 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumber() argument
942 int32_t errCode = callManagerServicePtr_->FormatPhoneNumber(number, countryCode, formatNumber); in FormatPhoneNumber()
951 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumberToE164() argument
962 …t32_t errCode = callManagerServicePtr_->FormatPhoneNumberToE164(number, countryCode, formatNumber); in FormatPhoneNumberToE164()
/ohos5.0/base/telephony/call_manager/frameworks/native/include/
H A Dcall_manager_proxy.h86 …rmatPhoneNumber(std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
88 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
H A Dcall_manager_service_proxy.h450 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) override;
462 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) override;
H A Di_call_manager_service.h77 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) = 0;
79 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) = 0;
/ohos5.0/base/telephony/call_manager/services/call/include/
H A Dcall_control_manager.h111 …rmatPhoneNumber(std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
113 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
/ohos5.0/base/telephony/call_manager/services/call_manager_service/include/
H A Dcall_manager_service.h465 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) override;
477 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) override;
/ohos5.0/base/telephony/call_manager/test/unittest/ui_client/
H A Dui_client_test.cpp709 std::u16string formatNumber; in FormatPhoneNumber() local
715 formatNumber.clear(); in FormatPhoneNumber()
728 int32_t ret = g_clientPtr->FormatPhoneNumber(phoneNumber, countryCode, formatNumber); in FormatPhoneNumber()
730 std::cout << "return number:" << Str16ToStr8(formatNumber) << std::endl; in FormatPhoneNumber()
737 std::u16string formatNumber; in FormatPhoneNumberToE164() local
743 formatNumber.clear(); in FormatPhoneNumberToE164()
756 int32_t ret = g_clientPtr->FormatPhoneNumberToE164(phoneNumberE164, countryCode, formatNumber); in FormatPhoneNumberToE164()
758 std::cout << "return number:" << Str16ToStr8(formatNumber) << std::endl; in FormatPhoneNumberToE164()
/ohos5.0/base/telephony/call_manager/test/unittest/call_manager_gtest/include/
H A Dcall_manager_connect.h478 …oneNumber(std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) const;
480 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) const;
/ohos5.0/base/telephony/call_manager/services/call_manager_service/src/
H A Dcall_manager_service_stub.cpp926 std::u16string formatNumber; in OnFormatPhoneNumber() local
927 int32_t result = FormatPhoneNumber(callNumber, countryCode, formatNumber); in OnFormatPhoneNumber()
936 if (!reply.WriteString16(formatNumber)) { in OnFormatPhoneNumber()
947 std::u16string formatNumber; in OnFormatPhoneNumberToE164() local
948 int32_t result = FormatPhoneNumberToE164(callNumber, countryCode, formatNumber); in OnFormatPhoneNumberToE164()
957 if (!reply.WriteString16(formatNumber)) { in OnFormatPhoneNumberToE164()
H A Dcall_manager_service.cpp1000 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumber() argument
1003 return callControlManagerPtr_->FormatPhoneNumber(number, countryCode, formatNumber); in FormatPhoneNumber()
1011 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumberToE164() argument
1014 return callControlManagerPtr_->FormatPhoneNumberToE164(number, countryCode, formatNumber); in FormatPhoneNumberToE164()
/ohos5.0/base/telephony/call_manager/frameworks/js/napi/include/
H A Dnapi_call_manager_types.h135 std::u16string formatNumber = u""; member
/ohos5.0/base/telephony/call_manager/services/call/src/
H A Dcall_control_manager.cpp1187 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumber() argument
1192 formatNumber = Str8ToStr16(tmpStr); in FormatPhoneNumber()
1197 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumberToE164() argument
1202 formatNumber = Str8ToStr16(tmpStr); in FormatPhoneNumberToE164()
/ohos5.0/base/telephony/call_manager/frameworks/js/napi/src/
H A Dnapi_call_manager.cpp3819 napi_create_string_utf8(env, Str16ToStr8(formatNumberContext->formatNumber).data(), in NativeFormatNumberCallBack()
3820 formatNumberContext->formatNumber.length(), &promiseValue); in NativeFormatNumberCallBack()
3833 napi_create_string_utf8(env, Str16ToStr8(formatNumberContext->formatNumber).data(), in NativeFormatNumberCallBack()
3834 formatNumberContext->formatNumber.length(), &callbackValue[ARRAY_INDEX_SECOND]); in NativeFormatNumberCallBack()
4822 phoneNumber, countryCode, asyncContext->formatNumber); in NativeFormatPhoneNumber()
4840 phoneNumber, countryCode, asyncContext->formatNumber); in NativeFormatPhoneNumberToE164()