/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
GoogleSuggestClient.java | 47 import java.util.Locale; 107 Locale l = Locale.getDefault();
|
/packages/apps/Settings/src/com/android/settings/inputmethod/ |
UserDictionaryAddWordContents.java | 34 import java.util.Locale; 45 public static final String EXTRA_LOCALE = "locale"; 93 // locale may be null, this means default locale 95 /* package */ void updateLocale(final String locale) { 96 mLocale = null == locale ? Locale.getDefault().toString() : locale; 171 + "=? AND " + UserDictionary.Words.LOCALE + "=?"; 173 + "=? AND " + UserDictionary.Words.LOCALE + " is null" [all...] |
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/ |
TagCanon.java | 41 import java.util.Locale; 52 public static NdefRecord newTextRecord(String text, Locale locale, boolean encodeInUtf8) { 54 Preconditions.checkNotNull(locale); 56 byte[] langBytes = locale.getLanguage().getBytes(StandardCharsets.US_ASCII); 95 NdefRecord text = newTextRecord("There's an image below this text!", Locale.US, true);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
WordListPreference.java | 31 import java.util.Locale; 61 public final Locale mLocale; 76 final String wordlistId, final int version, final Locale locale, 85 mLocale = locale;
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
KeyboardId.java | 31 import java.util.Locale; 66 public final Locale mLocale; 189 return String.format(Locale.ROOT, "[%s %s:%s %dx%d %s %s %s%s%s%s%s%s%s%s%s]",
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
BinaryDictionaryGetter.java | 37 import java.util.Locale; 148 * Returns the list of cached files for a specific locale, one for each category. 151 * the passed locale. If several files match the locale for any given category, 152 * this returns the file with the closest match to the locale. For example, if 157 * @param locale the locale to find the dictionary files for, as a string. 161 public static File[] getCachedWordLists(final String locale, final Context context) { 169 final int matchLevel = LocaleUtils.getMatchLevel(dirLocale, locale); 207 // There is one directory per locale. See #getCachedDirectoryLis [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
KeySpecParserSplitTests.java | 31 import java.util.Locale; 35 private static final Locale TEST_LOCALE = Locale.ENGLISH;
|
/external/chromium_org/third_party/icu/source/i18n/ |
calendar.cpp | 238 // to get the default calendar type for the locale's region 284 static Calendar *createStandardCalendar(ECalType calType, const Locale &loc, UErrorCode& status) { 381 Locale curLoc; // current locale 382 Locale canLoc; // Canonical locale 421 Locale loc; 463 Locale loc; 467 Locale loc2; 658 setWeekData(Locale::getDefault(), NULL, success) [all...] |
unum.cpp | 39 const char* locale, 53 if(locale == 0) 56 retVal = (UNumberFormat*)NumberFormat::createInstance(Locale(locale), 61 if(locale == 0) 64 retVal = (UNumberFormat*)NumberFormat::createCurrencyInstance(Locale(locale), 69 if(locale == 0) 72 retVal = (UNumberFormat*)NumberFormat::createPercentInstance(Locale(locale), [all...] |
/external/icu4c/i18n/ |
calendar.cpp | 254 // to get the default calendar type for the locale's region 299 static Calendar *createStandardCalendar(ECalType calType, const Locale &loc, UErrorCode& status) { 404 Locale curLoc; // current locale 405 Locale canLoc; // Canonical locale 446 Locale loc; 492 Locale loc; 496 Locale loc2; 690 setWeekData(Locale::getDefault(), NULL, success) [all...] |
unum.cpp | 40 const char* locale, 54 retVal = NumberFormat::createInstance(Locale(locale), style, *status); 66 DecimalFormatSymbols *syms = new DecimalFormatSymbols(Locale(locale), *status); 92 retVal = new RuleBasedNumberFormat(pat, Locale(locale), *parseErr, *status); 96 retVal = new RuleBasedNumberFormat(URBNF_SPELLOUT, Locale(locale), *status); 100 retVal = new RuleBasedNumberFormat(URBNF_ORDINAL, Locale(locale), *status) [all...] |
/development/apps/CustomLocale/src/com/android/customlocale2/ |
CustomLocaleActivity.java | 23 import java.util.Locale; 50 * locales. The user can select a locale and apply it or it can create or remove 51 * a custom locale. 65 /** Menu item id for applying a locale */ 67 /** Menu item id for removing a custom locale */ 72 /** Textview used to display current locale */ 134 String locale = data.getExtras().getString(NewLocaleDialog.INTENT_EXTRA_LOCALE); local 135 if (locale != null && locale.length() > 0) { 136 // Get current custom locale lis [all...] |
/external/apache-xml/src/main/java/org/apache/xalan/res/ |
XSLTErrorResources.java | 24 import java.util.Locale; 1459 Locale locale = Locale.getDefault(); local [all...] |
/libcore/luni/src/main/java/java/text/ |
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 510 * for the user's default locale. 511 * See "<a href="../util/Locale.html#default_locale">Be wary of the default locale</a>". 514 Locale locale = Locale.getDefault() local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/configuration/ |
ConfigurationDescription.java | 61 private static final String ATTR_LOCALE = "locale"; //$NON-NLS-1$ 91 /** The locale */ 92 public Locale locale = Locale.ANY; field in class:ConfigurationDescription 152 description.locale = configuration.getLocale(); 201 // Load locale. Note that this can get overwritten by the 203 LanguageQualifier language = Locale.ANY_LANGUAGE; 204 RegionQualifier region = Locale.ANY_REGION; 212 description.locale = Locale.create(language, region) [all...] |
ConfigurationChooser.java | 144 private final List<Locale > mLocaleList = new ArrayList<Locale>(); 253 mLocaleCombo.setToolTipText("Locale to use when rendering layouts in Eclipse"); 375 public List<Locale> getLocaleList() { 771 // Load locale list. This must be run after we initialize the 1523 Locale locale = (Locale) mLocaleCombo.getData(); local 1687 Locale locale = pair.getFirst(); local 1922 Locale locale = mConfiguration.getLocale(); local [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/wizards/templates/ |
Parameter.java | 51 import java.util.Locale; 71 return Type.valueOf(name.toUpperCase(Locale.US)); 76 AdtPlugin.printErrorToConsole(" " + s.name().toLowerCase(Locale.US)); 138 return Constraint.valueOf(name.toUpperCase(Locale.US)); 146 AdtPlugin.printErrorToConsole(" " + s.name().toLowerCase(Locale.US));
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
PaintTest.java | 37 import java.util.Locale; 541 final Locale defaultLocale = Locale.getDefault(); 547 p.setTextLocale(Locale.US); 548 assertEquals(Locale.US, p.getTextLocale()); 550 p.setTextLocale(Locale.CHINESE); 551 assertEquals(Locale.CHINESE, p.getTextLocale()); 553 p.setTextLocale(Locale.JAPANESE); 554 assertEquals(Locale.JAPANESE, p.getTextLocale()); 556 p.setTextLocale(Locale.KOREAN) [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/ |
GregorianCalendarTest.java | 24 import java.util.Locale; 111 * @tests java.util.GregorianCalendar#GregorianCalendar(java.util.Locale) 114 // Test for method java.util.GregorianCalendar(java.util.Locale) 116 GregorianCalendar gcJapan = new GregorianCalendar(Locale.JAPAN); 118 GregorianCalendar gcJapan2 = new GregorianCalendar(Locale.JAPAN); 120 GregorianCalendar gcItaly = new GregorianCalendar(Locale.ITALY); 165 * java.util.Locale) 169 // java.util.Locale) 173 .getTimeZone("EST"), Locale.JAPAN); 176 .getTimeZone("EST"), Locale.JAPAN) [all...] |
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/ |
ErrorManager.java | 73 * I use the default Locale as defined by java to compute a group file name 76 * Normally we want to use the default locale, but often a message file will 84 * TODO: how to map locale to a file encoding for the stringtemplate group file? 251 /** Messages should be sensitive to the locale. */ 252 private static Locale locale; field in class:ErrorManager 386 // it is inefficient to set the default locale here if another 387 // piece of code is going to set the locale, but that would 390 setLocale(Locale.getDefault()); 401 /** We really only need a single locale for entire running ANTLR cod [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
astrotst.cpp | 270 GregorianCalendar *cal = new GregorianCalendar(tz->clone(), Locale::getUS(), status); 271 GregorianCalendar *cal2 = new GregorianCalendar(tz->clone(), Locale::getUS(), status); 278 DateFormat *df_t = DateFormat::createTimeInstance(DateFormat::MEDIUM,Locale::getUS()); 279 DateFormat *df_d = DateFormat::createDateInstance(DateFormat::MEDIUM,Locale::getUS()); 280 DateFormat *df_dt = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::MEDIUM, Locale::getUS()); 382 GregorianCalendar *cal3 = new GregorianCalendar(TimeZone::getGMT()->clone(), Locale::getUS(), status); 383 DateFormat *d3 = DateFormat::createDateTimeInstance(DateFormat::MEDIUM,DateFormat::MEDIUM,Locale::getUS());
|
tsdtfmsy.cpp | 43 symbol=new DateFormatSymbols(Locale::getDefault(), status); 62 symbol=new DateFormatSymbols(Locale::getDefault(), status); 87 symbol=new DateFormatSymbols(Locale::getDefault(), status); 115 symbol=new DateFormatSymbols(Locale::getDefault(), status); 136 DateFormatSymbols fr(Locale::getFrench(), status); 143 DateFormatSymbols fr2(Locale::getFrench(), status); 150 DateFormatSymbols en(Locale::getEnglish(), status);
|
calregts.cpp | 441 SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("ddMMMyy"), Locale::getUK(),status); 443 Locale::getUK(),status); 708 Locale saveLocale = Locale::getDefault(); 710 Locale::setDefault(Locale::getUK(),status); 738 Locale::setDefault(saveLocale,status); 2371 const char * locale; member in struct:__anon11564 [all...] |
/external/icu4c/test/intltest/ |
astrotst.cpp | 270 GregorianCalendar *cal = new GregorianCalendar(tz->clone(), Locale::getUS(), status); 271 GregorianCalendar *cal2 = new GregorianCalendar(tz->clone(), Locale::getUS(), status); 278 DateFormat *df_t = DateFormat::createTimeInstance(DateFormat::MEDIUM,Locale::getUS()); 279 DateFormat *df_d = DateFormat::createDateInstance(DateFormat::MEDIUM,Locale::getUS()); 280 DateFormat *df_dt = DateFormat::createDateTimeInstance(DateFormat::MEDIUM, DateFormat::MEDIUM, Locale::getUS()); 382 GregorianCalendar *cal3 = new GregorianCalendar(TimeZone::getGMT()->clone(), Locale::getUS(), status); 383 DateFormat *d3 = DateFormat::createDateTimeInstance(DateFormat::MEDIUM,DateFormat::MEDIUM,Locale::getUS());
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
SearchIndexManagerTest.java | 37 import java.util.Locale; 74 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.CHINA)) { 90 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.CHINA)) { 93 ContactLocaleUtils.setLocale(Locale.SIMPLIFIED_CHINESE); 110 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.KOREA)) { 126 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.KOREA)) { 150 if (!Arrays.asList(Collator.getAvailableLocales()).contains(Locale.KOREA)) {
|