Lines Matching refs:env
43 int jniRegisterNativeMethods(C_JNIEnv* env, const char* className, const JNINativeMethod* gMethods, int numMethods);
59 int jniThrowException(C_JNIEnv* env, const char* className, const char* msg);
64 int jniThrowNullPointerException(C_JNIEnv* env, const char* msg);
69 int jniThrowRuntimeException(C_JNIEnv* env, const char* msg);
74 int jniThrowIOException(C_JNIEnv* env, int errnum);
87 jobject jniCreateFileDescriptor(C_JNIEnv* env, int fd);
92 int jniGetFDFromFileDescriptor(C_JNIEnv* env, jobject fileDescriptor);
97 void jniSetFileDescriptorOfFD(C_JNIEnv* env, jobject fileDescriptor, int value);
102 jobject jniGetReferent(C_JNIEnv* env, jobject ref);
108 void jniLogException(C_JNIEnv* env, int priority, const char* tag, jthrowable exception);
120 inline int jniRegisterNativeMethods(JNIEnv* env, const char* className, const JNINativeMethod* gMethods, int numMethods) {
121 return jniRegisterNativeMethods(&env->functions, className, gMethods, numMethods);
124 inline int jniThrowException(JNIEnv* env, const char* className, const char* msg) {
125 return jniThrowException(&env->functions, className, msg);
128 extern "C" int jniThrowExceptionFmt(C_JNIEnv* env, const char* className, const char* fmt, va_list args);
134 inline int jniThrowExceptionFmt(JNIEnv* env, const char* className, const char* fmt, ...) {
137 return jniThrowExceptionFmt(&env->functions, className, fmt, args);
141 inline int jniThrowNullPointerException(JNIEnv* env, const char* msg) {
142 return jniThrowNullPointerException(&env->functions, msg);
145 inline int jniThrowRuntimeException(JNIEnv* env, const char* msg) {
146 return jniThrowRuntimeException(&env->functions, msg);
149 inline int jniThrowIOException(JNIEnv* env, int errnum) {
150 return jniThrowIOException(&env->functions, errnum);
153 inline jobject jniCreateFileDescriptor(JNIEnv* env, int fd) {
154 return jniCreateFileDescriptor(&env->functions, fd);
157 inline int jniGetFDFromFileDescriptor(JNIEnv* env, jobject fileDescriptor) {
158 return jniGetFDFromFileDescriptor(&env->functions, fileDescriptor);
161 inline void jniSetFileDescriptorOfFD(JNIEnv* env, jobject fileDescriptor, int value) {
162 jniSetFileDescriptorOfFD(&env->functions, fileDescriptor, value);
165 inline jobject jniGetReferent(JNIEnv* env, jobject ref) {
166 return jniGetReferent(&env->functions, ref);
169 inline void jniLogException(JNIEnv* env, int priority, const char* tag, jthrowable exception = NULL) {
170 jniLogException(&env->functions, priority, tag, exception);
179 #define LOG_EX(env, priority, tag, ...) \
180 IF_ALOG(priority, tag) jniLogException(env, ANDROID_##priority, tag, ##__VA_ARGS__)
181 #define LOGV_EX(env, ...) LOG_EX(env, LOG_VERBOSE, LOG_TAG, ##__VA_ARGS__)
182 #define LOGD_EX(env, ...) LOG_EX(env, LOG_DEBUG, LOG_TAG, ##__VA_ARGS__)
183 #define LOGI_EX(env, ...) LOG_EX(env, LOG_INFO, LOG_TAG, ##__VA_ARGS__)
184 #define LOGW_EX(env, ...) LOG_EX(env, LOG_WARN, LOG_TAG, ##__VA_ARGS__)
185 #define LOGE_EX(env, ...) LOG_EX(env, LOG_ERROR, LOG_TAG, ##__VA_ARGS__)