• Home
  • Raw
  • Download

Lines Matching refs:jni_

96     : jni_(jni), j_object_(NewGlobalRef(jni, object)) {  in GlobalRef()
102 DeleteGlobalRef(jni_, j_object_); in ~GlobalRef()
108 jboolean res = jni_->CallBooleanMethodV(j_object_, methodID, args); in CallBooleanMethod()
109 CHECK_EXCEPTION(jni_) << "Error during CallBooleanMethod"; in CallBooleanMethod()
117 jint res = jni_->CallIntMethodV(j_object_, methodID, args); in CallIntMethod()
118 CHECK_EXCEPTION(jni_) << "Error during CallIntMethod"; in CallIntMethod()
126 jni_->CallVoidMethodV(j_object_, methodID, args); in CallVoidMethod()
127 CHECK_EXCEPTION(jni_) << "Error during CallVoidMethod"; in CallVoidMethod()
133 : JavaClass(jni, clazz), jni_(jni) { in NativeRegistration()
139 jni_->UnregisterNatives(j_class_); in ~NativeRegistration()
140 CHECK_EXCEPTION(jni_) << "Error during UnregisterNatives"; in ~NativeRegistration()
149 jobject obj = jni_->NewObjectV( in NewObject()
150 j_class_, GetMethodID(jni_, j_class_, name, signature), args); in NewObject()
151 CHECK_EXCEPTION(jni_) << "Error during NewObjectV"; in NewObject()
153 return std::unique_ptr<GlobalRef>(new GlobalRef(jni_, obj)); in NewObject()
158 return GetMethodID(jni_, j_class_, name, signature); in GetMethodId()
163 return GetStaticMethodID(jni_, j_class_, name, signature); in GetStaticMethodId()
169 jobject res = jni_->CallStaticObjectMethodV(j_class_, methodID, args); in CallStaticObjectMethod()
170 CHECK_EXCEPTION(jni_) << "Error during CallStaticObjectMethod"; in CallStaticObjectMethod()
177 jint res = jni_->CallStaticIntMethodV(j_class_, methodID, args); in CallStaticIntMethod()
178 CHECK_EXCEPTION(jni_) << "Error during CallStaticIntMethod"; in CallStaticIntMethod()
183 JNIEnvironment::JNIEnvironment(JNIEnv* jni) : jni_(jni) { in JNIEnvironment()
199 jni_->RegisterNatives(clazz, methods, num_methods); in RegisterNatives()
200 CHECK_EXCEPTION(jni_) << "Error during RegisterNatives"; in RegisterNatives()
202 new NativeRegistration(jni_, clazz)); in RegisterNatives()
207 const char* jchars = jni_->GetStringUTFChars(j_string, nullptr); in JavaToStdString()
208 CHECK_EXCEPTION(jni_); in JavaToStdString()
209 const int size = jni_->GetStringUTFLength(j_string); in JavaToStdString()
210 CHECK_EXCEPTION(jni_); in JavaToStdString()
212 jni_->ReleaseStringUTFChars(j_string, jchars); in JavaToStdString()
213 CHECK_EXCEPTION(jni_); in JavaToStdString()