/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/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiCountryCode.java | 175 public void onDriverCountryCodeChanged(String country) { in onDriverCountryCodeChanged() argument 176 Log.i(TAG, "Receive onDriverCountryCodeChanged " + country); in onDriverCountryCodeChanged() 177 mLastReceivedActiveDriverCountryCode = country; in onDriverCountryCodeChanged() 182 handleCountryCodeChanged(country); in onDriverCountryCodeChanged() 187 public void onSetCountryCodeSucceeded(String country) { in onSetCountryCodeSucceeded() argument 188 Log.i(TAG, "Receive onSetCountryCodeSucceeded " + country); in onSetCountryCodeSucceeded() 194 || TextUtils.equals(country, mLastReceivedActiveDriverCountryCode)) { in onSetCountryCodeSucceeded() 195 mWifiNative.countryCodeChanged(country); in onSetCountryCodeSucceeded() 196 handleCountryCodeChanged(country); in onSetCountryCodeSucceeded() 235 String country = SystemProperties.get(BOOT_DEFAULT_WIFI_COUNTRY_CODE); in getOemDefaultCountryCode() 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 …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | PhoneUtils.java | 273 final String country = mTelephonyManager.getSimCountryIso(); in getSimCountry() local 274 if (TextUtils.isEmpty(country)) { in getSimCountry() 277 return country.toUpperCase(); in getSimCountry() 428 final String country = subInfo.getCountryIso(); in getSimCountry() local 429 if (TextUtils.isEmpty(country)) { in getSimCountry() 432 return country.toUpperCase(); in getSimCountry() 694 final String country = Locale.getDefault().getCountry(); in getLocaleCountry() local 695 if (TextUtils.isEmpty(country)) { in getLocaleCountry() 698 return country.toUpperCase(); in getLocaleCountry() 707 String country = getSimCountry(); in getSimOrDefaultLocaleCountry() local [all …]
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
D | GoogleSearch.kt | 139 val country: String = locale.getCountry() in getLanguage() constant 140 if (!TextUtils.isEmpty(country) && useLangCountryHl(language, country)) { in getLanguage() 142 hl.append(country) in getLanguage() 144 if (DBG) Log.d(TAG, "language $language, country $country -> hl=$hl") in getLanguage() 149 private fun useLangCountryHl(language: String, country: String): Boolean { in useLangCountryHl() 152 "GB".equals(country) in useLangCountryHl() 154 "CN".equals(country) || "TW".equals(country) in useLangCountryHl() 156 "BR".equals(country) || "PT".equals(country) in useLangCountryHl()
|
/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/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/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/modules/Uwb/service/java/com/android/server/uwb/ |
D | UwbCountryCode.java | 332 String country = pickCountryCode(); in setCountryCode() local 333 if (country == null) { in setCountryCode() 335 country = DEFAULT_COUNTRY_CODE; in setCountryCode() 337 if (!forceUpdate && Objects.equals(country, mCountryCode)) { in setCountryCode() 338 Log.i(TAG, "Ignoring already set country code: " + country); in setCountryCode() 341 Log.d(TAG, "setCountryCode to " + country); in setCountryCode() 342 int status = mNativeUwbManager.setCountryCode(country.getBytes(StandardCharsets.UTF_8)); in setCountryCode() 345 return new Pair<>(status, country); in setCountryCode() 347 mCountryCode = country; in setCountryCode() 350 listener.onCountryCodeChanged(country); in setCountryCode()
|
/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/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | CertificateSubjectInfo.java | 42 public String country = ""; field in CertificateSubjectInfo 75 } else if (s.startsWith(COUNTRY_PREFIX) && TextUtils.isEmpty(info.country)) { in parse() 76 info.country = s.substring(COUNTRY_PREFIX.length()); in parse() 136 .append(", Country=").append(country) in toString()
|
/packages/services/Telephony/ecc/conversion_toolset_v1/proto/ |
D | protobuf_ecc_data.proto | 45 // CountryInfo represents available ECCs of a country/region, recognized 46 // with ISO country code. 48 // Required: Every CountryInfo shall contain a ISO country code. 68 // android emergency number db for this country.
|
/packages/services/Iwlan/src/com/google/android/iwlan/ |
D | IwlanHelper.java | 284 private static void updateCountryCodeFromCountryDetector(Country country) { in updateCountryCodeFromCountryDetector() argument 285 if (country == null) { in updateCountryCodeFromCountryDetector() 289 if (country.getSource() == Country.COUNTRY_SOURCE_NETWORK in updateCountryCodeFromCountryDetector() 290 || country.getSource() == Country.COUNTRY_SOURCE_LOCATION) { in updateCountryCodeFromCountryDetector() 292 String newCountryCode = country.getCountryIso(); in updateCountryCodeFromCountryDetector()
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/user/ |
D | UserDataCollectorTest.java | 68 assertEquals(mUserData.country, mCollector.getCountry()); in testUpdateUserData() 122 assertNotNull(mUserData.country); in testGetCountry() 123 assertEquals(mUserData.country, Country.USA); in testGetCountry() 130 assertNotNull(mUserData.country); in testUnknownCountry() 131 assertEquals(mUserData.country, Country.UNKNOWN); in testUnknownCountry()
|
/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/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/services/Telecomm/src/com/android/server/telecom/ |
D | CallLogManager.java | 599 private String getCountryIsoFromCountry(Country country) { in getCountryIsoFromCountry() argument 600 if(country == null) { in getCountryIsoFromCountry() 606 return country.getCountryIso(); in getCountryIsoFromCountry() 620 Country country = null; in getCountryIso() local 622 country = countryDetector.detectCountry(); in getCountryIso() 636 mCurrentCountryIso = getCountryIsoFromCountry(country); in getCountryIso()
|
/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/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/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/user/ |
D | UserDataCollector.java | 156 userData.country = getCountry(); in updateUserData() 180 userData.country = getCountry(); in initializeUserData() 251 Country country = Country.UNKNOWN; in getCountry() local 253 country = Country.valueOf(countryCode); in getCountry() 256 return country; in getCountry() 258 return country; in getCountry() 851 userData.country = Country.UNKNOWN; in clearUserData()
|
/packages/modules/OnDevicePersonalization/framework/java/android/ondevicepersonalization/ |
D | UserData.java | 109 @NonNull int country, in UserData() argument 136 this.mCountry = country; in UserData() 416 int country = in.readInt(); in UserData() local 446 this.mCountry = country; in UserData() 571 @NonNull int country, in Builder() argument 598 mCountry = country; in Builder()
|
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/ |
D | IwlanNetworkStatusTracker.java | 628 private void updateCountryCode(Country country) { in updateCountryCode() argument 629 if (country == null) { in updateCountryCode() 632 if (country.getSource() == Country.COUNTRY_SOURCE_NETWORK in updateCountryCode() 633 || country.getSource() == Country.COUNTRY_SOURCE_LOCATION) { in updateCountryCode() 634 String newCountryCode = country.getCountryCode(); in updateCountryCode()
|