Home
last modified time | relevance | path

Searched defs:env (Results 1 – 13 of 13) sorted by relevance

/libnativehelper/
DJniConstants.cpp85 jclass FindClass(JNIEnv* env, const char* name) { in FindClass()
91 jfieldID FindField(JNIEnv* env, jclass klass, const char* name, const char* desc) { in FindField()
97 jmethodID FindMethod(JNIEnv* env, jclass klass, const char* name, const char* signature) { in FindMethod()
103 jmethodID FindStaticMethod(JNIEnv* env, jclass klass, const char* name, const char* signature) { in FindStaticMethod()
111 jclass JniConstants::GetFileDescriptorClass(JNIEnv* env) { in GetFileDescriptorClass()
116 jclass JniConstants::GetNioAccessClass(JNIEnv* env) { in GetNioAccessClass()
121 jclass JniConstants::GetNioBufferClass(JNIEnv* env) { in GetNioBufferClass()
126 jclass JniConstants::GetReferenceClass(JNIEnv* env) { in GetReferenceClass()
131 jclass JniConstants::GetStringClass(JNIEnv* env) { in GetStringClass()
136 jfieldID JniConstants::GetFileDescriptorDescriptorField(JNIEnv* env) { in GetFileDescriptorDescriptorField()
[all …]
DJNIHelp.cpp34 explicit scoped_local_ref(C_JNIEnv* env, T localRef = NULL) in scoped_local_ref()
61 static jclass findClass(C_JNIEnv* env, const char* className) { in findClass()
66 MODULE_API int jniRegisterNativeMethods(C_JNIEnv* env, const char* className, in jniRegisterNativeMethods()
90 static bool getExceptionSummary(C_JNIEnv* env, jthrowable exception, std::string& result) { in getExceptionSummary()
141 static bool getStackTrace(C_JNIEnv* env, jthrowable exception, std::string& result) { in getStackTrace()
199 MODULE_API int jniThrowException(C_JNIEnv* env, const char* className, const char* msg) { in jniThrowException()
230 MODULE_API int jniThrowExceptionFmt(C_JNIEnv* env, const char* className, const char* fmt, va_list … in jniThrowExceptionFmt()
236 MODULE_API int jniThrowNullPointerException(C_JNIEnv* env, const char* msg) { in jniThrowNullPointerException()
240 MODULE_API int jniThrowRuntimeException(C_JNIEnv* env, const char* msg) { in jniThrowRuntimeException()
244 MODULE_API int jniThrowIOException(C_JNIEnv* env, int errnum) { in jniThrowIOException()
[all …]
DtoStringArray.cpp45 MODULE_API jobjectArray newStringArray(JNIEnv* env, size_t count) { in newStringArray()
49 MODULE_API jobjectArray toStringArray(JNIEnv* env, const char* const* strings) { in toStringArray()
/libnativehelper/include/nativehelper/
DJNIHelp.h194 inline int jniRegisterNativeMethods(JNIEnv* env, const char* className, const JNINativeMethod* gMet… in jniRegisterNativeMethods()
198 inline int jniThrowException(JNIEnv* env, const char* className, const char* msg) { in jniThrowException()
206 inline int jniThrowExceptionFmt(JNIEnv* env, const char* className, const char* fmt, ...) { in jniThrowExceptionFmt()
213 inline int jniThrowNullPointerException(JNIEnv* env, const char* msg) { in jniThrowNullPointerException()
217 inline int jniThrowRuntimeException(JNIEnv* env, const char* msg) { in jniThrowRuntimeException()
221 inline int jniThrowIOException(JNIEnv* env, int errnum) { in jniThrowIOException()
225 inline jobject jniCreateFileDescriptor(JNIEnv* env, int fd) { in jniCreateFileDescriptor()
229 inline int jniGetFDFromFileDescriptor(JNIEnv* env, jobject fileDescriptor) { in jniGetFDFromFileDescriptor()
233 inline void jniSetFileDescriptorOfFD(JNIEnv* env, jobject fileDescriptor, int value) { in jniSetFileDescriptorOfFD()
237 inline jlong jniGetOwnerIdFromFileDescriptor(JNIEnv* env, jobject fileDescriptor) { in jniGetOwnerIdFromFileDescriptor()
[all …]
DtoStringArray.h36 jobjectArray toStringArray(JNIEnv* env, Counter* counter, Getter* getter) { in toStringArray()
70 inline jobjectArray toStringArray(JNIEnv* env, const std::vector<std::string>& strings) { in toStringArray()
/libnativehelper/header_only_include/nativehelper/
Dscoped_bytes.h32 ScopedBytes(JNIEnv* env, jobject object) in ScopedBytes()
69 ScopedBytesRO(JNIEnv* env, jobject object) : ScopedBytes<true>(env, object) {} in ScopedBytesRO()
77 ScopedBytesRW(JNIEnv* env, jobject object) : ScopedBytes<false>(env, object) {} in ScopedBytesRW()
Dscoped_local_ref.h29 ScopedLocalRef(JNIEnv* env, T localRef) : mEnv(env), mLocalRef(localRef) { in ScopedLocalRef()
35 explicit ScopedLocalRef(JNIEnv* env) : mEnv(env), mLocalRef(nullptr) { in ScopedLocalRef()
Dscoped_local_frame.h25 explicit ScopedLocalFrame(JNIEnv* env) : mEnv(env) { in ScopedLocalFrame()
Dnativehelper_utils.h32 static inline int jniThrowNullPointerException(JNIEnv* env, const char* msg) { in jniThrowNullPointerException()
Dscoped_string_chars.h34 ScopedStringChars(JNIEnv* env, jstring s) : env_(env), string_(s), size_(0) { in ScopedStringChars()
Dscoped_utf_chars.h36 ScopedUtfChars(JNIEnv* env, jstring s) : env_(env), string_(s) { in ScopedUtfChars()
/libnativehelper/tests/
DJniSafeRegisterNativeMethods_test.cpp903 static void android_os_Parcel_writeLong(JNIEnv* env, in android_os_Parcel_writeLong()
907 static void android_os_Parcel_writeFloat(JNIEnv* env, in android_os_Parcel_writeFloat()
911 static void android_os_Parcel_writeDouble(JNIEnv* env, in android_os_Parcel_writeDouble()
915 static void android_os_Parcel_writeString(JNIEnv* env, in android_os_Parcel_writeString()
919 static void android_os_Parcel_writeStrongBinder(JNIEnv* env, in android_os_Parcel_writeStrongBinder()
923 static jlong android_os_Parcel_writeFileDescriptor(JNIEnv* env, in android_os_Parcel_writeFileDescriptor()
927 static jbyteArray android_os_Parcel_createByteArray(JNIEnv* env, in android_os_Parcel_createByteArray()
931 static jboolean android_os_Parcel_readByteArray(JNIEnv* env, in android_os_Parcel_readByteArray()
936 static jbyteArray android_os_Parcel_readBlob(JNIEnv* env, in android_os_Parcel_readBlob()
947 static jstring android_os_Parcel_readString(JNIEnv* env, in android_os_Parcel_readString()
[all …]
/libnativehelper/tests/jni_gtest/base/nativehelper/
Djni_gtest.h103 void DestroyJNIEnv(JNIEnv* env) { in DestroyJNIEnv()
105 delete env; in DestroyJNIEnv() local