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

1 2 3 4 5 6 7 8 91011>>

  /libcore/harmony-tests/src/test/java/org/apache/harmony/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();
  /external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base.tests/src/com/ibm/icu/tests/
DateFormatTest.java 16 import com.ibm.icu.text.DateFormat;
32 private DateFormat aDF;
60 aDF = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM, Locale.US);
62 anFP = new FieldPosition(DateFormat.YEAR_FIELD);
63 anFPField = new FieldPosition(DateFormat.Field.YEAR);
67 * Test method for 'com.ibm.icu.text.DateFormat.hashCode()'
70 DateFormat df = DateFormat.getInstance()
    [all...]
  /external/robolectric/v1/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...]
  /libcore/ojluni/src/main/java/java/text/spi/
DateFormatProvider.java 28 import java.text.DateFormat;
35 * {@link java.text.DateFormat DateFormat} class.
49 * Returns a new <code>DateFormat</code> instance which formats time
52 * {@link java.text.DateFormat#SHORT DateFormat.SHORT},
53 * {@link java.text.DateFormat#MEDIUM DateFormat.MEDIUM},
54 * {@link java.text.DateFormat#LONG DateFormat.LONG}, o
    [all...]
  /external/icu/icu4c/source/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...]
  /cts/tests/tests/text/src/android/text/format/cts/
DateFormatTest.java 26 import android.text.format.DateFormat;
65 mIs24HourFormat = DateFormat.is24HourFormat(mContext);
111 assertTrue(DateFormat.is24HourFormat(mContext));
113 assertFalse(DateFormat.is24HourFormat(mContext));
118 assertEquals("D", DateFormat.format("MMMMM", c));
119 assertEquals("December", DateFormat.format("MMMM", c));
120 assertEquals("Dec", DateFormat.format("MMM", c));
121 assertEquals("12", DateFormat.format("MM", c));
122 assertEquals("12", DateFormat.format("M", c));
128 assertEquals("D", DateFormat.format("LLLLL", c))
    [all...]
  /external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/
DateFormatProviderICU.java 9 import java.text.DateFormat;
22 public DateFormat getDateInstance(int style, Locale locale) {
27 public DateFormat getDateTimeInstance(int dateStyle, int timeStyle, Locale locale) {
32 public DateFormat getTimeInstance(int style, Locale locale) {
41 private DateFormat getInstance(int dstyle, int tstyle, Locale locale) {
42 com.ibm.icu.text.DateFormat icuDfmt;
45 icuDfmt = com.ibm.icu.text.DateFormat.getTimeInstance(tstyle, actual);
47 icuDfmt = com.ibm.icu.text.DateFormat.getDateInstance(dstyle, actual);
49 icuDfmt = com.ibm.icu.text.DateFormat.getDateTimeInstance(dstyle, tstyle, actual);
  /external/icu/icu4j/main/tests/localespi/src/com/ibm/icu/dev/test/localespi/
DateFormatTest.java 9 import java.text.DateFormat;
29 for (Locale loc : DateFormat.getAvailableLocales()) {
34 checkGetInstance(DateFormat.FULL, DateFormat.LONG, loc);
35 checkGetInstance(DateFormat.MEDIUM, -1, loc);
36 checkGetInstance(1, DateFormat.SHORT, loc);
42 DateFormat df = getJDKInstance(dstyle, tstyle, loc, method);
48 errln("FAIL: " + method[0] + " returned JDK DateFormat for locale " + loc);
52 logln("INFO: " + method[0] + " returned ICU DateFormat for locale " + loc);
55 DateFormat dfIcu = getJDKInstance(dstyle, tstyle, iculoc, null)
    [all...]
  /external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/jdkadapter/
SimpleDateFormatICU.java 26 import com.ibm.icu.text.DateFormat;
217 // Methods overriding java.text.DateFormat
317 if (icuAttribute == DateFormat.Field.AM_PM) {
318 jdkAttribute = java.text.DateFormat.Field.AM_PM;
319 } else if (icuAttribute == DateFormat.Field.DAY_OF_MONTH) {
320 jdkAttribute = java.text.DateFormat.Field.DAY_OF_MONTH;
321 } else if (icuAttribute == DateFormat.Field.DAY_OF_WEEK) {
322 jdkAttribute = java.text.DateFormat.Field.DAY_OF_WEEK;
323 } else if (icuAttribute == DateFormat.Field.DAY_OF_WEEK_IN_MONTH) {
324 jdkAttribute = java.text.DateFormat.Field.DAY_OF_WEEK_IN_MONTH
    [all...]
  /external/icu/icu4c/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...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
IntlTestDateFormatAPI.java 28 import android.icu.text.DateFormat;
46 DateFormat a = DateFormat.getInstance();
54 DateFormat b = DateFormat.getInstance();
57 errln("FAIL: DateFormat objects created at different times are unequal.");
66 // errln("FAIL: DateFormat objects with different two digit start dates are equal.");
74 // This test checks various generic API methods in DateFormat to achieve 100% API coverage.
77 logln("DateFormat API test---"); logln("");
83 logln("Testing DateFormat constructors")
    [all...]
  /external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
IntlTestDateFormatAPI.java 27 import com.ibm.icu.text.DateFormat;
42 DateFormat a = DateFormat.getInstance();
50 DateFormat b = DateFormat.getInstance();
53 errln("FAIL: DateFormat objects created at different times are unequal.");
62 // errln("FAIL: DateFormat objects with different two digit start dates are equal.");
70 // This test checks various generic API methods in DateFormat to achieve 100% API coverage.
73 logln("DateFormat API test---"); logln("");
79 logln("Testing DateFormat constructors")
    [all...]
  /external/icu/icu4c/source/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");
  /external/icu/android_icu4j/src/main/java/android/icu/impl/
RelativeDateFormat.java 20 import android.icu.text.DateFormat;
34 public class RelativeDateFormat extends DateFormat {
68 if (fDateStyle != DateFormat.NONE) {
69 int newStyle = fDateStyle & ~DateFormat.RELATIVE;
70 DateFormat df = DateFormat.getDateInstance(newStyle, locale);
77 if (fTimeStyle != DateFormat.NONE) {
78 newStyle = fTimeStyle & ~DateFormat.RELATIVE;
79 df = DateFormat.getTimeInstance(newStyle, locale);
86 int newStyle = fTimeStyle & ~DateFormat.RELATIVE
    [all...]
  /external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
RelativeDateFormat.java 19 import com.ibm.icu.text.DateFormat;
32 public class RelativeDateFormat extends DateFormat {
66 if (fDateStyle != DateFormat.NONE) {
67 int newStyle = fDateStyle & ~DateFormat.RELATIVE;
68 DateFormat df = DateFormat.getDateInstance(newStyle, locale);
75 if (fTimeStyle != DateFormat.NONE) {
76 newStyle = fTimeStyle & ~DateFormat.RELATIVE;
77 df = DateFormat.getTimeInstance(newStyle, locale);
84 int newStyle = fTimeStyle & ~DateFormat.RELATIVE
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
ExpensiveObjectsBenchmark.java 20 import java.text.DateFormat;
34 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT);
40 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT);
42 ((DateFormat) df.clone()).format(System.currentTimeMillis());
47 DateFormat df = DateFormat.getTimeInstance(DateFormat.SHORT)
    [all...]

Completed in 2179 milliseconds

1 2 3 4 5 6 7 8 91011>>