Lines Matching refs:jni

48     JNI_context const & jni, typelib_TypeDescription * td )  in JNI_type_info()  argument
59 buf.append( jni.get_stack_trace() ); in JNI_type_info()
77 JNI_context const & jni, typelib_TypeDescription * td_ ) in JNI_interface_type_info() argument
78 : JNI_type_info( jni, td_ ) in JNI_interface_type_info()
83 JNI_info const * jni_info = jni.get_info(); in JNI_interface_type_info()
86 jni, in JNI_interface_type_info()
88 jni, in JNI_interface_type_info()
91 JLocalAutoRef jo_type( jni, create_type( jni, (jclass) jo_class.get() ) ); in JNI_interface_type_info()
97 jni, jni->CallStaticObjectMethodA( in JNI_interface_type_info()
150 m_methods[ nMethodIndex ] = jni->GetMethodID( in JNI_interface_type_info()
153 jni.ensure_no_exception(); in JNI_interface_type_info()
188 m_methods[ nMethodIndex ] = jni->GetMethodID( in JNI_interface_type_info()
191 jni.ensure_no_exception(); in JNI_interface_type_info()
209 m_methods[ nMethodIndex ] = jni->GetMethodID( in JNI_interface_type_info()
212 jni.ensure_no_exception(); in JNI_interface_type_info()
225 m_class = (jclass) jni->NewGlobalRef( jo_class.get() ); in JNI_interface_type_info()
226 m_type = jni->NewGlobalRef( jo_type.get() ); in JNI_interface_type_info()
227 m_proxy_ctor = jni->NewGlobalRef( jo_proxy_ctor.get() ); in JNI_interface_type_info()
241 JNI_context const & jni, typelib_TypeDescription * td_ ) in JNI_compound_type_info() argument
242 : JNI_type_info( jni, td_ ), in JNI_compound_type_info()
263 jni, in JNI_compound_type_info()
265 jni, in JNI_compound_type_info()
269 JNI_info const * jni_info = jni.get_info(); in JNI_compound_type_info()
274 m_exc_ctor = jni->GetMethodID( in JNI_compound_type_info()
276 jni.ensure_no_exception(); in JNI_compound_type_info()
284 m_base = (0 == base_td ? 0 : jni_info->get_type_info( jni, base_td )); in JNI_compound_type_info()
298 m_fields[ 1 ] = jni->GetFieldID( in JNI_compound_type_info()
300 jni.ensure_no_exception(); in JNI_compound_type_info()
331 m_fields[ nPos ] = jni->GetFieldID( in JNI_compound_type_info()
334 jni.ensure_no_exception(); in JNI_compound_type_info()
345 m_class = (jclass) jni->NewGlobalRef( jo_class.get() ); in JNI_compound_type_info()
351 JNI_context const & jni, typelib_TypeDescription * td ) const in create_type_info() argument
361 new_info = new JNI_compound_type_info( jni, td ); in create_type_info()
366 new_info = new JNI_interface_type_info( jni, td ); in create_type_info()
375 buf.append( jni.get_stack_trace() ); in create_type_info()
394 new_info->destroy( jni.get_jni_env() ); in create_type_info()
401 JNI_context const & jni, typelib_TypeDescription * td ) const in get_type_info() argument
416 info = create_type_info( jni, td ); in get_type_info()
428 JNI_context const & jni, typelib_TypeDescriptionReference * type ) const in get_type_info() argument
443 info = create_type_info( jni, td.get() ); in get_type_info()
455 JNI_context const & jni, OUString const & uno_name ) const in get_type_info() argument
476 buf.append( jni.get_stack_trace() ); in get_type_info()
479 info = create_type_info( jni, td.get() ); in get_type_info()
508 JNI_context jni( this, jni_env, class_loader ); // !no proper jni_info! in JNI_info() local
512 jni, find_class( jni, "java.lang.Object" ) ); in JNI_info()
514 jni, find_class( jni, "java.lang.Class" ) ); in JNI_info()
516 jni, find_class( jni, "java.lang.Throwable" ) ); in JNI_info()
518 jni, find_class( jni, "java.lang.Character" ) ); in JNI_info()
520 jni, find_class( jni, "java.lang.Boolean" ) ); in JNI_info()
522 jni, find_class( jni, "java.lang.Byte" ) ); in JNI_info()
524 jni, find_class( jni, "java.lang.Short" ) ); in JNI_info()
526 jni, find_class( jni, "java.lang.Integer" ) ); in JNI_info()
528 jni, find_class( jni, "java.lang.Long" ) ); in JNI_info()
530 jni, find_class( jni, "java.lang.Float" ) ); in JNI_info()
532 jni, find_class( jni, "java.lang.Double" ) ); in JNI_info()
534 jni, find_class( jni, "java.lang.String" ) ); in JNI_info()
536 jni, find_class( jni, "com.sun.star.uno.RuntimeException" ) ); in JNI_info()
538 jni, find_class( jni, "com.sun.star.uno.UnoRuntime" ) ); in JNI_info()
540 jni, find_class( jni, "com.sun.star.uno.Any" ) ); in JNI_info()
542 jni, find_class( jni, "com.sun.star.uno.Enum" ) ); in JNI_info()
544 jni, find_class( jni, "com.sun.star.uno.Type" ) ); in JNI_info()
546 jni, find_class( jni, "com.sun.star.uno.TypeClass" ) ); in JNI_info()
548 jni, find_class( jni, "com.sun.star.uno.IEnvironment" ) ); in JNI_info()
550 jni, find_class( jni, "com.sun.star.bridges.jni_uno.JNI_proxy" ) ); in JNI_info()
553 m_method_Object_toString = jni->GetMethodID( in JNI_info()
555 jni.ensure_no_exception(); in JNI_info()
558 m_method_Class_getName = jni->GetMethodID( in JNI_info()
560 jni.ensure_no_exception(); in JNI_info()
564 m_method_Throwable_getMessage = jni->GetMethodID( in JNI_info()
566 jni.ensure_no_exception(); in JNI_info()
570 m_method_Character_charValue = jni->GetMethodID( in JNI_info()
572 jni.ensure_no_exception(); in JNI_info()
575 m_method_Boolean_booleanValue = jni->GetMethodID( in JNI_info()
577 jni.ensure_no_exception(); in JNI_info()
580 m_method_Byte_byteValue = jni->GetMethodID( in JNI_info()
582 jni.ensure_no_exception(); in JNI_info()
585 m_method_Short_shortValue = jni->GetMethodID( in JNI_info()
587 jni.ensure_no_exception(); in JNI_info()
590 m_method_Integer_intValue = jni->GetMethodID( in JNI_info()
592 jni.ensure_no_exception(); in JNI_info()
595 m_method_Long_longValue = jni->GetMethodID( in JNI_info()
597 jni.ensure_no_exception(); in JNI_info()
600 m_method_Float_floatValue = jni->GetMethodID( in JNI_info()
602 jni.ensure_no_exception(); in JNI_info()
605 m_method_Double_doubleValue = jni->GetMethodID( in JNI_info()
607 jni.ensure_no_exception(); in JNI_info()
611 m_ctor_Character_with_char = jni->GetMethodID( in JNI_info()
613 jni.ensure_no_exception(); in JNI_info()
616 m_ctor_Boolean_with_boolean = jni->GetMethodID( in JNI_info()
618 jni.ensure_no_exception(); in JNI_info()
621 m_ctor_Byte_with_byte = jni->GetMethodID( in JNI_info()
623 jni.ensure_no_exception(); in JNI_info()
626 m_ctor_Short_with_short = jni->GetMethodID( in JNI_info()
628 jni.ensure_no_exception(); in JNI_info()
631 m_ctor_Integer_with_int = jni->GetMethodID( in JNI_info()
633 jni.ensure_no_exception(); in JNI_info()
636 m_ctor_Long_with_long = jni->GetMethodID( in JNI_info()
638 jni.ensure_no_exception(); in JNI_info()
641 m_ctor_Float_with_float = jni->GetMethodID( in JNI_info()
643 jni.ensure_no_exception(); in JNI_info()
646 m_ctor_Double_with_double = jni->GetMethodID( in JNI_info()
648 jni.ensure_no_exception(); in JNI_info()
652 m_method_UnoRuntime_generateOid = jni->GetStaticMethodID( in JNI_info()
655 jni.ensure_no_exception(); in JNI_info()
658 m_method_UnoRuntime_queryInterface = jni->GetStaticMethodID( in JNI_info()
662 jni.ensure_no_exception(); in JNI_info()
666 m_field_Enum_m_value = jni->GetFieldID( in JNI_info()
668 jni.ensure_no_exception(); in JNI_info()
672 m_method_TypeClass_fromInt = jni->GetStaticMethodID( in JNI_info()
675 jni.ensure_no_exception(); in JNI_info()
679 m_ctor_Type_with_Class = jni->GetMethodID( in JNI_info()
681 jni.ensure_no_exception(); in JNI_info()
684 m_ctor_Type_with_Name_TypeClass = jni->GetMethodID( in JNI_info()
687 jni.ensure_no_exception(); in JNI_info()
690 m_field_Type__typeName = jni->GetFieldID( in JNI_info()
692 jni.ensure_no_exception(); in JNI_info()
696 m_ctor_Any_with_Type_Object = jni->GetMethodID( in JNI_info()
699 jni.ensure_no_exception(); in JNI_info()
703 m_field_Any__type = jni->GetFieldID( in JNI_info()
705 jni.ensure_no_exception(); in JNI_info()
708 m_field_Any__object = jni->GetFieldID( in JNI_info()
710 jni.ensure_no_exception(); in JNI_info()
714 m_method_IEnvironment_getRegisteredInterface = jni->GetMethodID( in JNI_info()
718 jni.ensure_no_exception(); in JNI_info()
721 m_method_IEnvironment_registerInterface = jni->GetMethodID( in JNI_info()
725 jni.ensure_no_exception(); in JNI_info()
729 m_method_JNI_proxy_get_proxy_ctor = jni->GetStaticMethodID( in JNI_info()
732 jni.ensure_no_exception(); in JNI_info()
735 m_method_JNI_proxy_create = jni->GetStaticMethodID( in JNI_info()
739 jni.ensure_no_exception(); in JNI_info()
742 m_field_JNI_proxy_m_receiver_handle = jni->GetFieldID( in JNI_info()
744 jni.ensure_no_exception(); in JNI_info()
747 m_field_JNI_proxy_m_td_handle = jni->GetFieldID( in JNI_info()
749 jni.ensure_no_exception(); in JNI_info()
752 m_field_JNI_proxy_m_type = jni->GetFieldID( in JNI_info()
754 jni.ensure_no_exception(); in JNI_info()
757 m_field_JNI_proxy_m_oid = jni->GetFieldID( in JNI_info()
759 jni.ensure_no_exception(); in JNI_info()
765 jni, ustring_to_jstring( jni, java_env_type_name.pData ) ); in JNI_info()
769 jmethodID method_getEnvironment = jni->GetStaticMethodID( in JNI_info()
773 jni.ensure_no_exception(); in JNI_info()
776 jni, jni->CallStaticObjectMethodA( in JNI_info()
780 jfieldID field_Any_VOID = jni->GetStaticFieldID( in JNI_info()
782 jni.ensure_no_exception(); in JNI_info()
785 jni, jni->GetStaticObjectField( in JNI_info()
788 jfieldID field_Type_UNSIGNED_SHORT = jni->GetStaticFieldID( in JNI_info()
790 jni.ensure_no_exception(); in JNI_info()
793 jni, jni->GetStaticObjectField( in JNI_info()
796 jfieldID field_Type_UNSIGNED_LONG = jni->GetStaticFieldID( in JNI_info()
798 jni.ensure_no_exception(); in JNI_info()
801 jni, jni->GetStaticObjectField( in JNI_info()
804 jfieldID field_Type_UNSIGNED_HYPER = jni->GetStaticFieldID( in JNI_info()
806 jni.ensure_no_exception(); in JNI_info()
809 jni, jni->GetStaticObjectField( in JNI_info()
814 (jclass) jni->NewGlobalRef( jo_UnoRuntime.get() ); in JNI_info()
816 (jclass) jni->NewGlobalRef( jo_RuntimeException.get() ); in JNI_info()
818 (jclass) jni->NewGlobalRef( jo_Any.get() ); in JNI_info()
820 (jclass) jni->NewGlobalRef( jo_Type.get() ); in JNI_info()
822 (jclass) jni->NewGlobalRef( jo_TypeClass.get() ); in JNI_info()
824 (jclass) jni->NewGlobalRef( jo_JNI_proxy.get() ); in JNI_info()
827 (jclass) jni->NewGlobalRef( jo_Character.get() ); in JNI_info()
829 (jclass) jni->NewGlobalRef( jo_Boolean.get() ); in JNI_info()
831 (jclass) jni->NewGlobalRef( jo_Byte.get() ); in JNI_info()
833 (jclass) jni->NewGlobalRef( jo_Short.get() ); in JNI_info()
835 (jclass) jni->NewGlobalRef( jo_Integer.get() ); in JNI_info()
837 (jclass) jni->NewGlobalRef( jo_Long.get() ); in JNI_info()
839 (jclass) jni->NewGlobalRef( jo_Float.get() ); in JNI_info()
841 (jclass) jni->NewGlobalRef( jo_Double.get() ); in JNI_info()
843 (jclass) jni->NewGlobalRef( jo_String.get() ); in JNI_info()
845 (jclass) jni->NewGlobalRef( jo_Object.get() ); in JNI_info()
847 (jclass) jni->NewGlobalRef( m_class_Class ); in JNI_info()
850 jni->NewGlobalRef( jo_Any_VOID.get() ); in JNI_info()
852 jni->NewGlobalRef( jo_Type_UNSIGNED_SHORT.get() ); in JNI_info()
854 jni->NewGlobalRef( jo_Type_UNSIGNED_LONG.get() ); in JNI_info()
856 jni->NewGlobalRef( jo_Type_UNSIGNED_HYPER.get() ); in JNI_info()
857 m_object_java_env = jni->NewGlobalRef( jo_java_env.get() ); in JNI_info()
865 new JNI_interface_type_info( jni, XInterface_td.get() ); in JNI_info()
924 JNI_context jni( in get_jni_info() local
929 jni.getClassForName( &jo_class, &jo_forName ); in get_jni_info()
930 jni.ensure_no_exception(); in get_jni_info()
932 jni, in get_jni_info()
933 jni.findClass( in get_jni_info()
938 jni->GetStaticFieldID( in get_jni_info()
940 jni.ensure_no_exception(); in get_jni_info()
945 jni->GetStaticLongField( in get_jni_info()
956 jni->GetStaticLongField( in get_jni_info()
961 jni->SetStaticLongField( in get_jni_info()