/frameworks/base/core/java/android/speech/tts/ |
TtsEngines.java | 46 import java.util.Locale; 284 * Returns the locale string for a given TTS engine. Attempts to read the 287 * both these values are empty, the default phone locale is returned. 289 * @param engineName the engine to return the locale for. 290 * @return the locale string preference for this engine. Will be non null 294 String locale = parseEnginePrefFromList( local 298 if (TextUtils.isEmpty(locale)) { 300 locale = getV1Locale(); 303 if (DBG) Log.d(TAG, "getLocalePrefForEngine(" + engineName + ")= " + locale); 305 return locale; 359 final Locale locale = Locale.getDefault(); local [all...] |
/frameworks/base/core/jni/ |
android_text_format_Time.cpp | 190 // We only teardown and setup our 'locale' struct and other state 191 // when the Java-side locale changed. This is safe to do here 195 static struct strftime_locale locale; local 209 env->ReleaseStringUTFChars(js_mon[i], locale.mon[i]); 210 env->ReleaseStringUTFChars(js_month[i], locale.month[i]); 211 env->ReleaseStringUTFChars(js_standalone_month[i], locale.standalone_month[i]); 218 env->ReleaseStringUTFChars(js_wday[i], locale.wday[i]); 219 env->ReleaseStringUTFChars(js_weekday[i], locale.weekday[i]); 224 env->ReleaseStringUTFChars(js_X_fmt, locale.X_fmt); 225 env->ReleaseStringUTFChars(js_x_fmt, locale.x_fmt) [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/ |
CallerInfo.java | 38 import java.util.Locale; 494 * @param context the context used to look up the current locale / country 517 Locale locale = context.getResources().getConfiguration().locale; local 518 String countryIso = getCurrentCountryIso(context, locale); 530 String description = geocoder.getDescriptionForNumber(pn, locale); 542 private static String getCurrentCountryIso(Context context, Locale locale) { 549 countryIso = locale.getCountry() [all...] |
/libcore/luni/src/main/java/java/text/ |
DecimalFormatSymbols.java | 26 import java.util.Locale; 34 * {@code DecimalFormatSymbols} from its locale data. If you need to change any 38 * @see java.util.Locale 57 private transient Locale locale; field in class:DecimalFormatSymbols 62 * the user's default locale. 63 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 69 this(Locale.getDefault()); 74 * specified Locale [all...] |
DecimalFormat.java | 28 import java.util.Locale; 35 * numbers in any locale, including support for Western, Arabic, or Indic 45 * To obtain a {@link NumberFormat} for a specific locale (including the default 46 * locale), call one of {@code NumberFormat}'s factory methods such as 70 * read from ICU's locale data. 78 * U.S. locale, the ',' grouping character is replaced by ','. However, the 519 * for the user's default locale. 520 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 523 Locale locale = Locale.getDefault() local [all...] |
MessageFormat.java | 29 import java.util.Locale; 44 * {@code MessageFormat} itself doesn't implement locale-specific 45 * behavior. Any locale-specific behavior is defined by the pattern that you 336 private Locale locale; field in class:MessageFormat 349 * Constructs a new {@code MessageFormat} using the specified pattern and {@code locale}. 353 * @param locale 354 * the locale. 358 public MessageFormat(String template, Locale locale) { [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/languageswitcher/ |
InputLanguageSelection.java | 45 import java.util.Locale; 53 private HashMap<CheckBoxPreference, Locale> mLocaleMap = 54 new HashMap<CheckBoxPreference, Locale>(); 60 public final Locale mLocale; 62 public LocaleEntry(String label, Locale locale) { 64 this.mLocale = locale; 93 Locale locale = loc.mLocale; local 94 final Pair<Long, Boolean> hasDictionaryOrLayout = hasDictionaryOrLayout(locale); 134 final Locale locale = localeEntry.mLocale; local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/voice/ |
RecognitionView.java | 46 import java.util.Locale; 222 Locale locale = SubtypeSwitcher.getInstance().getInputLocale(); local 225 mLanguage.setText(Utils.getFullDisplayName(locale, true));
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaScannerService.java | 47 import java.util.Locale; 70 Locale locale = getResources().getConfiguration().locale; local 71 if (locale != null) { 72 String language = locale.getLanguage(); 73 String country = locale.getCountry();
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
DictionaryBackupAgent.java | 69 Words.LOCALE, 162 String locale = cursor.getString(COLUMN_LOCALE); local 164 String out = name + "|" + frequency + "|" + locale + "|" + appId; 215 String locale = null; local 217 if (st.hasMoreTokens()) locale = st.nextToken(); 218 if ("null".equalsIgnoreCase(locale)) locale = null; 227 cv.put(Words.LOCALE, locale);
|
/build/core/ |
Makefile | 120 # Whether there is default locale set in PRODUCT_PROPERTY_OVERRIDES 122 $(patsubst ro.product.locale.language=%,%,\ 123 $(filter ro.product.locale.language=%,$(PRODUCT_PROPERTY_OVERRIDES)))) 125 $(patsubst ro.product.locale.region=%,%,\ 126 $(filter ro.product.locale.region=%,$(PRODUCT_PROPERTY_OVERRIDES)))) 128 # Selects the first locale in the list given as the argument, 131 define default-locale 135 # Selects the first locale in the list given as the argument 138 define default-locale-language 139 $(if $(product_property_override_locale_language),,$(word 1, $(call default-locale, $(1))) [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
ResourceBundleTest.java | 33 import java.util.Locale; 80 Locale.setDefault(new Locale("en", "US")); 81 bundle = ResourceBundle.getBundle(name, new Locale("fr", "FR", "VAR")); 107 private static final Locale LOCALE_FRFR = new Locale("fr", "FR"); 110 private static final Locale LOCALE_FR = new Locale("fr"); 113 private static final Locale LOCALE_EN = new Locale("en") 281 Locale locale = Locale.GERMAN; local [all...] |
/external/bluetooth/glib/glib/ |
guniprop.c | 27 #include <locale.h> 728 char locale[2]; local 730 locale[0] = tem[0]; 731 locale[1] = tem[1]; 734 const char *locale = setlocale (LC_CTYPE, NULL); 737 switch (locale[0]) 740 if (locale[1] == 'z') 744 if (locale[1] == 't') 748 if (locale[1] == 'r') 927 * on the current locale, and may result in the number o [all...] |
/external/chromium/chrome/browser/safe_browsing/ |
safe_browsing_util.cc | 501 icu::Locale locale = icu::Locale::getDefault(); local 502 const char* lang = locale.getLanguage();
|
/external/icu4c/common/ |
serv.cpp | 156 SimpleFactory::getDisplayName(const UnicodeString& id, const Locale& /* locale */, UnicodeString& result) const 276 const Locale locale; member in class:DNCache 278 DNCache(const Locale& _locale) 279 : cache(), locale(_locale) 686 return getDisplayName(id, result, Locale::getDefault()); 690 ICUService::getDisplayName(const UnicodeString& id, UnicodeString& result, const Locale& locale) const 700 f->getDisplayName(id, locale, result) [all...] |
ucnvscsu.c | 141 uint8_t locale; member in struct:SCSUData 178 switch(scsu->locale) { 195 const char *locale=pArgs->locale; local 201 if(locale!=NULL && locale[0]=='j' && locale[1]=='a' && (locale[2]==0 || locale[2]=='_')) { 202 ((SCSUData *)cnv->extraInfo)->locale=l_ja [all...] |
/external/icu4c/test/cintltst/ |
cbiapts.c | 222 log_err("No locale for which breakiterator is applicable\n"); 224 log_verbose("A locale %s for which breakiterator is applicable\n",ubrk_getAvailable(i)); 313 log_verbose("\nTesting open and close for us locale\n"); 747 const char * locale; member in struct:__anon6345 767 for (testPtr = tailoringTests; testPtr->locale != NULL; ++testPtr) { 769 UBreakIterator* ubrkiter = ubrk_open(testPtr->type, testPtr->locale, testPtr->test, -1, &status); 777 log_err("FAIL: locale %s, break type %d, ubrk_next expected UBRK_DONE, got %d\n", 778 testPtr->locale, testPtr->type, offset); 781 log_err("FAIL: locale %s, break type %d, ubrk_next expected %d, got %d\n", 782 testPtr->locale, testPtr->type, testPtr->offsFwd[offsindx], offset) [all...] |
cnmdptst.c | 418 const char* locale[]={"fr_CA", "de_DE_PREEURO", "fr_FR_PREEURO"}; local 424 currencyFmt = unum_open(UNUM_CURRENCY, NULL,0,locale[i],NULL, &status); 445 log_err("FAIL: Expected %s Got: %s for locale: %s\n", result[i], aescstrdup(str, -1), locale[i]); 465 const char* locale[]={ local 483 uloc_canonicalize(locale[i], curID, 256, &status); 485 log_data_err("Could not canonicalize %s. Error: %s (Are you missing data?)\n", locale[i], u_errorName(status)); 511 log_err("FAIL: Expected %s Got: %s for locale: %s\n", result[i],aescstrdup(str, -1),locale[i]); 535 const char* locale[]= local 847 char locale[256]; local [all...] |
crestst.c | 163 const char* locale="te_IN"; local 183 test2=ures_open(testdatapath, locale, &err); 186 log_err("construction of %s did not succeed : %s \n",locale, myErrorName(err)); 543 * participate in locale fallback. Now, 975 const char *locale = NULL; local 1001 locale = ures_getLocaleByType(res, ULOC_REQUESTED_LOCALE, &status); 1002 if(locale) { 1003 log_err("Requested locale should return NULL\n"); 1005 locale = ures_getLocaleByType(res, ULOC_VALID_LOCALE, &status); 1006 if(!locale || strcmp(locale, test[i].validLocale) != 0) [all...] |
/external/icu4c/test/intltest/ |
itrbnf.cpp | 31 // import java.util.Locale; 147 = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale::getUS(), status); 172 RuleBasedNumberFormat assignResult(URBNF_SPELLOUT, Locale("es", "ES", ""), status); 203 RuleBasedNumberFormat ruleCtorResult(spelloutRules, Locale::getUS(), perror, status); 209 RuleBasedNumberFormat nf(spelloutRules, (UnicodeString)"", Locale::getUS(), perror, status); 222 RuleBasedNumberFormat fromRulesResult(rules, Locale::getUS(), perror, status); 399 RuleBasedNumberFormat formatter(fracRules, Locale::getEnglish(), perror, status); 1716 Locale locale = formatter0.getRuleSetDisplayNameLocale(i, status); local [all...] |
restsnew.cpp | 89 Locale *locale; member in struct:__anon6462 153 Don't use more than one of these at a time because of the Locale names 159 if (param[5].locale == NULL) { 160 param[0].locale = new Locale("root"); 161 param[1].locale = new Locale("te"); 162 param[2].locale = new Locale("te", "IN") 312 Locale *locale=new Locale("te_IN"); local 446 Locale *locale=new Locale("te_IN"); local [all...] |
/external/webkit/Source/JavaScriptCore/runtime/ |
DatePrototype.cpp | 40 #include <locale.h> 168 CFLocaleRef locale = CFLocaleCopyCurrent(); local 169 CFDateFormatterRef formatter = CFDateFormatterCreate(0, locale, dateStyle, timeStyle); 170 CFRelease(locale); [all...] |
/frameworks/base/core/java/android/text/format/ |
Time.java | 21 import java.util.Locale; 139 * The Locale for which date formatting strings have been loaded. 141 private static Locale sLocale; 313 * @return a String containing the current time expressed in the current locale. 317 Locale locale = Locale.getDefault(); local 319 if (sLocale == null || locale == null || !(locale.equals(sLocale))) { 388 sLocale = locale; [all...] |
/frameworks/base/core/java/android/widget/ |
SpellChecker.java | 36 import java.util.Locale; 77 private Locale mCurrentLocale; 124 // This class is the listener for locale change: warn other locale-aware objects 128 private void setLocale(Locale locale) { 129 mCurrentLocale = locale; 133 // Change SpellParsers' wordIterator locale 134 mWordIterator = new WordIterator(locale); 136 // This class is the listener for locale change: warn other locale-aware object 204 final Locale locale = mTextView.getTextServicesLocale(); local [all...] |
/libcore/luni/src/main/java/java/util/ |
Scanner.java | 109 private Locale locale = Locale.getDefault(); field in class:Scanner 946 public Locale locale() { method in class:Scanner [all...] |