Ion
|
Classes | |
class | LocalFrame |
Pushes and pops a JNI local reference frame. More... | |
class | ScopedJObject |
Stack-allocate this to clean up a jobject at end of scope. More... | |
class | Tracer |
class | ScopedTrace |
Functions | |
JavaVM * | GetJVM () |
void | SetJVM (JavaVM *jvm) |
Set the pointer to the JavaVM. More... | |
jclass | FindClassGlobal (JNIEnv *env, const char *class_name) |
jmethodID | GetStaticMethod (JNIEnv *env, jclass clazz, const char *class_name, const char *name, const char *signature) |
jmethodID | GetMethod (JNIEnv *env, jclass clazz, const char *class_name, const char *name, const char *signature) |
jfieldID | GetStaticStringMember (JNIEnv *env, jclass clazz, const char *class_name, const char *name) |
jfieldID | GetStaticIntMember (JNIEnv *env, jclass clazz, const char *class_name, const char *name) |
jfieldID | GetStaticLongMember (JNIEnv *env, jclass clazz, const char *class_name, const char *name) |
jfieldID | GetStaticBooleanMember (JNIEnv *env, jclass clazz, const char *class_name, const char *name) |
jfieldID | GetIntMember (JNIEnv *env, jclass clazz, const char *class_name, const char *name) |
jfieldID | GetLongMember (JNIEnv *env, jclass clazz, const char *class_name, const char *name) |
jfieldID | GetBooleanMember (JNIEnv *env, jclass clazz, const char *class_name, const char *name) |
jfieldID | GetStringMember (JNIEnv *env, jclass clazz, const char *class_name, const char *name) |
jfieldID | GetIntArrayMember (JNIEnv *env, jclass clazz, const char *class_name, const char *name) |
jfieldID | GetStaticMember (JNIEnv *env, jclass clazz, const char *class_name, const char *name, const char *type) |
jfieldID | GetMember (JNIEnv *env, jclass clazz, const char *class_name, const char *name, const char *type) |
jobjectArray | JavaStringArray (JNIEnv *env, int length) |
jstring | JavaString (JNIEnv *env, const std::string &s) |
jbyteArray | JavaByteArray (JNIEnv *env, const std::string &bytes) |
jbyteArray | JavaByteArray (JNIEnv *env, const jbyte *data, jsize size) |
void | JavaGetByteArray (JNIEnv *env, jbyteArray array, jsize first, jsize size, char *out) |
Variables | |
JavaVM * | s_jvm = NULL |
jclass ion::port::android::FindClassGlobal | ( | JNIEnv * | env, |
const char * | class_name | ||
) |
Definition at line 44 of file jniutil.cc.
References ion::port::ERROR.
jfieldID ion::port::android::GetBooleanMember | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name | ||
) |
Definition at line 124 of file jniutil.cc.
References GetMember().
jfieldID ion::port::android::GetIntArrayMember | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name | ||
) |
Definition at line 134 of file jniutil.cc.
References GetMember().
jfieldID ion::port::android::GetIntMember | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name | ||
) |
Definition at line 114 of file jniutil.cc.
References GetMember().
JavaVM * ion::port::android::GetJVM | ( | ) |
Definition at line 30 of file jniutil.cc.
References s_jvm.
jfieldID ion::port::android::GetLongMember | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name | ||
) |
Definition at line 119 of file jniutil.cc.
References GetMember().
jfieldID ion::port::android::GetMember | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name, | ||
const char * | type | ||
) |
Definition at line 153 of file jniutil.cc.
References ion::port::ERROR.
Referenced by GetBooleanMember(), GetIntArrayMember(), GetIntMember(), GetLongMember(), and GetStringMember().
jmethodID ion::port::android::GetMethod | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name, | ||
const char * | signature | ||
) |
Definition at line 80 of file jniutil.cc.
References ion::port::ERROR.
jfieldID ion::port::android::GetStaticBooleanMember | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name | ||
) |
Definition at line 109 of file jniutil.cc.
References GetStaticMember().
jfieldID ion::port::android::GetStaticIntMember | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name | ||
) |
Definition at line 99 of file jniutil.cc.
References GetStaticMember().
jfieldID ion::port::android::GetStaticLongMember | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name | ||
) |
Definition at line 104 of file jniutil.cc.
References GetStaticMember().
jfieldID ion::port::android::GetStaticMember | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name, | ||
const char * | type | ||
) |
Definition at line 139 of file jniutil.cc.
References ion::port::ERROR.
Referenced by GetStaticBooleanMember(), GetStaticIntMember(), GetStaticLongMember(), and GetStaticStringMember().
jmethodID ion::port::android::GetStaticMethod | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name, | ||
const char * | signature | ||
) |
Definition at line 66 of file jniutil.cc.
References ion::port::ERROR.
jfieldID ion::port::android::GetStaticStringMember | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name | ||
) |
Definition at line 94 of file jniutil.cc.
References GetStaticMember().
jfieldID ion::port::android::GetStringMember | ( | JNIEnv * | env, |
jclass | clazz, | ||
const char * | class_name, | ||
const char * | name | ||
) |
Definition at line 129 of file jniutil.cc.
References GetMember().
jbyteArray ion::port::android::JavaByteArray | ( | JNIEnv * | env, |
const std::string & | bytes | ||
) |
Definition at line 176 of file jniutil.cc.
jbyteArray ion::port::android::JavaByteArray | ( | JNIEnv * | env, |
const jbyte * | data, | ||
jsize | size | ||
) |
Definition at line 181 of file jniutil.cc.
void ion::port::android::JavaGetByteArray | ( | JNIEnv * | env, |
jbyteArray | array, | ||
jsize | first, | ||
jsize | size, | ||
char * | out | ||
) |
Definition at line 190 of file jniutil.cc.
References ion::port::ERROR.
jstring ion::port::android::JavaString | ( | JNIEnv * | env, |
const std::string & | s | ||
) |
Definition at line 172 of file jniutil.cc.
jobjectArray ion::port::android::JavaStringArray | ( | JNIEnv * | env, |
int | length | ||
) |
Definition at line 167 of file jniutil.cc.
void ion::port::android::SetJVM | ( | JavaVM * | jvm | ) |
Set the pointer to the JavaVM.
SetJVM(jvm); FindClassGlobal(env, "path/to/my/MyClass");
Definition at line 34 of file jniutil.cc.
References s_jvm.
JavaVM* ion::port::android::s_jvm = NULL |
Definition at line 28 of file jniutil.cc.