Lines Matching refs:env

33 static void throwException(JNIEnv* env, jclass /*clazz*/, jstring className, jstring message) {  in throwException()  argument
34 ScopedUtfChars c(env, className); in throwException()
35 ScopedUtfChars m(env, message); in throwException()
36 jniThrowException(env, c.c_str(), m.c_str()); in throwException()
39 static void throwExceptionWithIntFormat(JNIEnv* env, in throwExceptionWithIntFormat() argument
44 ScopedUtfChars c(env, className); in throwExceptionWithIntFormat()
45 ScopedUtfChars f(env, format); in throwExceptionWithIntFormat()
46 jniThrowExceptionFmt(env, c.c_str(), f.c_str(), value); in throwExceptionWithIntFormat()
49 static void throwNullPointerException(JNIEnv* env, in throwNullPointerException() argument
52 ScopedUtfChars m(env, message); in throwNullPointerException()
53 jniThrowNullPointerException(env, m.c_str()); in throwNullPointerException()
56 static void throwRuntimeException(JNIEnv* env, jclass /*clazz*/, jstring message) { in throwRuntimeException() argument
57 ScopedUtfChars m(env, message); in throwRuntimeException()
58 jniThrowRuntimeException(env, m.c_str()); in throwRuntimeException()
61 static void throwIOException(JNIEnv* env, jclass /*clazz*/, jint cause) { in throwIOException() argument
62 jniThrowIOException(env, cause); in throwIOException()
65 static void throwErrnoException(JNIEnv* env, jclass /*clazz*/, jstring functionName, jint cause) { in throwErrnoException() argument
66 ScopedUtfChars m(env, functionName); in throwErrnoException()
67 jniThrowErrnoException(env, m.c_str(), cause); in throwErrnoException()
70 static void logException(JNIEnv* env, jclass /*clazz*/, jthrowable throwable) { in logException() argument
71 jniLogException(env, ANDROID_LOG_VERBOSE, __FILE__, throwable); in logException()
74 static jobject fileDescriptorCreate(JNIEnv* env, jclass /*clazz*/, jint unix_fd) { in fileDescriptorCreate() argument
75 return jniCreateFileDescriptor(env, unix_fd); in fileDescriptorCreate()
78 static jint fileDescriptorGetFD(JNIEnv* env, jclass /*clazz*/, jobject jiofd) { in fileDescriptorGetFD() argument
79 return jniGetFDFromFileDescriptor(env, jiofd); in fileDescriptorGetFD()
82 static void fileDescriptorSetFD(JNIEnv* env, jclass /*clazz*/, jobject jiofd, jint unix_fd) { in fileDescriptorSetFD() argument
83 jniSetFileDescriptorOfFD(env, jiofd, unix_fd); in fileDescriptorSetFD()
86 static jstring createString(JNIEnv* env, jclass /*clazz*/, jstring value) { in createString() argument
87 ScopedStringChars ssc(env, value); in createString()
88 return jniCreateString(env, ssc.get(), ssc.size()); in createString()
94 JNIEnv* env; in JNI_OnLoad() local
95 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) { in JNI_OnLoad()
134 int rc = jniRegisterNativeMethods(env, in JNI_OnLoad()