/packages/apps/ContactsCommon/src/com/android/contacts/common/ |
GeoUtil.java | 28 import java.util.Locale; 48 // Fallback to Locale if have issues with CountryDetector 49 return Locale.getDefault().getCountry(); 60 final Locale locale = context.getResources().getConfiguration().locale; local 61 return geocoder.getDescriptionForNumber(structuredPhoneNumber, locale);
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
AccessibilityUtils.java | 28 import java.util.Locale; 65 static CharSequence getTextForLocale(Context context, Locale locale, int resId) { 68 final Locale prevLocale = config.locale; 70 config.locale = locale; 74 config.locale = prevLocale;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
AccountUtils.java | 26 import java.util.Locale; 58 final String atDomain = "@" + domain.toLowerCase(Locale.ROOT); 60 if (account.name.toLowerCase(Locale.ROOT).endsWith(atDomain)) {
|
/external/chromium_org/third_party/WebKit/Source/platform/text/ |
PlatformLocale.cpp | 48 DateTimeStringBuilder(Locale&, const DateComponents&); 62 Locale& m_localizer; 66 DateTimeStringBuilder::DateTimeStringBuilder(Locale& localizer, const DateComponents& date) 182 Locale& Locale::defaultLocale() 184 static Locale* locale = Locale::create(defaultLanguage()).leakPtr(); local 186 return *locale; 189 Locale::~Locale( [all...] |
/external/chromium_org/third_party/icu/source/common/ |
brkiter.cpp | 51 BreakIterator::buildInstance(const Locale& loc, const char *type, int32_t kind, UErrorCode &status) 70 // Get the locale 123 // If there is a result, set the valid locale and actual locale, and the kind 149 BreakIterator::createWordInstance(const Locale& key, UErrorCode& status) 158 BreakIterator::createLineInstance(const Locale& key, UErrorCode& status) 167 BreakIterator::createCharacterInstance(const Locale& key, UErrorCode& status) 176 BreakIterator::createSentenceInstance(const Locale& key, UErrorCode& status) 185 BreakIterator::createTitleInstance(const Locale& key, UErrorCode& status) 193 const Locale* U_EXPORT [all...] |
locavailable.cpp | 31 static U_NAMESPACE_QUALIFIER Locale* availableLocaleList = NULL; 53 const Locale* U_EXPORT2 54 Locale::getAvailableLocales(int32_t& count) 62 Locale *newLocaleList = 0; 64 newLocaleList = new Locale[locCount]; 101 the locale ResourceBundle data file.*/
|
unistr_case.cpp | 94 const char *locale, 141 locale, &errorCode); 145 locale, &errorCode); 152 (UBreakIterator *)titleIter, locale, options, &errorCode); 174 return caseMap(0, Locale::getDefault().getName(), 0, TO_LOWER); 178 UnicodeString::toLower(const Locale &locale) { 179 return caseMap(0, locale.getName(), 0, TO_LOWER); 184 return caseMap(0, Locale::getDefault().getName(), 0, TO_UPPER); 188 UnicodeString::toUpper(const Locale &locale) [all...] |
/external/icu4c/common/ |
brkiter.cpp | 51 BreakIterator::buildInstance(const Locale& loc, const char *type, int32_t kind, UErrorCode &status) 70 // Get the locale 123 // If there is a result, set the valid locale and actual locale, and the kind 149 BreakIterator::createWordInstance(const Locale& key, UErrorCode& status) 158 BreakIterator::createLineInstance(const Locale& key, UErrorCode& status) 167 BreakIterator::createCharacterInstance(const Locale& key, UErrorCode& status) 176 BreakIterator::createSentenceInstance(const Locale& key, UErrorCode& status) 185 BreakIterator::createTitleInstance(const Locale& key, UErrorCode& status) 193 const Locale* U_EXPORT [all...] |
locavailable.cpp | 31 static icu::Locale* availableLocaleList = NULL; 53 const Locale* U_EXPORT2 54 Locale::getAvailableLocales(int32_t& count) 62 Locale *newLocaleList = 0; 64 newLocaleList = new Locale[locCount]; 101 the locale ResourceBundle data file.*/
|
/cts/tests/tests/provider/src/android/provider/cts/ |
UserDictionary_WordsTest.java | 27 import java.util.Locale; 38 UserDictionary.Words.LOCALE }; 83 assertWord("testWord1", 42, null, Locale.KOREA, 42); 84 assertWord("testWord2", -3007, "tw2", Locale.JAPAN, 0); 85 assertWord("testWord3", 1337, "tw3", Locale.US, 255); 88 private void assertWord(String word, int frequency, String shortcut, Locale locale, 91 UserDictionary.Words.addWord(mContext, word, frequency, shortcut, locale); 102 assertEquals(locale.toString(), cursor.getString(LOCALE_INDEX));
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
TextToSpeechTest.java | 25 import java.util.Locale; 61 final Locale defaultLocale = Locale.getDefault(); 62 // If the language for the default locale is available, then 73 for (Locale locale : Locale.getAvailableLocales()) { 74 int availability = getTts().isLanguageAvailable(locale); 78 getTts().setLanguage(locale);
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
DateFormatSymbolsTest.java | 27 import java.util.Locale; 46 * @tests java.text.DateFormatSymbols#DateFormatSymbols(java.util.Locale) 49 // Test for method java.text.DateFormatSymbols(java.util.Locale) 50 new DateFormatSymbols(new Locale("en", "us")); 57 Locale[] locales = DateFormatSymbols.getAvailableLocales(); 59 // must contain Locale.US 61 for (Locale locale : locales) { 62 if (locale.equals(Locale.US)) 147 Locale locale = new Locale("not exist language", "not exist country"); local 167 Locale locale = new Locale("not exist language", "not exist country"); local [all...] |
/external/apache-http/src/org/apache/http/impl/cookie/ |
RFC2965DomainAttributeHandler.java | 34 import java.util.Locale; 72 domain = domain.toLowerCase(Locale.ENGLISH); 117 String host = origin.getHost().toLowerCase(Locale.ENGLISH); 122 String cookieDomain = cookie.getDomain().toLowerCase(Locale.ENGLISH); 181 String host = origin.getHost().toLowerCase(Locale.ENGLISH);
|
/external/icu4c/test/intltest/ |
itformat.cpp | 78 // for all format tests, always set default Locale and TimeZone to ENGLISH and PST. 80 Locale saveDefaultLocale = Locale::getDefault(); 87 Locale::setDefault( Locale::getEnglish(), status ); 89 errln("itformat: couldn't set default Locale to ENGLISH!"); 163 // restore saved Locale and TimeZone 166 Locale::setDefault( saveDefaultLocale, status ); 168 errln("itformat: couldn't re-set default Locale!");
|
tmsgfmt.cpp | 77 Locale locale[] = { local 78 Locale("ar", "", ""), 79 Locale("be", "", ""), 80 Locale("bg", "", ""), 81 Locale("ca", "", ""), 82 Locale("cs", "", ""), 83 Locale("da", "", ""), 84 Locale("de", "", ""), 85 Locale("de", "AT", "") [all...] |
/external/svox/pico/src/com/svox/pico/ |
EngineSettings.java | 29 import java.util.Locale; 59 Locale loc = new Locale(languageCountry[0], languageCountry[1]); 70 Locale loc = new Locale(languageCountry[0], languageCountry[1]);
|
/libcore/luni/src/main/java/java/text/ |
Collator.java | 21 import java.util.Locale; 26 * Performs locale-sensitive string comparison. A concrete subclass, 76 * Collator usCollator = Collator.getInstance(Locale.US); 86 * the default locale. 90 * // Compare two strings in the default locale 158 icuColl = new RuleBasedCollatorICU(Locale.getDefault()); 248 * <p>Note that Android does not support user-supplied locale service providers. 250 public static Locale[] getAvailableLocales() { 277 * {@code Locale}. 278 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>" [all...] |
/libcore/luni/src/test/java/libcore/icu/ |
NativePluralRulesTest.java | 19 import java.util.Locale; 23 NativePluralRules npr = NativePluralRules.forLocale(new Locale("en", "US")); 31 NativePluralRules npr = NativePluralRules.forLocale(new Locale("cs", "CZ")); 42 NativePluralRules npr = NativePluralRules.forLocale(new Locale("ar")); 60 // java.util.Locale will translate "he" to the deprecated "iw". 61 NativePluralRules he = NativePluralRules.forLocale(new Locale("he"));
|
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
WifiP2pDnsSdServiceInfo.java | 25 import java.util.Locale; 130 sb.append(String.format(Locale.US, "%02x", data.length)); 187 dnsName = dnsName.toLowerCase(Locale.ROOT); // TODO: is this right? 190 sb.append(String.format(Locale.US, "%04x", dnsType)); 191 sb.append(String.format(Locale.US, "%02x", version)); 218 sb.append(String.format(Locale.US, "%02x", dnsName.length())); 228 sb.append(String.format(Locale.US, "%02x", name.length()));
|
/libcore/luni/src/main/java/libcore/icu/ |
LocaleData.java | 22 import java.util.Locale; 26 * Passes locale-specific from ICU native code to Java. 33 // A cache for the locale-specific data. 36 // Ensure that we pull in the locale data for the root locale, en_US, and the 37 // user's default locale. (All devices must support the root locale and en_US, 40 get(Locale.ROOT); 41 get(Locale.US); 42 get(Locale.getDefault()) [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/utils/ |
AlgNameMapper.java | 28 import java.util.Locale; 90 String algUC = element[1].toUpperCase(Locale.US); 129 String result = alg2OidMap.get(algName.toUpperCase(Locale.US)); 175 return algAliasesMap.get(algName.toUpperCase(Locale.US)); 192 String algUC = alg.toUpperCase(Locale.US); 211 } else if (!algAliasesMap.containsKey(alias.toUpperCase(Locale.US))) { 212 algAliasesMap.put(alias.toUpperCase(Locale.US), alg);
|
/libcore/luni/src/test/java/libcore/java/text/ |
CollatorTest.java | 25 import java.util.Locale; 126 private void assertGetCollationElementIteratorString(Locale l, String s, Integer... offsets) { 131 private void assertGetCollationElementIteratorCharacterIterator(Locale l, String s, Integer... offsets) { 138 assertGetCollationElementIteratorString(new Locale("es", "", ""), "cha", 0, 1, 2, 3); 142 assertGetCollationElementIteratorString(new Locale("de", "DE", ""), "\u00e6b", 0, 1, 1, 1, 1, 2); 146 assertGetCollationElementIteratorCharacterIterator(new Locale("es", "", ""), "cha", 0, 1, 2, 3); 150 assertGetCollationElementIteratorCharacterIterator(new Locale("de", "DE", ""), "\u00e6b", 0, 1, 1, 1, 1, 2);
|
OldMessageFormatTest.java | 30 import java.util.Locale; 40 Locale.setDefault(Locale.US); 49 format.setLocale(Locale.FRENCH); // use French since English has the 79 Locale[] l = { 80 Locale.FRANCE, 81 Locale.KOREA, 82 new Locale(Locale.FRANCE.getCountry(), Locale.FRANC [all...] |
/libcore/luni/src/main/java/java/util/ |
ResourceBundle.java | 32 * provide {@code Locale}-specific resources. A bundle contains a number of named 92 private Locale locale; field in class:ResourceBundle 115 private static Locale cacheLocale = Locale.getDefault(); 125 * Finds the named resource bundle for the default {@code Locale} and the caller's 139 return getBundle(bundleName, Locale.getDefault(), classLoader); 143 * Finds the named {@code ResourceBundle} for the specified {@code Locale} and the caller 148 * @param locale 149 * the {@code Locale} [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
SubtypeLocaleUtilsTests.java | 29 import java.util.Locale; 33 // Locale to subtypes list. 64 Locale.US.toString(), "qwerty"); 66 Locale.UK.toString(), "qwerty"); 70 Locale.FRENCH.toString(), "azerty"); 72 Locale.CANADA_FRENCH.toString(), "qwerty"); 74 Locale.GERMAN.toString(), "qwertz"); 78 Locale.GERMAN.toString(), "qwerty", null); 80 Locale.FRENCH.toString(), "qwertz", null); 82 Locale.US.toString(), "azerty", null) 282 final Locale locale = SubtypeLocaleUtils.getSubtypeLocale(subtype); local [all...] |