summaryrefslogtreecommitdiffstats
path: root/core/jni
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2014-05-15 21:57:27 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-05-15 21:57:27 +0000
commit0a3103e755218c1ee48c7d078892eb6b42cc2081 (patch)
tree175056d0bbc70de07dfb163c00d2fe20c5c1dee9 /core/jni
parent9e1e95f6e3af79f0d659afa2476e462fdac2f5e2 (diff)
parentcbefd8dd2befcb768f911a63becc427ec4c13250 (diff)
downloadframeworks_base-0a3103e755218c1ee48c7d078892eb6b42cc2081.zip
frameworks_base-0a3103e755218c1ee48c7d078892eb6b42cc2081.tar.gz
frameworks_base-0a3103e755218c1ee48c7d078892eb6b42cc2081.tar.bz2
Merge "Battery stats more wake history, power save mode."
Diffstat (limited to 'core/jni')
-rw-r--r--core/jni/android_util_Binder.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/core/jni/android_util_Binder.cpp b/core/jni/android_util_Binder.cpp
index 662af89..d82fc96 100644
--- a/core/jni/android_util_Binder.cpp
+++ b/core/jni/android_util_Binder.cpp
@@ -697,6 +697,38 @@ void signalExceptionForError(JNIEnv* env, jobject obj, status_t err,
jniThrowException(env, "java/lang/RuntimeException",
"Not allowed to write file descriptors here");
break;
+ case -EBADF:
+ jniThrowException(env, "java/lang/RuntimeException",
+ "Bad file descriptor");
+ break;
+ case -ENFILE:
+ jniThrowException(env, "java/lang/RuntimeException",
+ "File table overflow");
+ break;
+ case -EMFILE:
+ jniThrowException(env, "java/lang/RuntimeException",
+ "Too many open files");
+ break;
+ case -EFBIG:
+ jniThrowException(env, "java/lang/RuntimeException",
+ "File too large");
+ break;
+ case -ENOSPC:
+ jniThrowException(env, "java/lang/RuntimeException",
+ "No space left on device");
+ break;
+ case -ESPIPE:
+ jniThrowException(env, "java/lang/RuntimeException",
+ "Illegal seek");
+ break;
+ case -EROFS:
+ jniThrowException(env, "java/lang/RuntimeException",
+ "Read-only file system");
+ break;
+ case -EMLINK:
+ jniThrowException(env, "java/lang/RuntimeException",
+ "Too many links");
+ break;
default:
ALOGE("Unknown binder error code. 0x%" PRIx32, err);
String8 msg;