Home
last modified time | relevance | path

Searched refs:env (Results 1 – 3 of 3) sorted by relevance

/libnativehelper/
DJNIHelp.cpp32 scoped_local_ref(C_JNIEnv* env, T localRef = NULL) in scoped_local_ref() argument
33 : mEnv(env), mLocalRef(localRef) in scoped_local_ref()
61 static jclass findClass(C_JNIEnv* env, const char* className) { in findClass() argument
62 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in findClass()
63 return (*env)->FindClass(e, className); in findClass()
66 extern "C" int jniRegisterNativeMethods(C_JNIEnv* env, const char* className, in jniRegisterNativeMethods() argument
69 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in jniRegisterNativeMethods()
73 scoped_local_ref<jclass> c(env, findClass(env, className)); in jniRegisterNativeMethods()
79 if ((*env)->RegisterNatives(e, c.get(), gMethods, numMethods) < 0) { in jniRegisterNativeMethods()
92 static char* getExceptionSummary0(C_JNIEnv* env, jthrowable exception) { in getExceptionSummary0() argument
[all …]
/libnativehelper/include/nativehelper/
DJNIHelp.h43 int jniRegisterNativeMethods(C_JNIEnv* env, const char* className, const JNINativeMethod* gMethods,…
59 int jniThrowException(C_JNIEnv* env, const char* className, const char* msg);
64 int jniThrowNullPointerException(C_JNIEnv* env, const char* msg);
69 int jniThrowRuntimeException(C_JNIEnv* env, const char* msg);
74 int jniThrowIOException(C_JNIEnv* env, int errnum);
87 jobject jniCreateFileDescriptor(C_JNIEnv* env, int fd);
92 int jniGetFDFromFileDescriptor(C_JNIEnv* env, jobject fileDescriptor);
97 void jniSetFileDescriptorOfFD(C_JNIEnv* env, jobject fileDescriptor, int value);
103 void jniLogException(C_JNIEnv* env, int priority, const char* tag, jthrowable exception);
115 inline int jniRegisterNativeMethods(JNIEnv* env, const char* className, const JNINativeMethod* gMet… in jniRegisterNativeMethods() argument
[all …]
Djni.h1076 jint GetEnv(void** env, jint version) in GetEnv()
1077 { return functions->GetEnv(this, env, version); } in GetEnv()