Home
last modified time | relevance | path

Searched refs:country (Results 1 – 25 of 26) sorted by relevance

12

/base/location/interfaces/inner_api/include/
Dcountry_code.h36 explicit CountryCode(CountryCode& country) in CountryCode() argument
38 SetCountryCodeStr(country.GetCountryCodeStr()); in CountryCode()
39 SetCountryCodeType(country.GetCountryCodeType()); in CountryCode()
44 inline bool IsSame(CountryCode& country) const in IsSame() argument
46 return (countryCodeStr_ == country.GetCountryCodeStr()) && in IsSame()
47 (countryCodeType_ == country.GetCountryCodeType()); in IsSame()
60 inline void SetCountryCodeStr(std::string country) in SetCountryCodeStr() argument
62 countryCodeStr_ = country; in SetCountryCodeStr()
89 auto country = std::make_shared<CountryCode>(); in Unmarshalling() local
90 country->ReadFromParcel(parcel); in Unmarshalling()
[all …]
Dcountry_code_callback_host.h35 void OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) override;
36 bool Send(const std::shared_ptr<CountryCode>& country);
Di_country_code_callback.h36 virtual void OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) = 0;
Dlocation_async_context.h82 std::shared_ptr<CountryCode> country;
85 : AsyncContext(env, work, deferred), country(nullptr) {} in AsyncContext()
Dnapi_util.h82 void CountryCodeToJs(const napi_env& env, const std::shared_ptr<CountryCode>& country, napi_value& …
/base/location/services/location_locator/callback/source/
Dcountry_code_callback_proxy.cpp30 void CountryCodeCallbackProxy::OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) in OnCountryCodeChange() argument
34 if (country == nullptr) { in OnCountryCodeChange()
41 country->Marshalling(data); in OnCountryCodeChange()
/base/location/frameworks/native/source/
Dcountry_code_callback_host.cpp59 bool CountryCodeCallbackHost::Send(const std::shared_ptr<CountryCode>& country) in Send() argument
67 if (country == nullptr) { in Send()
88 context->country = country; in Send()
123 if (context->country) { in UvQueueWork()
124 CountryCodeToJs(context->env, context->country, jsEvent); in UvQueueWork()
147 void CountryCodeCallbackHost::OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) in OnCountryCodeChange() argument
150 Send(country); in OnCountryCodeChange()
Dcountry_code_manager.cpp58 auto country = std::make_shared<CountryCode>(*lastCountry_); in NotifyAllListener() local
62 callback->OnCountryCodeChange(country); in NotifyAllListener()
231 CountryCode country; in GetIsoCountryCode() local
232 country.SetCountryCodeStr(countryCodeStr8); in GetIsoCountryCode()
233 country.SetCountryCodeType(type); in GetIsoCountryCode()
234 if (lastCountry_ && !country.IsSame(*lastCountry_) && !lastCountry_->IsMoreReliable(type)) { in GetIsoCountryCode()
329 CountryCode country; in OnLocationReport() local
330 country.SetCountryCodeStr(code); in OnLocationReport()
331 country.SetCountryCodeType(COUNTRY_CODE_FROM_LOCATION); in OnLocationReport()
Dnapi_util.cpp119 void CountryCodeToJs(const napi_env& env, const std::shared_ptr<CountryCode>& country, napi_value& … in CountryCodeToJs() argument
121 SetValueUtf8String(env, "country", country->GetCountryCodeStr().c_str(), result); in CountryCodeToJs()
122 SetValueInt64(env, "type", country->GetCountryCodeType(), result); in CountryCodeToJs()
/base/global/i18n/frameworks/zone/test/unittest/
Dzone_util_test.cpp90 string country = "CN"; variable
93 util.GetZoneList(country, out);
101 country = "fake";
103 util.GetZoneList(country, out);
115 string country = "GB"; variable
118 util.GetZoneList(country, out);
135 string country = "DE"; variable
138 util.GetZoneList(country, out);
155 string country = "CN"; variable
158 util.GetZoneList(country, 3600 * 1000 * 8, out);
[all …]
Dzone_util_performance_test.cpp111 string country = "CN"; variable
116 util.GetZoneList(country, out);
134 string country = "GB"; variable
139 util.GetZoneList(country, out);
157 string country = "DE"; variable
162 util.GetZoneList(country, out);
180 string country = "CN"; variable
185 util.GetZoneList(country, 3600 * 1000 * 8, out);
/base/global/i18n/interfaces/native/inner_api/zone/include/
Dzone_util.h70 std::string GetDefaultZone(const std::string &country);
90 std::string GetDefaultZone(const std::string country, const int32_t offset);
109 void GetZoneList(const std::string country, std::vector<std::string> &retVec);
118 …void GetZoneList(const std::string country, const int32_t offset, std::vector<std::string> &retVec…
/base/global/i18n/frameworks/intl/src/
Dphone_number_format.cpp37 country = countryTag; in PhoneNumberFormat()
86 PhoneNumberUtil::ErrorType type = util->Parse(number, country, &phoneNumber); in isValidPhoneNumber()
96 PhoneNumberUtil::ErrorType type = util->Parse(number, country, &phoneNumber); in format()
123 PhoneNumberUtil::ErrorType type = util->Parse(number, country, &phoneNumber); in getLocationName()
Dlocale_config.cpp289 const char *country = nullptr; in GetSystemRegion() local
294 country = origin.getCountry(); in GetSystemRegion()
295 if (country != nullptr) { in GetSystemRegion()
296 return country; in GetSystemRegion()
305 country = origin.getCountry(); in GetSystemRegion()
306 if (country != nullptr) { in GetSystemRegion()
307 return country; in GetSystemRegion()
550 for (string country : countries) { in GetRelatedLocales() local
551 if (locale.find(country) != string::npos) { in GetRelatedLocales()
950 std::string country(originLocale.getCountry()); in GetDisplayRegion() local
[all …]
/base/location/services/location_locator/callback/include/
Dcountry_code_callback_proxy.h31 void OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) override;
/base/global/i18n/frameworks/zone/src/
Dzone_util.cpp79 string ZoneUtil::GetDefaultZone(const string &country) in GetDefaultZone() argument
81 string temp(country); in GetDefaultZone()
112 string ZoneUtil::GetDefaultZone(const string country, const int32_t offset) in GetDefaultZone() argument
116 TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, country.c_str(), &offset, status); in GetDefaultZone()
144 void ZoneUtil::GetZoneList(const string country, vector<string> &retVec) in GetZoneList() argument
146 StringEnumeration *strEnum = TimeZone::createEnumeration(country.c_str()); in GetZoneList()
154 void ZoneUtil::GetZoneList(const string country, const int32_t offset, vector<string> &retVec) in GetZoneList() argument
158 TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_ANY, country.c_str(), &offset, status); in GetZoneList()
/base/update/updater/services/package/pkg_verify/
Dopenssl_util.cpp250 std::string country; in GetStringFromX509Name() local
251 GetTextContentFromX509Name(x509Name, NID_countryName, country); in GetStringFromX509Name()
262 …return "C=" + country + ", O=" + organization + ", OU=" + organizationalUnitName + ", CN=" + commo… in GetStringFromX509Name()
/base/global/i18n/frameworks/intl/include/
Dphone_number_format.h43 std::string country; variable
/base/global/i18n/
DREADME.md30country codes**: The supported language must be represented by a two- or three-letter code defined…
/base/location/test/location_locator/source/
Dcallback_test.cpp225 auto country = std::make_shared<CountryCode>(); variable
229 country->ReadFromParcel(parcel);
230 EXPECT_NE(nullptr, country);
231 countryCodeCallbackProxy->OnCountryCodeChange(country);
/base/location/frameworks/js/napi/source/
Dlocation_napi_adapter.cpp755 std::shared_ptr<CountryCode> country = std::make_shared<CountryCode>(); in CreateReverseGeocodeAsyncContext() local
756 LocationErrCode errorCode = g_locatorClient->GetIsoCountryCodeV9(country); in CreateReverseGeocodeAsyncContext()
759 context->country = country; in CreateReverseGeocodeAsyncContext()
769 if (context->country) { in CreateReverseGeocodeAsyncContext()
770 CountryCodeToJs(context->env, context->country, context->result[PARAM1]); in CreateReverseGeocodeAsyncContext()
/base/telephony/core_service/
DREADME.md79 …otId: number, callback: AsyncCallback\<string>): void; | Obtains the ISO country code of the SIM c…
102 …otId: number, callback: AsyncCallback\<string>): void; | Obtains the ISO country code of the SIM c…
/base/global/i18n/interfaces/js/kits/include/
Di18n_addon.h114 …ool InitPhoneNumberFormatContext(napi_env env, napi_callback_info info, const std::string &country,
/base/telephony/call_manager/interfaces/innerkits/
Dcall_manager_inner_type.h316 int32_t country = 0; member
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsim_test_util.cpp89 "strA": ["street", "city", "country"], "longA": [ 2147483699, 2147483900, 2147499999], in ParseOperatorConf()

12