Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 78146ecb authored by Zhijun He's avatar Zhijun He
Browse files

Camera2: Update AF mode related javadoc specs

Change-Id: If7a0de76f660ade25d9fdb92458fbe7e9752d0dd
parent fb46c644
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -181,7 +181,18 @@ public final class CameraCharacteristics extends CameraMetadata {

    /**
     * <p>List of AF modes that can be
     * selected</p>
     * selected with {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}.</p>
     *
     * @see CaptureRequest#CONTROL_AF_MODE
     * <p>Not all the auto-focus modes may be supported by a
     * given camera device. This entry lists the valid modes for
     * {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode} for this camera device.</p>
     * <p>All camera devices will support OFF mode, and all camera devices with
     * adjustable focuser units (<code>{@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance} &gt; 0</code>)
     * will support AUTO mode.</p>
     *
     * @see CaptureRequest#CONTROL_AF_MODE
     * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE
     */
    public static final Key<byte[]> CONTROL_AF_AVAILABLE_MODES =
            new Key<byte[]>("android.control.afAvailableModes", byte[].class);
+5 −6
Original line number Diff line number Diff line
@@ -399,8 +399,8 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable {
     * issues. The {@link CaptureResult#STATISTICS_SCENE_FLICKER android.statistics.sceneFlicker} key can assist
     * the application in this.</p>
     *
     * @see CaptureResult#STATISTICS_SCENE_FLICKER
     * @see CaptureRequest#CONTROL_AE_MODE
     * @see CaptureResult#STATISTICS_SCENE_FLICKER
     * @see CameraCharacteristics#CONTROL_AE_AVAILABLE_ANTIBANDING_MODES
     * @see CaptureRequest#CONTROL_MODE
     * @see #CONTROL_AE_ANTIBANDING_MODE_OFF
@@ -523,12 +523,11 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable {
     * <p>Whether AF is currently enabled, and what
     * mode it is set to</p>
     * <p>Only effective if {@link CaptureRequest#CONTROL_MODE android.control.mode} = AUTO.</p>
     * <p>If lens is controlled by HAL auto-focus algorithm, the HAL should
     * report the current AF status in {@link CaptureResult#CONTROL_AF_STATE android.control.afState} in
     * result metadata.</p>
     * <p>If the lens is controlled by the camera device auto-focus algorithm,
     * the camera device will report the current AF status in android.control.afState
     * in result metadata.</p>
     *
     * @see CaptureRequest#CONTROL_MODE
     * @see CaptureResult#CONTROL_AF_STATE
     * @see #CONTROL_AF_MODE_OFF
     * @see #CONTROL_AF_MODE_AUTO
     * @see #CONTROL_AF_MODE_MACRO
@@ -828,8 +827,8 @@ public final class CaptureRequest extends CameraMetadata implements Parcelable {
     * back to the user in the corresponding result.</p>
     *
     * @see CaptureRequest#CONTROL_AE_MODE
     * @see CaptureRequest#SENSOR_SENSITIVITY
     * @see CameraCharacteristics#LENS_INFO_AVAILABLE_APERTURES
     * @see CaptureRequest#SENSOR_SENSITIVITY
     * @see CaptureRequest#SENSOR_EXPOSURE_TIME
     */
    public static final Key<Float> LENS_APERTURE =
+3 −4
Original line number Diff line number Diff line
@@ -253,12 +253,11 @@ public final class CaptureResult extends CameraMetadata {
     * <p>Whether AF is currently enabled, and what
     * mode it is set to</p>
     * <p>Only effective if {@link CaptureRequest#CONTROL_MODE android.control.mode} = AUTO.</p>
     * <p>If lens is controlled by HAL auto-focus algorithm, the HAL should
     * report the current AF status in {@link CaptureResult#CONTROL_AF_STATE android.control.afState} in
     * result metadata.</p>
     * <p>If the lens is controlled by the camera device auto-focus algorithm,
     * the camera device will report the current AF status in android.control.afState
     * in result metadata.</p>
     *
     * @see CaptureRequest#CONTROL_MODE
     * @see CaptureResult#CONTROL_AF_STATE
     * @see #CONTROL_AF_MODE_OFF
     * @see #CONTROL_AF_MODE_AUTO
     * @see #CONTROL_AF_MODE_MACRO