summaryrefslogtreecommitdiffstats
path: root/media/jni
diff options
context:
space:
mode:
authorIgor Murashkin <iam@google.com>2013-08-29 15:38:17 -0700
committerIgor Murashkin <iam@google.com>2013-09-12 16:57:57 -0700
commit5e712064dfe48992f8f732208fa4fc13f3455b30 (patch)
tree5b94b96e4dc152d88cc6b0cdb678f004e4d25cd5 /media/jni
parente850c973b0662975137cee8a05f8ee2cb82d9b2a (diff)
downloadframeworks_base-5e712064dfe48992f8f732208fa4fc13f3455b30.zip
frameworks_base-5e712064dfe48992f8f732208fa4fc13f3455b30.tar.gz
frameworks_base-5e712064dfe48992f8f732208fa4fc13f3455b30.tar.bz2
media: Update ImageReader APIs
Bug: 10461757 Change-Id: Ic04e4c41965e3d417b29004f3f08e0cd56b8f4cb
Diffstat (limited to 'media/jni')
-rw-r--r--media/jni/android_media_ImageReader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/media/jni/android_media_ImageReader.cpp b/media/jni/android_media_ImageReader.cpp
index 94f20bc..56ae6b4 100644
--- a/media/jni/android_media_ImageReader.cpp
+++ b/media/jni/android_media_ImageReader.cpp
@@ -43,8 +43,8 @@
using namespace android;
-static const char* const OutOfResourcesException =
- "android/view/Surface$OutOfResourcesException";
+static const char* const MaxImagesAcquiredException =
+ "android/media/ImageReader$MaxImagesAcquiredException";
enum {
IMAGE_READER_MAX_NUM_PLANES = 3,
@@ -700,7 +700,7 @@ static jboolean ImageReader_imageSetup(JNIEnv* env, jobject thiz,
if (buffer == NULL) {
ALOGW("Unable to acquire a lockedBuffer, very likely client tries to lock more than"
" maxImages buffers");
- jniThrowException(env, OutOfResourcesException,
+ jniThrowException(env, MaxImagesAcquiredException,
"Too many outstanding images, close existing images"
" to be able to acquire more.");
return false;
@@ -709,7 +709,7 @@ static jboolean ImageReader_imageSetup(JNIEnv* env, jobject thiz,
if (res != NO_ERROR) {
if (res != BAD_VALUE /*no buffers*/) {
if (res == NOT_ENOUGH_DATA) {
- jniThrowException(env, OutOfResourcesException,
+ jniThrowException(env, MaxImagesAcquiredException,
"Too many outstanding images, close existing images"
" to be able to acquire more.");
} else {