/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...] |
/dalvik/libcore/text/src/main/java/java/text/ |
DateFormat.java | 42 * DateFormat provides many class methods for obtaining default date/time 48 * {@code DateFormat} helps you to format and parse dates for any locale. Your 57 * myString = DateFormat.getDateInstance().format(myDate); 68 * DateFormat df = DateFormat.getDateInstance(); 81 * DateFormat df = DateFormat.getDateInstance(DateFormat.LONG, Locale.FRANCE); 86 * {@code DateFormat} can also be used to parse strings: 110 * over the formatting or parsing, try casting the {@code DateFormat} you ge [all...] |
/external/icu4c/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...] |
/dalvik/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", 308 return dateFormat.parse(s); 312 return dateFormat.format(d);
|
/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");
|
/packages/apps/Contacts/src/com/android/contacts/ |
ImportVCardActivity.java | 62 import java.text.DateFormat; 707 DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 718 "(" + dateFormat.format(new Date(vcardFile.getLastModified())) + ")"); [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
MenuHelper.java | 534 SimpleDateFormat dateFormat = new SimpleDateFormat(); 535 value = dateFormat.format(date); [all...] |
/dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
SimpleDateFormatTest.java | 28 import java.text.DateFormat; 129 assertTrue("Wrong default", f2.equals(DateFormat.getDateTimeInstance( 130 DateFormat.SHORT, DateFormat.SHORT, Locale.getDefault()))); 395 SimpleDateFormat format = (SimpleDateFormat) DateFormat.getInstance(); 412 SimpleDateFormat format = (SimpleDateFormat) DateFormat.getInstance(); 489 test.test(" G", cal, " AD", DateFormat.ERA_FIELD); 490 test.test(" GG", cal, " AD", DateFormat.ERA_FIELD); 491 test.test(" GGG", cal, " AD", DateFormat.ERA_FIELD); 493 DateFormat.ERA_FIELD) [all...] |
/packages/apps/Camera/src/com/android/camera/ |
VideoCamera.java | 238 SimpleDateFormat dateFormat = new SimpleDateFormat( 241 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/ecj/ |
ecj.jar | |