/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);
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/ |
PhoneNumberTestService.java | 39 [-e c OPTIONAL COUNTRY CODE] \ 60 final String country = intent.getStringExtra(EXTRA_COUNTRY_CODE); local 64 Log.i(TAG, "Input country code: " + country); 65 Log.i(TAG, "Current country code: " + defaultCountry); 67 // Dump for the given country, the current country, US, GB and JP. 69 if (country != null) countries.add(country); 80 private void dump(String number, String country) { [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
CountryMonitor.java | 20 import android.location.Country; 28 * This class monitors the change of country. 30 * {@link #getCountryIso()} is used to get the ISO 3166-1 two letters country 31 * code of current country. 42 * Get the current country code 44 * @return the ISO 3166-1 two letters country code of current country. 50 Country country = null; local 51 if (countryDetector != null) country = countryDetector.detectCountry() [all...] |
/external/chromium_org/third_party/libaddressinput/chromium/tools/ |
require_fields.py | 38 for country in _COUNTRIES: 39 url = _I18N_URL % country 46 print '%s: %s' % (country, data['require'])
|
/device/asus/fugu/ |
wpa_supplicant.conf | 2 country=XY
|
/external/chromium_org/third_party/icu/source/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/icu/icu4c/source/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...] |
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
MockableTextToSpeechService.java | 38 protected int onIsLanguageAvailable(String lang, String country, String variant) { 39 return sDelegate.onIsLanguageAvailable(lang, country, variant); 48 protected int onLoadLanguage(String lang, String country, String variant) { 49 return sDelegate.onLoadLanguage(lang, country, variant); 63 int onIsLanguageAvailable(String lang, String country, String variant); 67 int onLoadLanguage(String lang, String country, String variant);
|
/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(long jniData, String language, String country, 176 private native final int native_loadLanguage(long jniData, String language, String country, [all...] |
/external/chromium_org/ui/android/java/src/org/chromium/ui/base/ |
LocalizationUtils.java | 40 String country = locale.getCountry(); local 53 return country.isEmpty() ? language : language + "-" + country; 57 private static Locale getJavaLocale(String language, String country, String variant) { 58 return new Locale(language, country, variant);
|
/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...] |
/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...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/location/ |
UpdateCountryService.java | 19 * {@link Location}, convert it into a country code, and save it in shared preferences. 43 final String country = getCountryFromLocation(getApplicationContext(), location); local 45 if (country == null) { 55 editor.putString(CountryDetector.KEY_PREFERENCE_CURRENT_COUNTRY, country); 61 * Given a {@link Location}, return a country code. 63 * @return the ISO 3166-1 two letter country code 67 String country = null; local 72 country = addresses.get(0).getCountryCode(); 75 Log.w(TAG, "Exception occurred when getting geocoded country from location"); 77 return country; [all...] |
/frameworks/base/services/core/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; 37 * This class is used to detect the country where the user is. The sources of 38 * country are queried in order of reliability, like 42 * <li>SIM's country</li> 46 * Call the {@link #detectCountry()} to get the available country immediately. 48 * To be notified of the future country change, using the 51 * Using the {@link #stop()} to stop listening to the country change. 53 * The country information will be refreshed every 54 * {@link #LOCATION_REFRESH_INTERVAL} once the location based country is used. 69 * The refresh interval when the location based country was use 271 Country country = getCountry(); local [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/chromium_org/components/autofill/core/browser/ |
address_unittest.cc | 17 // Test that country data can be properly returned as either a country code or a 18 // localized country name. 23 // Make sure that nothing breaks when the country code is missing. 24 base::string16 country = local 26 EXPECT_EQ(base::string16(), country); local 30 country = address.GetInfo(AutofillType(ADDRESS_HOME_COUNTRY), "en-US"); 31 EXPECT_EQ(ASCIIToUTF16("United States"), country); 32 country = address.GetInfo( 34 EXPECT_EQ(ASCIIToUTF16("United States"), country); 59 base::string16 country = local 90 EXPECT_EQ(base::string16(), country); local 111 EXPECT_EQ(base::string16(), country); local [all...] |
/development/ndk/platforms/android-13/include/android/ |
tts.h | 158 // Returns the level of support for the language, country and variant. 159 // @return TTS_LANG_COUNTRY_VAR_AVAILABLE if the language, country and variant are supported, 161 // TTS_LANG_COUNTRY_AVAILABLE if the language and country are supported and the 166 // the specified country and variant 173 const char *country, 178 // language value is issued. Language and country values are coded according to the ISO three 183 // @param country pointer to the ISO three letter code for the country 189 const char *country, 192 // Load the resources associated with the specified language, country and Locale variant [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...] |
/prebuilts/ndk/9/platforms/android-13/arch-arm/usr/include/android/ |
tts.h | 158 // Returns the level of support for the language, country and variant. 159 // @return TTS_LANG_COUNTRY_VAR_AVAILABLE if the language, country and variant are supported, 161 // TTS_LANG_COUNTRY_AVAILABLE if the language and country are supported and the 166 // the specified country and variant 173 const char *country, 178 // language value is issued. Language and country values are coded according to the ISO three 183 // @param country pointer to the ISO three letter code for the country 189 const char *country, 192 // Load the resources associated with the specified language, country and Locale variant [all...] |
/prebuilts/ndk/9/platforms/android-13/arch-mips/usr/include/android/ |
tts.h | 158 // Returns the level of support for the language, country and variant. 159 // @return TTS_LANG_COUNTRY_VAR_AVAILABLE if the language, country and variant are supported, 161 // TTS_LANG_COUNTRY_AVAILABLE if the language and country are supported and the 166 // the specified country and variant 173 const char *country, 178 // language value is issued. Language and country values are coded according to the ISO three 183 // @param country pointer to the ISO three letter code for the country 189 const char *country, 192 // Load the resources associated with the specified language, country and Locale variant [all...] |
/prebuilts/ndk/9/platforms/android-13/arch-x86/usr/include/android/ |
tts.h | 158 // Returns the level of support for the language, country and variant. 159 // @return TTS_LANG_COUNTRY_VAR_AVAILABLE if the language, country and variant are supported, 161 // TTS_LANG_COUNTRY_AVAILABLE if the language and country are supported and the 166 // the specified country and variant 173 const char *country, 178 // language value is issued. Language and country values are coded according to the ISO three 183 // @param country pointer to the ISO three letter code for the country 189 const char *country, 192 // Load the resources associated with the specified language, country and Locale variant [all...] |