/libcore/ojluni/src/main/java/java/text/spi/ |
H A D | DateFormatProvider.java | 50 * with the given formatting style for the specified locale. 51 * @param style the given formatting style. Either one of 57 * @exception IllegalArgumentException if <code>style</code> is invalid, 66 public abstract DateFormat getTimeInstance(int style, Locale locale); argument 70 * with the given formatting style for the specified locale. 71 * @param style the given formatting style. Either one of 77 * @exception IllegalArgumentException if <code>style</code> is invalid, 86 public abstract DateFormat getDateInstance(int style, Local argument [all...] |
/libcore/ojluni/src/main/java/java/util/spi/ |
H A D | TimeZoneNameProvider.java | 66 * @param style either {@link java.util.TimeZone#LONG TimeZone.LONG} or 71 * @exception IllegalArgumentException if <code>style</code> is invalid, 79 public abstract String getDisplayName(String ID, boolean daylight, int style, Locale locale); argument
|
/libcore/luni/src/main/java/libcore/icu/ |
H A D | RelativeDateTimeFormatter.java | 120 android.icu.text.RelativeDateTimeFormatter.Style style; 122 style = android.icu.text.RelativeDateTimeFormatter.Style.SHORT; 124 style = android.icu.text.RelativeDateTimeFormatter.Style.LONG; 168 str = getFormatter(icuLocale, style, displayContext) 175 str = getFormatter(icuLocale, style, displayContext) 222 getFormatter(icuLocale, style, displayContext); 277 android.icu.text.RelativeDateTimeFormatter.Style style; 279 style = android.icu.text.RelativeDateTimeFormatter.Style.SHORT; 281 style = android.icu.text.RelativeDateTimeFormatter.Style.LONG; 324 return getFormatter(icuLocale, style, capitalizationContex 337 getFormatter( ULocale locale, android.icu.text.RelativeDateTimeFormatter.Style style, DisplayContext displayContext) argument [all...] |
H A D | LocaleData.java | 164 public String getDateFormat(int style) { argument 165 switch (style) { 178 public String getTimeFormat(int style) { argument 179 switch (style) {
|
H A D | TimeZoneNames.java | 114 public static String getDisplayName(String[][] zoneStrings, String id, boolean daylight, int style) { argument 120 return (style == TimeZone.LONG) ? row[LONG_NAME_DST] : row[SHORT_NAME_DST]; 122 return (style == TimeZone.LONG) ? row[LONG_NAME] : row[SHORT_NAME];
|
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | DateFormatTest.java | 50 private static void checkTimePattern(int style, String expectedPattern) { argument 53 DateFormat format = DateFormat.getTimeInstance(style, locale);
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | TimeZone.java | 148 * A style specifier for <code>getDisplayName()</code> indicating 156 * A style specifier for <code>getDisplayName()</code> indicating 347 * Returns a name in the specified {@code style} of this {@code TimeZone} 355 * getDisplayName(daylight, style, 361 * @param style either {@link #LONG} or {@link #SHORT} 363 * @exception IllegalArgumentException if {@code style} is invalid. 370 public final String getDisplayName(boolean daylight, int style) { argument 371 return getDisplayName(daylight, style, 382 * @param style either {@link TimeZone#LONG} or {@link TimeZone#SHORT}. 385 public String getDisplayName(boolean daylightTime, int style, Local argument [all...] |
H A D | Calendar.java | 87 * calendar style (for example, Japanese-Gregorian, Japanese-Traditional). 705 * A style specifier for {@link #getDisplayNames(int, int, Locale) 716 * A style specifier for {@link #getDisplayName(int, int, Locale) 726 * A style specifier for {@link #getDisplayName(int, int, Locale) 1355 * <code>field</code> value in the given <code>style</code> and 1365 * "January" in the long style in an English locale or "Jan" in 1366 * the short style. However, no string representation would be 1377 * @param style 1378 * the style applied to the string representation; one of 1383 * <code>field</code> in the given <code>style</cod 1394 getDisplayName(int field, int style, Locale locale) argument 1454 getDisplayNames(int field, int style, Locale locale) argument 1481 getDisplayNamesImpl(int field, int style, Locale locale) argument 1497 checkDisplayNameParams(int field, int style, int minStyle, int maxStyle, Locale locale, int fieldMask) argument 1509 getFieldStrings(int field, int style, DateFormatSymbols symbols) argument [all...] |
/libcore/ojluni/src/main/java/java/text/ |
H A D | DateFormat.java | 420 * Constant for full style pattern. 424 * Constant for long style pattern. 428 * Constant for medium style pattern. 432 * Constant for short style pattern. 436 * Constant for default style pattern. Its value is MEDIUM. 441 * Gets the time formatter with the default formatting style 451 * Gets the time formatter with the given formatting style 453 * @param style the given formatting style. For example, 457 public final static DateFormat getTimeInstance(int style) argument 470 getTimeInstance(int style, Locale aLocale) argument 493 getDateInstance(int style) argument 506 getDateInstance(int style, Locale aLocale) argument [all...] |
H A D | SimpleDateFormat.java | 631 throw new IllegalArgumentException("No date or time style specified"); 1086 int style = (count >= 4) ? Calendar.LONG : Calendar.SHORT; 1088 current = calendar.getDisplayName(field, style, locale); 1115 zeroPaddingNumber(value, style == Calendar.LONG ? 1 : count, 1885 int style = (count >= 4) ? Calendar.LONG : Calendar.SHORT; 1886 Map<String, Integer> map = calendar.getDisplayNames(field, style, locale); 2165 // while pattern uses numeric style: M or MM. 2223 for (int style : styles) { 2224 Map<String,Integer> map = calendar.getDisplayNames(field, style, locale);
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | TimeZoneTest.java | 287 // The one-argument getDisplayName() override uses LONG_GENERIC style which is different 288 // from what java.util.TimeZone uses. Force the LONG style to get equivalent results. 289 final int style = android.icu.util.TimeZone.LONG; 291 assertEquals(latinName, utz.getDisplayName(false, style, latinLocale)); 292 assertEquals(cyrillicName, utz.getDisplayName(false, style, cyrillicLocale)); 293 assertEquals(cyrillicName, utz.getDisplayName(false, style, noScriptLocale));
|
H A D | GregorianCalendarTest.java | 422 public String getDisplayName(boolean daylightTime, int style, Locale locale) { argument 423 return timeZone.getDisplayName(daylightTime, style, locale);
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | StreamTokenizer.java | 49 * <li>Whether C-style comments are to be recognized and skipped. 50 * <li>Whether C++-style comments are to be recognized and skipped. 215 * <li>C-style and C++-style comments are not recognized. 444 * Determines whether or not the tokenizer recognizes C-style comments. 446 * recognizes C-style comments. All text between successive 449 * If the flag argument is <code>false</code>, then C-style comments 453 * C-style comments. 460 * Determines whether or not the tokenizer recognizes C++-style comments. 462 * recognizes C++-style comment [all...] |