/cts/tests/tests/provider/src/android/provider/cts/ |
BrowserTest.java | 37 import java.util.Date; 118 value.put(SearchColumns.DATE, cursor.getLong(2)); 187 long date = cursor.getLong(Browser.SEARCHES_PROJECTION_DATE_INDEX); local 188 assertTrue(date > oldDate); 339 final long TIME_BASE = new Date().getTime() - 1000; 347 // The date of the history is from 1 ~ (MAX_HISTORY_COUNT - 1). 352 value.put(BookmarkColumns.DATE, i + TIME_BASE); 358 value.put(BookmarkColumns.DATE, new Date().getTime()); 380 value.put(BookmarkColumns.DATE, MAX_HISTORY_COUNT + TIME_BASE) [all...] |
/external/javasqlite/src/main/java/SQLite/JDBC2z/ |
JDBCPreparedStatement.java | 230 public void setDate(int parameterIndex, java.sql.Date x) 467 public void setDate(int parameterIndex, java.sql.Date x, Calendar cal) 572 public void setDate(String parameterName, java.sql.Date val) 621 public void setDate(String parameterName, java.sql.Date val, 680 public java.sql.Date getDate(String parameterName) throws SQLException { 747 public java.sql.Date getDate(String parameterName, Calendar cal) 752 public java.sql.Date getDate(int parameterIndex, Calendar cal)
|
/cts/tools/dasm/src/java_cup/ |
emit.java | 5 import java.util.Date; 254 out.println("// " + new Date()); 642 out.println("// " + new Date());
|
/development/samples/ApiDemos/src/com/example/android/apis/security/ |
KeyStoreUsage.java | 59 import java.util.Date; 312 Date now = cal.getTime(); 314 Date end = cal.getTime();
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
TestCertUtils.java | 476 public void checkValidity(Date date) 497 public Date getNotAfter() { 501 public Date getNotBefore() {
|
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
Support_SimpleDateFormat.java | 25 import java.util.Date; 55 Date date = cal.getTime(); local 75 t_FormatWithField(0, format, date, null, Field.ERA, 0, 2); 76 t_FormatWithField(1, format, date, null, Field.YEAR, 15, 17); 77 t_FormatWithField(2, format, date, null, Field.MONTH, 26, 27); 78 t_FormatWithField(3, format, date, null, Field.DAY_OF_MONTH, 45, 47); 79 t_FormatWithField(4, format, date, null, Field.HOUR_OF_DAY1, 55, 57); 80 t_FormatWithField(5, format, date, null, Field.HOUR_OF_DAY0, 65, 67); 81 t_FormatWithField(6, format, date, null, Field.HOUR1, 75, 76) 142 Date date = cal.getTime(); local [all...] |
/external/apache-http/src/org/apache/http/impl/conn/tsccm/ |
ConnPoolByRoute.java | 4 * $Date: 2008-07-16 04:25:47 -0700 (Wed, 16 Jul 2008) $ 33 import java.util.Date; 268 Date deadline = null; 270 deadline = new Date
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
X509CRLObject.java | 19 import java.util.Date; 261 public Date getThisUpdate() 266 public Date getNextUpdate()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
X509CRLObject.java | 19 import java.util.Date; 259 public Date getThisUpdate() 264 public Date getNextUpdate()
|
/frameworks/base/core/java/android/text/format/ |
DateFormat.java | 28 import java.util.Date; 38 * Utility class for producing strings with formatted date/time. 77 public static final char DATE = 'd'; 223 * Returns a {@link java.text.DateFormat} object that can format the date 225 * to the current locale and the user's date-order preference. 227 * @return the {@link java.text.DateFormat} object that properly formats the date. 237 * Returns a {@link java.text.DateFormat} object to format the date 238 * as if the date format setting were set to <code>value</code>, 241 * @param value the date format setting string to interpret for 289 * Returns a {@link java.text.DateFormat} object that can format the date [all...] |
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
VideoEditorHelper.java | 23 import java.util.Date; 431 Date date = new Date(); local 432 final String filePath = location + dateFormat.format(date) +
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
TimeZoneData.java | 33 import java.util.Date; 190 Date date = new Date(mTimeMillis); local 198 tz.mDisplayName = tz.mTz.getDisplayName(tz.mTz.inDaylightTime(date),
|
/libcore/crypto/src/main/java/org/conscrypt/ |
TrustedCertificateStore.java | 31 import java.util.Date; 207 public Date getCreationDate(String alias) { 221 return new Date(time);
|
/libcore/luni/src/main/java/java/util/ |
Calendar.java | 31 * {@code Date} object and a set of integer fields such as 33 * {@code HOUR}, and so on. (A {@code Date} object represents a 34 * specific instant in time with millisecond precision. See {@link Date} for 35 * information about the {@code Date} class.) 38 * Subclasses of {@code Calendar} interpret a {@code Date} 46 * have been initialized with the current date and time: <blockquote> 54 * to implement the date-time formatting for a particular language and calendar 95 * When computing a {@code Date} from time fields, two special 97 * {@code Date} (such as only year and month but no day in the month), or 105 * of the epoch: i.e., YEAR = 1970, MONTH = JANUARY, DATE = 1, etc [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
TestCertUtils.java | 477 public void checkValidity(Date date) 498 public Date getNotAfter() { 502 public Date getNotBefore() {
|
/libcore/support/src/test/java/tests/support/ |
Support_TestWebServer.java | 739 psPrint(ps, "Date: " + df.format(new Date())); 760 psPrint(ps, "Last Modified: " + (new Date( 784 Date(Support_TestWebData.testParams[testNum].testLastModified)));
|
/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/ |
BluetoothMapbMessageTest.java | 9 import java.util.Date; 111 Date date = new Date(System.currentTimeMillis()); local 112 String timeStr = format.format(date); // Format to YYMMDDTHHMMSS UTC time 189 msg.setSmsBodyPdus(BluetoothMapSmsPdu.getDeliverPdus("Let's go fishing!", "00498912345678", date.getTime()));
|
/packages/apps/Calendar/src/com/android/calendar/agenda/ |
AgendaFragment.java | 47 import java.util.Date; 183 // Set scroll listener so that the date on the ActionBar can be set while 415 Log.d(TAG, "showEventInfo: start: " + new Date(event.startTime.toMillis(true))); 416 Log.d(TAG, "showEventInfo: end: " + new Date(event.endTime.toMillis(true))); 439 // OnScrollListener implementation to update the date on the pull-down menu of the app
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
HandoverTransfer.java | 42 import java.util.Date; 461 // Generate a unique directory with the date 464 String newPath = beamRoot + "beam-" + sdf.format(new Date()); 468 newPath = beamRoot + "beam-" + sdf.format(new Date()) + "-" +
|
/packages/apps/Settings/src/com/android/settings/ |
DateTimeSettings.java | 44 import java.util.Date; 54 // Used for showing the current date format, which looks like "12/31/2010", "2010/12/13", etc. 55 // The date value is dummy (independent of actual date). 108 mDatePref = findPreference("date"); 124 // Prevents duplicated values on date format selector. 180 // We use December 31st because it's unambiguous when demonstrating the date format. 183 Date dummyDate = mDummyDate.getTime(); 379 return sdf.format(new Date());
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
ManageAccountsSettings.java | 52 import java.util.Date; 222 Date date = new Date(); local 288 date.setTime(lastSuccessTime); 289 final String timeString = formatSyncDate(date);
|
/external/chromium/chrome/common/extensions/docs/examples/extensions/calendar/javascript/ |
background.js | 527 * Convert the incoming date into a javascript date. 528 * @param {String} rfc3339 The rfc date in string format as following 532 * @return {Date} The javascript date format of the incoming date. 543 var d = new Date(); 556 return new Date(d.getTime() + tzOffsetFeedMin * 60 * 1000); 561 return new Date(parts[1], parseInt(parts[2], 10) - 1, parts[3]); 567 * Sorts all the events by date and time [all...] |
/external/chromium_org/chrome/browser/resources/google_now/ |
cards.js | 108 Date.now() + card.trigger.hideTimeSec * MS_IN_SECOND : undefined; 121 when: Date.now() + card.trigger.showTimeSec * MS_IN_SECOND
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/downloads/download_manager/ |
popup.js | 13 localStorage.popupLastOpened = (new Date()).getTime(); 69 function formatDateTime(date) { 70 var now = new Date(); 71 var zpad_mins = ':' + (date.getMinutes() < 10 ? '0' : '') + date.getMinutes(); 72 if (date.getYear() != now.getYear()) { 73 return '' + (1900 + date.getYear()); 74 } else if ((date.getMonth() != now.getMonth()) || 75 (date.getDate() != now.getDate())) { 76 return date.getDate() + ' ' + chrome.i18n.getMessage [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/calendar/javascript/ |
background.js | 539 * Convert the incoming date into a javascript date. 540 * @param {String} rfc3339 The rfc date in string format as following 544 * @return {Date} The javascript date format of the incoming date. 555 var d = new Date(); 568 return new Date(d.getTime() + tzOffsetFeedMin * 60 * 1000); 573 return new Date(parts[1], parseInt(parts[2], 10) - 1, parts[3]); 579 * Sorts all the events by date and time [all...] |