/base/location/interfaces/inner_api/include/ |
D | country_code.h | 36 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 …]
|
D | country_code_callback_host.h | 35 void OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) override; 36 bool Send(const std::shared_ptr<CountryCode>& country);
|
D | i_country_code_callback.h | 36 virtual void OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) = 0;
|
D | location_async_context.h | 82 std::shared_ptr<CountryCode> country; 85 : AsyncContext(env, work, deferred), country(nullptr) {} in AsyncContext()
|
D | napi_util.h | 82 void CountryCodeToJs(const napi_env& env, const std::shared_ptr<CountryCode>& country, napi_value& …
|
/base/location/services/location_locator/callback/source/ |
D | country_code_callback_proxy.cpp | 30 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/ |
D | country_code_callback_host.cpp | 59 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()
|
D | country_code_manager.cpp | 58 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()
|
D | napi_util.cpp | 119 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/ |
D | zone_util_test.cpp | 90 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 …]
|
D | zone_util_performance_test.cpp | 111 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/ |
D | zone_util.h | 70 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/ |
D | phone_number_format.cpp | 37 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()
|
D | locale_config.cpp | 289 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/ |
D | country_code_callback_proxy.h | 31 void OnCountryCodeChange(const std::shared_ptr<CountryCode>& country) override;
|
/base/global/i18n/frameworks/zone/src/ |
D | zone_util.cpp | 79 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/ |
D | openssl_util.cpp | 250 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/ |
D | phone_number_format.h | 43 std::string country; variable
|
/base/global/i18n/ |
D | README.md | 30 …country codes**: The supported language must be represented by a two- or three-letter code defined…
|
/base/location/test/location_locator/source/ |
D | callback_test.cpp | 225 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/ |
D | location_napi_adapter.cpp | 755 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/ |
D | README.md | 79 …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/ |
D | i18n_addon.h | 114 …ool InitPhoneNumberFormatContext(napi_env env, napi_callback_info info, const std::string &country,
|
/base/telephony/call_manager/interfaces/innerkits/ |
D | call_manager_inner_type.h | 316 int32_t country = 0; member
|
/base/telephony/core_service/test/unittest/core_service_gtest/ |
D | sim_test_util.cpp | 89 "strA": ["street", "city", "country"], "longA": [ 2147483699, 2147483900, 2147499999], in ParseOperatorConf()
|