Searched refs:julianDay (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/text/format/ |
D | TimeTest.java | 553 int julianDay = Time.getJulianDay(millis, time.gmtoff); in disableTestGetJulianDay() local 562 if (day != julianDay) { in disableTestGetJulianDay() 565 + " != today's Julian day: " + julianDay in disableTestGetJulianDay() 568 assertEquals(day, julianDay); in disableTestGetJulianDay() 592 int julianDay = Time.getJulianDay(millis, time.gmtoff); in disableTestSetJulianDay() local 594 time.setJulianDay(julianDay); in disableTestSetJulianDay() 608 if (day != julianDay) { in disableTestSetJulianDay() 610 + " day " + julianDay in disableTestSetJulianDay() 614 assertEquals(day, julianDay); in disableTestSetJulianDay()
|
/frameworks/base/core/java/android/text/format/ |
D | Time.java | 982 long julianDay = adjustedMillis / DateUtils.DAY_IN_MILLIS; in getJulianDay() local 985 julianDay--; in getJulianDay() 987 return (int) (julianDay + EPOCH_JULIAN_DAY); in getJulianDay() 1010 public long setJulianDay(int julianDay) { in setJulianDay() argument 1014 long millis = (julianDay - EPOCH_JULIAN_DAY) * DateUtils.DAY_IN_MILLIS; in setJulianDay() 1020 int diff = julianDay - approximateDay; in setJulianDay() 1043 public static int getWeeksSinceEpochFromJulianDay(int julianDay, int firstDayOfWeek) { in getWeeksSinceEpochFromJulianDay() argument 1049 return (julianDay - refDay) / 7; in getWeeksSinceEpochFromJulianDay()
|
D | RelativeDateTimeFormatter.java | 352 return julianDay(icuTimeZone, endTime) - julianDay(icuTimeZone, startTime); in dayDistance() 355 private static int julianDay(android.icu.util.TimeZone icuTimeZone, long time) { in julianDay() method in RelativeDateTimeFormatter
|
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/ |
D | TimeTest.java | 718 int julianDay = Time.getJulianDay(time.normalize(), time.getGmtOffset()); 725 assertEquals(day, julianDay); 745 int julianDay = Time.getJulianDay(millis, time.getGmtOffset()); 747 time.setJulianDay(julianDay); 758 assertEquals(day, julianDay);
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Time.java | 168 public long setJulianDay(int julianDay) { in setJulianDay() argument 169 long millis = (julianDay - EPOCH_JULIAN_DAY) * DAY_IN_MILLIS; in setJulianDay() 174 monthDay += julianDay - getJulianDay(millis, getGmtOffset()); in setJulianDay()
|