/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiCountryCode.java | 143 public void onDriverCountryCodeChanged(String country) { in onDriverCountryCodeChanged() argument 144 if (TextUtils.equals(country, mReceivedDriverCountryCode)) { in onDriverCountryCodeChanged() 147 Log.i(TAG, "Receive onDriverCountryCodeChanged " + country); in onDriverCountryCodeChanged() 148 mReceivedDriverCountryCode = country; in onDriverCountryCodeChanged() 149 updateDriverCountryCodeAndNotifyListener(country); in onDriverCountryCodeChanged() 153 public void onSetCountryCodeSucceeded(String country) { in onSetCountryCodeSucceeded() argument 154 Log.i(TAG, "Receive onSetCountryCodeSucceeded " + country); in onSetCountryCodeSucceeded() 156 if (TextUtils.equals(country, mReceivedDriverCountryCode)) { in onSetCountryCodeSucceeded() 159 updateDriverCountryCodeAndNotifyListener(country); in onSetCountryCodeSucceeded() 188 String country = SystemProperties.get(BOOT_DEFAULT_WIFI_COUNTRY_CODE); in getOemDefaultCountryCode() local [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
D | PhoneNumberTestService.java | 60 final String country = intent.getStringExtra(EXTRA_COUNTRY_CODE); in onHandleIntent() local 64 Log.i(TAG, "Input country code: " + country); in onHandleIntent() 69 if (country != null) countries.add(country); in onHandleIntent() 80 private void dump(String number, String country) { in dump() argument 81 Log.i(TAG, "Result for: " + number + " / " +country); in dump() 82 dump_PhoneNumberUtils_formatNumberToE164(number, country); in dump() 83 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.E164); in dump() 84 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.INTERNATIONAL); in dump() 85 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.NATIONAL); in dump() 86 dump_PhoneNumberUtil_format(number, country, PhoneNumberFormat.RFC3966); in dump() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | PhoneUtils.java | 270 final String country = mTelephonyManager.getSimCountryIso(); in getSimCountry() local 271 if (TextUtils.isEmpty(country)) { in getSimCountry() 274 return country.toUpperCase(); in getSimCountry() 422 final String country = subInfo.getCountryIso(); in getSimCountry() local 423 if (TextUtils.isEmpty(country)) { in getSimCountry() 426 return country.toUpperCase(); in getSimCountry() 688 final String country = Locale.getDefault().getCountry(); in getLocaleCountry() local 689 if (TextUtils.isEmpty(country)) { in getLocaleCountry() 692 return country.toUpperCase(); in getLocaleCountry() 701 String country = getSimCountry(); in getSimOrDefaultLocaleCountry() local [all …]
|
/packages/services/Mms/src/com/android/mms/service/ |
D | PhoneUtils.java | 43 final String country = getSimOrDefaultLocaleCountry(telephonyManager); in getNationalNumber() local 45 final Phonenumber.PhoneNumber parsed = getParsedNumber(phoneNumberUtil, phoneText, country); in getNationalNumber() 56 String phoneText, String country) { in getParsedNumber() argument 58 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(phoneText, country); in getParsedNumber() 63 + " for country " + country); in getParsedNumber() 74 String country = getSimCountry(telephonyManager); in getSimOrDefaultLocaleCountry() local 75 if (TextUtils.isEmpty(country)) { in getSimOrDefaultLocaleCountry() 76 country = Locale.getDefault().getCountry(); in getSimOrDefaultLocaleCountry() 79 return country; in getSimOrDefaultLocaleCountry() 84 final String country = telephonyManager.getSimCountryIso(); in getSimCountry() local [all …]
|
D | MmsHttpClient.java | 352 final String country = locale.getCountry(); in addLocaleToHttpAcceptLanguage() local 353 if (country != null) { in addLocaleToHttpAcceptLanguage() 355 builder.append(country); in addLocaleToHttpAcceptLanguage()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
D | GoogleSearch.java | 78 String country = locale.getCountry(); in getLanguage() local 80 if (!TextUtils.isEmpty(country) && useLangCountryHl(language, country)) { in getLanguage() 82 hl.append(country); in getLanguage() 85 if (DBG) Log.d(TAG, "language " + language + ", country " + country + " -> hl=" + hl); in getLanguage() 90 private static boolean useLangCountryHl(String language, String country) { in useLangCountryHl() argument 93 return "GB".equals(country); in useLangCountryHl() 95 return "CN".equals(country) || "TW".equals(country); in useLangCountryHl() 97 return "BR".equals(country) || "PT".equals(country); in useLangCountryHl()
|
/packages/apps/Dialer/java/com/android/dialer/phonenumberproto/ |
D | dialer_phone_number.proto | 24 // consists of a normalized number string and a two-letter country code. 25 // The country is retrieved from CallLog.Calls#COUNTRY: "The ISO 3166-1 two 26 // letters country code of the country where the user received or made the 42 // Note: Using this field without country_iso effectively loses country info 43 // when the number is not valid and no country prefix was prepended. This may 50 // The country in which the call to the number occurred, retrieved from 51 // CallLog.Calls#COUNTRY: "The ISO 3166-1 two letters country code of the 52 // country where the user received or made the call."
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | CountryMonitor.java | 62 Country country = null; in getCountryIso() local 63 if (countryDetector != null) country = countryDetector.detectCountry(); in getCountryIso() 65 if (country == null) { in getCountryIso() 70 mCurrentCountryIso = country.getCountryIso(); in getCountryIso() 72 public void onCountryDetected(Country country) { in getCountryIso() 73 mCurrentCountryIso = country.getCountryIso(); in getCountryIso()
|
D | PostalSplitter.java | 39 public String country; field in PostalSplitter.Postal 48 country = values.getAsString(StructuredPostal.COUNTRY); in fromValues() 58 values.put(StructuredPostal.COUNTRY, country); in toValues() 87 postal.region, postal.postcode, postal.country in join() 106 final boolean hasCountry = !TextUtils.isEmpty(postal.country); in joinJaJp() 120 builder.append(postal.country); in joinJaJp() 172 final boolean hasCountry = !TextUtils.isEmpty(postal.country); in joinEnUs() 220 builder.append(postal.country); in joinEnUs()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | PostalSplitterTest.java | 99 String neighborhood, String city, String region, String postcode, String country) { in assertSplitPostal() argument 108 assertEquals(country, postal.country); in assertSplitPostal() 112 String neighborhood, String city, String region, String postcode, String country) { in assertJoinedPostal() argument 120 postal.country = country; in assertJoinedPostal()
|
D | PostalSplitterForJapaneseTest.java | 115 String neighborhood, String city, String region, String postcode, String country) { in assertSplitPostal() argument 124 assertEquals(country, postal.country); in assertSplitPostal() 128 String neighborhood, String city, String region, String postcode, String country) { in assertJoinedPostal() argument 136 postal.country = country; in assertJoinedPostal()
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsHttpClient.java | 294 final String country = locale.getCountry(); in addLocaleToHttpAcceptLanguage() local 295 if (country != null) { in addLocaleToHttpAcceptLanguage() 297 builder.append(country); in addLocaleToHttpAcceptLanguage() 414 String country = null; in getSimOrLocaleCountry() local 420 country = info.getCountryIso(); in getSimOrLocaleCountry() 423 country = mTelephonyManager.getSimCountryIso(); in getSimOrLocaleCountry() 425 if (!TextUtils.isEmpty(country)) { in getSimOrLocaleCountry() 426 return country.toUpperCase(); in getSimOrLocaleCountry()
|
D | PhoneNumberHelper.java | 38 static String getNumberNoCountryCode(final String number, final String country) { in getNumberNoCountryCode() argument 42 final Phonenumber.PhoneNumber phoneNumber = phoneNumberUtil.parse(number, country); in getNumberNoCountryCode()
|
/packages/apps/Dialer/java/com/android/dialer/oem/ |
D | CequintCallerIdManager.java | 218 String country = getString(cursor, cursor.getColumnIndex(CequintColumnNames.COUNTRY_NAME)); in lookup() local 231 String geolocation = getGeolocation(city, state, stateAbbr, country); in lookup() 304 String city, String state, String stateAbbr, String country) { in getGeolocation() argument 311 } else if (!TextUtils.isEmpty(country)) { in getGeolocation() 312 geoDescription = country; in getGeolocation()
|
/packages/services/Telephony/ecc/conversion_toolset_v1/proto/ |
D | protobuf_ecc_data.proto | 29 // CountryInfo represents available ECCs of a country/region, recognized 30 // with ISO country code. 32 // Required: Every CountryInfo shall contain a ISO country code.
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallLogManager.java | 558 private String getCountryIsoFromCountry(Country country) { in getCountryIsoFromCountry() argument 559 if(country == null) { in getCountryIsoFromCountry() 565 return country.getCountryIso(); in getCountryIsoFromCountry() 579 Country country = null; in getCountryIso() local 581 country = countryDetector.detectCountry(); in getCountryIso() 595 mCurrentCountryIso = getCountryIsoFromCountry(country); in getCountryIso()
|
/packages/providers/BlockedNumberProvider/src/com/android/providers/blockednumber/ |
D | Utils.java | 53 final Country country = detector.detectCountry(); in getCurrentCountryIso() local 54 if (country != null) { in getCurrentCountryIso() 55 return country.getCountryIso(); in getCurrentCountryIso()
|
/packages/apps/Dialer/java/com/android/dialer/location/ |
D | CountryDetector.java | 225 country -> { in processLocationUpdate() 226 if (country == null) { in processLocationUpdate() 233 .putString(CountryDetector.KEY_PREFERENCE_CURRENT_COUNTRY, country) in processLocationUpdate()
|
/packages/apps/TV/common/src/com/android/tv/common/feature/ |
D | CommonFeatures.java | 70 String country = LocationUtils.getCurrentCountry(context); 72 if (supportedRegions[i].equalsIgnoreCase(country)) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
D | ReverseGeocoder.java | 358 String country = readUTF(dis); in lookupAddress() local 362 if (country == null) { in lookupAddress() 365 locale = new Locale(language, country); in lookupAddress() 367 locale = new Locale(language, country, variant); in lookupAddress()
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | ImagePrintActivity.java | 181 String country = getResources().getConfiguration().getLocales().get(0).getCountry(); in getLocaleDefaultMediaSize() local 183 if (Locale.JAPAN.getCountry().equals(country)) { in getLocaleDefaultMediaSize() 187 } else if (a5Countries.contains(country)) { in getLocaleDefaultMediaSize()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | VCardResourceEntry.java | 315 final String country = postalData.getCountry(); 316 if (!TextUtils.isEmpty(country)) { 317 sb.append(country);
|
/packages/apps/TV/src/com/android/tv/ui/sidepanel/parentalcontrols/ |
D | RatingSystemsFragment.java | 102 for (String country : countries) { in getItemList() 103 builder.append(country); in getItemList()
|
/packages/apps/Dialer/java/com/android/dialer/smartdial/util/ |
D | SmartDialPrefix.java | 530 public static boolean isCountryNanp(String country) { in isCountryNanp() argument 531 if (TextUtils.isEmpty(country)) { in isCountryNanp() 537 return nanpCountries.contains(country.toUpperCase()); in isCountryNanp()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/ |
D | pointer.md | 164 void SetLocation(Value& location, const char* country, const char* addresses[2]) { 167 SetValueByPointer(location, "/country", country, a);
|