/libcore/luni/src/main/java/java/io/ |
PrintWriter.java | 22 import java.util.Locale; 265 * to this stream. This method uses the user's default locale. 266 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 282 return format(Locale.getDefault(), format, args); 287 * target using the specified locale, format string and arguments. If 291 * the locale used in the method. No localization will be applied 305 public PrintWriter format(Locale l, String format, Object... args) { 320 * <p>The {@code Locale} used is the user's default locale [all...] |
/libcore/luni/src/main/java/java/util/ |
TimeZone.java | 156 * Equivalent to {@code getDisplayName(false, TimeZone.LONG, Locale.getDefault())}. 157 * <a href="../util/Locale.html#default_locale">Be wary of the default locale</a>. 160 return getDisplayName(false, LONG, Locale.getDefault()); 164 * Equivalent to {@code getDisplayName(false, TimeZone.LONG, locale)}. 166 public final String getDisplayName(Locale locale) { 167 return getDisplayName(false, LONG, locale); 171 * Equivalent to {@code getDisplayName(daylightTime, style, Locale.getDefault())}. 172 * <a href="../util/Locale.html#default_locale">Be wary of the default locale</a> [all...] |
/libcore/luni/src/main/native/ |
libcore_icu_DateIntervalFormat.cpp | 27 Locale locale = getLocale(env, javaLocaleName); local 35 DateIntervalFormat* formatter(DateIntervalFormat::createInstance(skeletonHolder.unicodeString(), locale, status));
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
SettingsValues.java | 41 import java.util.Locale; 44 * When you call the constructor of this class, you may want to change the current system locale by 84 public final Locale mLocale; 107 public SettingsValues(final SharedPreferences prefs, final Locale locale, final Resources res, 109 mLocale = locale; 183 private SettingsValues(final Locale locale) { 184 // TODO: locale is saved, but not used yet. May have to change this if tests require. 185 mLocale = locale; [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
UsabilityStudyLogUtils.java | 43 import java.util.Locale; 59 mDateFormat = new SimpleDateFormat("yyyyMMdd-HHmmss.SSSZ", Locale.US); 158 final String printString = String.format(Locale.US, "%s\t%d\t%s\n", 200 new SimpleDateFormat("yyyyMMdd-HHmmssZ", Locale.US).format(date);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
InputTestsBase.java | 41 import java.util.Locale; 95 public Locale mCurrentLocale; 107 public Locale getTextServicesLocale() { 116 public Locale getSpellCheckerLocale() { 240 protected void changeLanguage(final String locale) { 241 changeLanguageWithoutWait(locale); 245 protected void changeLanguageWithoutWait(final String locale) { 246 mEditText.mCurrentLocale = LocaleUtils.constructLocaleFromString(locale);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
PostalSplitter.java | 22 import java.util.Locale; 28 private static final String JAPANESE_LANGUAGE = Locale.JAPANESE.getLanguage().toLowerCase(); 30 private final Locale mLocale; 62 public PostalSplitter(Locale locale) { 63 mLocale = locale;
|
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
VaryingConfiguration.java | 40 * overrides the locale, and if the inherited locale is "en", then the returned 41 * locale from the {@linkplain VaryingConfiguration} may be for example "nb", 163 public Locale getLocale() { 167 Locale locale = mParent.getLocale(); local 168 if (isAlternatingLocale() && locale != null) { 169 List<Locale> locales = mConfigChooser.getLocaleList(); 170 for (Locale l : locales) { 175 if (!l.equals(locale)) { [all...] |
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
Support_DecimalFormat.java | 22 import java.util.Locale; 44 .getCurrencyInstance(Locale.US); 101 // test currency instance with TR Locale 103 format = (DecimalFormat) NumberFormat.getCurrencyInstance(new Locale( 136 Locale us = Locale.US; 137 Locale tr = new Locale("tr", "TR"); 163 // test currency instance with US Locale 167 // test negative currency instance with US Locale [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
tblcoll.cpp | 27 * Added a private RuleBasedCollator(Locale&) constructor, 617 * return the locale of this collator 619 const Locale RuleBasedCollator::getLocale(ULocDataLocaleType type, UErrorCode &status) const { 622 Locale res(""); 626 return Locale(result); 631 RuleBasedCollator::setLocales(const Locale& requestedLocale, const Locale& validLocale, const Locale& actualLocale) { 655 RuleBasedCollator::RuleBasedCollator(const Locale& desiredLocale, 664 1. The desired locale's collation [all...] |
/external/chromium_org/third_party/icu/source/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...] |
miscdtfm.cpp | 161 DateFormatSymbols* symbols = new DateFormatSymbols(Locale::getUS(), status); 193 DateFormatSymbols* symbols = new DateFormatSymbols(Locale::getUS(), status); 224 DateFormatSymbols* symbols = new DateFormatSymbols(Locale::getUS(), status); 253 DateFormatSymbols* symbols = new DateFormatSymbols(Locale::getUS(), status); 325 DateFormatSymbols *symbols = new DateFormatSymbols(Locale::getJapan(), status);
|
/external/icu4c/i18n/ |
tblcoll.cpp | 27 * Added a private RuleBasedCollator(Locale&) constructor, 554 * return the locale of this collator 556 Locale RuleBasedCollator::getLocale(ULocDataLocaleType type, UErrorCode &status) const { 559 Locale res(""); 563 return Locale(result); 568 RuleBasedCollator::setLocales(const Locale& requestedLocale, const Locale& validLocale, const Locale& actualLocale) { 592 RuleBasedCollator::RuleBasedCollator(const Locale& desiredLocale, 601 1. The desired locale's collation [all...] |
/external/icu4c/test/intltest/ |
plurults.cpp | 95 logln("\n start default locale test case ..\n"); 99 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status)); 214 // ====== Test fallback to parent locale 215 LocalPointer<PluralRules> en_UK(test->forLocale(Locale::getUK(), status)); 216 LocalPointer<PluralRules> en(test->forLocale(Locale::getEnglish(), status)); 219 errln("ERROR: test locale fallback failed!"); 223 LocalPointer<PluralRules> zh_Hant(test->forLocale(Locale::getTaiwan(), status)); 224 LocalPointer<PluralRules> zh(test->forLocale(Locale::getChinese(), status)); 227 errln("ERROR: test locale fallback failed!"); 345 // test every locale.. [all...] |
plurfmts.cpp | 51 Locale locale = Locale::getDefault(); local 63 dataerrln("ERROR: Could not create NumberFormat instance with default locale "); 71 plFmt[2] = new PluralFormat(locale, status[2]); 72 plFmt[3] = new PluralFormat(locale, *plRules, status[3]); 75 plFmt[6] = new PluralFormat(locale, otherPattern, status[6]); 76 plFmt[7] = new PluralFormat(locale, *plRules, otherPattern, status[7]); 93 plFmt[1]= new PluralFormat(locale, status[1]); 108 plFmt[0]= new PluralFormat(locale, status[0]) 694 const char *locale = localeArray[i]; local [all...] |
dtfmrgts.cpp | 126 DateFormat::SHORT, Locale::getUS()); 228 SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("yyMMdd"), Locale::getUS(), status); 433 Locale saveLocale = Locale::getDefault(); 438 Locale *curLocale = new Locale("de","DE"); 439 Locale::setDefault(*curLocale, status); 440 failure(status, "Locale::setDefault"); 484 logln("*** FOR LOCALE de OR de_DE IS MISSING ***"); 488 Locale::setDefault(saveLocale, status) [all...] |
miscdtfm.cpp | 161 DateFormatSymbols* symbols = new DateFormatSymbols(Locale::getUS(), status); 196 DateFormatSymbols* symbols = new DateFormatSymbols(Locale::getUS(), status); 227 DateFormatSymbols* symbols = new DateFormatSymbols(Locale::getUS(), status); 256 DateFormatSymbols* symbols = new DateFormatSymbols(Locale::getUS(), status); 328 DateFormatSymbols *symbols = new DateFormatSymbols(Locale::getJapan(), status);
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
DatePickerDialog.java | 47 import java.util.Locale; 77 private static SimpleDateFormat YEAR_FORMAT = new SimpleDateFormat("yyyy", Locale.getDefault()); 78 private static SimpleDateFormat DAY_FORMAT = new SimpleDateFormat("dd", Locale.getDefault()); 335 Locale.getDefault()).toUpperCase(Locale.getDefault())); 339 Locale.getDefault()).toUpperCase(Locale.getDefault()));
|
/libcore/support/src/test/java/tests/support/ |
Support_DecimalFormat.java | 22 import java.util.Locale; 43 .getCurrencyInstance(Locale.US); 100 // test currency instance with TR Locale 102 format = (DecimalFormat) NumberFormat.getCurrencyInstance(new Locale( 139 Locale us = Locale.US; 140 Locale tr = new Locale("de", "CH"); 151 // test currency instance with US Locale 154 // test negative currency instance with US Locale [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
AndroidSpellCheckerService.java | 50 import java.util.Locale; 127 public static int getScriptFromLocale(final Locale locale) { 128 final Integer script = mLanguageToScript.get(locale.getLanguage()); 131 + locale.getLanguage() + "\". Framework bug?"); 164 // TODO: use the right locale for each session 166 new SynchronouslyLoadedContactsBinaryDictionary(this, Locale.getDefault()); 309 public Result getResults(final int capitalizeType, final Locale locale) { 342 mSuggestions.set(i, mSuggestions.get(i).toString().toUpperCase(locale)); [all...] |
/frameworks/base/core/java/android/widget/ |
TimePicker.java | 41 import java.util.Locale; 108 private Locale mCurrentLocale; 137 // initialization based on locale 138 setCurrentLocale(Locale.getDefault()); 286 final Locale defaultLocale = Locale.getDefault(); 307 final Locale defaultLocale = Locale.getDefault(); 341 setCurrentLocale(newConfig.locale); 345 * Sets the current locale [all...] |
/external/icu4c/test/perf/DateFmtPerf/ |
DateFmtPerf.h | 84 boundary = BreakIterator::createCharacterInstance(Locale::getUS(), *status); 145 char locale[25]; member in class:DateFmtFunction 156 strcpy(locale, loc); 173 Locale loc(locale); 239 char locale[25]; member in class:NumFmtFunction 250 strcpy(locale, loc); 255 Locale loc(locale); 258 // Create a number formatter for the locale 368 char locale[25]; member in class:StdioNumFmtFunction 427 char locale[25]; member in class:CollationFunction [all...] |
/frameworks/base/core/java/android/text/ |
BidiFormatter.java | 23 import java.util.Locale; 142 initialize(isRtlLocale(Locale.getDefault())); 157 * @param locale The context locale. 159 public Builder(Locale locale) { 160 initialize(isRtlLocale(locale)); 234 * Factory for creating an instance of BidiFormatter for the default locale directionality. 251 * Factory for creating an instance of BidiFormatter given the context locale. 253 * @param locale The context locale [all...] |
/frameworks/base/core/java/android/text/format/ |
Time.java | 21 import java.util.Locale; 141 * The Locale for which date formatting strings have been loaded. 143 private static Locale sLocale; 318 * @return a String containing the current time expressed in the current locale. 322 Locale locale = Locale.getDefault(); local 324 if (sLocale == null || locale == null || !(locale.equals(sLocale))) { 325 LocaleData localeData = LocaleData.get(locale); [all...] |
/frameworks/support/v4/java/android/support/v4/text/ |
BidiFormatter.java | 21 import java.util.Locale; 138 initialize(isRtlLocale(Locale.getDefault())); 153 * @param locale The context locale. 155 public Builder(Locale locale) { 156 initialize(isRtlLocale(locale)); 230 * Factory for creating an instance of BidiFormatter for the default locale directionality. 247 * Factory for creating an instance of BidiFormatter given the context locale. 249 * @param locale The context locale [all...] |