OSDN Git Service

Camera2: Fix availableTestPatternModes type
authorZhijun He <zhijunhe@google.com>
Fri, 28 Mar 2014 06:51:34 +0000 (23:51 -0700)
committerZhijun He <zhijunhe@google.com>
Fri, 28 Mar 2014 17:09:09 +0000 (10:09 -0700)
Also fixed the typo in android.control.mode related
with scene mode.

Change-Id: I5e311bac4694e1ccfc8d3210fbf8b40e1b31ecef

core/java/android/hardware/camera2/CameraCharacteristics.java
core/java/android/hardware/camera2/CameraMetadata.java

index 37bead8..ff77580 100644 (file)
@@ -1093,8 +1093,8 @@ public final class CameraCharacteristics extends CameraMetadata {
      *
      * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
      */
-    public static final Key<Byte> SENSOR_AVAILABLE_TEST_PATTERN_MODES =
-            new Key<Byte>("android.sensor.availableTestPatternModes", byte.class);
+    public static final Key<int[]> SENSOR_AVAILABLE_TEST_PATTERN_MODES =
+            new Key<int[]>("android.sensor.availableTestPatternModes", int[].class);
 
     /**
      * <p>Which face detection modes are available,
index 42c8e3d..679310a 100644 (file)
@@ -1002,8 +1002,11 @@ public abstract class CameraMetadata {
      * controls; the camera device will ignore those settings while
      * USE_SCENE_MODE is active (except for FACE_PRIORITY
      * scene mode). Other control entries are still active.
-     * This setting can only be used if availableSceneModes !=
-     * UNSUPPORTED</p>
+     * This setting can only be used if scene mode is supported
+     * (i.e. {@link CameraCharacteristics#CONTROL_AVAILABLE_SCENE_MODES android.control.availableSceneModes} contain some modes
+     * other than DISABLED).</p>
+     *
+     * @see CameraCharacteristics#CONTROL_AVAILABLE_SCENE_MODES
      * @see CaptureRequest#CONTROL_MODE
      */
     public static final int CONTROL_MODE_USE_SCENE_MODE = 2;