Skip to content

Commit 752af83

Browse files
author
Eino-Ville Talvala
committed
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
1 parent 9d7657c commit 752af83

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/java/android/content/pm/PackageManager.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,15 @@ public NameNotFoundException(String name) {
833833
@SdkConstant(SdkConstantType.FEATURE)
834834
public static final String FEATURE_CAMERA_AUTOFOCUS = "android.hardware.camera.autofocus";
835835

836+
/**
837+
* Feature for {@link #getSystemAvailableFeatures} and
838+
* {@link #hasSystemFeature}: The device has at least one camera pointing in
839+
* some direction.
840+
* @hide
841+
*/
842+
@SdkConstant(SdkConstantType.FEATURE)
843+
public static final String FEATURE_CAMERA_ANY = "android.hardware.camera.any";
844+
836845
/**
837846
* Feature for {@link #getSystemAvailableFeatures} and
838847
* {@link #hasSystemFeature}: The device's camera supports flash.

0 commit comments

Comments
 (0)