summaryrefslogtreecommitdiffstats
path: root/core/java/android/hardware
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-07-18 09:09:41 +0800
committerWu-cheng Li <wuchengli@google.com>2011-07-19 06:19:26 +0800
commit10e09c69d659bf54d6efbe1a3660add7f8a39d6e (patch)
tree714332d200f74fb715b06e818eae5a5845482d77 /core/java/android/hardware
parent5f81f1bcd9cdb15411bd4bb036b75ee6e822b8bf (diff)
downloadframeworks_base-10e09c69d659bf54d6efbe1a3660add7f8a39d6e.zip
frameworks_base-10e09c69d659bf54d6efbe1a3660add7f8a39d6e.tar.gz
frameworks_base-10e09c69d659bf54d6efbe1a3660add7f8a39d6e.tar.bz2
Add camera new picture and new video broadcast intents.
bug:4964321 Change-Id: I42b45cda2e6a30f3bdf6127e2594933f32ecbaeb
Diffstat (limited to 'core/java/android/hardware')
-rw-r--r--core/java/android/hardware/Camera.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/core/java/android/hardware/Camera.java b/core/java/android/hardware/Camera.java
index 7d67e11..a168260 100644
--- a/core/java/android/hardware/Camera.java
+++ b/core/java/android/hardware/Camera.java
@@ -16,6 +16,8 @@
package android.hardware;
+import android.annotation.SdkConstant;
+import android.annotation.SdkConstant.SdkConstantType;
import android.graphics.ImageFormat;
import android.graphics.Rect;
import android.graphics.SurfaceTexture;
@@ -142,6 +144,22 @@ public class Camera {
private boolean mWithBuffer;
/**
+ * Broadcast Action: A new picture is taken by the camera, and the entry of
+ * the picture has been added to the media store.
+ * {@link android.content.Intent#getData} is URI of the picture.
+ */
+ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
+ public static final String ACTION_NEW_PICTURE = "android.hardware.action.NEW_PICTURE";
+
+ /**
+ * Broadcast Action: A new video is recorded by the camera, and the entry
+ * of the video has been added to the media store.
+ * {@link android.content.Intent#getData} is URI of the video.
+ */
+ @SdkConstant(SdkConstantType.BROADCAST_INTENT_ACTION)
+ public static final String ACTION_NEW_VIDEO = "android.hardware.action.NEW_VIDEO";
+
+ /**
* Returns the number of physical cameras available on this device.
*/
public native static int getNumberOfCameras();