Esempio n. 1
0
 public void Init(JNIEnv env, JniLocalHandle handle)
 {
     if (JniLocalHandle.IsNull(handle))
         mJvmHandle = null;
     else
         mJvmHandle = env.NewGlobalRef(handle);
 }
Esempio n. 2
0
 public MethodId FromReflectedMethod(JniLocalHandle methodId)
 {
     IntPtr res = fromReflectedMethod.Invoke(envPtr, methodId);
     ExceptionTest();
     return new MethodId(res);
 }
Esempio n. 3
0
 internal void DeleteLocalRef(JniLocalHandle lref)
 {
     if (JniLocalHandle.IsNull(lref))
     {
         throw new ArgumentNullException("lref");
     }
     deleteLocalRef(envPtr, lref);
     //optimized away ExceptionTest();
 }
Esempio n. 4
0
 public void Init(JNIEnv env, JniLocalHandle handle)
 {
     mJvmHandle = env.NewGlobalRef(handle);
 }
Esempio n. 5
0
 public void Init(JNIEnv env, JniLocalHandle handle)
 {
     mJvmHandle = env.NewGlobalRef(handle);
 }
Esempio n. 6
0
 internal void SetObjectFieldPtr(JniLocalHandle obj, FieldId fieldID, JniHandle value)
 {
     setObjectField(envPtr, obj, fieldID.native, value);
     ExceptionTest();
 }
Esempio n. 7
0
 internal void SetObjectFieldPtr(JniLocalHandle obj, FieldId fieldID, JniHandle value)
 {
     setObjectField(envPtr, obj, fieldID.native, value);
     ExceptionTest();
 }