Lines Matching refs:jni
36 JNI_context const & jni, rtl_uString ** out_ustr, jstring jstr ) in jstring_to_ustring() argument
44 jsize len = jni->GetStringLength( jstr ); in jstring_to_ustring()
49 jni->GetStringRegion( jstr, 0, len, (jchar *) ustr->buffer ); in jstring_to_ustring()
50 jni.ensure_no_exception(); in jstring_to_ustring()
63 JNI_context const & jni, jstring jstr ) in jstring_to_oustring() argument
66 jstring_to_ustring( jni, &ustr, jstr ); in jstring_to_oustring()
72 JNI_context const & jni, rtl_uString const * ustr ) in ustring_to_jstring() argument
74 jstring jstr = jni->NewString( (jchar const *) ustr->buffer, ustr->length ); in ustring_to_jstring()
75 jni.ensure_no_exception(); in ustring_to_jstring()
84 JNI_context const & jni, char const * class_name, bool inException = false ) in find_class() argument
89 JNI_info const * info = jni.get_info(); in find_class()
91 jni.getClassForName(&c, &m); in find_class()
96 jni.ensure_no_exception(); in find_class()
102 return jni.findClass(class_name, c, m, inException); in find_class()
107 inline jobject create_type( JNI_context const & jni, jclass clazz ) in create_type() argument
109 JNI_info const * jni_info = jni.get_info(); in create_type()
112 jobject jo_type = jni->NewObjectA( in create_type()
114 jni.ensure_no_exception(); in create_type()
120 JNI_context const & jni, typelib_TypeDescriptionReference * type ) in create_type() argument
122 JNI_info const * jni_info = jni.get_info(); in create_type()
127 jni, jni->CallStaticObjectMethodA( in create_type()
130 jni.ensure_no_exception(); in create_type()
133 jni, ustring_to_jstring( jni, type->pTypeName ) ); in create_type()
136 jobject jo_type = jni->NewObjectA( in create_type()
139 jni.ensure_no_exception(); in create_type()
144 inline jobject compute_oid( JNI_context const & jni, jobject jo ) in compute_oid() argument
146 JNI_info const * jni_info = jni.get_info(); in compute_oid()
149 jobject jo_oid = jni->CallStaticObjectMethodA( in compute_oid()
152 jni.ensure_no_exception(); in compute_oid()