Home
last modified time | relevance | path

Searched refs:message (Results 1 – 5 of 5) sorted by relevance

/libnativehelper/tests_mts/src/com/android/art/libnativehelper/
DJniHelpTest.java37 private static native void throwException(String className, String message); in throwException() argument
41 private static native void throwNullPointerException(String message); in throwNullPointerException() argument
42 private static native void throwRuntimeException(String message); in throwRuntimeException() argument
54 final String message = "Because test"; in testThrowException() local
56 throwException("java/lang/RuntimeException", message); in testThrowException()
59 assertEquals(message, e.getMessage()); in testThrowException()
74 final String message = "Because another test"; in testThrowNullPointerException() local
76 throwNullPointerException(message); in testThrowNullPointerException()
79 assertEquals(message, e.getMessage()); in testThrowNullPointerException()
84 final String message = "Because test again"; in testThrowRuntimeException() local
[all …]
/libnativehelper/tests_mts/jni/
Djni_helper_jni.cpp33 static void throwException(JNIEnv* env, jclass /*clazz*/, jstring className, jstring message) { in throwException() argument
35 ScopedUtfChars m(env, message); in throwException()
51 jstring message) { in throwNullPointerException() argument
52 ScopedUtfChars m(env, message); in throwNullPointerException()
56 static void throwRuntimeException(JNIEnv* env, jclass /*clazz*/, jstring message) { in throwRuntimeException() argument
57 ScopedUtfChars m(env, message); in throwRuntimeException()
/libnativehelper/
DJNIHelp.c106 jstring message = (jstring) (*env)->CallObjectMethod(env, thrown, getMessage); in GetExceptionSummary() local
107 if (message != NULL) { in GetExceptionSummary()
108 success = (ExpandableStringAppend(dst, ": ") && AppendJString(env, message, dst)); in GetExceptionSummary()
125 (*env)->DeleteLocalRef(env, message); in GetExceptionSummary()
126 message = NULL; in GetExceptionSummary()
360 int jniThrowException(JNIEnv* env, const char* className, const char* message) { in jniThrowException() argument
361 return THROW_EXCEPTION_WITH_MESSAGE(env, className, "(Ljava/lang/String;)V", message); in jniThrowException()
380 const char* message = platformStrError(errno_value, buffer, sizeof(buffer)); in jniThrowIOException() local
381 return jniThrowException(env, "java/io/IOException", message); in jniThrowIOException()
/libnativehelper/include/nativehelper/
DJNIHelp.h159 jstring message = (jstring)env->CallObjectMethod(thrown, getMessage); in GetExceptionSummary() local
160 if (message == NULL) { in GetExceptionSummary()
164 bool success = (ExpandableStringAppend(dst, ": ") && AppendJString(env, message, dst)); in GetExceptionSummary()
177 env->DeleteLocalRef(message); in GetExceptionSummary()
178 message = NULL; in GetExceptionSummary()
470 const char* message = platformStrError(errno_value, buffer, sizeof(buffer)); in jniThrowIOException() local
471 return jniThrowException(env, "java/io/IOException", message); in jniThrowIOException()
/libnativehelper/include_jni/
Djni.h526 jint ThrowNew(jclass clazz, const char* message) in ThrowNew()
527 { return functions->ThrowNew(this, clazz, message); } in ThrowNew()