Home
last modified time | relevance | path

Searched refs:JNIEnv (Results 1 – 14 of 14) sorted by relevance

/dalvik/libnativehelper/include/nativehelper/
Djni.h153 typedef _JNIEnv JNIEnv; typedef
156 typedef const struct JNINativeInterface* JNIEnv; typedef
169 jint (*GetVersion)(JNIEnv *);
171 jclass (*DefineClass)(JNIEnv*, const char*, jobject, const jbyte*,
173 jclass (*FindClass)(JNIEnv*, const char*);
175 jmethodID (*FromReflectedMethod)(JNIEnv*, jobject);
176 jfieldID (*FromReflectedField)(JNIEnv*, jobject);
178 jobject (*ToReflectedMethod)(JNIEnv*, jclass, jmethodID, jboolean);
180 jclass (*GetSuperclass)(JNIEnv*, jclass);
181 jboolean (*IsAssignableFrom)(JNIEnv*, jclass, jclass);
[all …]
DJNIHelp.h114 inline int jniRegisterNativeMethods(JNIEnv* env, const char* className, const JNINativeMethod* gMet… in jniRegisterNativeMethods()
118 inline int jniThrowException(JNIEnv* env, const char* className, const char* msg) { in jniThrowException()
128 inline int jniThrowExceptionFmt(JNIEnv* env, const char* className, const char* fmt, ...) { in jniThrowExceptionFmt()
135 inline int jniThrowNullPointerException(JNIEnv* env, const char* msg) { in jniThrowNullPointerException()
139 inline int jniThrowRuntimeException(JNIEnv* env, const char* msg) { in jniThrowRuntimeException()
143 inline int jniThrowIOException(JNIEnv* env, int errnum) { in jniThrowIOException()
147 inline jobject jniCreateFileDescriptor(JNIEnv* env, int fd) { in jniCreateFileDescriptor()
151 inline int jniGetFDFromFileDescriptor(JNIEnv* env, jobject fileDescriptor) { in jniGetFDFromFileDescriptor()
155 inline void jniSetFileDescriptorOfFD(JNIEnv* env, jobject fileDescriptor, int value) { in jniSetFileDescriptorOfFD()
159 inline void jniLogException(JNIEnv* env, int priority, const char* tag, jthrowable exception = NULL…
/dalvik/libnativehelper/
DJNIHelp.cpp43 (*mEnv)->DeleteLocalRef(reinterpret_cast<JNIEnv*>(mEnv), mLocalRef); in reset()
62 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in findClass()
69 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in jniRegisterNativeMethods()
93 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in getExceptionSummary0()
137 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in getExceptionSummary()
150 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in getStackTrace()
207 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in jniThrowException()
258 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in jniLogException()
312 int registerJniHelp(JNIEnv* env) { in registerJniHelp()
335 JNIEnv* e = reinterpret_cast<JNIEnv*>(env); in jniCreateFileDescriptor()
[all …]
DRegister.cpp19 extern int registerCoreLibrariesJni(JNIEnv* env);
20 extern int registerJniHelp(JNIEnv* env);
25 int jniRegisterSystemMethods(JNIEnv* env) { in jniRegisterSystemMethods()
/dalvik/vm/
DJniInternal.h100 INLINE void dvmSetJniEnvThreadId(JNIEnv* pEnv, Thread* self) in dvmSetJniEnvThreadId()
127 Object* dvmDecodeIndirectRef(JNIEnv* env, jobject jobj);
133 jobjectRefType dvmGetJNIRefType(JNIEnv* env, jobject jobj);
144 JNIEnv* dvmCreateJNIEnv(Thread* self);
145 void dvmDestroyJNIEnv(JNIEnv* env);
DCheckJni.cpp157 static inline const JNINativeInterface* baseEnv(JNIEnv* env) { in baseEnv()
167 explicit ScopedJniThreadState(JNIEnv* env) { in ScopedJniThreadState()
208 explicit ScopedCheck(JNIEnv* env, int flags, const char* functionName) { in ScopedCheck()
567 JNIEnv* env = va_arg(ap, JNIEnv*); in check()
706 JNIEnv* mEnv;
712 void init(JNIEnv* env, int flags, const char* functionName, bool hasMethod) { in init()
1255 static void* createGuardedPACopy(JNIEnv* env, const jarray jarr, jboolean* isCopy) { in createGuardedPACopy()
1272 static void* releaseGuardedPACopy(JNIEnv* env, jarray jarr, void* dataBuf, int mode) { in releaseGuardedPACopy()
1317 static jint Check_GetVersion(JNIEnv* env) { in Check_GetVersion()
1322 static jclass Check_DefineClass(JNIEnv* env, const char* name, jobject loader, in Check_DefineClass()
[all …]
DJni.cpp198 static inline Thread* self(JNIEnv* env) { in self()
221 explicit ScopedJniThreadState(JNIEnv* env) { in ScopedJniThreadState()
307 static inline IndirectRefTable* getLocalRefTable(JNIEnv* env) { in getLocalRefTable()
321 Object* dvmDecodeIndirectRef(JNIEnv* env, jobject jobj) { in dvmDecodeIndirectRef()
386 static jobject addLocalReference(JNIEnv* env, Object* obj) { in addLocalReference()
433 static bool ensureLocalCapacity(JNIEnv* env, int capacity) { in ensureLocalCapacity()
443 static void deleteLocalReference(JNIEnv* env, jobject jobj) { in deleteLocalReference()
678 JNIEnv* env = self->jniEnv; in dvmDumpJniReferenceTables()
697 jobjectRefType dvmGetJNIRefType(JNIEnv* env, jobject jobj) { in dvmGetJNIRefType()
1111 static inline void convertReferenceResult(JNIEnv* env, JValue* pResult, in convertReferenceResult()
[all …]
DInit.h27 bool ignoreUnrecognized, JNIEnv* pEnv);
DThread.h240 JNIEnv* jniEnv;
325 bool dvmPrepMainForJni(JNIEnv* pEnv);
556 INLINE JNIEnv* dvmGetThreadJNIEnv(Thread* self) { return self->jniEnv; } in dvmGetThreadJNIEnv()
557 INLINE void dvmSetThreadJNIEnv(Thread* self, JNIEnv* env) { self->jniEnv = env;} in dvmSetThreadJNIEnv()
DInit.cpp41 extern int jniRegisterSystemMethods(JNIEnv* env);
44 static bool registerSystemNatives(JNIEnv* pEnv);
1177 bool ignoreUnrecognized, JNIEnv* pEnv) in dvmStartup()
1403 static bool registerSystemNatives(JNIEnv* pEnv) in registerSystemNatives()
DThread.cpp652 bool dvmPrepMainForJni(JNIEnv* pEnv) in dvmPrepMainForJni()
666 dvmSetThreadJNIEnv(self, (JNIEnv*) pEnv); in dvmPrepMainForJni()
/dalvik/dalvikvm/
DMain.cpp44 static jobjectArray createStringArray(JNIEnv* env, char* const argv[], int argc) in createStringArray()
92 static int methodIsPublic(JNIEnv* env, jclass clazz, jmethodID methodId) in methodIsPublic()
144 JNIEnv* env = NULL; in main()
/dalvik/vm/arch/x86-atom/
DCall386ABI.S113 movl 4(%ebp), %ecx # %ecx<- JNIEnv
120 movl %ecx, -8(%esp) # push JNIEnv as arg #1
/dalvik/vm/interp/
DStack.cpp465 JNIEnv* env = self->jniEnv; in dvmCallMethodV()
568 JNIEnv* env = self->jniEnv; in dvmCallMethodA()