summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/Context.java
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2012-12-12 13:29:45 -0800
committerEino-Ville Talvala <etalvala@google.com>2013-06-07 21:29:45 +0000
commitb2675542c2f414154125b534767ae0903fba581e (patch)
tree0687fb11a57bba077f88d653d2789f3ba0c51a63 /core/java/android/content/Context.java
parent8c4a8243c77bcbd434fb30587be2feffd2835728 (diff)
downloadframeworks_base-b2675542c2f414154125b534767ae0903fba581e.zip
frameworks_base-b2675542c2f414154125b534767ae0903fba581e.tar.gz
frameworks_base-b2675542c2f414154125b534767ae0903fba581e.tar.bz2
Initial commit of new camera API, mostly just the interface.
- New core API classes in android.hardware.photography - android.media.Image and android.media.ImageReader classes for application access to direct hardware image buffers. - Additions to android.graphics.ImageFormat to describe new image types needed by new camera API. - Some documentation included; very little implementation. Bug: 9111736 Change-Id: I0680f35944d1cb8845b7dc0c67edc8c0f0864573
Diffstat (limited to 'core/java/android/content/Context.java')
-rw-r--r--core/java/android/content/Context.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/content/Context.java b/core/java/android/content/Context.java
index 81d6f0b..35e51a6 100644
--- a/core/java/android/content/Context.java
+++ b/core/java/android/content/Context.java
@@ -2284,6 +2284,16 @@ public abstract class Context {
public static final String APP_OPS_SERVICE = "appops";
/**
+ * Use with {@link #getSystemService} to retrieve a
+ * {@link android.hardware.photography.CameraManager} for interacting with
+ * camera devices.
+ *
+ * @see #getSystemService
+ * @see android.hardware.camera.CameraManager
+ */
+ public static final String CAMERA_SERVICE = "camera";
+
+ /**
* Determine whether the given permission is allowed for a particular
* process and user ID running in the system.
*