Searched refs:country (Results 1 - 25 of 43) sorted by path

12

/frameworks/base/core/java/android/speech/tts/
H A DITextToSpeechService.aidl90 * Returns the language, country and variant currently being used by the TTS engine.
95 * country (ISO 3-letter code) and variant used by the engine.
96 * The country and variant may be {@code ""}. If country is empty, then variant must
105 * @param country ISO-3 country code. May be empty or null.
114 int isLanguageAvailable(in String lang, in String country, in String variant);
123 * @param country ISO-3 country code. May be empty or null.
129 String[] getFeaturesForLanguage(in String lang, in String country, i
[all...]
H A DSynthesisRequest.java24 * <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) { argument
105 mCountry = country;
H A DTextToSpeech.java91 * Denotes the language is available for the language and country specified
98 * but not the country and variant.
314 * and YYY is the 3-letter ISO country code.</li>
401 public static final String KEY_PARAM_COUNTRY = "country";
1028 String country = loc.getISO3Country();
1030 // Check if the language, country, variant are available, and cache
1034 int result = service.loadLanguage(language, country, variant);
1039 country = "";
1043 mParams.putString(Engine.KEY_PARAM_COUNTRY, country);
1055 * @return language, country (i
[all...]
H A DTextToSpeechService.java133 * @param country ISO-3 country code. May be empty or null.
142 protected abstract int onIsLanguageAvailable(String lang, String country, String variant); argument
145 * Returns the language, country and variant currently being used by the TTS engine.
150 * country (ISO 3-letter code) and variant used by the engine.
151 * The country and variant may be {@code ""}. If country is empty, then variant must
168 * @param country ISO-3 country code. May be empty or null.
177 protected abstract int onLoadLanguage(String lang, String country, Strin argument
208 onGetFeaturesForLanguage(String lang, String country, String variant) argument
[all...]
H A DTtsEngines.java337 final String country = Settings.Secure.getString(cr, Settings.Secure.TTS_DEFAULT_COUNTRY);
345 if (!TextUtils.isEmpty(country)) {
346 v1Locale += LOCALE_DELIMITER + country;
375 // an empty country.
/frameworks/base/core/java/android/util/
H A DTimeUtils.java60 * and DST value at the specified moment in the specified country.
63 public static TimeZone getTimeZone(int offset, boolean dst, long when, String country) { argument
75 for (TimeZone tz : getTimeZones(country)) {
76 // If the current time zone is from the right country
87 // country that has the correct current offset and DST.
103 * Return list of unique time zones for the country. Do not modify
105 * @param country to find
109 public static ArrayList<TimeZone> getTimeZonesWithUniqueOffsets(String country) { argument
111 if ((country != null) && country
158 getTimeZones(String country) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebSettingsClassic.java145 String city, String state, String zipCode, String country,
156 mCountry = country;
360 String country = locale.getCountry();
361 if (country != null) {
363 builder.append(country);
412 final String country = locale.getCountry();
413 if (country != null) {
415 buffer.append(country.toLowerCase());
143 AutoFillProfile(int uniqueId, String fullName, String email, String companyName, String addressLine1, String addressLine2, String city, String state, String zipCode, String country, String phoneNumber) argument
/frameworks/base/core/java/com/android/internal/app/
H A DLocalePicker.java106 String country = s.substring(3, 5);
107 final Locale l = new Locale(language, country);
117 // same lang and a country -> upgrade to full name and
/frameworks/base/core/tests/coretests/src/android/util/
H A DTimeUtilsTest.java387 String country = world[i];
395 guess = guess(c, country);
399 guess = guess(c, country);
411 String country = world[i];
419 guess = guess(c, country);
424 private static TimeZone guess(Calendar c, String country) { argument
428 country);
/frameworks/base/include/androidfw/
H A DResourceTypes.h817 // Mobile country code (from SIM). 0 means "any".
831 char country[2]; member in struct:android::ResTable_config::__anon1033::__anon1034
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp455 if (config.country[0] != 0) {
457 spec[3] = config.country[0];
458 spec[4] = config.country[1];
724 mConfig->country[0] = 0;
725 mConfig->country[1] = 0;
731 mConfig->country[0] = mLocale[3];
732 mConfig->country[1] = mLocale[4];
H A DResourceTypes.cpp1467 if (country[0] != o.country[0]) {
1468 return country[0] < o.country[0] ? -1 : 1;
1470 if (country[1] != o.country[1]) {
1471 return country[1] < o.country[1] ? -1 : 1;
1559 if (country[0] != o.country[
[all...]
/frameworks/base/location/java/android/location/
H A DAddress.java256 * Returns the country code of the address, for example "US",
264 * Sets the country code of the address to the given String, which may
272 * Returns the localized country name of the address, for example "Iceland",
280 * Sets the country name of the address to the given String, which may
479 String country = in.readString();
480 Locale locale = country.length() > 0 ?
481 new Locale(language, country) :
H A DCountry.java26 * This class wraps the country information.
32 * The country code came from the mobile network
37 * The country code came from the location service
42 * The country code was read from the SIM card
47 * The country code came from the system locale setting
52 * The ISO 3166-1 two letters country code.
57 * Where the country code came from.
70 * @param countryIso the ISO 3166-1 two letters country code.
101 public Country(Country country) { argument
102 mCountryIso = country
194 equalsIgnoreSource(Country country) argument
[all...]
H A DCountryDetector.java27 * This class provides access to the system country detector service. This
28 * service allows applications to obtain the country that the user is in.
30 * The country will be detected in order of reliability, like
34 * <li>SIM's country</li>
38 * Call the {@link #detectCountry()} to get the available country immediately.
40 * To be notified of the future country change, use the
57 * looper once the country changed and detected.
74 public void onCountryDetected(final Country country) { argument
77 mListener.onCountryDetected(country);
99 * Start detecting the country tha
[all...]
H A DCountryListener.java20 * 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); argument
H A DGeocoderParams.java28 * language, country and variant information from the Geocoder's locale
72 String country = in.readString();
74 gp.mLocale = new Locale(language, country, variant);
H A DICountryListener.aidl25 void onCountryDetected(in Country country);
/frameworks/base/media/java/android/mtp/
H A DMtpDatabase.java161 String country = locale.getCountry();
163 if (country != null) {
164 mMediaScanner.setLocale(language + "_" + country);
/frameworks/base/native/android/
H A Dconfiguration.cpp58 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 DSettingsHelper.java133 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 DCountryDetectorService.java40 * 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 DComprehensiveCountryDetector.java38 * 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 DCountryDetectorBase.java25 * 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 DLocationBasedCountryDetector.java36 * 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...]

Completed in 490 milliseconds

12