diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-02 11:00:41 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-07-02 11:00:41 -0700 |
commit | c7396025e59524e7ef639fd86fc23123939ee91c (patch) | |
tree | ec0f2b85cab7a18753f1597e612fc28738d4a142 /core | |
parent | d3de90f38d779d28a724e89297c83e6ba1a66fa7 (diff) | |
parent | a1b653d41df9a7999e1dba2a508295671ff6771d (diff) | |
download | frameworks_base-c7396025e59524e7ef639fd86fc23123939ee91c.zip frameworks_base-c7396025e59524e7ef639fd86fc23123939ee91c.tar.gz frameworks_base-c7396025e59524e7ef639fd86fc23123939ee91c.tar.bz2 |
Merge change 6084 into donut
* changes:
Return CAMERA_ERROR_SERVER_DIED to camera app when camera service dies (bug 1956726)
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/hardware/Camera.java | 2 | ||||
-rw-r--r-- | core/jni/android_hardware_Camera.cpp | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java index 3ce951f..091bc17 100644 --- a/core/java/android/hardware/Camera.java +++ b/core/java/android/hardware/Camera.java @@ -371,7 +371,7 @@ public class Camera { } private native final void native_takePicture(); - // These match the enum in libs/android_runtime/android_hardware_Camera.cpp + // These match the enum in include/ui/Camera.h /** Unspecified camerar error. @see #ErrorCallback */ public static final int CAMERA_ERROR_UNKNOWN = 1; /** Media server died. In this case, the application must release the diff --git a/core/jni/android_hardware_Camera.cpp b/core/jni/android_hardware_Camera.cpp index 3dcc09f..77a8a72 100644 --- a/core/jni/android_hardware_Camera.cpp +++ b/core/jni/android_hardware_Camera.cpp @@ -38,12 +38,6 @@ enum CallbackMessageID { kErrorCallback = 5 }; -enum CameraError { - kCameraErrorUnknown = 1, - kCameraErrorMediaServer = 100 -}; - - struct fields_t { jfieldID context; jfieldID surface; |