Home
last modified time | relevance | path

Searched refs:julianDay (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeTest.java543 int julianDay = Time.getJulianDay(millis, time.gmtoff); in disableTestGetJulianDay() local
552 if (day != julianDay) { in disableTestGetJulianDay()
555 + " != today's Julian day: " + julianDay in disableTestGetJulianDay()
558 assertEquals(day, julianDay); in disableTestGetJulianDay()
582 int julianDay = Time.getJulianDay(millis, time.gmtoff); in disableTestSetJulianDay() local
584 time.setJulianDay(julianDay); in disableTestSetJulianDay()
598 if (day != julianDay) { in disableTestSetJulianDay()
600 + " day " + julianDay in disableTestSetJulianDay()
604 assertEquals(day, julianDay); in disableTestSetJulianDay()
/frameworks/base/core/java/android/text/format/
DTime.java754 long julianDay = (millis + offsetMillis) / DateUtils.DAY_IN_MILLIS; in getJulianDay() local
755 return (int) julianDay + EPOCH_JULIAN_DAY; in getJulianDay()
778 public long setJulianDay(int julianDay) { in setJulianDay() argument
782 long millis = (julianDay - EPOCH_JULIAN_DAY) * DateUtils.DAY_IN_MILLIS; in setJulianDay()
788 int diff = julianDay - approximateDay; in setJulianDay()
811 public static int getWeeksSinceEpochFromJulianDay(int julianDay, int firstDayOfWeek) { in getWeeksSinceEpochFromJulianDay() argument
817 return (julianDay - refDay) / 7; in getWeeksSinceEpochFromJulianDay()