Lines Matching refs:jni_cache_
59 : jni_cache_(jni_cache), in Calendar()
60 jenv_(jni_cache_ ? jni_cache->GetEnv() : nullptr) {} in Calendar()
64 if (!jni_cache_ || !jenv_) { in Initialize()
70 if (jni_cache_->calendar_sunday != in Initialize()
72 jni_cache_->calendar_monday != in Initialize()
74 jni_cache_->calendar_tuesday != in Initialize()
76 jni_cache_->calendar_wednesday != in Initialize()
78 jni_cache_->calendar_thursday != in Initialize()
80 jni_cache_->calendar_friday != in Initialize()
82 jni_cache_->calendar_saturday != in Initialize()
92 jni_cache_->timezone_class.get(), jni_cache_->timezone_get_timezone, in Initialize()
94 if (jni_cache_->ExceptionCheckAndClear() || !java_time_zone) { in Initialize()
101 if (jni_cache_->locale_for_language_tag) { in Initialize()
106 jni_cache_->locale_class.get(), jni_cache_->locale_for_language_tag, in Initialize()
112 java_locale.reset(jenv_->NewObject(jni_cache_->locale_class.get(), in Initialize()
113 jni_cache_->locale_init_string, in Initialize()
116 if (jni_cache_->ExceptionCheckAndClear() || !java_locale) { in Initialize()
123 jni_cache_->calendar_class.get(), jni_cache_->calendar_get_instance, in Initialize()
125 if (jni_cache_->ExceptionCheckAndClear() || !calendar_) { in Initialize()
132 jni_cache_->calendar_set_time_in_millis, time_ms_utc); in Initialize()
133 if (jni_cache_->ExceptionCheckAndClear()) { in Initialize()
141 if (!jni_cache_ || !jenv_ || !calendar_) return false; in GetFirstDayOfWeek()
143 jni_cache_->calendar_get_first_day_of_week); in GetFirstDayOfWeek()
144 return !jni_cache_->ExceptionCheckAndClear(); in GetFirstDayOfWeek()
148 if (!jni_cache_ || !jenv_ || !calendar_) return false; in GetTimeInMillis()
150 jni_cache_->calendar_get_time_in_millis); in GetTimeInMillis()
151 return !jni_cache_->ExceptionCheckAndClear(); in GetTimeInMillis()
159 : jni_cache_(jni_cache) {} in CalendarLib()
165 if (!jni_cache_ || !jenv_ || !calendar_) return false; \
166 return Calendar##KIND(jni_cache_, jenv_, calendar_.get(), \
167 jni_cache_->calendar_##FIELD, value); \