Home | History | Annotate | Download | only in vm

Lines Matching refs:jniEnv

127 Each Thread/JNIEnv points to an IndirectRefTable.
202 * If the caller has passed the wrong JNIEnv in, we're going to be accessing unsynchronized
209 explicit ScopedJniThreadState(JNIEnv* env) {
287 * Find the JNIEnv associated with the current thread.
715 // need the extra JNI arguments (the JNIEnv* and the jclass).
748 // be supplying a JNIEnv* or a jobject 'this', you're effectively
1079 static inline void convertReferenceResult(JNIEnv* env, JValue* pResult,
1150 JNIEnv* env = self->jniEnv;
1179 static jint GetVersion(JNIEnv* env) {
1194 static jclass DefineClass(JNIEnv* env, const char *name, jobject loader,
1221 static jclass FindClass(JNIEnv* env, const char* name) {
1260 static jclass GetSuperclass(JNIEnv* env, jclass jclazz) {
1271 static jboolean IsAssignableFrom(JNIEnv* env, jclass jclazz1, jclass jclazz2) {
1281 static jmethodID FromReflectedMethod(JNIEnv* env, jobject jmethod) {
1290 static jfieldID FromReflectedField(JNIEnv* env, jobject jfield) {
1303 static jobject ToReflectedMethod(JNIEnv* env, jclass jcls, jmethodID methodID, jboolean isStatic) {
1318 static jobject ToReflectedField(JNIEnv* env, jclass jcls, jfieldID fieldID, jboolean isStatic) {
1329 static jint Throw(JNIEnv* env, jthrowable jobj) {
1343 static jint ThrowNew(JNIEnv* env, jclass jclazz, const char* message) {
1359 static jthrowable ExceptionOccurred(JNIEnv* env) {
1379 static void ExceptionDescribe(JNIEnv* env) {
1394 static void ExceptionClear(JNIEnv* env) {
1402 static void FatalError(JNIEnv* env, const char* msg) {
1414 static jint PushLocalFrame(JNIEnv* env, jint capacity) {
1431 static jobject PopLocalFrame(JNIEnv* env, jobject jresult) {
1445 static jobject NewGlobalRef(JNIEnv* env, jobject jobj) {
1454 static void DeleteGlobalRef(JNIEnv* env, jobject jglobalRef) {
1463 static jobject NewLocalRef(JNIEnv* env, jobject jobj) {
1472 static void DeleteLocalRef(JNIEnv* env, jobject jlocalRef) {
1481 static jint EnsureLocalCapacity(JNIEnv* env, jint capacity) {
1494 static jboolean IsSameObject(JNIEnv* env, jobject jref1, jobject jref2) {
1504 static jobject AllocObject(JNIEnv* env, jclass jclazz) {
1522 static jobject NewObject(JNIEnv* env, jclass jclazz, jmethodID methodID, ...) {
1543 static jobject NewObjectV(JNIEnv* env, jclass jclazz, jmethodID methodID, va_list args) {
1561 static jobject NewObjectA(JNIEnv* env, jclass jclazz, jmethodID methodID, jvalue* args) {
1584 static jclass GetObjectClass(JNIEnv* env, jobject jobj) {
1596 static jboolean IsInstanceOf(JNIEnv* env, jobject jobj, jclass jclazz) {
1623 static jmethodID GetMethodID(JNIEnv* env, jclass jclazz, const char* name, const char* sig) {
1670 static jfieldID GetFieldID(JNIEnv* env, jclass jclazz, const char* name, const char* sig) {
1692 static jmethodID GetStaticMethodID(JNIEnv* env, jclass jclazz, const char* name, const char* sig) {
1726 static jfieldID GetStaticFieldID(JNIEnv* env, jclass jclazz, const char* name, const char* sig) {
1750 static _ctype GetStatic##_jname##Field(JNIEnv* env, jclass jclazz, \
1788 static void SetStatic##_jname##Field(JNIEnv* env, jclass jclazz, \
1826 static _ctype Get##_jname##Field(JNIEnv* env, jobject jobj, \
1866 static void Set##_jname##Field(JNIEnv* env, jobject jobj, \
1907 static _ctype Call##_jname##Method(JNIEnv* env, jobject jobj, \
1926 static _ctype Call##_jname##MethodV(JNIEnv* env, jobject jobj, \
1942 static _ctype Call##_jname##MethodA(JNIEnv* env, jobject jobj, \
1977 static _ctype CallNonvirtual##_jname##Method(JNIEnv* env, jobject jobj, \
1997 static _ctype CallNonvirtual##_jname##MethodV(JNIEnv* env, jobject jobj,\
2014 static _ctype CallNonvirtual##_jname##MethodA(JNIEnv* env, jobject jobj,\
2047 static _ctype CallStatic##_jname##Method(JNIEnv* env, jclass jclazz, \
2061 static _ctype CallStatic##_jname##MethodV(JNIEnv* env, jclass jclazz, \
2072 static _ctype CallStatic##_jname##MethodA(JNIEnv* env, jclass jclazz, \
2100 static jstring NewString(JNIEnv* env, const jchar* unicodeChars, jsize len) {
2113 static jsize GetStringLength(JNIEnv* env, jstring jstr) {
2126 static const jchar* GetStringChars(JNIEnv* env, jstring jstr, jboolean* isCopy) {
2144 static void ReleaseStringChars(JNIEnv* env, jstring jstr, const jchar* chars) {
2157 static jstring NewStringUTF(JNIEnv* env, const char* bytes) {
2172 static jsize GetStringUTFLength(JNIEnv* env, jstring jstr) {
2195 static const char* GetStringUTFChars(JNIEnv* env, jstring jstr, jboolean* isCopy) {
2216 static void ReleaseStringUTFChars(JNIEnv* env, jstring jstr, const char* utf) {
2224 static jsize GetArrayLength(JNIEnv* env, jarray jarr) {
2233 static jobjectArray NewObjectArray(JNIEnv* env, jsize length,
2281 static jobject GetObjectArrayElement(JNIEnv* env, jobjectArray jarr, jsize index) {
2296 static void SetObjectArrayElement(JNIEnv* env, jobjectArray jarr, jsize index, jobject jobj) {
2323 static _artype New##_jname##Array(JNIEnv* env, jsize length) { \
2352 static _ctype* Get##_jname##ArrayElements(JNIEnv* env, \
2373 static void Release##_jname##ArrayElements(JNIEnv* env, \
2397 static void Get##_jname##ArrayRegion(JNIEnv* env, \
2414 static void Set##_jname##ArrayRegion(JNIEnv* env, \
2455 static jint RegisterNatives(JNIEnv* env, jclass jclazz,
2503 static jint UnregisterNatives(JNIEnv* env, jclass jclazz) {
2521 static jint MonitorEnter(JNIEnv* env, jobject jobj) {
2538 static jint MonitorExit(JNIEnv
2551 static jint GetJavaVM(JNIEnv* env, JavaVM** vm) {
2560 static void GetStringRegion(JNIEnv* env, jstring jstr, jsize start, jsize len, jchar* buf) {
2575 static void GetStringUTFRegion(JNIEnv* env, jstring jstr, jsize start, jsize len, char* buf) {
2594 static void* GetPrimitiveArrayCritical(JNIEnv* env, jarray jarr, jboolean* isCopy) {
2608 static void ReleasePrimitiveArrayCritical(JNIEnv* env, jarray jarr, void* carray, jint mode) {
2619 static const jchar* GetStringCritical(JNIEnv* env, jstring jstr, jboolean* isCopy) {
2637 static void ReleaseStringCritical(JNIEnv* env, jstring jstr, const jchar* carray) {
2647 static jweak NewWeakGlobalRef(JNIEnv* env, jobject jobj) {
2656 static void DeleteWeakGlobalRef(JNIEnv* env, jweak wref) {
2666 static jboolean ExceptionCheck(JNIEnv* env) {
2679 static jobjectRefType GetObjectRefType(JNIEnv* env, jobject jobj) {
2690 static jobject NewDirectByteBuffer(JNIEnv* env, void* address, jlong capacity) {
2719 static void* GetDirectBufferAddress(JNIEnv* env, jobject jbuf) {
2734 static jlong GetDirectBufferCapacity(JNIEnv* env, jobject jbuf) {
2771 * JNIEnv pointer. Don't do excess work for that case.
2773 static jint attachThread(JavaVM* vm, JNIEnv** p_env, void* thr_args, bool isDaemon) {
2781 *p_env = self->jniEnv;
2839 *p_env = self->jniEnv;
2850 static jint AttachCurrentThread(JavaVM* vm, JNIEnv** p_env, void* thr_args) {
2857 static jint AttachCurrentThreadAsDaemon(JavaVM* vm, JNIEnv** p_env, void* thr_args)
2883 * If current thread is attached to VM, return the associated JNIEnv.
2936 JNIEnv* tmpEnv;
3275 * Create a new JNIEnv struct and add it to the VM's list.
3280 JNIEnv* dvmCreateJNIEnv(Thread* self) {
3291 dvmSetJniEnvThreadId((JNIEnv*) newEnv, self);
3317 return (JNIEnv*) newEnv;
3321 * Remove a JNIEnv struct from the list and free it.
3323 void dvmDestroyJNIEnv(JNIEnv* env) {
3361 ALOGE("dvmLateEnableCheckedJni: thread has no JNIEnv");
3406 jint JNI_CreateJavaVM(JavaVM** p_vm, JNIEnv** p_env, void* vm_args) {
3418 * Set up structures for JNIEnv and VM.
3493 * Create a JNIEnv for the main thread. We need to have something set up
3502 dvmStartup(argc, argv.get(), args->ignoreUnrecognized, (JNIEnv*)pEnv);
3516 *p_env = (JNIEnv*) pEnv;