/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
TimeUtil.java | 67 SimpleDateFormat dateFormat = new SimpleDateFormat("EEE MMM dd HH:mm:ss zzz yyyy"); 68 return dateFormat.format(new Date(time)); 77 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd_HH.mm.ss"); 78 return dateFormat.format(new Date());
|
/cts/tests/tests/text/src/android/text/format/cts/ |
DateFormatTest.java | 28 import android.text.format.DateFormat; 37 @TestTargetClass(DateFormat.class) 59 mIs24HourFormat = DateFormat.is24HourFormat(mContext); 85 assertTrue(DateFormat.is24HourFormat(mContext)); 87 assertFalse(DateFormat.is24HourFormat(mContext)); 138 java.text.DateFormat dateFormat = DateFormat.getDateFormat(mContext); 139 assertNotNull(dateFormat); 141 String source = dateFormat.format(date) [all...] |
/packages/apps/Camera/src/com/android/camera/panorama/ |
PanoUtil.java | 25 SimpleDateFormat dateFormat = new SimpleDateFormat(format); 26 return dateFormat.format(date);
|
/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...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
ReportExporter.java | 93 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy.MM.dd-HH.mm.ss", Locale.ENGLISH); 94 String date = dateFormat.format(new Date());
|
/external/icu4c/test/intltest/ |
dtfmtrtts.cpp | 44 DateFormatRoundTripTest::DateFormatRoundTripTest() : dateFormat(0) { 48 delete dateFormat; 141 const Locale *avail = DateFormat::getAvailableLocales(locCount); 142 logln("DateFormat available locales: %d", locCount); 192 static const char *styleName(DateFormat::EStyle s) 196 case DateFormat::SHORT: return "SHORT"; 197 case DateFormat::MEDIUM: return "MEDIUM"; 198 case DateFormat::LONG: return "LONG"; 199 case DateFormat::FULL: return "FULL"; 200 // 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/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
|
/libcore/luni/src/test/java/libcore/java/text/ |
SimpleDateFormatTest.java | 19 import java.text.DateFormat; 95 DateFormat dateFormat = new SimpleDateFormat(fmt, l); 96 dateFormat.setTimeZone(TimeZone.getTimeZone("UTC")); 97 return dateFormat.format(new Date(0));
|
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...] |
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ |
Summarizer.java | 329 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); 331 txt.append("Date: " + dateFormat.format(mDate) + "\n"); 405 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); 408 html.append("<h3>" + "Date: " + dateFormat.format(new Date()) + "</h3>");
|
/packages/apps/Browser/src/com/android/browser/ |
SnapshotBar.java | 36 import java.text.DateFormat; 189 DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.LONG); 190 mDate.setText(dateFormat.format(new Date(snapshot.getDateCreated())));
|
BrowserSnapshotPage.java | 52 import java.text.DateFormat; 289 DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT); 290 date.setText(dateFormat.format(new Date(timestamp)));
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
VideoEditorHelper.java | 430 SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmssS"); 432 final String filePath = location + dateFormat.format(date) +
|
/external/webkit/PerformanceTests/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/PerformanceTests/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");
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
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...] |
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
ImportVCardActivity.java | 71 import java.text.DateFormat; [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
MenuHelper.java | 433 SimpleDateFormat dateFormat = new SimpleDateFormat(); 434 value = dateFormat.format(date); [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
ContactEditorFragment.java | [all...] |
/packages/apps/Camera/src/com/android/camera/ |
VideoCamera.java | 346 SimpleDateFormat dateFormat = new SimpleDateFormat( 349 return dateFormat.format(date); [all...] |
/prebuilt/common/jfreechart/ |
jfreechart-1.0.9.jar | |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
ContactsProvider2.java | [all...] |