Lines Matching refs:className
68 static jclass findClass(C_JNIEnv* env, const char* className) { in findClass() argument
70 return (*env)->FindClass(e, className); in findClass()
73 extern "C" int jniRegisterNativeMethods(C_JNIEnv* env, const char* className, in jniRegisterNativeMethods() argument
78 ALOGV("Registering %s's %d native methods...", className, numMethods); in jniRegisterNativeMethods()
80 scoped_local_ref<jclass> c(env, findClass(env, className)); in jniRegisterNativeMethods()
86 className) == -1) { in jniRegisterNativeMethods()
98 if (asprintf(&tmp, "RegisterNatives failed for '%s'; aborting...", className) == -1) { in jniRegisterNativeMethods()
224 extern "C" int jniThrowException(C_JNIEnv* env, const char* className, const char* msg) { in jniThrowException() argument
235 ALOGW("Discarding pending exception (%s) to throw %s", text.c_str(), className); in jniThrowException()
239 scoped_local_ref<jclass> exceptionClass(env, findClass(env, className)); in jniThrowException()
241 ALOGE("Unable to find exception class %s", className); in jniThrowException()
247 ALOGE("Failed throwing '%s' '%s'", className, msg); in jniThrowException()
255 int jniThrowExceptionFmt(C_JNIEnv* env, const char* className, const char* fmt, va_list args) { in jniThrowExceptionFmt() argument
258 return jniThrowException(env, className, msgBuf); in jniThrowExceptionFmt()