Lines Matching refs:jni_env

58 inline ::rtl::OUString jstring_to_oustring( jstring jstr, JNIEnv * jni_env )  in jstring_to_oustring()  argument
61 jsize len = jni_env->GetStringLength( jstr ); in jstring_to_oustring()
64 jni_env->GetStringRegion( jstr, 0, len, ustr->buffer ); in jstring_to_oustring()
65 OSL_ASSERT( JNI_FALSE == jni_env->ExceptionCheck() ); in jstring_to_oustring()
76 JNIEnv * jni_env, jclass, jstring juno_rc, jobjectArray jpairs, in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap() argument
83 jsize nPos = 0, len = jni_env->GetArrayLength( jpairs ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
87 jstring jstr = (jstring)jni_env->GetObjectArrayElement( jpairs, nPos ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
88 if (JNI_FALSE != jni_env->ExceptionCheck()) in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
90 jni_env->ExceptionClear(); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
96 OUString name( ::javaunohelper::jstring_to_oustring( jstr, jni_env ) ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
98 jstr = (jstring)jni_env->GetObjectArrayElement( jpairs, nPos +1 ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
99 if (JNI_FALSE != jni_env->ExceptionCheck()) in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
101 jni_env->ExceptionClear(); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
107 OUString value( ::javaunohelper::jstring_to_oustring( jstr, jni_env ) ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
125 OUString uno_rc( ::javaunohelper::jstring_to_oustring( juno_rc, jni_env ) ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
131 ::javaunohelper::create_vm_access( jni_env, loader ) ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
155 jobject jlocal = jni_env->NewLocalRef( jret ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
156 jni_env->DeleteGlobalRef( jret ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
162 jclass c = jni_env->FindClass( "com/sun/star/uno/RuntimeException" ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
168 jni_env->ThrowNew( c, cstr.getStr() ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
173 jclass c = jni_env->FindClass( "com/sun/star/uno/Exception" ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()
179 jni_env->ThrowNew( c, cstr.getStr() ); in Java_com_sun_star_comp_helper_Bootstrap_cppuhelper_1bootstrap()