Home
last modified time | relevance | path

Searched refs:cacheValue (Results 1 – 3 of 3) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/util/
DChineseCalendar.java683 long cacheValue = winterSolsticeCache.get(gyear); in winterSolstice() local
685 if (cacheValue == CalendarCache.EMPTY) { in winterSolstice()
697 cacheValue = millisToDays(solarLong); in winterSolstice()
698 winterSolsticeCache.put(gyear, cacheValue); in winterSolstice()
700 return (int) cacheValue; in winterSolstice()
920 long cacheValue = newYearCache.get(gyear); in newYear() local
922 if (cacheValue == CalendarCache.EMPTY) { in newYear()
932 cacheValue = newMoonNear(newMoon2 + SYNODIC_GAP, true); in newYear()
934 cacheValue = newMoon2; in newYear()
937 newYearCache.put(gyear, cacheValue); in newYear()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DChineseCalendar.java701 long cacheValue = winterSolsticeCache.get(gyear); in winterSolstice() local
703 if (cacheValue == CalendarCache.EMPTY) { in winterSolstice()
715 cacheValue = millisToDays(solarLong); in winterSolstice()
716 winterSolsticeCache.put(gyear, cacheValue); in winterSolstice()
718 return (int) cacheValue; in winterSolstice()
939 long cacheValue = newYearCache.get(gyear); in newYear() local
941 if (cacheValue == CalendarCache.EMPTY) { in newYear()
951 cacheValue = newMoonNear(newMoon2 + SYNODIC_GAP, true); in newYear()
953 cacheValue = newMoon2; in newYear()
956 newYearCache.put(gyear, cacheValue); in newYear()
[all …]
/external/icu/icu4c/source/i18n/
Dchnsecal.cpp529 int32_t cacheValue = CalendarCache::get(&gChineseCalendarWinterSolsticeCache, gyear, status); in winterSolstice() local
531 if (cacheValue == 0) { in winterSolstice()
548 cacheValue = (int32_t)millisToDays(solarLong); in winterSolstice()
549 CalendarCache::put(&gChineseCalendarWinterSolsticeCache, gyear, cacheValue, status); in winterSolstice()
552 cacheValue = 0; in winterSolstice()
554 return cacheValue; in winterSolstice()
761 int32_t cacheValue = CalendarCache::get(&gChineseCalendarNewYearCache, gyear, status); in newYear() local
763 if (cacheValue == 0) { in newYear()
773 cacheValue = newMoonNear(newMoon2 + SYNODIC_GAP, TRUE); in newYear()
775 cacheValue = newMoon2; in newYear()
[all …]