summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorBenny Wong <Benny.Wong@motorola.com>2009-08-12 12:01:27 -0500
committerJames Dong <jdong@google.com>2009-08-13 10:46:28 -0700
commitda83f4674a564007baac03db062a289c8158d940 (patch)
treec1476d13a17ddff1bbd3769d3406ab3d639318d2 /core
parentddb79c9fd53893aa126599330a9289497e5f5c93 (diff)
downloadframeworks_base-da83f4674a564007baac03db062a289c8158d940.zip
frameworks_base-da83f4674a564007baac03db062a289c8158d940.tar.gz
frameworks_base-da83f4674a564007baac03db062a289c8158d940.tar.bz2
Modified the camera HAL interface to use the same generic callback architecture as camera services
Diffstat (limited to 'core')
-rw-r--r--core/java/android/hardware/Camera.java19
1 files changed, 10 insertions, 9 deletions
diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java
index 40d2c86..aa3b852 100644
--- a/core/java/android/hardware/Camera.java
+++ b/core/java/android/hardware/Camera.java
@@ -40,15 +40,16 @@ public class Camera {
private static final String TAG = "Camera";
// These match the enums in frameworks/base/include/ui/Camera.h
- private static final int CAMERA_MSG_ERROR = 0;
- private static final int CAMERA_MSG_SHUTTER = 1;
- private static final int CAMERA_MSG_FOCUS = 2;
- private static final int CAMERA_MSG_ZOOM = 3;
- private static final int CAMERA_MSG_PREVIEW_FRAME = 4;
- private static final int CAMERA_MSG_VIDEO_FRAME = 5;
- private static final int CAMERA_MSG_POSTVIEW_FRAME = 6;
- private static final int CAMERA_MSG_RAW_IMAGE = 7;
- private static final int CAMERA_MSG_COMPRESSED_IMAGE = 8;
+ private static final int CAMERA_MSG_ERROR = 0x001;
+ private static final int CAMERA_MSG_SHUTTER = 0x002;
+ private static final int CAMERA_MSG_FOCUS = 0x004;
+ private static final int CAMERA_MSG_ZOOM = 0x008;
+ private static final int CAMERA_MSG_PREVIEW_FRAME = 0x010;
+ private static final int CAMERA_MSG_VIDEO_FRAME = 0x020;
+ private static final int CAMERA_MSG_POSTVIEW_FRAME = 0x040;
+ private static final int CAMERA_MSG_RAW_IMAGE = 0x080;
+ private static final int CAMERA_MSG_COMPRESSED_IMAGE = 0x100;
+ private static final int CAMERA_MSG_ALL_MSGS = 0x1FF;
private int mNativeContext; // accessed by native methods
private EventHandler mEventHandler;