Home
last modified time | relevance | path

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

/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 const i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat formatInfo, std::string &formatNumber);
42 const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber);
/base/telephony/call_manager/utils/src/
H A Dcall_number_utils.cpp38 const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber) in FormatPhoneNumber()
45 formatNumber = phoneNumber; in FormatPhoneNumber()
57 phoneUtils->FormatInOriginalFormat(parseResult, tmpCode, &formatNumber); in FormatPhoneNumber()
58 if (formatNumber.empty() || formatNumber == "0") { in FormatPhoneNumber()
59 formatNumber = ""; in FormatPhoneNumber()
65 const std::string phoneNumber, const std::string countryCode, std::string &formatNumber) in FormatPhoneNumberToE164()
67 return FormatNumberBase(phoneNumber, countryCode, i18n::phonenumbers::PhoneNumberUtil::E164, formatNumber); in FormatPhoneNumberToE164()
71 const std::string phoneNumber, const std::string countryCode, std::string &formatNumber) in FormatPhoneNumberToNational()
74 i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat::NATIONAL, formatNumber); in FormatPhoneNumberToNational()
37 FormatPhoneNumber( const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber) FormatPhoneNumber() argument
64 FormatPhoneNumberToE164( const std::string phoneNumber, const std::string countryCode, std::string &formatNumber) FormatPhoneNumberToE164() argument
70 FormatPhoneNumberToNational( const std::string phoneNumber, const std::string countryCode, std::string &formatNumber) FormatPhoneNumberToNational() argument
79 FormatPhoneNumberToInternational( const std::string phoneNumber, const std::string countryCode, std::string &formatNumber) FormatPhoneNumberToInternational() argument
88 FormatNumberBase(const std::string phoneNumber, std::string countryCode, const i18n::phonenumbers::PhoneNumberUtil::PhoneNumberFormat formatInfo, std::string &formatNumber) FormatNumberBase() argument
109 FormatPhoneNumberAsYouType( const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber) FormatPhoneNumberAsYouType() argument
[all...]
/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()
/base/telephony/call_manager/test/unittest/call_manager_gtest/src/
H A Dcall_manager4_gtest.cpp808 std::u16string formatNumber = Str8ToStr16(formatBefore); in HWTEST_F() local
810 CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VALUE_IS_ZERO); in HWTEST_F()
828 std::u16string formatNumber = Str8ToStr16(formatBefore); in HWTEST_F() local
830 CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VALUE_IS_ZERO); in HWTEST_F()
848 std::u16string formatNumber = Str8ToStr16(formatBefore); in HWTEST_F() local
850 CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VALUE_IS_ZERO); in HWTEST_F()
868 std::u16string formatNumber = Str8ToStr16(formatBefore); in HWTEST_F() local
870 CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VALUE_IS_ZERO); in HWTEST_F()
888 std::u16string formatNumber = Str8ToStr16(formatBefore); in HWTEST_F() local
890 CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VALUE_IS_ZER in HWTEST_F()
908 std::u16string formatNumber = Str8ToStr16(formatBefore); HWTEST_F() local
928 std::u16string formatNumber = Str8ToStr16(formatBefore); HWTEST_F() local
950 std::u16string formatNumber = Str8ToStr16(formatBefore); HWTEST_F() local
[all...]
H A Dcall_manager3_gtest.cpp184 std::u16string formatNumber = Str8ToStr16(formatBefore); in HWTEST_F() local
185 EXPECT_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber), in HWTEST_F()
204 std::u16string formatNumber = Str8ToStr16(formatBefore); in HWTEST_F() local
205 EXPECT_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber), in HWTEST_F()
224 std::u16string formatNumber = Str8ToStr16(formatBefore); in HWTEST_F() local
225 EXPECT_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber), in HWTEST_F()
244 std::u16string formatNumber = Str8ToStr16(formatBefore); in HWTEST_F() local
245 EXPECT_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber), in HWTEST_F()
264 std::u16string formatNumber = Str8ToStr16(formatBefore); in HWTEST_F() local
265 EXPECT_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber), in HWTEST_F()
284 std::u16string formatNumber = Str8ToStr16(formatBefore); HWTEST_F() local
304 std::u16string formatNumber = Str8ToStr16(formatBefore); HWTEST_F() local
[all...]
H A Dcall_manager_connect.cpp383 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) const in FormatPhoneNumber()
386 return callManagerServicePtr_->FormatPhoneNumber(number, countryCode, formatNumber); in FormatPhoneNumber()
393 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) const in FormatPhoneNumberToE164()
396 return callManagerServicePtr_->FormatPhoneNumberToE164(number, countryCode, formatNumber); in FormatPhoneNumberToE164()
/base/telephony/call_manager/interfaces/innerkits/
H A Dcall_manager_client.h328 * @param formatNumber[out] Formatting a phone number
331 int32_t FormatPhoneNumber(std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
338 * @param formatNumber[out] Formatting a phone number
342 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
/base/telephony/call_manager/test/unittest/call_manager_zero_gtest/src/
H A Dzero_branch1_test.cpp418 std::string formatNumber = ""; in HWTEST_F() local
420 ASSERT_NE(DelayedSingleton<CallNumberUtils>::GetInstance()->FormatPhoneNumber(emptyStr, emptyStr, formatNumber), in HWTEST_F()
422 EXPECT_EQ(DelayedSingleton<CallNumberUtils>::GetInstance()->FormatPhoneNumber(phoneNumber, emptyStr, formatNumber), in HWTEST_F()
425 DelayedSingleton<CallNumberUtils>::GetInstance()->FormatPhoneNumber(phoneNumber, countryCode, formatNumber), in HWTEST_F()
428 DelayedSingleton<CallNumberUtils>::GetInstance()->FormatPhoneNumberToE164(emptyStr, emptyStr, formatNumber), in HWTEST_F()
431 DelayedSingleton<CallNumberUtils>::GetInstance()->FormatPhoneNumberToE164(phoneNumber, emptyStr, formatNumber), in HWTEST_F()
434 phoneNumber, countryCode, formatNumber), TELEPHONY_ERR_SUCCESS); in HWTEST_F()
436 emptyStr, emptyStr, formatNumber), TELEPHONY_ERR_SUCCESS); in HWTEST_F()
438 emptyStr, emptyStr, formatNumber), TELEPHONY_ERR_SUCCESS); in HWTEST_F()
/base/telephony/call_manager/frameworks/native/src/
H A Dcall_manager_client.cpp431 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumber()
434 return g_callManagerProxy->FormatPhoneNumber(number, countryCode, formatNumber); in FormatPhoneNumber()
442 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumberToE164()
445 return g_callManagerProxy->FormatPhoneNumberToE164(number, countryCode, formatNumber); in FormatPhoneNumberToE164()
430 FormatPhoneNumber( std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) FormatPhoneNumber() argument
441 FormatPhoneNumberToE164( std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) FormatPhoneNumberToE164() argument
H A Dcall_manager_service_proxy.cpp814 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumber()
835 formatNumber = replyParcel.ReadString16(); in FormatPhoneNumber()
841 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumberToE164()
862 formatNumber = replyParcel.ReadString16(); in FormatPhoneNumberToE164()
813 FormatPhoneNumber( std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) FormatPhoneNumber() argument
840 FormatPhoneNumberToE164( std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) FormatPhoneNumberToE164() argument
H A Dcall_manager_proxy.cpp928 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumber()
939 int32_t errCode = callManagerServicePtr_->FormatPhoneNumber(number, countryCode, formatNumber); in FormatPhoneNumber()
948 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumberToE164()
959 int32_t errCode = callManagerServicePtr_->FormatPhoneNumberToE164(number, countryCode, formatNumber); in FormatPhoneNumberToE164()
927 FormatPhoneNumber( std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) FormatPhoneNumber() argument
947 FormatPhoneNumberToE164( std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) FormatPhoneNumberToE164() argument
/base/telephony/call_manager/frameworks/native/include/
H A Dcall_manager_service_proxy.h446 * @param formatNumber[out] Formatting a phone number
450 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) override;
458 * @param formatNumber[out] Formatting a phone number
462 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) override;
H A Di_call_manager_service.h78 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) = 0;
80 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) = 0;
H A Dcall_manager_proxy.h86 int32_t FormatPhoneNumber(std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
88 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
/base/telephony/call_manager/services/call/include/
H A Dcall_control_manager.h111 int32_t FormatPhoneNumber(std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
113 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
/base/telephony/call_manager/services/call_manager_service/include/
H A Dcall_manager_service.h461 * @param formatNumber[out] Formatting a phone number
465 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) override;
473 * @param formatNumber[out] Formatting a phone number
477 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) override;
/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()
/base/telephony/call_manager/frameworks/js/napi/include/
H A Dnapi_call_manager_types.h137 std::u16string formatNumber = u""; member
/base/telephony/call_manager/test/unittest/call_manager_gtest/include/
H A Dcall_manager_connect.h478 int32_t FormatPhoneNumber(std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) const;
480 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) const;
/base/telephony/call_manager/services/call_manager_service/src/
H A Dcall_manager_service.cpp1018 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumber()
1021 return callControlManagerPtr_->FormatPhoneNumber(number, countryCode, formatNumber); in FormatPhoneNumber()
1029 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumberToE164()
1032 return callControlManagerPtr_->FormatPhoneNumberToE164(number, countryCode, formatNumber); in FormatPhoneNumberToE164()
1017 FormatPhoneNumber( std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) FormatPhoneNumber() argument
1028 FormatPhoneNumberToE164( std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) FormatPhoneNumberToE164() argument
H A Dcall_manager_service_stub.cpp936 std::u16string formatNumber; in OnFormatPhoneNumber() local
937 int32_t result = FormatPhoneNumber(callNumber, countryCode, formatNumber); in OnFormatPhoneNumber()
946 if (!reply.WriteString16(formatNumber)) { in OnFormatPhoneNumber()
957 std::u16string formatNumber; in OnFormatPhoneNumberToE164() local
958 int32_t result = FormatPhoneNumberToE164(callNumber, countryCode, formatNumber); in OnFormatPhoneNumberToE164()
967 if (!reply.WriteString16(formatNumber)) { in OnFormatPhoneNumberToE164()
/base/telephony/call_manager/services/call/src/
H A Dcall_control_manager.cpp1188 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumber()
1193 formatNumber = Str8ToStr16(tmpStr); in FormatPhoneNumber()
1198 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumberToE164()
1203 formatNumber = Str8ToStr16(tmpStr); in FormatPhoneNumberToE164()
1187 FormatPhoneNumber( std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) FormatPhoneNumber() argument
1197 FormatPhoneNumberToE164( std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) FormatPhoneNumberToE164() argument
/base/telephony/call_manager/frameworks/js/napi/src/
H A Dnapi_call_manager.cpp3541 napi_create_string_utf8(env, Str16ToStr8(formatNumberContext->formatNumber).data(), in NativeFormatNumberCallBack()
3542 formatNumberContext->formatNumber.length(), &promiseValue); in NativeFormatNumberCallBack()
3555 napi_create_string_utf8(env, Str16ToStr8(formatNumberContext->formatNumber).data(), in NativeFormatNumberCallBack()
3556 formatNumberContext->formatNumber.length(), &callbackValue[ARRAY_INDEX_SECOND]); in NativeFormatNumberCallBack()
4546 phoneNumber, countryCode, asyncContext->formatNumber); in NativeFormatPhoneNumber()
4564 phoneNumber, countryCode, asyncContext->formatNumber); in NativeFormatPhoneNumberToE164()

Completed in 35 milliseconds