/cts/tests/tests/text/src/android/text/format/cts/ |
DateFormatTest.java | 28 import android.text.format.DateFormat; 36 @TestTargetClass(DateFormat.class) 58 mIs24HourFormat = DateFormat.is24HourFormat(mContext); 84 assertTrue(DateFormat.is24HourFormat(mContext)); 86 assertFalse(DateFormat.is24HourFormat(mContext)); 137 java.text.DateFormat dateFormat = DateFormat.getDateFormat(mContext); 138 assertNotNull(dateFormat); 140 String source = dateFormat.format(date) [all...] |
/libcore/luni/src/main/java/java/text/ |
DateFormat.java | 37 * DateFormat provides many class methods for obtaining default date/time 43 * {@code DateFormat} helps you to format and parse dates for any locale. Your 52 * myString = DateFormat.getDateInstance().format(myDate); 63 * DateFormat df = DateFormat.getDateInstance(); 76 * DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, Locale.FRANCE); 81 * {@code DateFormat} can also be used to parse strings: 105 * over the formatting or parsing, try casting the {@code DateFormat} you ge [all...] |
/external/chromium/third_party/icu/source/test/intltest/ |
dtfmtrtts.cpp | 42 DateFormatRoundTripTest::DateFormatRoundTripTest() : dateFormat(0) { 46 delete dateFormat; 134 const Locale *avail = DateFormat::getAvailableLocales(locCount); 135 logln("DateFormat available locales: %d", locCount); 185 static const char *styleName(DateFormat::EStyle s) 189 case DateFormat::SHORT: return "SHORT"; 190 case DateFormat::MEDIUM: return "MEDIUM"; 191 case DateFormat::LONG: return "LONG"; 192 case DateFormat::FULL: return "FULL"; 193 // case DateFormat::DEFAULT: return "DEFAULT" [all...] |
dtfmtrtts.h | 21 * Performs round-trip tests for DateFormat 35 void test(DateFormat *fmt, const Locale &origLocale, UBool timeOnly = FALSE ); 88 SimpleDateFormat *dateFormat;
|
calregts.cpp | [all...] |
dtfmrgts.cpp | 72 SimpleDateFormat *sdf = (SimpleDateFormat*) DateFormat::createDateInstance(); 78 dataerrln("Error calling DateFormat::createDateTimeInstance"); 123 DateFormat *fmt = DateFormat::createDateTimeInstance(DateFormat::SHORT, 124 DateFormat::SHORT, Locale::getUS()); 126 dataerrln("Error calling DateFormat::createDateTimeInstance"); 160 //expected.put(new LongKey(DateFormat.MONTH_FIELD), "5"); 161 //expected.put(new LongKey(DateFormat.DATE_FIELD), "3"); 162 //expected.put(new LongKey(DateFormat.YEAR_FIELD), "97") [all...] |
/external/icu4c/test/intltest/ |
dtfmtrtts.cpp | 42 DateFormatRoundTripTest::DateFormatRoundTripTest() : dateFormat(0) { 46 delete dateFormat; 139 const Locale *avail = DateFormat::getAvailableLocales(locCount); 140 logln("DateFormat available locales: %d", locCount); 190 static const char *styleName(DateFormat::EStyle s) 194 case DateFormat::SHORT: return "SHORT"; 195 case DateFormat::MEDIUM: return "MEDIUM"; 196 case DateFormat::LONG: return "LONG"; 197 case DateFormat::FULL: return "FULL"; 198 // case DateFormat::DEFAULT: return "DEFAULT" [all...] |
dtfmtrtts.h | 21 * Performs round-trip tests for DateFormat 35 void test(DateFormat *fmt, const Locale &origLocale, UBool timeOnly = FALSE ); 88 SimpleDateFormat *dateFormat;
|
calregts.cpp | [all...] |
dtfmrgts.cpp | 72 SimpleDateFormat *sdf = (SimpleDateFormat*) DateFormat::createDateInstance(); 78 dataerrln("Error calling DateFormat::createDateTimeInstance"); 123 DateFormat *fmt = DateFormat::createDateTimeInstance(DateFormat::SHORT, 124 DateFormat::SHORT, Locale::getUS()); 126 dataerrln("Error calling DateFormat::createDateTimeInstance"); 160 //expected.put(new LongKey(DateFormat.MONTH_FIELD), "5"); 161 //expected.put(new LongKey(DateFormat.DATE_FIELD), "3"); 162 //expected.put(new LongKey(DateFormat.YEAR_FIELD), "97") [all...] |
/libcore/luni/src/test/java/com/google/coretests/ |
XmlReportPrinter.java | 126 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); 128 dateFormat.setTimeZone(gmt); 129 dateFormat.setLenient(true); 130 String timestamp = dateFormat.format(new Date());
|
/external/apache-http/src/org/apache/http/impl/cookie/ |
DateUtils.java | 156 for (String dateFormat : dateFormats) { 157 SimpleDateFormat dateParser = DateFormatHolder.formatFor(dateFormat); 236 * @return the requested format. This simple dateformat should not be used
|
/cts/tools/host/src/com/android/cts/ |
HostUtils.java | 50 private static SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss z yyyy", 315 return dateFormat.parse(s); 319 return dateFormat.format(d);
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
CtsXmlResultReporter.java | 558 SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy"); 559 return dateFormat.format(new Date()); 568 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd_HH.mm.ss"); 569 return dateFormat.format(new Date());
|
/external/webkit/SunSpider/tests/sunspider-0.9/ |
date-format-xparb.js | 18 Date.prototype.dateFormat = function(format) { 414 var shortFormat = date.dateFormat("Y-m-d"); 415 var longFormat = date.dateFormat("l, F d, Y g:i:s A");
|
/external/webkit/SunSpider/tests/sunspider-0.9.1/ |
date-format-xparb.js | 18 Date.prototype.dateFormat = function(format) { 414 var shortFormat = date.dateFormat("Y-m-d"); 415 var longFormat = date.dateFormat("l, F d, Y g:i:s A");
|
/libcore/luni/src/test/java/libcore/java/text/ |
OldSimpleDateFormatTest.java | 19 import java.text.DateFormat; 206 SimpleDateFormat format = (SimpleDateFormat) DateFormat.getInstance(); 224 test.test(" G", cal, " AD", DateFormat.ERA_FIELD); 225 test.test(" GG", cal, " AD", DateFormat.ERA_FIELD); 226 test.test(" GGG", cal, " AD", DateFormat.ERA_FIELD); 228 DateFormat.ERA_FIELD); 230 test.test(" M", cal, " 6", DateFormat.MONTH_FIELD); 232 " 11", DateFormat.MONTH_FIELD); 233 test.test(" MM", cal, " 06", DateFormat.MONTH_FIELD); 234 test.test(" MMM", cal, " Jun", DateFormat.MONTH_FIELD) [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
ImportVCardActivity.java | 63 import java.text.DateFormat; 725 DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 736 "(" + dateFormat.format(new Date(vcardFile.getLastModified())) + ")"); [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
MenuHelper.java | 433 SimpleDateFormat dateFormat = new SimpleDateFormat(); 434 value = dateFormat.format(date); [all...] |
/packages/apps/Camera/src/com/android/camera/ |
VideoCamera.java | 248 SimpleDateFormat dateFormat = new SimpleDateFormat( 251 return dateFormat.format(date); [all...] |
Camera.java | [all...] |
/packages/apps/Contacts/src/com/android/contacts/ui/ |
EditContactActivity.java | [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactsProvider2.java | [all...] |
/prebuilt/common/jfreechart/ |
jfreechart-1.0.9.jar | |
/prebuilt/common/tradefed/ |
tradefed-prebuilt.jar | |