/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | MccTable.java | 116 * an ISO two-character country code if available. 213 * @param country Two character country code desired 217 public static void setSystemLocale(Context context, String language, String country) { argument 219 String c = SystemProperties.get("persist.sys.country"); 225 if (null == country) { 226 country = ""; 228 country = country.toUpperCase(); 237 // only match full (lang + country) locale [all...] |
H A D | PhoneBase.java | 628 String country = ""; 630 country = l.substring(3, 5); 632 MccTable.setSystemLocale(mContext, language, country); 634 if (!country.isEmpty()) { 642 wM.setCountryCode(country, false);
|
H A D | SmsUsageMonitor.java | 152 /** XML tag for short code patterns for a specific country. */ 155 /** XML attribute for the country code. */ 156 private static final String ATTR_COUNTRY = "country"; 189 * SMS short code regex pattern matcher for a specific country. 280 * Return a pattern matcher object for the specified country. 281 * @param country the country to search for 282 * @return a {@link ShortCodePatternMatcher} for the specified country, or null if not found 284 private ShortCodePatternMatcher getPatternMatcherFromFile(String country) { argument 291 return getPatternMatcherFromXmlParser(parser, country); 307 getPatternMatcherFromResource(String country) argument 318 getPatternMatcherFromXmlParser(XmlPullParser parser, String country) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
H A D | RuimRecords.java | 582 // check country code from SIM 584 String country = null; 586 country = MccTable.countryCodeForMcc( 589 log("Setting locale to " + prefLang + "_" + country); 590 MccTable.setSystemLocale(mContext, prefLang, country);
|
/frameworks/opt/vcard/java/com/android/vcard/ |
H A D | VCardEntry.java | 505 String region, String postalCode, String country, int type, String label, 514 mCountry = country; 680 + "country: %s", mType, mLabel, mIsPrimary, mPobox, mExtendedAddress, mStreet, 504 PostalData(String pobox, String extendedAddress, String street, String localty, String region, String postalCode, String country, int type, String label, boolean isPrimary, int vcardType) argument
|
/frameworks/native/include/android/ |
H A D | configuration.h | 173 * Return the current country code set in the configuration. The output will 175 * a country is not set, they will be 0. 180 * Set the current country code in the configuration, from the first two 183 void AConfiguration_setCountry(AConfiguration* config, const char* country);
|
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | IWifiManager.aidl | 62 void setCountryCode(String country, boolean persist);
|
H A D | WifiManager.java | 804 * Set the country code. 805 * @param countryCode country code in ISO 3166 format. 810 public void setCountryCode(String country, boolean persist) { argument 812 mService.setCountryCode(country, persist);
|
H A D | WifiStateMachine.java | 332 /* Set the country code */ 1068 * Set the country code 1329 * Set the country code from the system setting value, if any. 2736 /* set country code */ 2801 String country = (String) message.obj; 2802 if (DBG) log("set country code " + country); 2803 if (!mWifiNative.setCountryCode(country.toUpperCase())) { 2804 loge("Failed to set country code " + country); [all...] |
/frameworks/base/native/android/ |
H A D | configuration.cpp | 58 outCountry[0] = config->country[0]; 59 outCountry[1] = config->country[1]; 146 void AConfiguration_setCountry(AConfiguration* config, const char* country) { argument 147 config->country[0] = country[0]; 148 config->country[1] = country[1];
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
H A D | SettingsHelper.java | 133 String country = loc.getCountry(); 134 if (!TextUtils.isEmpty(country)) { 135 localeString += "_" + country; 142 * "ll" is the language code and "cc" is the country code. 157 String country = size > 4 ? new String(data, 3, 2) : ""; 161 loc = new Locale(language, country);
|
/frameworks/base/services/java/com/android/server/ |
H A D | CountryDetectorService.java | 40 * This class detects the country that the user is in through 84 /** Whether to dump the state of the country detector service to bugreports */ 157 protected void notifyReceivers(Country country) { argument 161 receiver.getListener().onCountryDetected(country); 179 public void onCountryDetected(final Country country) { 182 notifyReceivers(country);
|
/frameworks/base/services/java/com/android/server/location/ |
H A D | ComprehensiveCountryDetector.java | 38 * This class is used to detect the country where the user is. The sources of 39 * country are queried in order of reliability, like 43 * <li>SIM's country</li> 47 * Call the {@link #detectCountry()} to get the available country immediately. 49 * To be notified of the future country change, using the 52 * Using the {@link #stop()} to stop listening to the country change. 54 * The country information will be refreshed every 55 * {@link #LOCATION_REFRESH_INTERVAL} once the location based country is used. 70 * The refresh interval when the location based country was used 85 * List of the most recent country stat 188 addToLogs(Country country) argument 282 runAfterDetectionAsync(final Country country, final Country detectedCountry, final boolean notifyChange, final boolean startLocationBasedDetection) argument 313 runAfterDetection(final Country country, final Country detectedCountry, final boolean notifyChange, final boolean startLocationBasedDetection) argument 394 notifyIfCountryChanged(final Country country, final Country detectedCountry) argument [all...] |
H A D | CountryDetectorBase.java | 25 * This class defines the methods need to be implemented by the country 28 * Calling {@link #detectCountry} to start detecting the country. The country 45 * Start detecting the country that the user is in. 47 * @return the country if it is available immediately, otherwise null should 53 * Register a listener to receive the notification when the country is detected or changed. 62 * Stop detecting the country. The detector should release all system services and be ready to 67 protected void notifyListener(Country country) { argument 69 mListener.onCountryDetected(country);
|
H A D | LocationBasedCountryDetector.java | 36 * This class detects which country the user currently is in through the enabled 41 * the user country through the GeoCoder. The IllegalStateException will be 58 * The thread to query the country from the GeoCoder. 72 * @return the ISO 3166-1 two letters country code from the location 75 String country = null; 81 country = addresses.get(0).getCountryCode(); 84 Slog.w(TAG, "Exception occurs when getting country from location"); 86 return country; 142 * Start detecting the country. 145 * country fro [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | CountryDetectorServiceTest.java | 31 public void onCountryDetected(Country country) throws RemoteException { argument 32 mCountry = country; 53 public void notifyReceivers(Country country) { argument 54 super.notifyReceivers(country); 82 Country country = new Country("US", Country.COUNTRY_SOURCE_NETWORK); 87 serviceTester.notifyReceivers(country);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/ |
H A D | ComprehensiveCountryDetectorTest.java | 36 public void notifyLocationBasedListener(Country country) { argument 38 mNotifiedCountry = country; 39 mLocationBasedCountryDetector.notifyListener(country); 95 protected void runAfterDetectionAsync(final Country country, final Country detectedCountry, argument 97 runAfterDetection(country, detectedCountry, notifyChange, startLocationBasedDetection); 129 public void onCountryDetected(Country country) { argument 131 mCountry = country; 154 Country country = countryDetector.detectCountry(); 155 assertTrue(sameCountry(country, resultCountry)); 175 Country country [all...] |
H A D | LocationBasedCountryDetectorTest.java | 46 public TestCountryDetector(String country, String provider) { argument 47 this(country, provider, 1000 * 60 * 5); 50 public TestCountryDetector(String country, String provider, long queryLocationTimeout) { argument 52 mCountry = country; 158 public void onCountryDetected(Country country) { argument 160 if (country != null) { 161 mCountryCode = country.getCountryIso(); 183 final String country = "us"; 186 TestCountryDetector detector = new TestCountryDetector(country, provider); 220 final String country [all...] |
/frameworks/base/telephony/java/android/telephony/ |
H A D | PhoneNumberUtils.java | 520 * - a '0' on one and a (+,00)<country code> on the other 1099 /** The current locale is unknown, look for a country code or don't format */ 1106 /** List of country codes for countries that use the NANP */ 1136 * for the country the number is from. 1173 String country = locale.getCountry(); 1175 return getFormatTypeFromCountryCode(country); 1368 * The given phone number must have an area code and could have a country 1372 * the E.164 phone number if the given number doesn't have a country code. 1377 * the ISO 3166-1 two letters country code 1399 * If the given number doesn't have the country cod 2071 getFormatTypeFromCountryCode(String country) argument [all...] |
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
H A D | MockableTextToSpeechService.java | 38 protected int onIsLanguageAvailable(String lang, String country, String variant) { argument 39 return sDelegate.onIsLanguageAvailable(lang, country, variant); 48 protected int onLoadLanguage(String lang, String country, String variant) { argument 49 return sDelegate.onLoadLanguage(lang, country, variant); 63 int onIsLanguageAvailable(String lang, String country, String variant); argument 67 int onLoadLanguage(String lang, String country, String variant); argument
|
/frameworks/base/tools/aapt/ |
H A D | AaptAssets.cpp | 317 return (((uint32_t)config.country[1]) << 24) | (((uint32_t)config.country[0]) << 16) 957 out->country[0] = 0; 958 out->country[1] = 0; 967 out->country[0] = 0; 968 out->country[1] = 0; 982 out->country[0] = fileName[3]; 983 out->country[1] = fileName[4];
|
H A D | Command.cpp | 464 config.country[0] = 'U'; 465 config.country[1] = 'S';
|
H A D | Resource.cpp | 131 mParams.country[0] ? mParams.country[0] : '-', 132 mParams.country[1] ? mParams.country[1] : '-',
|
H A D | ResourceTable.cpp | 599 config.country[0], config.country[1], 710 config.country[0], config.country[1], 822 pseudoParams.country[0] = 'Z'; 823 pseudoParams.country[1] = 'Z'; 2824 config.country[0] ? config.country[0] : '-', 2825 config.country[1] ? config.country[ [all...] |
/frameworks/base/include/androidfw/ |
H A D | ResourceTypes.h | 817 // Mobile country code (from SIM). 0 means "any". 831 char country[2]; member in struct:android::ResTable_config::__anon1033::__anon1034
|