/aosp12/libnativehelper/ |
H A D | JNIHelp.c | 80 static bool GetExceptionSummary(JNIEnv* env, jthrowable thrown, struct ExpandableString* dst) { in GetExceptionSummary() 150 static bool GetStackTrace(JNIEnv* env, jthrowable thrown, struct ExpandableString* dst) { in GetStackTrace() 188 static void GetStackTraceOrSummary(JNIEnv* env, jthrowable thrown, struct ExpandableString* dst) { in GetStackTraceOrSummary() 195 jthrowable pendingException = (*env)->ExceptionOccurred(env); in GetStackTraceOrSummary() 222 jthrowable exception = (*env)->ExceptionOccurred(env); in DiscardPendingException() 269 if ((*env)->Throw(env, (jthrowable)instance) != JNI_OK) { in ThrowException() 335 jthrowable thrown = (*env)->ExceptionOccurred(env); in jniRegisterNativeMethods() 349 void jniLogException(JNIEnv* env, int priority, const char* tag, jthrowable thrown) { in jniLogException()
|
/aosp12/libnativehelper/include/nativehelper/ |
H A D | JNIHelp.h | 128 [[maybe_unused]] static bool GetExceptionSummary(JNIEnv* env, jthrowable thrown, in GetExceptionSummary() 199 [[maybe_unused]] static bool GetStackTrace(JNIEnv* env, jthrowable thrown, in GetStackTrace() 238 [[maybe_unused]] static void GetStackTraceOrSummary(JNIEnv* env, jthrowable thrown, in GetStackTraceOrSummary() 246 jthrowable pendingException = env->ExceptionOccurred(); in GetStackTraceOrSummary() 273 jthrowable exception = env->ExceptionOccurred(); in DiscardPendingException() 325 if (env->Throw((jthrowable)instance) != JNI_OK) { in ThrowException() 376 jthrowable thrown = env->ExceptionOccurred(); in jniRegisterNativeMethods() 488 jthrowable exception = NULL) { 505 void jniLogException(JNIEnv* env, int priority, const char* tag, jthrowable thrown);
|
/aosp12/frameworks/base/core/jni/ |
H A D | android_os_MessageQueue.cpp | 46 virtual void raiseException(JNIEnv* env, const char* msg, jthrowable exceptionObj); 57 jthrowable mExceptionObj; 69 jthrowable exceptionObj = env->ExceptionOccurred(); in raiseAndClearException() 90 void NativeMessageQueue::raiseException(JNIEnv* env, const char* msg, jthrowable exceptionObj) { in raiseException() 96 mExceptionObj = jthrowable(env->NewLocalRef(exceptionObj)); in raiseException()
|
H A D | android_util_Binder.cpp | 215 static const char* GetErrorTypeName(JNIEnv* env, jthrowable error) { in GetErrorTypeName() 227 static void report_java_lang_error_fatal_error(JNIEnv* env, jthrowable error, in report_java_lang_error_fatal_error() 243 ScopedLocalRef<jthrowable> new_error(env, nullptr); in report_java_lang_error_fatal_error() 246 new_error = ScopedLocalRef<jthrowable>(env, env->ExceptionOccurred()); in report_java_lang_error_fatal_error() 255 new_error = ScopedLocalRef<jthrowable>(env, env->ExceptionOccurred()); in report_java_lang_error_fatal_error() 288 static void report_java_lang_error(JNIEnv* env, jthrowable error, const char* msg) in report_java_lang_error() 308 void binder_report_exception(JNIEnv* env, jthrowable excep, const char* msg) { in binder_report_exception() 411 ScopedLocalRef<jthrowable> excep(env, env->ExceptionOccurred()); in onTransact() 427 ScopedLocalRef<jthrowable> excep(env, env->ExceptionOccurred()); in onTransact() 579 jthrowable excep = env->ExceptionOccurred(); in binderDied() [all …]
|
H A D | android_os_MessageQueue.h | 55 virtual void raiseException(JNIEnv* env, const char* msg, jthrowable exceptionObj) = 0;
|
H A D | android_util_Binder.h | 39 void binder_report_exception(JNIEnv* env, jthrowable excep, const char* msg);
|
H A D | android_os_HwBinder.cpp | 184 jthrowable excep = env->ExceptionOccurred(); in onTransact()
|
/aosp12/frameworks/base/libs/hwui/jni/ |
H A D | ImageDecoder.cpp | 76 static jthrowable get_and_clear_exception(JNIEnv* env) { in get_and_clear_exception() 77 jthrowable jexception = env->ExceptionOccurred(); in get_and_clear_exception() 86 jthrowable cause, jobject source) { in throw_exception() 95 jthrowable exception = (jthrowable) env->NewObject(gDecodeException_class, in throw_exception() 116 if (jthrowable jexception = get_and_clear_exception(env)) { in native_create() 134 if (jthrowable jexception = get_and_clear_exception(env)) { in native_create() 336 jthrowable jexception = get_and_clear_exception(env); in ImageDecoder_nDecodeBitmap()
|
/aosp12/system/extras/simpleperf/demo/SimpleperfExampleWithNative/app/src/main/cpp/ |
H A D | native-lib.cpp | 32 jthrowable obj = (jthrowable)env->NewObject(cls, cid, msg, err); in ThrowErrnoException()
|
/aosp12/packages/modules/Connectivity/Tethering/jni/ |
H A D | com_android_networkstack_tethering_BpfMap.cpp | 37 jthrowable cause = nullptr; in throwErrnoException() 56 env->Throw(static_cast<jthrowable>(errnoException)); in throwErrnoException()
|
/aosp12/libnativehelper/tests/ |
H A D | JniSafeRegisterNativeMethods_test.cpp | 327 FN0(fl,NORMAL ,jthrowable) \ 350 FN(afl,NORMAL ,jthrowable,jthrowable) \ 637 EXPECT_NOT_EQUALISH_JNI_DESCRIPTORS("J", jthrowable); in TEST() 643 EXPECT_NOT_EQUALISH_JNI_DESCRIPTORS("[Z", jthrowable); in TEST() 667 EXPECT_EQUALISH_JNI_DESCRIPTORS("Ljava/lang/Throwable;", jthrowable); in TEST() 668 EXPECT_EQUALISH_JNI_DESCRIPTORS("Ljava/lang/Exception;", jthrowable); in TEST() 669 EXPECT_EQUALISH_JNI_DESCRIPTORS("Ljava/lang/Error;", jthrowable); in TEST()
|
/aosp12/art/test/004-ThreadStress/ |
H A D | thread_stress.cc | 31 extern "C" JNIEXPORT void JNICALL Java_Main_printThrowable(JNIEnv*, jclass, jthrowable t) { in Java_Main_printThrowable()
|
/aosp12/art/test/ti-agent/ |
H A D | exceptions_helper.cc | 54 jthrowable e = jnienv->ExceptionOccurred(); in exceptionCB() 92 jthrowable e = jnienv->ExceptionOccurred(); in exceptionCatchCB()
|
H A D | trace_helper.cc | 32 ScopedLocalRef<jthrowable> exc(env, env->ExceptionOccurred()); in IsInCallback() 46 ScopedLocalRef<jthrowable> exc(env, env->ExceptionOccurred()); in SetInCallback() 623 ScopedLocalRef<jthrowable> err(env, nullptr); in Java_art_Trace_disableTracing()
|
/aosp12/art/test/1927-exception-event/ |
H A D | exception_event.cc | 48 jthrowable e = env->ExceptionOccurred(); in ClearAndPrintException()
|
/aosp12/libnativehelper/tests_mts/jni/ |
H A D | jni_helper_jni.cpp | 70 static void logException(JNIEnv* env, jclass /*clazz*/, jthrowable throwable) { in logException()
|
/aosp12/frameworks/base/media/jni/ |
H A D | android_media_MediaDescrambler.cpp | 354 static jthrowable createServiceSpecificException( in createServiceSpecificException() 373 return (jthrowable)env->NewObject( in createServiceSpecificException()
|
/aosp12/system/extras/module_ndk_libs/libnativehelper/include_jni/ |
H A D | jni.h | 74 typedef _jthrowable* jthrowable; typedef 96 typedef jobject jthrowable; typedef 172 jint (*Throw)(JNIEnv*, jthrowable); 174 jthrowable (*ExceptionOccurred)(JNIEnv*); 523 jint Throw(jthrowable obj) in Throw() 529 jthrowable ExceptionOccurred() in ExceptionOccurred()
|
/aosp12/libnativehelper/include_jni/ |
H A D | jni.h | 74 typedef _jthrowable* jthrowable; typedef 96 typedef jobject jthrowable; typedef 172 jint (*Throw)(JNIEnv*, jthrowable); 174 jthrowable (*ExceptionOccurred)(JNIEnv*); 523 jint Throw(jthrowable obj) in Throw() 529 jthrowable ExceptionOccurred() in ExceptionOccurred()
|
/aosp12/art/runtime/native/ |
H A D | java_lang_Class.cc | 204 ScopedLocalRef<jthrowable> cause(env, env->ExceptionOccurred()); in Class_classForName() 206 jthrowable cnfe = reinterpret_cast<jthrowable>( in Class_classForName()
|
/aosp12/art/tools/jvmti-agents/simple-force-redefine/ |
H A D | forceredefine.cc | 173 ScopedLocalRef<jthrowable> exc(env, env->ExceptionOccurred()); in FindClass()
|
/aosp12/art/test/004-JniTest/ |
H A D | jni_test.cc | 367 jthrowable thrown = env->ExceptionOccurred(); in testShallowGetCallingClassLoader() 750 jthrowable thrown = env_->ExceptionOccurred(); in TestCalls()
|
/aosp12/art/runtime/jni/ |
H A D | jni_internal_test.cc | 66 jthrowable exception = env_->ExceptionOccurred(); in ExpectException() 2318 jthrowable exception = reinterpret_cast<jthrowable>(env_->AllocObject(exception_class)); in TEST_F() 2323 jthrowable thrown_exception = env_->ExceptionOccurred(); in TEST_F() 2341 jthrowable thrown_exception; in TEST_F() 2433 jthrowable thrown_exception; in TEST_F()
|
/aosp12/art/dex2oat/driver/ |
H A D | compiler_driver_test.cc | 186 jthrowable exception = env_->ExceptionOccurred(); in TEST_F()
|
/aosp12/art/runtime/ |
H A D | reflection.cc | 505 ScopedLocalRef<jthrowable> th(soa.Env(), soa.Env()->ExceptionOccurred()); in InvokeMethodImpl() 515 soa.Env()->Throw(reinterpret_cast<jthrowable>(exception_instance)); in InvokeMethodImpl()
|