/frameworks/base/location/java/android/location/ |
CountryListener.java | 20 * The listener for receiving the notification when the country is detected or 27 * @param country the changed or detected country. 29 void onCountryDetected(Country country);
|
ICountryListener.aidl | 19 import android.location.Country; 25 void onCountryDetected(in Country country);
|
Country.java | 25 * This class wraps the country information. 29 public class Country implements Parcelable { 31 * The country code came from the mobile network 36 * The country code came from the location service 41 * The country code was read from the SIM card 46 * The country code came from the system locale setting 51 * The ISO 3166-1 two letters country code. 56 * Where the country code came from. 63 * @param countryIso the ISO 3166-1 two letters country code. 74 public Country(final String countryIso, final int source) [all...] |
/external/chromium/chrome/browser/autofill/ |
address_unittest.cc | 13 // Test that the getters and setters for country code are working. 25 // Test that country codes are properly decoded as country names. 30 // Make sure that nothing breaks when the country code is missing. 31 string16 country = address.GetInfo(ADDRESS_HOME_COUNTRY); local 32 EXPECT_EQ(string16(), country); local 35 country = address.GetInfo(ADDRESS_HOME_COUNTRY); 36 EXPECT_EQ(ASCIIToUTF16("United States"), country); 39 country = address.GetInfo(ADDRESS_HOME_COUNTRY); 40 EXPECT_EQ(ASCIIToUTF16("Canada"), country); 50 string16 country = address.GetInfo(ADDRESS_HOME_COUNTRY); local 76 EXPECT_EQ(string16(), country); local [all...] |
autofill_common_test.h | 34 const char* state, const char* zipcode, const char* country, 41 const char* state, const char* zipcode, const char* country,
|
autofill_common_test.cc | 38 const char* state, const char* zipcode, const char* country, 50 check_and_set(profile, ADDRESS_HOME_COUNTRY, country); 59 const char* state, const char* zipcode, const char* country, 64 company, address1, address2, city, state, zipcode, country,
|
/external/icu4c/tools/tzcode/ |
tzselect.ksh | 77 country= 151 country = cc_list[i] 152 if (cc_name[country]) { 153 country = cc_name[country] 155 print country 161 # If there's more than one country, ask the user which one. 164 echo >&2 'Please select a country.' 165 select country in $countries 167 case $country i [all...] |
/external/svox/pico/compat/src/com/android/tts/compat/ |
SynthProxy.java | 94 public int isLanguageAvailable(String language, String country, String variant) { 95 return native_isLanguageAvailable(mJniData, language, country, variant); 108 public int setLanguage(String language, String country, String variant) { 109 return native_setLanguage(mJniData, language, country, variant); 115 public int loadLanguage(String language, String country, String variant) { 116 return native_loadLanguage(mJniData, language, country, variant); 134 * Returns the currently set language, country and variant information. 171 String country, String variant); 173 private native final int native_setLanguage(int jniData, String language, String country, 176 private native final int native_loadLanguage(int jniData, String language, String country, [all...] |
CompatTtsService.java | 94 protected int onIsLanguageAvailable(String lang, String country, String variant) { 95 if (DBG) Log.d(TAG, "onIsLanguageAvailable(" + lang + "," + country + "," + variant + ")"); 97 return mNativeSynth.isLanguageAvailable(lang, country, variant); 101 protected int onLoadLanguage(String lang, String country, String variant) { 102 if (DBG) Log.d(TAG, "onLoadLanguage(" + lang + "," + country + "," + variant + ")"); 103 int result = onIsLanguageAvailable(lang, country, variant); 117 String country = request.getCountry(); local 119 if (mNativeSynth.setLanguage(lang, country, variant) != TextToSpeech.SUCCESS) { 120 Log.e(TAG, "setLanguage(" + lang + "," + country + "," + variant + ") failed");
|
/frameworks/base/services/tests/servicestests/src/com/android/server/location/ |
ComprehensiveCountryDetectorTest.java | 19 import android.location.Country; 31 private Country mNotifiedCountry; 36 public void notifyLocationBasedListener(Country country) { 38 mNotifiedCountry = country; 39 mLocationBasedCountryDetector.notifyListener(country); 62 public Country detectCountry() { 75 protected Country getNetworkBasedCountry() { 80 protected Country getLastKnownLocationBasedCountry() { 85 protected Country getSimBasedCountry() [all...] |
LocationBasedCountryDetectorTest.java | 18 import android.location.Country; 46 public TestCountryDetector(String country, String provider) { 47 this(country, provider, 1000 * 60 * 5); 50 public TestCountryDetector(String country, String provider, long queryLocationTimeout) { 52 mCountry = country; 158 public void onCountryDetected(Country country) { 160 if (country != null) { 161 mCountryCode = country.getCountryIso(); 183 final String country = "us" local 216 assertEquals(countryListener.getCountry(), country); local 220 final String country = "us"; local 241 assertEquals(countryListener.getCountry(), country); local 245 final String country = "us"; local 263 final String country = "us"; local 286 final String country = "us"; local 323 final String country = "us"; local 342 assertEquals(countryListener.getCountry(), country); local [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
CountryDetectorServiceTest.java | 20 import android.location.Country; 28 private Country mCountry; 31 public void onCountryDetected(Country country) throws RemoteException { 32 mCountry = country; 35 public Country getCountry() { 53 public void notifyReceivers(Country country) { 54 super.notifyReceivers(country); 82 Country country = new Country("US", Country.COUNTRY_SOURCE_NETWORK) local [all...] |
/frameworks/base/services/java/com/android/server/location/ |
CountryDetectorBase.java | 20 import android.location.Country; 25 * This class defines the methods need to be implemented by the country 28 * Calling {@link #detectCountry} to start detecting the country. The country 37 protected Country mDetectedCountry; 45 * Start detecting the country that the user is in. 47 * @return the country if it is available immediately, otherwise null should 50 public abstract Country detectCountry(); 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 t [all...] |
ComprehensiveCountryDetector.java | 20 import android.location.Country; 35 * This class is used to detect the country where the user is. The sources of 36 * country are queried in order of reliability, like 40 * <li>SIM's country</li> 44 * Call the {@link #detectCountry()} to get the available country immediately. 46 * To be notified of the future country change, using the 49 * Using the {@link #stop()} to stop listening to the country change. 51 * The country information will be refreshed every 52 * {@link #LOCATION_REFRESH_INTERVAL} once the location based country is used. 62 * The refresh interval when the location based country was use 199 Country country = getCountry(); local [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
CountryMonitor.java | 20 import android.location.Country; 26 * This class monitors the change of country. 28 * {@link #getCountryIso()} is used to get the ISO 3166-1 two letters country 29 * code of current country. 40 * Get the current country code 42 * @return the ISO 3166-1 two letters country code of current country. 50 public void onCountryDetected(Country country) { 51 mCurrentCountryIso = country.getCountryIso() [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
GoogleSearch.java | 78 String country = locale.getCountry(); local 80 if (!TextUtils.isEmpty(country) && useLangCountryHl(language, country)) { 82 hl.append(country); 85 if (DBG) Log.d(TAG, "language " + language + ", country " + country + " -> hl=" + hl); 90 private static boolean useLangCountryHl(String language, String country) { 91 // lang-country is currently only supported for a small number of locales 93 return "GB".equals(country); 95 return "CN".equals(country) || "TW".equals(country) [all...] |
/external/apache-xml/src/main/java/org/apache/xml/utils/res/ |
XResourceBundle.java | 103 String country = locale.getCountry(); local 108 suffix += "_" + country; 110 if (country.equals("JP")) 111 suffix += "_" + country + "_" + variant;
|
/external/svox/pico/compat/include/ |
TtsEngine.h | 114 // Returns the level of support for the language, country and variant. 115 // @return TTS_LANG_COUNTRY_VAR_AVAILABLE if the language, country and variant are supported, 117 // TTS_LANG_COUNTRY_AVAILABLE if the language and country are supported and the 122 // the specified country and variant 126 virtual tts_support_result isLanguageAvailable(const char *lang, const char *country, 131 // language value is issued. Language and country values are coded according to the ISO three 136 // @param country pointer to the ISO three letter code for the country 139 virtual tts_result loadLanguage(const char *lang, const char *country, const char *variant); 141 // Load the resources associated with the specified language, country and Locale variant [all...] |
/external/svox/pico/compat/jni/ |
tts.h | 159 // Returns the level of support for the language, country and variant. 160 // @return TTS_LANG_COUNTRY_VAR_AVAILABLE if the language, country and variant are supported, 162 // TTS_LANG_COUNTRY_AVAILABLE if the language and country are supported and the 167 // the specified country and variant 174 const char *country, 179 // language value is issued. Language and country values are coded according to the ISO three 184 // @param country pointer to the ISO three letter code for the country 190 const char *country, 193 // Load the resources associated with the specified language, country and Locale variant [all...] |
/cts/tests/src/android/speech/tts/cts/ |
StubTextToSpeechService.java | 36 protected int onIsLanguageAvailable(String lang, String country, String variant) { 41 protected int onLoadLanguage(String lang, String country, String variant) {
|
/frameworks/base/core/java/android/speech/tts/ |
SynthesisRequest.java | 24 * <li>The synthesis locale, represented as a language, country and a variant. 25 * The language is an ISO 639-3 letter language code, and the country is an 66 * Gets the ISO 3-letter country code for the language to use. 103 void setLanguage(String language, String country, String variant) { 105 mCountry = country;
|
/cts/tests/tests/util/src/android/util/cts/ |
TimeUtilsTest.java | 425 String country = world[i]; local 433 guess = guessTimeZone(c, country); 439 guess = guessTimeZone(c, country); 461 String country = world[i]; local 469 guess = guessTimeZone(c, country); 474 private static TimeZone guessTimeZone(Calendar c, String country) { 478 country);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
TimeUtilsTest.java | 389 String country = world[i]; local 397 guess = guess(c, country); 401 guess = guess(c, country); 413 String country = world[i]; local 421 guess = guess(c, country); 426 private static TimeZone guess(Calendar c, String country) { 430 country);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
PostalSplitterForJapaneseTest.java | 45 private static final String COUNTRY = "\u65E5\u672C"; 94 assertJoinedPostal(COUNTRY + " " + POSTCODE + "\n" + STREET, 95 STREET, null, null, null, null, POSTCODE, COUNTRY); 102 assertJoinedPostal(COUNTRY + "\n" + REGION + " " + CITY + "\n" + STREET, 103 STREET, null, null, CITY, REGION, null, COUNTRY); 105 assertJoinedPostal(COUNTRY + "\n" + STREET, 106 STREET, null, null, null, null, null, COUNTRY); 110 assertJoinedPostal(COUNTRY + "\n" + STREET, 111 null, null, STREET, null, null, null, COUNTRY); 115 String neighborhood, String city, String region, String postcode, String country) { [all...] |
PostalSplitterTest.java | 99 String neighborhood, String city, String region, String postcode, String country) { 108 assertEquals(country, postal.country); 112 String neighborhood, String city, String region, String postcode, String country) { 120 postal.country = country;
|