HomeSort by relevance Sort by last modified time
    Searched full:dateformat (Results 1 - 25 of 423) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DateFormatTest.java 19 import java.text.DateFormat;
31 * @tests java.text.DateFormat#clone()
34 DateFormat format = DateFormat.getInstance();
35 DateFormat clone = (DateFormat) format.clone();
42 * @tests java.text.DateFormat#getAvailableLocales()
45 Locale[] locales = DateFormat.getAvailableLocales();
53 DateFormat f1 = DateFormat.getDateTimeInstance(DateFormat.SHORT
    [all...]
DataFormatFieldTest.java 27 import java.text.DateFormat;
28 import java.text.DateFormat.Field;
43 DateFormat.Field realField = DateFormat.Field
46 DateFormat.Field.ERA, realField);
48 DateFormat.Field realField2 = DateFormat.Field
51 DateFormat.Field.DAY_OF_MONTH, realField2);
54 static class MyField extends DateFormat.Field {
67 * @tests java.text.DateFormat$Field#Field(java.lang.String, int
    [all...]
FieldPositionTest.java 19 import java.text.DateFormat;
29 FieldPosition fpos = new FieldPosition(DateFormat.MONTH_FIELD);
31 DateFormat.MONTH_FIELD, fpos.getField());
41 FieldPosition fpos = new FieldPosition(DateFormat.Field.MONTH);
43 DateFormat.Field.MONTH, fpos.getFieldAttribute());
53 FieldPosition fpos = new FieldPosition(DateFormat.Field.MONTH,
54 DateFormat.MONTH_FIELD);
56 DateFormat.Field.MONTH, fpos.getFieldAttribute());
58 DateFormat.MONTH_FIELD, fpos.getField());
61 FieldPosition fpos2 = new FieldPosition(DateFormat.Field.HOUR1
    [all...]
ParseExceptionTest.java 19 import java.text.DateFormat;
30 DateFormat df = DateFormat.getInstance();
43 DateFormat df = DateFormat.getInstance();
SimpleDateFormatTest.java 19 import java.text.DateFormat;
113 assertTrue("Wrong default", f2.equals(DateFormat.getDateTimeInstance(
114 DateFormat.SHORT, DateFormat.SHORT, Locale.getDefault())));
292 SimpleDateFormat format = (SimpleDateFormat) DateFormat.getInstance();
342 test.test(" G", cal, " AD", DateFormat.ERA_FIELD);
343 test.test(" GG", cal, " AD", DateFormat.ERA_FIELD);
344 test.test(" GGG", cal, " AD", DateFormat.ERA_FIELD);
346 DateFormat.ERA_FIELD);
348 test.test(" y", cal, " 99", DateFormat.YEAR_FIELD)
    [all...]
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowDateFormat.java 4 import android.text.format.DateFormat;
9 @Implements(DateFormat.class)
13 public final static java.text.DateFormat getDateFormat(Context context) {
14 return java.text.DateFormat.getDateInstance();
  /frameworks/base/core/tests/coretests/src/android/text/format/
DateFormatTest.java 26 assertTrue(DateFormat.hasDesignator("hh:mm:ss", DateFormat.MINUTE));
27 assertTrue(DateFormat.hasDesignator("myyyy", DateFormat.MINUTE));
28 assertTrue(DateFormat.hasDesignator("mmm", DateFormat.MINUTE));
30 assertFalse(DateFormat.hasDesignator("hh:MM:ss", DateFormat.MINUTE));
35 assertTrue(DateFormat.hasDesignator("hh:mm 'LOL'", DateFormat.MINUTE))
    [all...]
  /cts/tests/tests/text/src/android/text/format/cts/
DateFormatTest.java 24 import android.text.format.DateFormat;
56 mIs24HourFormat = DateFormat.is24HourFormat(mContext);
77 assertTrue(DateFormat.is24HourFormat(mContext));
79 assertFalse(DateFormat.is24HourFormat(mContext));
84 assertEquals("D", DateFormat.format("MMMMM", c));
85 assertEquals("December", DateFormat.format("MMMM", c));
86 assertEquals("Dec", DateFormat.format("MMM", c));
87 assertEquals("12", DateFormat.format("MM", c));
88 assertEquals("12", DateFormat.format("M", c));
94 assertEquals("D", DateFormat.format("LLLLL", c))
    [all...]
  /external/icu4c/samples/translit/answers/
main_1.cpp 20 DateFormat *fmt;
21 DateFormat *defFmt;
31 fmt = DateFormat::createDateInstance(DateFormat::kFull, greece);
35 defFmt = DateFormat::createDateInstance(DateFormat::kFull);
50 check(status, "DateFormat::format");
58 check(status, "DateFormat::format");
main_2.cpp 20 DateFormat *fmt;
21 DateFormat *defFmt;
32 fmt = DateFormat::createDateInstance(DateFormat::kFull, greece);
36 defFmt = DateFormat::createDateInstance(DateFormat::kFull);
58 check(status, "DateFormat::format");
66 check(status, "DateFormat::format");
main_3.cpp 31 DateFormat *fmt;
32 DateFormat *defFmt;
44 fmt = DateFormat::createDateInstance(DateFormat::kFull, greece);
48 defFmt = DateFormat::createDateInstance(DateFormat::kFull);
77 check(status, "DateFormat::format");
85 check(status, "DateFormat::format");
main_4.cpp 31 DateFormat *fmt;
32 DateFormat *defFmt;
45 fmt = DateFormat::createDateInstance(DateFormat::kFull, greece);
49 defFmt = DateFormat::createDateInstance(DateFormat::kFull);
81 check(status, "DateFormat::format");
89 check(status, "DateFormat::format");
  /libcore/luni/src/test/java/libcore/java/text/
OldDateFormatTest.java 19 import java.text.DateFormat;
31 private class MockDateFormat extends DateFormat {
54 * java.text.DateFormat#DateFormat() Test of method
55 * java.text.DateFormat#DateFormat().
66 * java.text.DateFormat#equals(java.lang.Object obj) Test of
67 * java.text.DateFormat#equals(java.lang.Object obj).
71 DateFormat format = DateFormat.getInstance()
    [all...]
OldSimpleDateFormatTest.java 19 import java.text.DateFormat;
218 SimpleDateFormat format = (SimpleDateFormat) DateFormat.getInstance();
236 test.test(" G", cal, " AD", DateFormat.ERA_FIELD);
237 test.test(" GG", cal, " AD", DateFormat.ERA_FIELD);
238 test.test(" GGG", cal, " AD", DateFormat.ERA_FIELD);
240 DateFormat.ERA_FIELD);
242 test.test(" M", cal, " 6", DateFormat.MONTH_FIELD);
244 " 11", DateFormat.MONTH_FIELD);
245 test.test(" MM", cal, " 06", DateFormat.MONTH_FIELD);
246 test.test(" MMM", cal, " Jun", DateFormat.MONTH_FIELD)
    [all...]
  /libcore/luni/src/main/java/java/text/spi/
DateFormatProvider.java 20 import java.text.DateFormat;
26 * instances of {@code DateFormat}.
40 * Returns an instance of {@code DateFormat} that formats times
45 * @return an instance of {@code DateFormat}
51 public abstract DateFormat getTimeInstance(int style, Locale locale);
54 * Returns an instance of {@code DateFormat} that formats dates
59 * @return an instance of {@code DateFormat}
65 public abstract DateFormat getDateInstance(int style, Locale locale);
68 * Returns an instance of {@code DateFormat} that formats dates and times
74 * @return an instance of {@code DateFormat}
    [all...]
  /external/chromium_org/third_party/icu/patches/
static.analysis.patch 6 DateFormat *fullDateTemplate = DateFormat::createDateInstance(DateFormat::kFull, fLocale);
7 DateFormat *defaultTimeTemplate = DateFormat::createTimeInstance(DateFormat::kDefault, fLocale);
8 DateFormat *shortTimeTemplate = DateFormat::createTimeInstance(DateFormat::kShort, fLocale);
9 DateFormat *longTimeTemplate = DateFormat::createTimeInstance(DateFormat::kLong, fLocale)
    [all...]
  /external/chromium_org/base/i18n/
time_formatting.cc 19 string16 TimeFormat(const icu::DateFormat* formatter,
29 string16 TimeFormatWithoutAmPm(const icu::DateFormat* formatter,
34 icu::FieldPosition ampm_field(icu::DateFormat::kAmPmField);
56 scoped_ptr<icu::DateFormat> formatter(
57 icu::DateFormat::createTimeInstance(icu::DateFormat::kShort));
95 scoped_ptr<icu::DateFormat> formatter(
96 icu::DateFormat::createDateInstance(icu::DateFormat::kMedium));
101 scoped_ptr<icu::DateFormat> formatter
    [all...]
  /external/chromium_org/third_party/icu/source/test/intltest/
dtfmapts.cpp 28 case 0: name = "DateFormat API test";
30 logln("DateFormat API test---"); logln("");
81 DateFormat *df = DateFormat::createDateTimeInstance(DateFormat::kMedium, DateFormat::kMedium, Locale(LOCALES[i]));
83 dataerrln("Error creating DateFormat instances.");
96 DateFormat *a = DateFormat::createInstance();
99 DateFormat *b = DateFormat::createInstance()
    [all...]
tsdate.cpp 25 * DateFormat.
30 if (exec) logln("TestSuite DateFormat");
35 fFormat = DateFormat::createInstance();
69 DateFormat::EStyle timeStyle, dateStyle;
76 for(timeStyle = (DateFormat::EStyle)0;
77 timeStyle < (DateFormat::EStyle)4;
78 timeStyle = (DateFormat::EStyle) (timeStyle+1))
81 fFormat = DateFormat::createTimeInstance(timeStyle, locale);
87 for(dateStyle = (DateFormat::EStyle)0;
88 dateStyle < (DateFormat::EStyle)4;
    [all...]
tsdate.h 19 * Performs some tests in many variations on DateFormat
27 * test DateFormat::getAvailableLocales
44 * call testFormat for different DateFormat::EStyle's, etc
56 DateFormat *fFormat;
  /external/icu4c/test/intltest/
dtfmapts.cpp 28 case 0: name = "DateFormat API test";
30 logln("DateFormat API test---"); logln("");
81 DateFormat *df = DateFormat::createDateTimeInstance(DateFormat::kMedium, DateFormat::kMedium, Locale(LOCALES[i]));
83 dataerrln("Error creating DateFormat instances.");
96 DateFormat *a = DateFormat::createInstance();
99 DateFormat *b = DateFormat::createInstance()
    [all...]
tsdate.cpp 25 * DateFormat.
30 if (exec) logln("TestSuite DateFormat");
35 fFormat = DateFormat::createInstance();
69 DateFormat::EStyle timeStyle, dateStyle;
76 for(timeStyle = (DateFormat::EStyle)0;
77 timeStyle < (DateFormat::EStyle)4;
78 timeStyle = (DateFormat::EStyle) (timeStyle+1))
81 fFormat = DateFormat::createTimeInstance(timeStyle, locale);
87 for(dateStyle = (DateFormat::EStyle)0;
88 dateStyle < (DateFormat::EStyle)4;
    [all...]
tsdate.h 19 * Performs some tests in many variations on DateFormat
27 * test DateFormat::getAvailableLocales
44 * call testFormat for different DateFormat::EStyle's, etc
56 DateFormat *fFormat;
  /external/chromium/base/i18n/
time_formatting.cc 19 string16 TimeFormat(const icu::DateFormat* formatter,
36 scoped_ptr<icu::DateFormat> formatter(
37 icu::DateFormat::createTimeInstance(icu::DateFormat::kShort));
70 scoped_ptr<icu::DateFormat> formatter(
71 icu::DateFormat::createDateInstance(icu::DateFormat::kMedium));
76 scoped_ptr<icu::DateFormat> formatter(
77 icu::DateFormat::createDateInstance(icu::DateFormat::kShort))
    [all...]
  /external/icu4c/samples/translit/
main.cpp 31 DateFormat *fmt;
32 DateFormat *defFmt;
46 fmt = DateFormat::createDateInstance(DateFormat::kFull, greece);
50 defFmt = DateFormat::createDateInstance(DateFormat::kFull);
83 check(status, "DateFormat::format");
91 check(status, "DateFormat::format");

Completed in 286 milliseconds

1 2 3 4 5 6 7 8 91011>>