/libcore/ojluni/src/main/java/sun/util/calendar/ |
D | BaseCalendar.java | 172 protected final boolean hit(long fixedDate) { in hit() argument 173 return (fixedDate >= cachedFixedDateJan1 && in hit() 174 fixedDate < cachedFixedDateNextJan1); in hit() 259 long fixedDate = d + getFixedDate(y, m, 1, bdate) - 1L; in normalize() local 260 getCalendarDateFromFixedDate(bdate, fixedDate); in normalize() 423 long fixedDate) { in getCalendarDateFromFixedDate() argument 428 if (gdate.hit(fixedDate)) { in getCalendarDateFromFixedDate() 436 year = getGregorianYearFromFixedDate(fixedDate); in getCalendarDateFromFixedDate() 443 int priorDays = (int)(fixedDate - jan1); in getCalendarDateFromFixedDate() 448 if (fixedDate >= mar1) { in getCalendarDateFromFixedDate() [all …]
|
D | JulianCalendar.java | 185 public void getCalendarDateFromFixedDate(CalendarDate date, long fixedDate) { in getCalendarDateFromFixedDate() argument 187 long fd = 4 * (fixedDate - JULIAN_EPOCH) + 1464; in getCalendarDateFromFixedDate() 194 int priorDays = (int)(fixedDate - getFixedDate(year, JANUARY, 1, jdate)); in getCalendarDateFromFixedDate() 196 if (fixedDate >= getFixedDate(year, MARCH, 1, jdate)) { in getCalendarDateFromFixedDate() 205 int dayOfMonth = (int)(fixedDate - getFixedDate(year, month, 1, jdate)) + 1; in getCalendarDateFromFixedDate() 206 int dayOfWeek = getDayOfWeekFromFixedDate(fixedDate); in getCalendarDateFromFixedDate() 219 public int getYearFromFixedDate(long fixedDate) { in getYearFromFixedDate() argument 220 int year = (int) CalendarUtils.floorDivide(4 * (fixedDate - JULIAN_EPOCH) + 1464, 1461); in getYearFromFixedDate() 227 long fixedDate = getFixedDate(date); in getDayOfWeek() local 228 return getDayOfWeekFromFixedDate(fixedDate); in getDayOfWeek()
|
D | AbstractCalendar.java | 301 static long getDayOfWeekDateBefore(long fixedDate, int dayOfWeek) { in getDayOfWeekDateBefore() argument 302 return getDayOfWeekDateOnOrBefore(fixedDate - 1, dayOfWeek); in getDayOfWeekDateBefore() 313 static long getDayOfWeekDateAfter(long fixedDate, int dayOfWeek) { in getDayOfWeekDateAfter() argument 314 return getDayOfWeekDateOnOrBefore(fixedDate + 7, dayOfWeek); in getDayOfWeekDateAfter() 326 public static long getDayOfWeekDateOnOrBefore(long fixedDate, int dayOfWeek) { in getDayOfWeekDateOnOrBefore() argument 327 long fd = fixedDate - (dayOfWeek - 1); in getDayOfWeekDateOnOrBefore() 329 return fixedDate - (fd % 7); in getDayOfWeekDateOnOrBefore() 331 return fixedDate - CalendarUtils.mod(fd, 7); in getDayOfWeekDateOnOrBefore() 357 long fixedDate); in getCalendarDateFromFixedDate() argument
|
D | LocalGregorianCalendar.java | 390 public void getCalendarDateFromFixedDate(CalendarDate date, long fixedDate) { in getCalendarDateFromFixedDate() argument 392 super.getCalendarDateFromFixedDate(ldate, fixedDate); in getCalendarDateFromFixedDate() 393 adjustYear(ldate, (fixedDate - EPOCH_OFFSET) * DAY_IN_MILLIS, 0); in getCalendarDateFromFixedDate()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 2335 long fixedDate = zoneOffset / ONE_DAY; in computeFields() local 2337 fixedDate += time / ONE_DAY; in computeFields() 2341 ++fixedDate; in computeFields() 2345 --fixedDate; in computeFields() 2348 fixedDate += EPOCH_OFFSET; in computeFields() 2352 if (fixedDate >= gregorianCutoverDate) { in computeFields() 2371 if (fixedDate != cachedFixedDate) { in computeFields() 2372 gcal.getCalendarDateFromFixedDate(gdate, fixedDate); in computeFields() 2373 cachedFixedDate = fixedDate; in computeFields() 2388 jcal.getCalendarDateFromFixedDate(cdate, fixedDate); in computeFields() [all …]
|
D | JapaneseImperialCalendar.java | 1589 long fixedDate = zoneOffset / ONE_DAY; 1591 fixedDate += time / ONE_DAY; 1595 ++fixedDate; 1599 --fixedDate; 1602 fixedDate += EPOCH_OFFSET; 1605 if (fixedDate != cachedFixedDate || fixedDate < 0) { 1606 jcal.getCalendarDateFromFixedDate(jdate, fixedDate); 1607 cachedFixedDate = fixedDate; 1668 fixedDateJan1 = getFixedDateJan1(jdate, fixedDate); 1669 dayOfYear = (int)(fixedDate - fixedDateJan1) + 1; [all …]
|
/libcore/ojluni/annotations/hiddenapi/sun/util/calendar/ |
D | BaseCalendar.java | 80 public void getCalendarDateFromFixedDate(sun.util.calendar.CalendarDate date, long fixedDate) { in getCalendarDateFromFixedDate() argument 88 public static final int getDayOfWeekFromFixedDate(long fixedDate) { in getDayOfWeekFromFixedDate() argument 92 public int getYearFromFixedDate(long fixedDate) { in getYearFromFixedDate() argument 96 final int getGregorianYearFromFixedDate(long fixedDate) { in getGregorianYearFromFixedDate() argument 198 protected final boolean hit(long fixedDate) { in hit() argument
|
D | AbstractCalendar.java | 99 static long getDayOfWeekDateBefore(long fixedDate, int dayOfWeek) { in getDayOfWeekDateBefore() argument 103 static long getDayOfWeekDateAfter(long fixedDate, int dayOfWeek) { in getDayOfWeekDateAfter() argument 108 public static long getDayOfWeekDateOnOrBefore(long fixedDate, int dayOfWeek) { in getDayOfWeekDateOnOrBefore() argument 115 sun.util.calendar.CalendarDate date, long fixedDate); in getCalendarDateFromFixedDate() argument
|
D | LocalGregorianCalendar.java | 106 public void getCalendarDateFromFixedDate(sun.util.calendar.CalendarDate date, long fixedDate) { in getCalendarDateFromFixedDate() argument
|