Merge "Camera: Update docs for new auto-generation features" into oc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f879357cae
@@ -135,7 +135,7 @@ public abstract class CameraDevice implements AutoCloseable {
|
||||
|
||||
/** @hide */
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef(
|
||||
@IntDef(prefix = {"TEMPLATE_"}, value =
|
||||
{TEMPLATE_PREVIEW,
|
||||
TEMPLATE_STILL_CAPTURE,
|
||||
TEMPLATE_RECORD,
|
||||
@@ -757,7 +757,7 @@ public abstract class CameraDevice implements AutoCloseable {
|
||||
|
||||
/** @hide */
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef(
|
||||
@IntDef(prefix = {"SESSION_OPERATION_MODE"}, value =
|
||||
{SESSION_OPERATION_MODE_NORMAL,
|
||||
SESSION_OPERATION_MODE_CONSTRAINED_HIGH_SPEED,
|
||||
SESSION_OPERATION_MODE_VENDOR_START})
|
||||
@@ -808,10 +808,9 @@ public abstract class CameraDevice implements AutoCloseable {
|
||||
* create a builder specific for that device and template and override the
|
||||
* settings as desired, instead.</p>
|
||||
*
|
||||
* @param templateType An enumeration selecting the use case for this
|
||||
* request; one of the CameraDevice.TEMPLATE_ values. Not all template
|
||||
* types are supported on every device. See the documentation for each
|
||||
* template type for details.
|
||||
* @param templateType An enumeration selecting the use case for this request. Not all template
|
||||
* types are supported on every device. See the documentation for each template type for
|
||||
* details.
|
||||
* @return a builder for a capture request, initialized with default
|
||||
* settings for that template, and no output streams
|
||||
*
|
||||
@@ -969,7 +968,7 @@ public abstract class CameraDevice implements AutoCloseable {
|
||||
|
||||
/** @hide */
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef(
|
||||
@IntDef(prefix = {"ERROR_"}, value =
|
||||
{ERROR_CAMERA_IN_USE,
|
||||
ERROR_MAX_CAMERAS_IN_USE,
|
||||
ERROR_CAMERA_DISABLED,
|
||||
@@ -1052,8 +1051,7 @@ public abstract class CameraDevice implements AutoCloseable {
|
||||
* this happens. Further attempts at recovery are error-code specific.</p>
|
||||
*
|
||||
* @param camera The device reporting the error
|
||||
* @param error The error code, one of the
|
||||
* {@code StateCallback.ERROR_*} values.
|
||||
* @param error The error code.
|
||||
*
|
||||
* @see #ERROR_CAMERA_IN_USE
|
||||
* @see #ERROR_MAX_CAMERAS_IN_USE
|
||||
|
||||
@@ -51,7 +51,7 @@ public class CaptureFailure {
|
||||
|
||||
/** @hide */
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef(
|
||||
@IntDef(prefix = {"REASON_"}, value =
|
||||
{REASON_ERROR,
|
||||
REASON_FLUSHED })
|
||||
public @interface FailureReason {};
|
||||
@@ -119,7 +119,7 @@ public class CaptureFailure {
|
||||
* Determine why the request was dropped, whether due to an error or to a user
|
||||
* action.
|
||||
*
|
||||
* @return int One of {@code REASON_*} integer constants.
|
||||
* @return int The reason code.
|
||||
*
|
||||
* @see #REASON_ERROR
|
||||
* @see #REASON_FLUSHED
|
||||
|
||||
Reference in New Issue
Block a user