Home
last modified time | relevance | path

Searched refs:jthrowable (Results 1 – 25 of 36) sorted by relevance

12

/aosp12/libnativehelper/
H A DJNIHelp.c80 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 DJNIHelp.h128 [[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 Dandroid_os_MessageQueue.cpp46 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 Dandroid_util_Binder.cpp215 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 Dandroid_os_MessageQueue.h55 virtual void raiseException(JNIEnv* env, const char* msg, jthrowable exceptionObj) = 0;
H A Dandroid_util_Binder.h39 void binder_report_exception(JNIEnv* env, jthrowable excep, const char* msg);
H A Dandroid_os_HwBinder.cpp184 jthrowable excep = env->ExceptionOccurred(); in onTransact()
/aosp12/frameworks/base/libs/hwui/jni/
H A DImageDecoder.cpp76 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 Dnative-lib.cpp32 jthrowable obj = (jthrowable)env->NewObject(cls, cid, msg, err); in ThrowErrnoException()
/aosp12/packages/modules/Connectivity/Tethering/jni/
H A Dcom_android_networkstack_tethering_BpfMap.cpp37 jthrowable cause = nullptr; in throwErrnoException()
56 env->Throw(static_cast<jthrowable>(errnoException)); in throwErrnoException()
/aosp12/libnativehelper/tests/
H A DJniSafeRegisterNativeMethods_test.cpp327 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 Dthread_stress.cc31 extern "C" JNIEXPORT void JNICALL Java_Main_printThrowable(JNIEnv*, jclass, jthrowable t) { in Java_Main_printThrowable()
/aosp12/art/test/ti-agent/
H A Dexceptions_helper.cc54 jthrowable e = jnienv->ExceptionOccurred(); in exceptionCB()
92 jthrowable e = jnienv->ExceptionOccurred(); in exceptionCatchCB()
H A Dtrace_helper.cc32 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 Dexception_event.cc48 jthrowable e = env->ExceptionOccurred(); in ClearAndPrintException()
/aosp12/libnativehelper/tests_mts/jni/
H A Djni_helper_jni.cpp70 static void logException(JNIEnv* env, jclass /*clazz*/, jthrowable throwable) { in logException()
/aosp12/frameworks/base/media/jni/
H A Dandroid_media_MediaDescrambler.cpp354 static jthrowable createServiceSpecificException( in createServiceSpecificException()
373 return (jthrowable)env->NewObject( in createServiceSpecificException()
/aosp12/system/extras/module_ndk_libs/libnativehelper/include_jni/
H A Djni.h74 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 Djni.h74 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 Djava_lang_Class.cc204 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 Dforceredefine.cc173 ScopedLocalRef<jthrowable> exc(env, env->ExceptionOccurred()); in FindClass()
/aosp12/art/test/004-JniTest/
H A Djni_test.cc367 jthrowable thrown = env->ExceptionOccurred(); in testShallowGetCallingClassLoader()
750 jthrowable thrown = env_->ExceptionOccurred(); in TestCalls()
/aosp12/art/runtime/jni/
H A Djni_internal_test.cc66 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 Dcompiler_driver_test.cc186 jthrowable exception = env_->ExceptionOccurred(); in TEST_F()
/aosp12/art/runtime/
H A Dreflection.cc505 ScopedLocalRef<jthrowable> th(soa.Env(), soa.Env()->ExceptionOccurred()); in InvokeMethodImpl()
515 soa.Env()->Throw(reinterpret_cast<jthrowable>(exception_instance)); in InvokeMethodImpl()

12