Home | History | Annotate | Download | only in libnativehelper

Lines Matching full:classname

65 static jclass findClass(C_JNIEnv* env, const char* className) {
67 return (*env)->FindClass(e, className);
70 extern "C" int jniRegisterNativeMethods(C_JNIEnv* env, const char* className,
75 ALOGV("Registering %s's %d native methods...", className, numMethods);
77 scoped_local_ref<jclass> c(env, findClass(env, className));
80 asprintf(&msg, "Native registration unable to find class '%s'; aborting...", className);
86 asprintf(&msg, "RegisterNatives failed for '%s'; aborting...", className);
207 extern "C" int jniThrowException(C_JNIEnv* env, const char* className, const char* msg) {
218 ALOGW("Discarding pending exception (%s) to throw %s", text.c_str(), className);
222 scoped_local_ref<jclass> exceptionClass(env, findClass(env, className));
224 ALOGE("Unable to find exception class %s", className);
230 ALOGE("Failed throwing '%s' '%s'", className, msg);
238 int jniThrowExceptionFmt(C_JNIEnv* env, const char* className, const char* fmt, va_list args) {
241 return jniThrowException(env, className, msgBuf);