Searched refs:date1 (Results 1 – 4 of 4) sorted by relevance
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/util/ |
D | DateUtilTests.java | 35 long date1 = System.currentTimeMillis(); in testDayDiffNone() local 37 assertEquals(0, DateUtils.getDayDifference(time, date1, date2)); in testDayDiffNone() 38 assertEquals(0, DateUtils.getDayDifference(time, date2, date1)); in testDayDiffNone() 46 long date1 = System.currentTimeMillis(); in testDayDiffOne() local 47 long date2 = date1 + android.text.format.DateUtils.DAY_IN_MILLIS; in testDayDiffOne() 48 assertEquals(1, DateUtils.getDayDifference(time, date1, date2)); in testDayDiffOne() 49 assertEquals(1, DateUtils.getDayDifference(time, date2, date1)); in testDayDiffOne() 57 long date1 = System.currentTimeMillis(); in testDayDiffTwo() local 58 long date2 = date1 + 2*android.text.format.DateUtils.DAY_IN_MILLIS; in testDayDiffTwo() 59 assertEquals(2, DateUtils.getDayDifference(time, date1, date2)); in testDayDiffTwo() [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/ |
D | FormatDateRangeTest.java | 33 public Time date1; field in FormatDateRangeTest.DateTest 42 date1 = new Time(Time.TIMEZONE_UTC); in DateTest() 45 date1 = new Time(); in DateTest() 51 date1.set(System.currentTimeMillis()); in DateTest() 52 year1 = year2 = date1.year; in DateTest() 55 date1.set(0, minute1, hour1, day1, month1, year1); in DateTest() 56 date1.normalize(true /* ignore isDst */); in DateTest() 185 long startMillis = dateTest.date1.toMillis(false /* use isDst */); in testAll()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/ |
D | DateUtils.java | 282 public static int getDayDifference(Time time, long date1, long date2) { in getDayDifference() argument 283 time.set(date1); in getDayDifference() 284 int startDay = Time.getJulianDay(date1, time.gmtoff); in getDayDifference()
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/dataitem/ |
D | DataItemTests.java | 142 final String date1 = "2014-01-01"; in testDataItemCollapsing_event() local 152 mValues1.put(Event.START_DATE, date1); in testDataItemCollapsing_event() 153 mValues2.put(Event.START_DATE, date1); in testDataItemCollapsing_event() 154 mValues3.put(Event.START_DATE, date1); in testDataItemCollapsing_event()
|