summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Eino-Ville Talvala <etalvala@google.com> 2012-09-18 14:45:37 -0700
committer Eino-Ville Talvala <etalvala@google.com> 2012-09-18 17:47:23 -0700
commit752af83e5b28a4225510406a0ec868585caf1ccc (patch)
tree0ad0c26a33365b7db588d0c25d4a36b74fdc1d99
parent9d7657c5b569e503a65f1bbe5f0e93309bf33342 (diff)
Add hardware feature android.hardware.camera.any.
This feature means that a device has at least one camera, facing in some direction, so it matches devices that: - Have just a back-facing camera - Have just a front-facing camera - Have both In the future, it could also be used for devices that have a camera that's neither front- or back-facing, such as a webcam or other flexibly-pointed device. Hidden for now. Bug: 6847310 Change-Id: I51ea3b4db2020b0f056d77e10629a6b5f2daebe1
-rw-r--r--core/java/android/content/pm/PackageManager.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/content/pm/PackageManager.java b/core/java/android/content/pm/PackageManager.java
index 4784d7f5144b..0da9af407212 100644
--- a/core/java/android/content/pm/PackageManager.java
+++ b/core/java/android/content/pm/PackageManager.java
@@ -835,6 +835,15 @@ public abstract class PackageManager {
/**
* Feature for {@link #getSystemAvailableFeatures} and
+ * {@link #hasSystemFeature}: The device has at least one camera pointing in
+ * some direction.
+ * @hide
+ */
+ @SdkConstant(SdkConstantType.FEATURE)
+ public static final String FEATURE_CAMERA_ANY = "android.hardware.camera.any";
+
+ /**
+ * Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature}: The device's camera supports flash.
*/
@SdkConstant(SdkConstantType.FEATURE)