/libcore/luni/src/test/java/libcore/java/util/ |
TimeZoneTest.java | 22 import java.util.Locale; 53 assertEquals("GMT+00:01", tz0001.getDisplayName(false, TimeZone.SHORT, Locale.US)); 54 assertEquals("GMT+01:30", tz0130.getDisplayName(false, TimeZone.SHORT, Locale.US)); 55 assertEquals("GMT-01:30", tzMinus0130.getDisplayName(false, TimeZone.SHORT, Locale.US)); 222 String longDst = tz.getDisplayName(true, TimeZone.LONG, Locale.US); 223 String longStd = tz.getDisplayName(false, TimeZone.LONG, Locale.US); 224 String shortDst = tz.getDisplayName(true, TimeZone.SHORT, Locale.US); 225 String shortStd = tz.getDisplayName(false, TimeZone.SHORT, Locale.US); 280 assertEquals("Chile Summer Time", tz.getDisplayName(true, TimeZone.LONG, Locale.US)); 281 assertEquals("Chile Standard Time", tz.getDisplayName(false, TimeZone.LONG, Locale.US)) [all...] |
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
CollatorTest.java | 22 import java.util.Locale; 30 Collator c = Collator.getInstance(Locale.GERMAN); 40 Collator c = Collator.getInstance(Locale.FRENCH); 126 Collator c = Collator.getInstance(Locale.ENGLISH); 137 Collator c = Collator.getInstance(Locale.FRENCH); 176 Locale[] locales = Collator.getAvailableLocales(); 180 if (locales[i].equals(Locale.ENGLISH)) 182 if (locales[i].equals(Locale.GERMAN)) 184 // Output the working locale to help diagnose a hang 223 Collator c2 = Collator.getInstance(Locale.getDefault()) [all...] |
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
rbnf.h | 69 * <p>The resources contain three predefined formatters for each locale: spellout, which 488 * subarrays is the locale name, and the remaining elements are localizations of the 512 * passed in. The formatter uses the default locale. 524 * passed in. The formatter uses the default locale. 550 * passed in. The formatter uses the specified locale to determine the 556 * @param locale A locale that governs which characters are used for 563 RuleBasedNumberFormat(const UnicodeString& rules, const Locale& locale, 568 * passed in. The formatter uses the default locale 994 Locale locale; member in class:RuleBasedNumberFormat [all...] |
smpdtfmt.h | 55 * is guaranteed to get an appropriate formatting pattern for whatever locale the 127 * Examples using the US locale: 219 * locale. 229 * Construct a SimpleDateFormat using the given pattern and the default locale. 230 * The locale is used to obtain the symbols used in formatting (e.g., the 243 * Construct a SimpleDateFormat using the given pattern, numbering system override, and the default locale. 244 * The locale is used to obtain the symbols used in formatting (e.g., the 268 * Construct a SimpleDateFormat using the given pattern and locale. 269 * The locale is used to obtain the symbols used in formatting (e.g., the 275 * @param locale the given locale [all...] |
/external/icu4c/i18n/unicode/ |
numfmt.h | 57 * NumberFormat helps you to format and parse numbers for any locale. 58 * Your code can be completely independent of the locale conventions 62 * To format a number for the current Locale, use one of the static 96 * To format a number for a different Locale, specify it in the 100 * nf = NumberFormat::createInstance( Locale::FRENCH, success ); 629 * currency name, searching for a match of this object's locale's 650 * only. For example in the English locale, with ParseIntegerOnly 653 * the exact format accepted by the parse operation is locale 691 * locale. The default format is one of the styles provided by 694 * is locale dependant [all...] |
rbnf.h | 69 * <p>The resources contain three predefined formatters for each locale: spellout, which 488 * subarrays is the locale name, and the remaining elements are localizations of the 512 * passed in. The formatter uses the default locale. 524 * passed in. The formatter uses the default locale. 550 * passed in. The formatter uses the specified locale to determine the 556 * @param locale A locale that governs which characters are used for 563 RuleBasedNumberFormat(const UnicodeString& rules, const Locale& locale, 568 * passed in. The formatter uses the default locale 1017 Locale locale; member in class:RuleBasedNumberFormat [all...] |
plurrule.h | 107 * could be defined by users or from ICU locale data. There are 6 188 * locale. 189 * Same as forLocale(locale, UPLURAL_TYPE_CARDINAL, status). 191 * @param locale The locale for which a <code>PluralRules</code> object is 196 * this locale. If there's no predefined rules for this locale, 197 * the rules for the closest parent in the locale hierarchy 202 static PluralRules* U_EXPORT2 forLocale(const Locale& locale, UErrorCode& status) [all...] |
smpdtfmt.h | 57 * is guaranteed to get an appropriate formatting pattern for whatever locale the 69 * Unicode Locale Data Markup Language (LDML)</a>. The following pattern letters are 386 * generation, it should match the 12-hour-cycle format preferred by the locale (h or K); it should not match 394 * generation, it should match the 24-hour-cycle format preferred by the locale (H or k); it should not match a 614 * Examples using the US locale: 707 * locale. 717 * Construct a SimpleDateFormat using the given pattern and the default locale. 718 * The locale is used to obtain the symbols used in formatting (e.g., the 731 * Construct a SimpleDateFormat using the given pattern, numbering system override, and the default locale. 732 * The locale is used to obtain the symbols used in formatting (e.g., th [all...] |
/frameworks/base/core/java/com/android/internal/app/ |
LocalePicker.java | 40 import java.util.Locale; 49 public void onLocaleSelected(Locale locale); 62 Locale locale; field in class:LocalePicker.LocaleInfo 64 public LocaleInfo(String label, Locale locale) { 66 this.locale = locale; 73 public Locale getLocale() [all...] |
/external/icu4c/test/intltest/ |
uobjtest.cpp | 366 TESTCLASSID_FACTORY(RelativeDateFormat, DateFormat::createDateInstance(DateFormat::kFullRelative, Locale::getUS())); 375 TESTCLASSID_FACTORY_HIDDEN(CurrencyFormat, MeasureFormat::createCurrencyFormat(Locale::getUS(), status)); 376 TESTCLASSID_FACTORY(GregorianCalendar, Calendar::createInstance(Locale("@calendar=gregorian"), status)); 377 TESTCLASSID_FACTORY(BuddhistCalendar, Calendar::createInstance(Locale("@calendar=buddhist"), status)); 378 TESTCLASSID_FACTORY(IslamicCalendar, Calendar::createInstance(Locale("@calendar=islamic"), status)); 379 TESTCLASSID_FACTORY(JapaneseCalendar, Calendar::createInstance(Locale("@calendar=japanese"), status)); 380 TESTCLASSID_FACTORY(HebrewCalendar, Calendar::createInstance(Locale("@calendar=hebrew"), status)); 381 TESTCLASSID_FACTORY(PersianCalendar, Calendar::createInstance(Locale("@calendar=persian"), status)); 382 TESTCLASSID_FACTORY(IndianCalendar, Calendar::createInstance(Locale("@calendar=indian"), status)); 383 TESTCLASSID_FACTORY(ChineseCalendar, Calendar::createInstance(Locale("@calendar=chinese"), status)) [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
Signature2Test.java | 28 import java.util.Locale; 235 Locale defaultLocale = Locale.getDefault(); 238 * In locale("tr"), char 'i' will be transferred to an upper case 241 * standard property shall be treated as locale neutral 243 Locale.setDefault(new Locale("tr")); 246 Locale.setDefault(defaultLocale);
|
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/ |
WifiP2pServiceRequest.java | 23 import java.util.Locale; 139 sb.append(String.format(Locale.US, "%02x", (mLength) & 0xff)); 140 sb.append(String.format(Locale.US, "%02x", (mLength >> 8) & 0xff)); 141 sb.append(String.format(Locale.US, "%02x", mProtocolType)); 142 sb.append(String.format(Locale.US, "%02x", mTransId)); 172 query = query.toLowerCase(Locale.ROOT);
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZonePickerUtils.java | 29 import java.util.Locale; 39 private Locale mDefaultLocale; 72 final Locale defaultLocale = Locale.getDefault(); 74 // If the IDs and labels haven't been set yet, or if the locale has been changed 164 return tz.getDisplayName(daylightTime, TimeZone.LONG, Locale.getDefault()); 180 return tz.getDisplayName(daylightTime, TimeZone.LONG, Locale.getDefault());
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
LocalePreference.java | 28 import java.util.Locale; 31 * List preference that allows the user to pick a locale from the list of 68 final Locale l = new Locale(language, country); 78 if (previous.locale.getLanguage().equals(language) 79 && !previous.locale.getLanguage().equals("zz")) { 81 localeInfos[finalSize - 1].locale, specialLocaleCodes, 109 entryValues[i + 1] = info.locale.toString(); 117 Locale l, String[] specialLocaleCodes, String[] specialLocaleNames) { 133 public Locale locale field in class:LocalePreference.LocaleInfo [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
DictionaryFactory.java | 31 import java.util.Locale; 43 * locale. If none is found, it falls back to the built-in dictionary - if any. 45 * @param locale the locale for which to create the dictionary 50 final Locale locale, final boolean useFullEditDistance) { 51 if (null == locale) { 52 Log.e(TAG, "No locale defined for dictionary"); 54 createReadOnlyBinaryDictionary(context, locale)); 59 BinaryDictionaryGetter.getDictionaryFiles(locale, context) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/ |
AdtUtilsTest.java | 20 import java.util.Locale; 99 // locale settings, like using commas instead of of periods 100 Locale originalDefaultLocale = Locale.getDefault(); 103 Locale.setDefault(Locale.FRENCH); 105 // Ensure that this is a locale which uses a comma instead of a period: 111 Locale.setDefault(originalDefaultLocale);
|
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
XMLString.java | 23 import java.util.Locale; 207 * Note that this method does <em>not</em> take locale into account, 210 * locale-sensitive ordering. 577 * case using the rules of the given <code>Locale</code>. 579 * @param locale use the case transformation rules for this locale 582 * @see java.lang.String#toUpperCase(Locale) 584 public abstract XMLString toLowerCase(Locale locale); 588 * case using the rules of the default locale, which is returne [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
reldtfmt.h | 42 RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, const Locale& locale, UErrorCode& status); 87 * Example: using the US locale: "yyyy.MM.dd e 'at' HH:mm:ss zzz" ->> 231 Locale fLocale; 260 * @param locale Locale of the calendar 265 Calendar* initializeCalendar(TimeZone* adoptZone, const Locale& locale, UErrorCode& status);
|
/external/icu4c/i18n/ |
reldtfmt.h | 44 RelativeDateFormat( UDateFormatStyle timeStyle, UDateFormatStyle dateStyle, const Locale& locale, UErrorCode& status); 89 * Example: using the US locale: "yyyy.MM.dd e 'at' HH:mm:ss zzz" ->> 243 Locale fLocale; 272 * @param locale Locale of the calendar 277 Calendar* initializeCalendar(TimeZone* adoptZone, const Locale& locale, UErrorCode& status);
|
/libcore/luni/src/main/java/java/text/ |
NumberFormat.java | 28 import java.util.Locale; 38 * {@code NumberFormat} helps you to format and parse numbers for any locale. 39 * Your code can be completely independent of the locale conventions for decimal 43 * To format a number for the current locale, use one of the factory class 67 * To format a number for a different locale, specify it in the call to 72 * NumberFormat nf = NumberFormat.getInstance(Locale.FRENCH); 310 * <p>Note that Android does not support user-supplied locale service providers. 312 public static Locale[] getAvailableLocales() { 334 * for the user's default locale. 335 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>" [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
AlphabeticIndex.java | 19 import java.util.Locale; 78 * Creates a new AlphabeticIndex for the given locale. 80 public AlphabeticIndex(Locale locale) { 81 peer = create(locale.toString()); 110 * Adds the index characters from the given locale to the index. 114 * it remains that of the locale that was originally specified 117 public synchronized AlphabeticIndex addLabels(Locale locale) { 118 addLabels(peer, locale.toString()) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
SubtypeLocaleUtils.java | 32 import java.util.Locale; 55 // Exceptional locale to subtype name resource id map. 58 // Exceptional locale to subtype name with layout resource id map. 152 private static Locale getDisplayLocaleOfSubtypeLocale(final String localeString) { 154 return sResources.getConfiguration().locale; 160 final Locale displayLocale = sResources.getConfiguration().locale; 165 final Locale displayLocale = getDisplayLocaleOfSubtypeLocale(localeString); 170 final Locale displayLocale) { 182 // No language subtype should be displayed in system locale 185 final Locale locale = LocaleUtils.constructLocaleFromString(localeString); local 321 final Locale locale = getSubtypeLocale(subtype); local 330 final Locale locale = getSubtypeLocale(subtype); local [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
RichInputConnectionAndTextRangeTests.java | 35 import java.util.Locale; 241 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 254 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 256 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), 267 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 269 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), 279 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 281 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */), 291 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS1, 0 /* flags */), 293 text.setSpan(new SuggestionSpan(Locale.ENGLISH, SUGGESTIONS2, 0 /* flags */) [all...] |
/external/chromium_org/third_party/icu/source/common/ |
locbased.h | 18 * Macro to declare a locale LocaleBased wrapper object for the given 51 * Return locale meta-data for the service object wrapped by this 52 * object. Either the valid or the actual locale may be 56 * @return the indicated locale 58 Locale getLocale(ULocDataLocaleType type, UErrorCode& status) const; 61 * Return the locale ID for the service object wrapped by this 62 * object. Either the valid or the actual locale may be 66 * @return the indicated locale ID 71 * Set the locale meta-data for the service object wrapped by this 73 * @param valid the ID of the valid locale [all...] |
servlkf.cpp | 50 Locale loc; 92 LocaleKeyFactory::getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString& result) const { 97 Locale loc; 99 return loc.getDisplayName(locale, result); 107 LocaleKeyFactory::handleCreate(const Locale& /* loc */,
|