Lines Matching refs:jni_cache
26 bool CalendarAdd(JniCache* jni_cache, JNIEnv* jenv, jobject calendar, in CalendarAdd() argument
28 jenv->CallVoidMethod(calendar, jni_cache->calendar_add, field, value); in CalendarAdd()
29 return !jni_cache->ExceptionCheckAndClear(); in CalendarAdd()
33 bool CalendarGet(JniCache* jni_cache, JNIEnv* jenv, jobject calendar, in CalendarGet() argument
35 *value = jenv->CallIntMethod(calendar, jni_cache->calendar_get, field); in CalendarGet()
36 return !jni_cache->ExceptionCheckAndClear(); in CalendarGet()
40 bool CalendarSet(JniCache* jni_cache, JNIEnv* jenv, jobject calendar, in CalendarSet() argument
42 jenv->CallVoidMethod(calendar, jni_cache->calendar_set, field, value); in CalendarSet()
43 return !jni_cache->ExceptionCheckAndClear(); in CalendarSet()
58 Calendar::Calendar(JniCache* jni_cache) in Calendar() argument
59 : jni_cache_(jni_cache), in Calendar()
60 jenv_(jni_cache_ ? jni_cache->GetEnv() : nullptr) {} in Calendar()
158 CalendarLib::CalendarLib(const std::shared_ptr<JniCache>& jni_cache) in CalendarLib() argument
159 : jni_cache_(jni_cache) {} in CalendarLib()