/base/telephony/call_manager/utils/include/ |
H A D | call_number_utils.h | 32 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); 39 int32_t FormatNumberBase(const std::string phoneNumber, std::string countryCode, 42 const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber);
|
/base/telephony/cellular_call/services/utils/src/ |
H A D | module_service_utils.cpp | 67 std::u16string countryCode; in GetIsoCountryCode() local 68 CoreManagerInner::GetInstance().GetISOCountryCodeForSim(slotId, countryCode); in GetIsoCountryCode() 69 return Str16ToStr8(countryCode); in GetIsoCountryCode() 74 std::u16string countryCode; in GetNetworkCountryCode() local 75 CoreManagerInner::GetInstance().GetIsoCountryCodeForNetwork(slotId, countryCode); in GetNetworkCountryCode() 76 return Str16ToStr8(countryCode); in GetNetworkCountryCode()
|
/base/telephony/call_manager/utils/src/ |
H A D | call_number_utils.cpp | 38 const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber) in FormatPhoneNumber() 53 std::string tmpCode = countryCode; 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() 73 int32_t ret = FormatNumberBase(phoneNumber, countryCode, in FormatPhoneNumberToNational() 80 const std::string phoneNumber, const std::string countryCode, std::string &formatNumber) in FormatPhoneNumberToInternational() 82 int32_t ret = FormatNumberBase(phoneNumber, countryCode, in FormatPhoneNumberToInternational() 88 int32_t CallNumberUtils::FormatNumberBase(const std::string phoneNumber, std::string countryCode, in FormatNumberBase() argument 100 transform(countryCode in FormatNumberBase() 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 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 D | telephony_call_ffi.cpp | 69 char* FfiOHOSTelephonyCallFormatPhoneNumber(char *phoneNumber, char *countryCode, int32_t *errCode) in FfiOHOSTelephonyCallFormatPhoneNumber() argument 71 return TelephonyCallImpl::FormatPhoneNumber(phoneNumber, countryCode, errCode); in FfiOHOSTelephonyCallFormatPhoneNumber()
|
H A D | telephony_call_impl.cpp | 106 std::u16string countryCode = Str8ToStr16(tmpCountryCode); in FormatPhoneNumberToE164() local 108 phoneNumber, countryCode, formatNumber); in FormatPhoneNumberToE164() 187 std::u16string countryCode = Str8ToStr16(tmpCountryCode); in FormatPhoneNumber() local 189 phoneNumber, countryCode, formatNumber); in FormatPhoneNumber()
|
H A D | telephony_call_ffi.h | 37 FFI_EXPORT char* FfiOHOSTelephonyCallFormatPhoneNumber(char *phoneNumber, char *countryCode, int32_t *errCode);
|
/base/telephony/call_manager/test/fuzztest/formatphonenumbertoe164_fuzzer/ |
H A D | formatphonenumbertoe164_fuzzer.cpp | 34 std::string countryCode(reinterpret_cast<const char *>(data), size); in FormatPhoneNumberToE164() 35 auto countryCodeU16 = Str8ToStr16(countryCode); in FormatPhoneNumberToE164()
|
/base/telephony/call_manager/test/unittest/call_manager_gtest/src/ |
H A D | call_manager4_gtest.cpp | 807 std::u16string countryCode = Str8ToStr16(Code); in HWTEST_F() local 810 CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VALUE_IS_ZERO); in HWTEST_F() 815 * @tc.name Import countryCode KR, test FormatPhoneNumber(), return 010-8519-8748 827 std::u16string countryCode = Str8ToStr16(Code); in HWTEST_F() local 830 CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VALUE_IS_ZERO); in HWTEST_F() 847 std::u16string countryCode = Str8ToStr16(Code); in HWTEST_F() local 850 CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VALUE_IS_ZERO); in HWTEST_F() 867 std::u16string countryCode = Str8ToStr16(Code); in HWTEST_F() local 870 CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VALUE_IS_ZERO); in HWTEST_F() 887 std::u16string countryCode in HWTEST_F() local 907 std::u16string countryCode = Str8ToStr16(Code); HWTEST_F() local 927 std::u16string countryCode = Str8ToStr16(Code); HWTEST_F() local 949 std::u16string countryCode = Str8ToStr16(Code); HWTEST_F() local [all...] |
H A D | call_manager3_gtest.cpp | 171 * @tc.name Import countryCode KR, test FormatPhoneNumberToE164(), return +81338122111 183 std::u16string countryCode = Str8ToStr16(Code); in HWTEST_F() local 185 EXPECT_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber), in HWTEST_F() 203 std::u16string countryCode = Str8ToStr16(Code); in HWTEST_F() local 205 EXPECT_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber), in HWTEST_F() 223 std::u16string countryCode = Str8ToStr16(Code); in HWTEST_F() local 225 EXPECT_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber), in HWTEST_F() 243 std::u16string countryCode = Str8ToStr16(Code); in HWTEST_F() local 245 EXPECT_EQ(CallManagerGtest::clientPtr_->FormatPhoneNumberToE164(phonyNumber, countryCode, formatNumber), in HWTEST_F() 263 std::u16string countryCode in HWTEST_F() local 283 std::u16string countryCode = Str8ToStr16(Code); HWTEST_F() local 303 std::u16string countryCode = Str8ToStr16(Code); HWTEST_F() local [all...] |
H A D | call_manager_connect.cpp | 383 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() 382 FormatPhoneNumber( std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) const FormatPhoneNumber() argument 392 FormatPhoneNumberToE164( std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) const FormatPhoneNumberToE164() argument
|
/base/location/interfaces/inner_api/include/ |
H A D | country_code_manager.h | 49 bool UpdateCountryCodeByLocation(std::string countryCode, int type); 50 void UpdateCountryCode(std::string countryCode, int type);
|
/base/telephony/core_service/services/network_search/src/ |
H A D | nitz_update.cpp | 291 std::string countryCode = Str16ToStr8(iso); in ProcessTimeZone() local 293 TELEPHONY_EXT_WRAPPER.updateCountryCodeExt_(primarySlotId, countryCode.c_str()); in ProcessTimeZone() 295 UpdateCountryCode(countryCode); in ProcessTimeZone() 299 void NitzUpdate::UpdateCountryCode(std::string &countryCode) in UpdateCountryCode() argument 301 if (countryCode.empty()) { in UpdateCountryCode() 302 TELEPHONY_LOGE("NitzUpdate::UpdateCountryCode countryCode is null slotId:%{public}d", slotId_); in UpdateCountryCode() 310 std::string timeZone = util.GetDefaultZone(countryCode.c_str()); in UpdateCountryCode() 313 timeZone = util.GetDefaultZone(countryCode.c_str(), offset); in UpdateCountryCode()
|
/base/telephony/core_service/services/sim/include/ |
H A D | sim_rdb_info.h | 35 std::string countryCode; member in OHOS::Telephony::SimRdbInfo
|
/base/location/frameworks/cj/source/ |
H A D | country_code_callback.cpp | 29 auto cFunc = reinterpret_cast<void(*)(CJCountryCode countryCode)>(callbackId); in CountryCodeCallback()
|
/base/telephony/core_service/services/network_search/include/ |
H A D | nitz_update.h | 35 void UpdateCountryCode(std::string &countryCode);
|
/base/location/frameworks/native/locator_sdk/source/ |
H A D | country_code_manager.cpp | 145 void CountryCodeManager::UpdateCountryCode(std::string countryCode, int type) in UpdateCountryCode() argument 155 lastCountry_->SetCountryCodeStr(countryCode); in UpdateCountryCode() 159 bool CountryCodeManager::UpdateCountryCodeByLocation(std::string countryCode, int type) in UpdateCountryCodeByLocation() argument 165 if (lastCountryByLocation_->GetCountryCodeStr() == countryCode) { in UpdateCountryCodeByLocation() 166 LBSLOGE(COUNTRY_CODE, "countryCode is same"); in UpdateCountryCodeByLocation() 170 lastCountryByLocation_->SetCountryCodeStr(countryCode); in UpdateCountryCodeByLocation() 349 LBSLOGI(COUNTRY_CODE, "OnLocationReport,countryCode is change"); in OnLocationReport()
|
/base/telephony/core_service/frameworks/cj/telephony_sim/src/ |
H A D | telephony_sim_impl.cpp | 157 std::u16string countryCode = u""; in getISOCountryCodeForSim() local 160 slotId, countryCode); in getISOCountryCodeForSim() 161 operatorName = errCode == ERROR_NONE ? ToUtf8(countryCode) : ""; in getISOCountryCodeForSim()
|
/base/telephony/call_manager/interfaces/innerkits/ |
H A D | call_manager_info.h | 383 int32_t countryCode = 0; member 431 countryCode = temp.countryCode; in operator =()
|
H A D | call_manager_client.h | 327 * @param countryCode[in], Country code of the phone number 331 int32_t FormatPhoneNumber(std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber); 337 * @param countryCode[in], Country code of the phone number 342 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
|
/base/telephony/call_manager/test/fuzztest/formatphonenumber_fuzzer/ |
H A D | formatphonenumber_fuzzer.cpp | 145 std::string countryCode(reinterpret_cast<const char *>(data), size); in FormatPhoneNumber() 146 auto countryCodeU16 = Str8ToStr16(countryCode); in FormatPhoneNumber()
|
/base/telephony/sms_mms/services/sms/ |
H A D | sms_persist_helper.cpp | 283 int32_t SmsPersistHelper::FormatSmsNumber(const std::string &num, std::string countryCode, in FormatSmsNumber() argument 295 transform(countryCode.begin(), countryCode.end(), countryCode.begin(), ::toupper); in FormatSmsNumber() 297 phoneUtils->Parse(num, countryCode, &parseResult); in FormatSmsNumber()
|
/base/telephony/sms_mms/services/sms/include/ |
H A D | sms_persist_helper.h | 58 int32_t FormatSmsNumber(const std::string &num, std::string countryCode,
|
/base/location/test/location_locator/source/ |
H A D | locator_impl_test.cpp | 147 parcel.WriteString("countryCode"); in SetGeocodingMockInfo() 311 std::shared_ptr<CountryCode> countryCode = std::make_shared<CountryCode>(); in HWTEST_F() local 312 EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->GetIsoCountryCodeV9(countryCode)); in HWTEST_F() 313 ASSERT_TRUE(countryCode != nullptr); in HWTEST_F() 314 LBSLOGI(LOCATOR, "countrycode : %{public}s", countryCode->ToString().c_str()); in HWTEST_F()
|
/base/telephony/call_manager/frameworks/native/src/ |
H A D | call_manager_client.cpp | 431 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
|
/base/telephony/core_service/frameworks/cj/telephony_radio/src/ |
H A D | telephony_radio_impl.cpp | 274 std::u16string countryCode; in GetISOCountryCodeForNetwork() local 276 DelayedRefSingleton<CoreServiceClient>::GetInstance().GetIsoCountryCodeForNetwork(slotId, countryCode); in GetISOCountryCodeForNetwork() 277 std::string code = ToUtf8(countryCode); in GetISOCountryCodeForNetwork()
|