Home
last modified time | relevance | path

Searched refs:julianDay (Results 1 – 4 of 4) 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/opt/datetimepicker/src/com/android/datetimepicker/
DUtils.java111 public static int getWeeksSinceEpochFromJulianDay(int julianDay, int firstDayOfWeek) { in getWeeksSinceEpochFromJulianDay() argument
117 return (julianDay - refDay) / 7; in getWeeksSinceEpochFromJulianDay()
/frameworks/base/core/java/android/text/format/
DTime.java948 long julianDay = (millis + offsetMillis) / DateUtils.DAY_IN_MILLIS; in getJulianDay() local
949 return (int) julianDay + EPOCH_JULIAN_DAY; in getJulianDay()
972 public long setJulianDay(int julianDay) { in setJulianDay() argument
976 long millis = (julianDay - EPOCH_JULIAN_DAY) * DateUtils.DAY_IN_MILLIS; in setJulianDay()
982 int diff = julianDay - approximateDay; in setJulianDay()
1005 public static int getWeeksSinceEpochFromJulianDay(int julianDay, int firstDayOfWeek) { in getWeeksSinceEpochFromJulianDay() argument
1011 return (julianDay - refDay) / 7; in getWeeksSinceEpochFromJulianDay()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DMonthAdapter.java87 public synchronized void setJulianDay(int julianDay) { in setJulianDay() argument
91 time.setJulianDay(julianDay); in setJulianDay()