Home
last modified time | relevance | path

Searched refs:countryCode (Results 1 – 25 of 58) sorted by relevance

123

/base/telephony/call_manager/utils/src/
Dcall_number_utils.cpp33 const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber) in FormatPhoneNumber() argument
48 std::string tmpCode = countryCode; in FormatPhoneNumber()
61 const std::string phoneNumber, const std::string countryCode, std::string &formatNumber) in FormatPhoneNumberToE164() argument
63 …return FormatNumberBase(phoneNumber, countryCode, i18n::phonenumbers::PhoneNumberUtil::E164, forma… in FormatPhoneNumberToE164()
66 int32_t CallNumberUtils::FormatNumberBase(const std::string phoneNumber, std::string countryCode, in FormatNumberBase() argument
78 transform(countryCode.begin(), countryCode.end(), countryCode.begin(), ::toupper); in FormatNumberBase()
80 phoneUtils->Parse(phoneNumber, countryCode, &parseResult); in FormatNumberBase()
/base/telephony/cellular_call/services/common/src/
Dmodule_service_utils.cpp68 std::u16string countryCode; in GetIsoCountryCode() local
69 CoreManagerInner::GetInstance().GetISOCountryCodeForSim(slotId, countryCode); in GetIsoCountryCode()
70 return Str16ToStr8(countryCode); in GetIsoCountryCode()
75 std::u16string countryCode; in GetNetworkCountryCode() local
76 CoreManagerInner::GetInstance().GetIsoCountryCodeForNetwork(slotId, countryCode); in GetNetworkCountryCode()
77 return Str16ToStr8(countryCode); in GetNetworkCountryCode()
/base/telephony/call_manager/utils/include/
Dcall_number_utils.h31 const std::string &phoneNumber, const std::string &countryCode, std::string &formatNumber);
33 const std::string phoneNumber, const std::string countryCode, std::string &formatNumber);
34 int32_t FormatNumberBase(const std::string phoneNumber, std::string countryCode,
/base/telephony/call_manager/test/fuzztest/formatphonenumbertoe164_fuzzer/
Dformatphonenumbertoe164_fuzzer.cpp49 std::string countryCode(reinterpret_cast<const char *>(data), size); in FormatPhoneNumberToE164()
50 auto countryCodeU16 = Str8ToStr16(countryCode); in FormatPhoneNumberToE164()
/base/location/interfaces/inner_api/include/
Dcountry_code_manager.h47 bool UpdateCountryCodeByLocation(std::string countryCode, int type);
48 void UpdateCountryCode(std::string countryCode, int type);
/base/telephony/core_service/services/sim/include/
Dsim_rdb_info.h34 std::string countryCode; variable
/base/location/frameworks/native/source/
Dcountry_code_manager.cpp160 void CountryCodeManager::UpdateCountryCode(std::string countryCode, int type) in UpdateCountryCode() argument
170 lastCountry_->SetCountryCodeStr(countryCode); in UpdateCountryCode()
174 bool CountryCodeManager::UpdateCountryCodeByLocation(std::string countryCode, int type) in UpdateCountryCodeByLocation() argument
180 if (lastCountryByLocation_->GetCountryCodeStr() == countryCode) { in UpdateCountryCodeByLocation()
185 lastCountryByLocation_->SetCountryCodeStr(countryCode); in UpdateCountryCodeByLocation()
/base/telephony/core_service/services/network_search/src/
Dnitz_update.cpp248 std::string countryCode = Str16ToStr8(iso); in ProcessTimeZone() local
249 if (countryCode.empty()) { in ProcessTimeZone()
255 std::string timeZone = util.GetDefaultZone(countryCode.c_str()); in ProcessTimeZone()
258 timeZone = util.GetDefaultZone(countryCode.c_str(), offset); in ProcessTimeZone()
/base/telephony/call_manager/interfaces/innerkits/
Dcall_manager_client.h315 …int32_t FormatPhoneNumber(std::u16string &number, std::u16string &countryCode, std::u16string &for…
326 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
Dcall_manager_inner_type.h503 int32_t countryCode = 0; member
529 countryCode = temp.countryCode;
/base/telephony/call_manager/test/fuzztest/formatphonenumber_fuzzer/
Dformatphonenumber_fuzzer.cpp161 std::string countryCode(reinterpret_cast<const char *>(data), size); in FormatPhoneNumber()
162 auto countryCodeU16 = Str8ToStr16(countryCode); in FormatPhoneNumber()
/base/telephony/call_manager/frameworks/native/include/
Dcall_manager_service_proxy.h426 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) override;
438 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) override;
Di_call_manager_service.h74 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) = 0;
76 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) = 0;
Dcall_manager_proxy.h81 …int32_t FormatPhoneNumber(std::u16string &number, std::u16string &countryCode, std::u16string &for…
83 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
/base/telephony/call_manager/services/call/include/
Dcall_control_manager.h110 …int32_t FormatPhoneNumber(std::u16string &number, std::u16string &countryCode, std::u16string &for…
112 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber);
/base/telephony/call_manager/frameworks/native/src/
Dcall_manager_client.cpp391 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumber() argument
394 return g_callManagerProxy->FormatPhoneNumber(number, countryCode, formatNumber); in FormatPhoneNumber()
402 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) in FormatPhoneNumberToE164() argument
405 return g_callManagerProxy->FormatPhoneNumberToE164(number, countryCode, formatNumber); in FormatPhoneNumberToE164()
/base/telephony/call_manager/interfaces/kits/js/
D@ohos.telephony.call.d.ts416 …function formatPhoneNumberToE164(phoneNumber: string, countryCode: string, callback: AsyncCallback…
433 function formatPhoneNumberToE164(phoneNumber: string, countryCode: string): Promise<string>;
3669 countryCode?: string; property
/base/telephony/call_manager/services/call_manager_service/include/
Dcall_manager_service.h441 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) override;
453 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) override;
/base/location/test/location_locator/source/
Dlocator_impl_test.cpp332 std::shared_ptr<CountryCode> countryCode = std::make_shared<CountryCode>(); variable
333 EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->GetIsoCountryCodeV9(countryCode));
334 ASSERT_TRUE(countryCode != nullptr);
335 LBSLOGI(LOCATOR, "countrycode : %{public}s", countryCode->ToString().c_str());
/base/telephony/call_manager/test/unittest/call_manager_gtest/src/
Dcall_manager_gtest.cpp2218 std::u16string countryCode = Str8ToStr16(Code); variable
2221 …CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VA…
2238 std::u16string countryCode = Str8ToStr16(Code); variable
2241 …CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VA…
2258 std::u16string countryCode = Str8ToStr16(Code); variable
2261 …CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VA…
2278 std::u16string countryCode = Str8ToStr16(Code); variable
2281 …CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VA…
2298 std::u16string countryCode = Str8ToStr16(Code); variable
2301 …CallManagerGtest::clientPtr_->FormatPhoneNumber(phonyNumber, countryCode, formatNumber), RETURN_VA…
[all …]
/base/telephony/call_manager/test/unittest/call_manager_gtest/include/
Dcall_manager_connect.h743 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) const in FormatPhoneNumber() argument
746 return callManagerServicePtr_->FormatPhoneNumber(number, countryCode, formatNumber); in FormatPhoneNumber()
753 std::u16string &number, std::u16string &countryCode, std::u16string &formatNumber) const in FormatPhoneNumberToE164() argument
756 … return callManagerServicePtr_->FormatPhoneNumberToE164(number, countryCode, formatNumber); in FormatPhoneNumberToE164()
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsim_test.cpp242 std::u16string countryCode; variable
243 CoreServiceClient::GetInstance().GetISOCountryCodeForSim(SimTest::slotId_, countryCode);
244 std::string result = Str16ToStr8(countryCode);
259 std::u16string countryCode; variable
260 CoreServiceClient::GetInstance().GetISOCountryCodeForSim(SimTest::slotId1_, countryCode);
261 std::string result = Str16ToStr8(countryCode);
/base/telephony/core_service/interfaces/innerkits/include/
Dcore_service_client.h195 int32_t GetISOCountryCodeForSim(int32_t slotId, std::u16string &countryCode);
322 int32_t GetIsoCountryCodeForNetwork(int32_t slotId, std::u16string &countryCode);
Di_core_service.h67 virtual int32_t GetISOCountryCodeForSim(int32_t slotId, std::u16string &countryCode) = 0;
83 virtual int32_t GetIsoCountryCodeForNetwork(int32_t slotId, std::u16string &countryCode) = 0;
/base/telephony/core_service/services/core/include/
Dcore_service.h77 int32_t GetISOCountryCodeForSim(int32_t slotId, std::u16string &countryCode) override;
107 int32_t GetIsoCountryCodeForNetwork(int32_t slotId, std::u16string &countryCode) override;

123