/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/ |
DateUtilTests.java | 36 long date2 = System.currentTimeMillis() + android.text.format.DateUtils.HOUR_IN_MILLIS; local 37 assertEquals(0, DateUtils.getDayDifference(time, date1, date2)); 38 assertEquals(0, DateUtils.getDayDifference(time, date2, date1)); 47 long date2 = date1 + android.text.format.DateUtils.DAY_IN_MILLIS; local 48 assertEquals(1, DateUtils.getDayDifference(time, date1, date2)); 49 assertEquals(1, DateUtils.getDayDifference(time, date2, date1)); 58 long date2 = date1 + 2*android.text.format.DateUtils.DAY_IN_MILLIS; local 59 assertEquals(2, DateUtils.getDayDifference(time, date1, date2)); 60 assertEquals(2, DateUtils.getDayDifference(time, date2, date1));
|
/cts/tests/tests/net/src/android/net/http/cts/ |
SslCertificate_DNameTest.java | 33 Date date2 = new Date(System.currentTimeMillis()); local 35 date1), DateFormat.getInstance().format(date2));
|
SslCertificateTest.java | 191 Date date2 = new Date(System.currentTimeMillis()); local 192 SslCertificate ssl = new SslCertificate("c=129", "e=weji", date1, date2); 213 Date date2 = new Date(System.currentTimeMillis()); local 214 SslCertificate ssl = new SslCertificate(TO, BY, date1, date2); 229 assertEquals(date2, ssl.getValidNotAfterDate());
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
FormatDateRangeTest.java | 34 public Time date2; field in class:FormatDateRangeTest.DateTest 43 date2 = new Time(Time.TIMEZONE_UTC); 46 date2 = new Time(); 58 date2.set(0, minute2, hour2, day2, month2, year2); 59 date2.normalize(true /* ignore isDst */); 186 long endMillis = dateTest.date2.toMillis(false /* use isDst */);
|
/external/chromium_org/third_party/icu/source/samples/dtitvfmtsample/ |
dtitvfmtsample.cpp | 37 UDate date2 = cal->getTime(status); local 43 new DateInterval(date1,date2), 44 new DateInterval(date2,date3),
|
/external/icu/icu4c/source/samples/dtitvfmtsample/ |
dtitvfmtsample.cpp | 37 UDate date2 = cal->getTime(status); local 43 new DateInterval(date1,date2), 44 new DateInterval(date2,date3),
|
/external/chromium_org/v8/test/mjsunit/regress/ |
regress-280531.js | 31 var date2 = Realm.eval(contextA, "new Date('Thu, 29 Aug 2013 00:00:00 UTC')"); variable 32 assertEquals(date1, date2);
|
/external/chromium_org/third_party/icu/source/test/cintltst/ |
cdtdptst.c | 199 UDate date1, date2; local 212 date2 = udat_parse(format, now, u_strlen(now), &pos, &status); 213 if (date2 == 0) log_verbose("Parse stopped at : %d\n", pos); 214 else then=myDateFormat(format, date2); 216 if (!(date2 == date1)) log_err("FAIL\n");
|
/external/icu/icu4c/source/test/cintltst/ |
cdtdptst.c | 199 UDate date1, date2; local 212 date2 = udat_parse(format, now, u_strlen(now), &pos, &status); 213 if (date2 == 0) log_verbose("Parse stopped at : %d\n", pos); 214 else then=myDateFormat(format, date2); 216 if (!(date2 == date1)) log_err("FAIL\n");
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
DateUtils.java | 279 * @param date2 Second date to check. 282 public static int getDayDifference(Time time, long date1, long date2) { 286 time.set(date2); 287 int currentDay = Time.getJulianDay(date2, time.gmtoff);
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
EventFieldEditorView.java | 174 final Date date2 = kind.dateFormatWithoutYear.parse(oldValue, position); local 177 if (date2 == null) return; 180 calendar.setTime(date2);
|
/external/chromium_org/v8/test/mjsunit/ |
date.js | 35 var date2 = new Date(date0.toString()); 36 assertEquals(1000, date2.getTime()); 41 var date2 = Date.parse("Dec 25 1995, 1:30"); variable 44 assertEquals(date1, date2); 45 assertEquals(date2, date3);
|
/libcore/luni/src/test/java/tests/security/cert/ |
X509CertSelectorTest.java | 315 Date date2 = new Date(200); local 328 date2.equals(selector.getCertificateValid())); 578 Date date2 = new Date(200); local 589 date2.equals(selector.getPrivateKeyValid())); 895 Date date2 = new Date(200); local 1208 Date date2 = new Date(200000000); local [all...] |
/external/apache-harmony/sql/src/test/java/org/apache/harmony/sql/tests/java/sql/ |
TimestampTest.java | 654 Date date2 = new Date(time); 655 Timestamp timestamp2 = new Timestamp(date2.getTime()); 656 assertEquals(0, timestamp2.compareTo(date2));
|
/external/apache-harmony/security/src/test/impl/java.injected/java/security/cert/ |
X509CertSelectorTest.java | 978 Date date2 = new Date(200); local 1006 Date date2 = new Date(200); local 1029 Date date2 = new Date(200000000); local 1060 Date date2 = new Date(200); local [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
calregts.cpp | 1822 UDate date2 = calendar->getTime(status); local 2294 UDate date2 = cal.getTime(ec); local [all...] |
dtifmtts.cpp | 328 UDate date2 = 1299115800000.0; // 2011-Mar-02 1730 in US/Pacific, 2011-Mar-03 1030 in Asia/Tokyo local 330 DateInterval * dtitv12 = new DateInterval(date1, date2); [all...] |
dtfmttst.cpp | 183 // DateFormat date2 = DateFormat.getPatternInstance(Calendar.getInstance(locale), 192 SimpleDateFormat date2(pattern, locale, errorCode); 193 date2.adoptCalendar(Calendar::createInstance(locale, errorCode)); 204 date2.toLocalizedPattern(actualLocalPattern2, errorCode); 704 UDate date2 = formatter->parse(now, pos); local 705 if (date2 == 0) then = UnicodeString("Parse stopped at ") + pos.getIndex(); 706 else ((DateFormat*)formatter)->format(date2, then); 708 if (!(date2 == date1)) errln((UnicodeString)"FAIL"); [all...] |
/external/icu/icu4c/source/test/intltest/ |
calregts.cpp | 1822 UDate date2 = calendar->getTime(status); local 2294 UDate date2 = cal.getTime(ec); local [all...] |
dtifmtts.cpp | 328 UDate date2 = 1299115800000.0; // 2011-Mar-02 1730 in US/Pacific, 2011-Mar-03 1030 in Asia/Tokyo local 330 DateInterval * dtitv12 = new DateInterval(date1, date2); [all...] |
dtfmttst.cpp | 185 // DateFormat date2 = DateFormat.getPatternInstance(Calendar.getInstance(locale), 194 SimpleDateFormat date2(pattern, locale, errorCode); 195 date2.adoptCalendar(Calendar::createInstance(locale, errorCode)); 206 date2.toLocalizedPattern(actualLocalPattern2, errorCode); 707 UDate date2 = formatter->parse(now, pos); local 708 if (date2 == 0) then = UnicodeString("Parse stopped at ") + pos.getIndex(); 709 else ((DateFormat*)formatter)->format(date2, then); 711 if (!(date2 == date1)) errln((UnicodeString)"FAIL"); [all...] |
/libcore/luni/src/test/java/libcore/java/security/cert/ |
X509CRLTest.java | 312 private static void assertDateEquals(Date date1, Date date2) throws Exception { 316 String result2 = formatter.format(date2);
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/dataitem/ |
DataItemTests.java | 143 final String date2 = "2014-02-02"; local 155 mValues4.put(Event.START_DATE, date2); 174 assertEquals(date2, ((EventDataItem) dataList.get(2)).getStartDate());
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
AndroidKeyPairGeneratorTest.java | 566 private static void assertDateEquals(String message, Date date1, Date date2) throws Exception { 570 String result2 = formatter.format(date2);
|
/frameworks/base/keystore/tests/src/android/security/ |
AndroidKeyPairGeneratorTest.java | 539 private static void assertDateEquals(String message, Date date1, Date date2) throws Exception { 543 String result2 = formatter.format(date2);
|