From 2a3ecce0a99e7684c6ef77fab1c5f0c2642af7d6 Mon Sep 17 00:00:00 2001 From: Yin-Chia Yeh Date: Tue, 19 Sep 2017 11:23:43 -0700 Subject: [PATCH] LegacyCamera: fix wrong class name in JNI Test: class not found exception is fixed Bug: 65954232 Change-Id: I1a80e121d21f8fef027c6b3a5854285b7779bb3e --- core/jni/android_hardware_camera2_legacy_LegacyCameraDevice.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/jni/android_hardware_camera2_legacy_LegacyCameraDevice.cpp b/core/jni/android_hardware_camera2_legacy_LegacyCameraDevice.cpp index 863ca8b0bc02..b610b35e45cd 100644 --- a/core/jni/android_hardware_camera2_legacy_LegacyCameraDevice.cpp +++ b/core/jni/android_hardware_camera2_legacy_LegacyCameraDevice.cpp @@ -484,14 +484,14 @@ static jint LegacyCameraDevice_nativeDetectSurfaceUsageFlags(JNIEnv* env, jobjec sp anw; if ((anw = getNativeWindow(env, surface)) == NULL) { - jniThrowException(env, "Ljava/lang/UnsupportedOperationException;", + jniThrowException(env, "java/lang/UnsupportedOperationException;", "Could not retrieve native window from surface."); return BAD_VALUE; } int32_t usage = 0; status_t err = anw->query(anw.get(), NATIVE_WINDOW_CONSUMER_USAGE_BITS, &usage); if(err != NO_ERROR) { - jniThrowException(env, "Ljava/lang/UnsupportedOperationException;", + jniThrowException(env, "java/lang/UnsupportedOperationException;", "Error while querying surface usage bits"); return err; } @@ -511,7 +511,7 @@ static jint LegacyCameraDevice_nativeDisconnectSurface(JNIEnv* env, jobject thiz status_t err = native_window_api_disconnect(anw.get(), NATIVE_WINDOW_API_CAMERA); if(err != NO_ERROR) { - jniThrowException(env, "Ljava/lang/UnsupportedOperationException;", + jniThrowException(env, "java/lang/UnsupportedOperationException;", "Error while disconnecting surface"); return err; } -- 2.11.0