• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2013 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package android.hardware.camera2;
18 
19 import android.annotation.NonNull;
20 import android.annotation.TestApi;
21 import android.compat.annotation.UnsupportedAppUsage;
22 import android.hardware.camera2.impl.CameraMetadataNative;
23 import android.hardware.camera2.impl.PublicKey;
24 import android.hardware.camera2.impl.SyntheticKey;
25 import android.util.Log;
26 
27 import java.lang.reflect.Field;
28 import java.lang.reflect.Modifier;
29 import java.util.ArrayList;
30 import java.util.Arrays;
31 import java.util.Collections;
32 import java.util.List;
33 
34 /**
35  * The base class for camera controls and information.
36  *
37  * <p>
38  * This class defines the basic key/value map used for querying for camera
39  * characteristics or capture results, and for setting camera request
40  * parameters.
41  * </p>
42  *
43  * <p>
44  * All instances of CameraMetadata are immutable. The list of keys with {@link #getKeys()}
45  * never changes, nor do the values returned by any key with {@code #get} throughout
46  * the lifetime of the object.
47  * </p>
48  *
49  * @see CameraDevice
50  * @see CameraManager
51  * @see CameraCharacteristics
52  **/
53 public abstract class CameraMetadata<TKey> {
54 
55     private static final String TAG = "CameraMetadataAb";
56     private static final boolean DEBUG = false;
57     private CameraMetadataNative mNativeInstance = null;
58 
59     /**
60      * Set a camera metadata field to a value. The field definitions can be
61      * found in {@link CameraCharacteristics}, {@link CaptureResult}, and
62      * {@link CaptureRequest}.
63      *
64      * @param key The metadata field to write.
65      * @param value The value to set the field to, which must be of a matching
66      * type to the key.
67      *
68      * @hide
69      */
CameraMetadata()70     protected CameraMetadata() {
71     }
72 
73     /**
74      * Get a camera metadata field value.
75      *
76      * <p>The field definitions can be
77      * found in {@link CameraCharacteristics}, {@link CaptureResult}, and
78      * {@link CaptureRequest}.</p>
79      *
80      * <p>Querying the value for the same key more than once will return a value
81      * which is equal to the previous queried value.</p>
82      *
83      * @throws IllegalArgumentException if the key was not valid
84      *
85      * @param key The metadata field to read.
86      * @return The value of that key, or {@code null} if the field is not set.
87      *
88      * @hide
89      */
getProtected(TKey key)90      protected abstract <T> T getProtected(TKey key);
91 
92     /**
93      * @hide
94      */
setNativeInstance(CameraMetadataNative nativeInstance)95     protected void setNativeInstance(CameraMetadataNative nativeInstance) {
96         mNativeInstance = nativeInstance;
97     }
98 
99     /**
100      * Retrieves the native std::shared_ptr<CameraMetadata*>* as a Java long.
101      * Returns 0 if mNativeInstance is null.
102      *
103      * @hide
104      */
105     @UnsupportedAppUsage(publicAlternatives = "This method is exposed for native "
106                         + "{@code ACameraMetadata_fromCameraMetadata} in {@code libcamera2ndk}.")
getNativeMetadataPtr()107     public long getNativeMetadataPtr() {
108         if (mNativeInstance == null) {
109             return 0;
110         } else {
111             return mNativeInstance.getMetadataPtr();
112         }
113     }
114 
115     /**
116      * Retrieves the CameraMetadataNative instance.
117      *
118      * @hide
119      */
getNativeMetadata()120     public CameraMetadataNative getNativeMetadata() {
121         return mNativeInstance;
122     }
123 
124     /**
125      * @hide
126      */
getKeyClass()127     protected abstract Class<TKey> getKeyClass();
128 
129     /**
130      * Returns a list of the keys contained in this map.
131      *
132      * <p>The list returned is not modifiable, so any attempts to modify it will throw
133      * a {@code UnsupportedOperationException}.</p>
134      *
135      * <p>All values retrieved by a key from this list with {@code #get} are guaranteed to be
136      * non-{@code null}. Each key is only listed once in the list. The order of the keys
137      * is undefined.</p>
138      *
139      * @return List of the keys contained in this map.
140      */
141     @SuppressWarnings("unchecked")
142     @NonNull
getKeys()143     public List<TKey> getKeys() {
144         Class<CameraMetadata<TKey>> thisClass = (Class<CameraMetadata<TKey>>) getClass();
145         return Collections.unmodifiableList(
146                 getKeys(thisClass, getKeyClass(), this, /*filterTags*/null,
147                     /*includeSynthetic*/ true));
148     }
149 
150     /**
151      * Return a list of all the Key<?> that are declared as a field inside of the class
152      * {@code type}.
153      *
154      * <p>
155      * Optionally, if {@code instance} is not null, then filter out any keys with null values.
156      * </p>
157      *
158      * <p>
159      * Optionally, if {@code filterTags} is not {@code null}, then filter out any keys
160      * whose native {@code tag} is not in {@code filterTags}. The {@code filterTags} array will be
161      * sorted as a side effect.
162      * {@code includeSynthetic} Includes public syntenthic fields by default.
163      * </p>
164      */
165      /*package*/ @SuppressWarnings("unchecked")
getKeys( Class<?> type, Class<TKey> keyClass, CameraMetadata<TKey> instance, int[] filterTags, boolean includeSynthetic)166     <TKey> ArrayList<TKey> getKeys(
167              Class<?> type, Class<TKey> keyClass,
168              CameraMetadata<TKey> instance,
169              int[] filterTags, boolean includeSynthetic) {
170 
171         if (DEBUG) Log.v(TAG, "getKeysStatic for " + type);
172 
173         // TotalCaptureResult does not have any of the keys on it, use CaptureResult instead
174         if (type.equals(TotalCaptureResult.class)) {
175             type = CaptureResult.class;
176         }
177 
178         if (filterTags != null) {
179             Arrays.sort(filterTags);
180         }
181 
182         ArrayList<TKey> keyList = new ArrayList<TKey>();
183 
184         Field[] fields = type.getDeclaredFields();
185         for (Field field : fields) {
186             // Filter for Keys that are public
187             if (field.getType().isAssignableFrom(keyClass) &&
188                     (field.getModifiers() & Modifier.PUBLIC) != 0) {
189 
190                 TKey key;
191                 try {
192                     key = (TKey) field.get(instance);
193                 } catch (IllegalAccessException e) {
194                     throw new AssertionError("Can't get IllegalAccessException", e);
195                 } catch (IllegalArgumentException e) {
196                     throw new AssertionError("Can't get IllegalArgumentException", e);
197                 }
198 
199                 if (instance == null || instance.getProtected(key) != null) {
200                     if (shouldKeyBeAdded(key, field, filterTags, includeSynthetic)) {
201                         keyList.add(key);
202 
203                         if (DEBUG) {
204                             Log.v(TAG, "getKeysStatic - key was added - " + key);
205                         }
206                     } else if (DEBUG) {
207                         Log.v(TAG, "getKeysStatic - key was filtered - " + key);
208                     }
209                 }
210             }
211         }
212 
213         if (null == mNativeInstance) {
214             return keyList;
215         }
216 
217         ArrayList<TKey> vendorKeys = mNativeInstance.getAllVendorKeys(keyClass);
218 
219         if (vendorKeys != null) {
220             for (TKey k : vendorKeys) {
221                 String keyName;
222                 long vendorId;
223                 if (k instanceof CaptureRequest.Key<?>) {
224                     keyName = ((CaptureRequest.Key<?>) k).getName();
225                     vendorId = ((CaptureRequest.Key<?>) k).getVendorId();
226                 } else if (k instanceof CaptureResult.Key<?>) {
227                     keyName = ((CaptureResult.Key<?>) k).getName();
228                     vendorId = ((CaptureResult.Key<?>) k).getVendorId();
229                 } else if (k instanceof CameraCharacteristics.Key<?>) {
230                     keyName = ((CameraCharacteristics.Key<?>) k).getName();
231                     vendorId = ((CameraCharacteristics.Key<?>) k).getVendorId();
232                 } else {
233                     continue;
234                 }
235 
236 
237                 if (filterTags != null && Arrays.binarySearch(filterTags,
238                         CameraMetadataNative.getTag(keyName, vendorId)) < 0) {
239                     // ignore vendor keys not in filterTags
240                     continue;
241                 }
242                 if (instance == null || instance.getProtected(k) != null)  {
243                     keyList.add(k);
244                 }
245 
246             }
247         }
248 
249         return keyList;
250     }
251 
252     @SuppressWarnings("rawtypes")
shouldKeyBeAdded(TKey key, Field field, int[] filterTags, boolean includeSynthetic)253     private static <TKey> boolean shouldKeyBeAdded(TKey key, Field field, int[] filterTags,
254             boolean includeSynthetic) {
255         if (key == null) {
256             throw new NullPointerException("key must not be null");
257         }
258 
259         CameraMetadataNative.Key nativeKey;
260 
261         /*
262          * Get the native key from the public api key
263          */
264         if (key instanceof CameraCharacteristics.Key) {
265             nativeKey = ((CameraCharacteristics.Key)key).getNativeKey();
266         } else if (key instanceof CaptureResult.Key) {
267             nativeKey = ((CaptureResult.Key)key).getNativeKey();
268         } else if (key instanceof CaptureRequest.Key) {
269             nativeKey = ((CaptureRequest.Key)key).getNativeKey();
270         } else {
271             // Reject fields that aren't a key
272             throw new IllegalArgumentException("key type must be that of a metadata key");
273         }
274 
275         if (field.getAnnotation(PublicKey.class) == null) {
276             // Never expose @hide keys up to the API user
277             return false;
278         }
279 
280         // No filtering necessary
281         if (filterTags == null) {
282             return true;
283         }
284 
285         if (field.getAnnotation(SyntheticKey.class) != null) {
286             // This key is synthetic, so calling #getTag will throw IAE
287 
288             return includeSynthetic;
289         }
290 
291         /*
292          * Regular key: look up it's native tag and see if it's in filterTags
293          */
294 
295         int keyTag = nativeKey.getTag();
296 
297         // non-negative result is returned iff the value is in the array
298         return Arrays.binarySearch(filterTags, keyTag) >= 0;
299     }
300 
301     /*@O~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~
302      * The enum values below this point are generated from metadata
303      * definitions in /system/media/camera/docs. Do not modify by hand or
304      * modify the comment blocks at the start or end.
305      *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~*/
306 
307     //
308     // Enumeration values for CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION
309     //
310 
311     /**
312      * <p>The lens focus distance is not accurate, and the units used for
313      * {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance} do not correspond to any physical units.</p>
314      * <p>Setting the lens to the same focus distance on separate occasions may
315      * result in a different real focus distance, depending on factors such
316      * as the orientation of the device, the age of the focusing mechanism,
317      * and the device temperature. The focus distance value will still be
318      * in the range of <code>[0, {@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance}]</code>, where 0
319      * represents the farthest focus.</p>
320      *
321      * @see CaptureRequest#LENS_FOCUS_DISTANCE
322      * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE
323      * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION
324      */
325     public static final int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_UNCALIBRATED = 0;
326 
327     /**
328      * <p>The lens focus distance is measured in diopters.</p>
329      * <p>However, setting the lens to the same focus distance
330      * on separate occasions may result in a different real
331      * focus distance, depending on factors such as the
332      * orientation of the device, the age of the focusing
333      * mechanism, and the device temperature.</p>
334      * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION
335      */
336     public static final int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_APPROXIMATE = 1;
337 
338     /**
339      * <p>The lens focus distance is measured in diopters, and
340      * is calibrated.</p>
341      * <p>The lens mechanism is calibrated so that setting the
342      * same focus distance is repeatable on multiple
343      * occasions with good accuracy, and the focus distance
344      * corresponds to the real physical distance to the plane
345      * of best focus.</p>
346      * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION
347      */
348     public static final int LENS_INFO_FOCUS_DISTANCE_CALIBRATION_CALIBRATED = 2;
349 
350     //
351     // Enumeration values for CameraCharacteristics#LENS_FACING
352     //
353 
354     /**
355      * <p>The camera device faces the same direction as the device's screen.</p>
356      * @see CameraCharacteristics#LENS_FACING
357      */
358     public static final int LENS_FACING_FRONT = 0;
359 
360     /**
361      * <p>The camera device faces the opposite direction as the device's screen.</p>
362      * @see CameraCharacteristics#LENS_FACING
363      */
364     public static final int LENS_FACING_BACK = 1;
365 
366     /**
367      * <p>The camera device is an external camera, and has no fixed facing relative to the
368      * device's screen.</p>
369      * @see CameraCharacteristics#LENS_FACING
370      */
371     public static final int LENS_FACING_EXTERNAL = 2;
372 
373     //
374     // Enumeration values for CameraCharacteristics#LENS_POSE_REFERENCE
375     //
376 
377     /**
378      * <p>The value of {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation} is relative to the optical center of
379      * the largest camera device facing the same direction as this camera.</p>
380      * <p>This is the default value for API levels before Android P.</p>
381      *
382      * @see CameraCharacteristics#LENS_POSE_TRANSLATION
383      * @see CameraCharacteristics#LENS_POSE_REFERENCE
384      */
385     public static final int LENS_POSE_REFERENCE_PRIMARY_CAMERA = 0;
386 
387     /**
388      * <p>The value of {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation} is relative to the position of the
389      * primary gyroscope of this Android device.</p>
390      *
391      * @see CameraCharacteristics#LENS_POSE_TRANSLATION
392      * @see CameraCharacteristics#LENS_POSE_REFERENCE
393      */
394     public static final int LENS_POSE_REFERENCE_GYROSCOPE = 1;
395 
396     /**
397      * <p>The camera device cannot represent the values of {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation}
398      * and {@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation} accurately enough. One such example is a camera device
399      * on the cover of a foldable phone: in order to measure the pose translation and rotation,
400      * some kind of hinge position sensor would be needed.</p>
401      * <p>The value of {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation} must be all zeros, and
402      * {@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation} must be values matching its default facing.</p>
403      *
404      * @see CameraCharacteristics#LENS_POSE_ROTATION
405      * @see CameraCharacteristics#LENS_POSE_TRANSLATION
406      * @see CameraCharacteristics#LENS_POSE_REFERENCE
407      */
408     public static final int LENS_POSE_REFERENCE_UNDEFINED = 2;
409 
410     /**
411      * <p>The value of {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation} is relative to the origin of the
412      * automotive sensor coordinate system, which is at the center of the rear axle.</p>
413      *
414      * @see CameraCharacteristics#LENS_POSE_TRANSLATION
415      * @see CameraCharacteristics#LENS_POSE_REFERENCE
416      */
417     public static final int LENS_POSE_REFERENCE_AUTOMOTIVE = 3;
418 
419     //
420     // Enumeration values for CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
421     //
422 
423     /**
424      * <p>The minimal set of capabilities that every camera
425      * device (regardless of {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel})
426      * supports.</p>
427      * <p>This capability is listed by all normal devices, and
428      * indicates that the camera device has a feature set
429      * that's comparable to the baseline requirements for the
430      * older android.hardware.Camera API.</p>
431      * <p>Devices with the DEPTH_OUTPUT capability might not list this
432      * capability, indicating that they support only depth measurement,
433      * not standard color output.</p>
434      *
435      * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
436      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
437      */
438     public static final int REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE = 0;
439 
440     /**
441      * <p>The camera device can be manually controlled (3A algorithms such
442      * as auto-exposure, and auto-focus can be bypassed).
443      * The camera device supports basic manual control of the sensor image
444      * acquisition related stages. This means the following controls are
445      * guaranteed to be supported:</p>
446      * <ul>
447      * <li>Manual frame duration control<ul>
448      * <li>{@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration}</li>
449      * <li>{@link CameraCharacteristics#SENSOR_INFO_MAX_FRAME_DURATION android.sensor.info.maxFrameDuration}</li>
450      * </ul>
451      * </li>
452      * <li>Manual exposure control<ul>
453      * <li>{@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime}</li>
454      * <li>{@link CameraCharacteristics#SENSOR_INFO_EXPOSURE_TIME_RANGE android.sensor.info.exposureTimeRange}</li>
455      * </ul>
456      * </li>
457      * <li>Manual sensitivity control<ul>
458      * <li>{@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}</li>
459      * <li>{@link CameraCharacteristics#SENSOR_INFO_SENSITIVITY_RANGE android.sensor.info.sensitivityRange}</li>
460      * </ul>
461      * </li>
462      * <li>Manual lens control (if the lens is adjustable)<ul>
463      * <li>android.lens.*</li>
464      * </ul>
465      * </li>
466      * <li>Manual flash control (if a flash unit is present)<ul>
467      * <li>android.flash.*</li>
468      * </ul>
469      * </li>
470      * <li>Manual black level locking<ul>
471      * <li>{@link CaptureRequest#BLACK_LEVEL_LOCK android.blackLevel.lock}</li>
472      * </ul>
473      * </li>
474      * <li>Auto exposure lock<ul>
475      * <li>{@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock}</li>
476      * </ul>
477      * </li>
478      * </ul>
479      * <p>If any of the above 3A algorithms are enabled, then the camera
480      * device will accurately report the values applied by 3A in the
481      * result.</p>
482      * <p>A given camera device may also support additional manual sensor controls,
483      * but this capability only covers the above list of controls.</p>
484      * <p>If this is supported, {@link CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP android.scaler.streamConfigurationMap} will
485      * additionally return a min frame duration that is greater than
486      * zero for each supported size-format combination.</p>
487      * <p>For camera devices with LOGICAL_MULTI_CAMERA capability, when the underlying active
488      * physical camera switches, exposureTime, sensitivity, and lens properties may change
489      * even if AE/AF is locked. However, the overall auto exposure and auto focus experience
490      * for users will be consistent. Refer to LOGICAL_MULTI_CAMERA capability for details.</p>
491      *
492      * @see CaptureRequest#BLACK_LEVEL_LOCK
493      * @see CaptureRequest#CONTROL_AE_LOCK
494      * @see CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP
495      * @see CaptureRequest#SENSOR_EXPOSURE_TIME
496      * @see CaptureRequest#SENSOR_FRAME_DURATION
497      * @see CameraCharacteristics#SENSOR_INFO_EXPOSURE_TIME_RANGE
498      * @see CameraCharacteristics#SENSOR_INFO_MAX_FRAME_DURATION
499      * @see CameraCharacteristics#SENSOR_INFO_SENSITIVITY_RANGE
500      * @see CaptureRequest#SENSOR_SENSITIVITY
501      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
502      */
503     public static final int REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR = 1;
504 
505     /**
506      * <p>The camera device post-processing stages can be manually controlled.
507      * The camera device supports basic manual control of the image post-processing
508      * stages. This means the following controls are guaranteed to be supported:</p>
509      * <ul>
510      * <li>
511      * <p>Manual tonemap control</p>
512      * <ul>
513      * <li>{@link CaptureRequest#TONEMAP_CURVE android.tonemap.curve}</li>
514      * <li>{@link CaptureRequest#TONEMAP_MODE android.tonemap.mode}</li>
515      * <li>{@link CameraCharacteristics#TONEMAP_MAX_CURVE_POINTS android.tonemap.maxCurvePoints}</li>
516      * <li>{@link CaptureRequest#TONEMAP_GAMMA android.tonemap.gamma}</li>
517      * <li>{@link CaptureRequest#TONEMAP_PRESET_CURVE android.tonemap.presetCurve}</li>
518      * </ul>
519      * </li>
520      * <li>
521      * <p>Manual white balance control</p>
522      * <ul>
523      * <li>{@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}</li>
524      * <li>{@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains}</li>
525      * </ul>
526      * </li>
527      * <li>Manual lens shading map control<ul>
528      * <li>{@link CaptureRequest#SHADING_MODE android.shading.mode}</li>
529      * <li>{@link CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE android.statistics.lensShadingMapMode}</li>
530      * <li>android.statistics.lensShadingMap</li>
531      * <li>android.lens.info.shadingMapSize</li>
532      * </ul>
533      * </li>
534      * <li>Manual aberration correction control (if aberration correction is supported)<ul>
535      * <li>{@link CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE android.colorCorrection.aberrationMode}</li>
536      * <li>{@link CameraCharacteristics#COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES android.colorCorrection.availableAberrationModes}</li>
537      * </ul>
538      * </li>
539      * <li>Auto white balance lock<ul>
540      * <li>{@link CaptureRequest#CONTROL_AWB_LOCK android.control.awbLock}</li>
541      * </ul>
542      * </li>
543      * </ul>
544      * <p>If auto white balance is enabled, then the camera device
545      * will accurately report the values applied by AWB in the result.</p>
546      * <p>A given camera device may also support additional post-processing
547      * controls, but this capability only covers the above list of controls.</p>
548      * <p>For camera devices with LOGICAL_MULTI_CAMERA capability, when underlying active
549      * physical camera switches, tonemap, white balance, and shading map may change even if
550      * awb is locked. However, the overall post-processing experience for users will be
551      * consistent. Refer to LOGICAL_MULTI_CAMERA capability for details.</p>
552      *
553      * @see CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE
554      * @see CameraCharacteristics#COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES
555      * @see CaptureRequest#COLOR_CORRECTION_GAINS
556      * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
557      * @see CaptureRequest#CONTROL_AWB_LOCK
558      * @see CaptureRequest#SHADING_MODE
559      * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE
560      * @see CaptureRequest#TONEMAP_CURVE
561      * @see CaptureRequest#TONEMAP_GAMMA
562      * @see CameraCharacteristics#TONEMAP_MAX_CURVE_POINTS
563      * @see CaptureRequest#TONEMAP_MODE
564      * @see CaptureRequest#TONEMAP_PRESET_CURVE
565      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
566      */
567     public static final int REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING = 2;
568 
569     /**
570      * <p>The camera device supports outputting RAW buffers and
571      * metadata for interpreting them.</p>
572      * <p>Devices supporting the RAW capability allow both for
573      * saving DNG files, and for direct application processing of
574      * raw sensor images.</p>
575      * <ul>
576      * <li>RAW_SENSOR is supported as an output format.</li>
577      * <li>The maximum available resolution for RAW_SENSOR streams
578      *   will match either the value in
579      *   {@link CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE android.sensor.info.pixelArraySize} or
580      *   {@link CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE android.sensor.info.preCorrectionActiveArraySize}.</li>
581      * <li>All DNG-related optional metadata entries are provided
582      *   by the camera device.</li>
583      * </ul>
584      *
585      * @see CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE
586      * @see CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE
587      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
588      */
589     public static final int REQUEST_AVAILABLE_CAPABILITIES_RAW = 3;
590 
591     /**
592      * <p>The camera device supports the Zero Shutter Lag reprocessing use case.</p>
593      * <ul>
594      * <li>One input stream is supported, that is, <code>{@link CameraCharacteristics#REQUEST_MAX_NUM_INPUT_STREAMS android.request.maxNumInputStreams} == 1</code>.</li>
595      * <li>{@link android.graphics.ImageFormat#PRIVATE } is supported as an output/input format,
596      *   that is, {@link android.graphics.ImageFormat#PRIVATE } is included in the lists of
597      *   formats returned by {@link android.hardware.camera2.params.StreamConfigurationMap#getInputFormats } and {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputFormats }.</li>
598      * <li>{@link android.hardware.camera2.params.StreamConfigurationMap#getValidOutputFormatsForInput }
599      *   returns non-empty int[] for each supported input format returned by {@link android.hardware.camera2.params.StreamConfigurationMap#getInputFormats }.</li>
600      * <li>Each size returned by {@link android.hardware.camera2.params.StreamConfigurationMap#getInputSizes getInputSizes(ImageFormat.PRIVATE)} is also included in {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputSizes getOutputSizes(ImageFormat.PRIVATE)}</li>
601      * <li>Using {@link android.graphics.ImageFormat#PRIVATE } does not cause a frame rate drop
602      *   relative to the sensor's maximum capture rate (at that resolution).</li>
603      * <li>{@link android.graphics.ImageFormat#PRIVATE } will be reprocessable into both
604      *   {@link android.graphics.ImageFormat#YUV_420_888 } and
605      *   {@link android.graphics.ImageFormat#JPEG } formats.</li>
606      * <li>For a MONOCHROME camera supporting Y8 format, {@link android.graphics.ImageFormat#PRIVATE } will be reprocessable into
607      *   {@link android.graphics.ImageFormat#Y8 }.</li>
608      * <li>The maximum available resolution for PRIVATE streams
609      *   (both input/output) will match the maximum available
610      *   resolution of JPEG streams.</li>
611      * <li>Static metadata {@link CameraCharacteristics#REPROCESS_MAX_CAPTURE_STALL android.reprocess.maxCaptureStall}.</li>
612      * <li>Only below controls are effective for reprocessing requests and
613      *   will be present in capture results, other controls in reprocess
614      *   requests will be ignored by the camera device.<ul>
615      * <li>android.jpeg.*</li>
616      * <li>{@link CaptureRequest#NOISE_REDUCTION_MODE android.noiseReduction.mode}</li>
617      * <li>{@link CaptureRequest#EDGE_MODE android.edge.mode}</li>
618      * </ul>
619      * </li>
620      * <li>{@link CameraCharacteristics#NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES android.noiseReduction.availableNoiseReductionModes} and
621      *   {@link CameraCharacteristics#EDGE_AVAILABLE_EDGE_MODES android.edge.availableEdgeModes} will both list ZERO_SHUTTER_LAG as a supported mode.</li>
622      * </ul>
623      *
624      * @see CameraCharacteristics#EDGE_AVAILABLE_EDGE_MODES
625      * @see CaptureRequest#EDGE_MODE
626      * @see CameraCharacteristics#NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES
627      * @see CaptureRequest#NOISE_REDUCTION_MODE
628      * @see CameraCharacteristics#REPROCESS_MAX_CAPTURE_STALL
629      * @see CameraCharacteristics#REQUEST_MAX_NUM_INPUT_STREAMS
630      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
631      */
632     public static final int REQUEST_AVAILABLE_CAPABILITIES_PRIVATE_REPROCESSING = 4;
633 
634     /**
635      * <p>The camera device supports accurately reporting the sensor settings for many of
636      * the sensor controls while the built-in 3A algorithm is running.  This allows
637      * reporting of sensor settings even when these settings cannot be manually changed.</p>
638      * <p>The values reported for the following controls are guaranteed to be available
639      * in the CaptureResult, including when 3A is enabled:</p>
640      * <ul>
641      * <li>Exposure control<ul>
642      * <li>{@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime}</li>
643      * </ul>
644      * </li>
645      * <li>Sensitivity control<ul>
646      * <li>{@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}</li>
647      * </ul>
648      * </li>
649      * <li>Lens controls (if the lens is adjustable)<ul>
650      * <li>{@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance}</li>
651      * <li>{@link CaptureRequest#LENS_APERTURE android.lens.aperture}</li>
652      * </ul>
653      * </li>
654      * </ul>
655      * <p>This capability is a subset of the MANUAL_SENSOR control capability, and will
656      * always be included if the MANUAL_SENSOR capability is available.</p>
657      *
658      * @see CaptureRequest#LENS_APERTURE
659      * @see CaptureRequest#LENS_FOCUS_DISTANCE
660      * @see CaptureRequest#SENSOR_EXPOSURE_TIME
661      * @see CaptureRequest#SENSOR_SENSITIVITY
662      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
663      */
664     public static final int REQUEST_AVAILABLE_CAPABILITIES_READ_SENSOR_SETTINGS = 5;
665 
666     /**
667      * <p>The camera device supports capturing high-resolution images at &gt;= 20 frames per
668      * second, in at least the uncompressed YUV format, when post-processing settings are
669      * set to FAST. Additionally, all image resolutions less than 24 megapixels can be
670      * captured at &gt;= 10 frames per second. Here, 'high resolution' means at least 8
671      * megapixels, or the maximum resolution of the device, whichever is smaller.</p>
672      * <p>More specifically, this means that a size matching the camera device's active array
673      * size is listed as a supported size for the {@link android.graphics.ImageFormat#YUV_420_888 } format in either {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputSizes } or {@link android.hardware.camera2.params.StreamConfigurationMap#getHighResolutionOutputSizes },
674      * with a minimum frame duration for that format and size of either &lt;= 1/20 s, or
675      * &lt;= 1/10 s if the image size is less than 24 megapixels, respectively; and
676      * the {@link CameraCharacteristics#CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES android.control.aeAvailableTargetFpsRanges} entry lists at least one FPS range
677      * where the minimum FPS is &gt;= 1 / minimumFrameDuration for the maximum-size
678      * YUV_420_888 format.  If that maximum size is listed in {@link android.hardware.camera2.params.StreamConfigurationMap#getHighResolutionOutputSizes },
679      * then the list of resolutions for YUV_420_888 from {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputSizes } contains at
680      * least one resolution &gt;= 8 megapixels, with a minimum frame duration of &lt;= 1/20
681      * s.</p>
682      * <p>If the device supports the {@link android.graphics.ImageFormat#RAW10 }, {@link android.graphics.ImageFormat#RAW12 }, {@link android.graphics.ImageFormat#Y8 }, then those can also be
683      * captured at the same rate as the maximum-size YUV_420_888 resolution is.</p>
684      * <p>If the device supports the PRIVATE_REPROCESSING capability, then the same guarantees
685      * as for the YUV_420_888 format also apply to the {@link android.graphics.ImageFormat#PRIVATE } format.</p>
686      * <p>In addition, the {@link CameraCharacteristics#SYNC_MAX_LATENCY android.sync.maxLatency} field is guaranteed to have a value between 0
687      * and 4, inclusive. {@link CameraCharacteristics#CONTROL_AE_LOCK_AVAILABLE android.control.aeLockAvailable} and {@link CameraCharacteristics#CONTROL_AWB_LOCK_AVAILABLE android.control.awbLockAvailable}
688      * are also guaranteed to be <code>true</code> so burst capture with these two locks ON yields
689      * consistent image output.</p>
690      *
691      * @see CameraCharacteristics#CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES
692      * @see CameraCharacteristics#CONTROL_AE_LOCK_AVAILABLE
693      * @see CameraCharacteristics#CONTROL_AWB_LOCK_AVAILABLE
694      * @see CameraCharacteristics#SYNC_MAX_LATENCY
695      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
696      */
697     public static final int REQUEST_AVAILABLE_CAPABILITIES_BURST_CAPTURE = 6;
698 
699     /**
700      * <p>The camera device supports the YUV_420_888 reprocessing use case, similar as
701      * PRIVATE_REPROCESSING, This capability requires the camera device to support the
702      * following:</p>
703      * <ul>
704      * <li>One input stream is supported, that is, <code>{@link CameraCharacteristics#REQUEST_MAX_NUM_INPUT_STREAMS android.request.maxNumInputStreams} == 1</code>.</li>
705      * <li>{@link android.graphics.ImageFormat#YUV_420_888 } is supported as an output/input
706      *   format, that is, YUV_420_888 is included in the lists of formats returned by {@link android.hardware.camera2.params.StreamConfigurationMap#getInputFormats } and {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputFormats }.</li>
707      * <li>{@link android.hardware.camera2.params.StreamConfigurationMap#getValidOutputFormatsForInput }
708      *   returns non-empty int[] for each supported input format returned by {@link android.hardware.camera2.params.StreamConfigurationMap#getInputFormats }.</li>
709      * <li>Each size returned by {@link android.hardware.camera2.params.StreamConfigurationMap#getInputSizes getInputSizes(YUV_420_888)} is also included in {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputSizes getOutputSizes(YUV_420_888)}</li>
710      * <li>Using {@link android.graphics.ImageFormat#YUV_420_888 } does not cause a frame rate
711      *   drop relative to the sensor's maximum capture rate (at that resolution).</li>
712      * <li>{@link android.graphics.ImageFormat#YUV_420_888 } will be reprocessable into both
713      *   {@link android.graphics.ImageFormat#YUV_420_888 } and {@link android.graphics.ImageFormat#JPEG } formats.</li>
714      * <li>The maximum available resolution for {@link android.graphics.ImageFormat#YUV_420_888 } streams (both input/output) will match the
715      *   maximum available resolution of {@link android.graphics.ImageFormat#JPEG } streams.</li>
716      * <li>For a MONOCHROME camera with Y8 format support, all the requirements mentioned
717      *   above for YUV_420_888 apply for Y8 format as well.</li>
718      * <li>Static metadata {@link CameraCharacteristics#REPROCESS_MAX_CAPTURE_STALL android.reprocess.maxCaptureStall}.</li>
719      * <li>Only the below controls are effective for reprocessing requests and will be present
720      *   in capture results. The reprocess requests are from the original capture results
721      *   that are associated with the intermediate {@link android.graphics.ImageFormat#YUV_420_888 } output buffers.  All other controls in the
722      *   reprocess requests will be ignored by the camera device.<ul>
723      * <li>android.jpeg.*</li>
724      * <li>{@link CaptureRequest#NOISE_REDUCTION_MODE android.noiseReduction.mode}</li>
725      * <li>{@link CaptureRequest#EDGE_MODE android.edge.mode}</li>
726      * <li>{@link CaptureRequest#REPROCESS_EFFECTIVE_EXPOSURE_FACTOR android.reprocess.effectiveExposureFactor}</li>
727      * </ul>
728      * </li>
729      * <li>{@link CameraCharacteristics#NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES android.noiseReduction.availableNoiseReductionModes} and
730      *   {@link CameraCharacteristics#EDGE_AVAILABLE_EDGE_MODES android.edge.availableEdgeModes} will both list ZERO_SHUTTER_LAG as a supported mode.</li>
731      * </ul>
732      *
733      * @see CameraCharacteristics#EDGE_AVAILABLE_EDGE_MODES
734      * @see CaptureRequest#EDGE_MODE
735      * @see CameraCharacteristics#NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES
736      * @see CaptureRequest#NOISE_REDUCTION_MODE
737      * @see CaptureRequest#REPROCESS_EFFECTIVE_EXPOSURE_FACTOR
738      * @see CameraCharacteristics#REPROCESS_MAX_CAPTURE_STALL
739      * @see CameraCharacteristics#REQUEST_MAX_NUM_INPUT_STREAMS
740      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
741      */
742     public static final int REQUEST_AVAILABLE_CAPABILITIES_YUV_REPROCESSING = 7;
743 
744     /**
745      * <p>The camera device can produce depth measurements from its field of view.</p>
746      * <p>This capability requires the camera device to support the following:</p>
747      * <ul>
748      * <li>{@link android.graphics.ImageFormat#DEPTH16 } is supported as
749      *   an output format.</li>
750      * <li>{@link android.graphics.ImageFormat#DEPTH_POINT_CLOUD } is
751      *   optionally supported as an output format.</li>
752      * <li>This camera device, and all camera devices with the same {@link CameraCharacteristics#LENS_FACING android.lens.facing}, will
753      *   list the following calibration metadata entries in both {@link android.hardware.camera2.CameraCharacteristics }
754      *   and {@link android.hardware.camera2.CaptureResult }:<ul>
755      * <li>{@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation}</li>
756      * <li>{@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation}</li>
757      * <li>{@link CameraCharacteristics#LENS_INTRINSIC_CALIBRATION android.lens.intrinsicCalibration}</li>
758      * <li>{@link CameraCharacteristics#LENS_DISTORTION android.lens.distortion}</li>
759      * </ul>
760      * </li>
761      * <li>The {@link CameraCharacteristics#DEPTH_DEPTH_IS_EXCLUSIVE android.depth.depthIsExclusive} entry is listed by this device.</li>
762      * <li>As of Android P, the {@link CameraCharacteristics#LENS_POSE_REFERENCE android.lens.poseReference} entry is listed by this device.</li>
763      * <li>A LIMITED camera with only the DEPTH_OUTPUT capability does not have to support
764      *   normal YUV_420_888, Y8, JPEG, and PRIV-format outputs. It only has to support the
765      *   DEPTH16 format.</li>
766      * </ul>
767      * <p>Generally, depth output operates at a slower frame rate than standard color capture,
768      * so the DEPTH16 and DEPTH_POINT_CLOUD formats will commonly have a stall duration that
769      * should be accounted for (see {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputStallDuration }).
770      * On a device that supports both depth and color-based output, to enable smooth preview,
771      * using a repeating burst is recommended, where a depth-output target is only included
772      * once every N frames, where N is the ratio between preview output rate and depth output
773      * rate, including depth stall time.</p>
774      *
775      * @see CameraCharacteristics#DEPTH_DEPTH_IS_EXCLUSIVE
776      * @see CameraCharacteristics#LENS_DISTORTION
777      * @see CameraCharacteristics#LENS_FACING
778      * @see CameraCharacteristics#LENS_INTRINSIC_CALIBRATION
779      * @see CameraCharacteristics#LENS_POSE_REFERENCE
780      * @see CameraCharacteristics#LENS_POSE_ROTATION
781      * @see CameraCharacteristics#LENS_POSE_TRANSLATION
782      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
783      */
784     public static final int REQUEST_AVAILABLE_CAPABILITIES_DEPTH_OUTPUT = 8;
785 
786     /**
787      * <p>The device supports constrained high speed video recording (frame rate &gt;=120fps) use
788      * case. The camera device will support high speed capture session created by {@link android.hardware.camera2.CameraDevice#createConstrainedHighSpeedCaptureSession }, which
789      * only accepts high speed request lists created by {@link android.hardware.camera2.CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList }.</p>
790      * <p>A camera device can still support high speed video streaming by advertising the high
791      * speed FPS ranges in {@link CameraCharacteristics#CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES android.control.aeAvailableTargetFpsRanges}. For this case, all
792      * normal capture request per frame control and synchronization requirements will apply
793      * to the high speed fps ranges, the same as all other fps ranges. This capability
794      * describes the capability of a specialized operating mode with many limitations (see
795      * below), which is only targeted at high speed video recording.</p>
796      * <p>The supported high speed video sizes and fps ranges are specified in {@link android.hardware.camera2.params.StreamConfigurationMap#getHighSpeedVideoFpsRanges }.
797      * To get desired output frame rates, the application is only allowed to select video
798      * size and FPS range combinations provided by {@link android.hardware.camera2.params.StreamConfigurationMap#getHighSpeedVideoSizes }.  The
799      * fps range can be controlled via {@link CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE android.control.aeTargetFpsRange}.</p>
800      * <p>In this capability, the camera device will override aeMode, awbMode, and afMode to
801      * ON, AUTO, and CONTINUOUS_VIDEO, respectively. All post-processing block mode
802      * controls will be overridden to be FAST. Therefore, no manual control of capture
803      * and post-processing parameters is possible. All other controls operate the
804      * same as when {@link CaptureRequest#CONTROL_MODE android.control.mode} == AUTO. This means that all other
805      * android.control.* fields continue to work, such as</p>
806      * <ul>
807      * <li>{@link CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE android.control.aeTargetFpsRange}</li>
808      * <li>{@link CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION android.control.aeExposureCompensation}</li>
809      * <li>{@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock}</li>
810      * <li>{@link CaptureRequest#CONTROL_AWB_LOCK android.control.awbLock}</li>
811      * <li>{@link CaptureRequest#CONTROL_EFFECT_MODE android.control.effectMode}</li>
812      * <li>{@link CaptureRequest#CONTROL_AE_REGIONS android.control.aeRegions}</li>
813      * <li>{@link CaptureRequest#CONTROL_AF_REGIONS android.control.afRegions}</li>
814      * <li>{@link CaptureRequest#CONTROL_AWB_REGIONS android.control.awbRegions}</li>
815      * <li>{@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger}</li>
816      * <li>{@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger}</li>
817      * <li>{@link CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio}</li>
818      * </ul>
819      * <p>Outside of android.control.*, the following controls will work:</p>
820      * <ul>
821      * <li>{@link CaptureRequest#FLASH_MODE android.flash.mode} (TORCH mode only, automatic flash for still capture will not
822      * work since aeMode is ON)</li>
823      * <li>{@link CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE android.lens.opticalStabilizationMode} (if it is supported)</li>
824      * <li>{@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion}</li>
825      * <li>{@link CaptureRequest#STATISTICS_FACE_DETECT_MODE android.statistics.faceDetectMode} (if it is supported)</li>
826      * </ul>
827      * <p>For high speed recording use case, the actual maximum supported frame rate may
828      * be lower than what camera can output, depending on the destination Surfaces for
829      * the image data. For example, if the destination surface is from video encoder,
830      * the application need check if the video encoder is capable of supporting the
831      * high frame rate for a given video size, or it will end up with lower recording
832      * frame rate. If the destination surface is from preview window, the actual preview frame
833      * rate will be bounded by the screen refresh rate.</p>
834      * <p>The camera device will only support up to 2 high speed simultaneous output surfaces
835      * (preview and recording surfaces) in this mode. Above controls will be effective only
836      * if all of below conditions are true:</p>
837      * <ul>
838      * <li>The application creates a camera capture session with no more than 2 surfaces via
839      * {@link android.hardware.camera2.CameraDevice#createConstrainedHighSpeedCaptureSession }. The
840      * targeted surfaces must be preview surface (either from {@link android.view.SurfaceView } or {@link android.graphics.SurfaceTexture }) or recording
841      * surface(either from {@link android.media.MediaRecorder#getSurface } or {@link android.media.MediaCodec#createInputSurface }).</li>
842      * <li>The stream sizes are selected from the sizes reported by
843      * {@link android.hardware.camera2.params.StreamConfigurationMap#getHighSpeedVideoSizes }.</li>
844      * <li>The FPS ranges are selected from {@link android.hardware.camera2.params.StreamConfigurationMap#getHighSpeedVideoFpsRanges }.</li>
845      * </ul>
846      * <p>When above conditions are NOT satisfied,
847      * {@link android.hardware.camera2.CameraDevice#createConstrainedHighSpeedCaptureSession }
848      * will fail.</p>
849      * <p>Switching to a FPS range that has different maximum FPS may trigger some camera device
850      * reconfigurations, which may introduce extra latency. It is recommended that
851      * the application avoids unnecessary maximum target FPS changes as much as possible
852      * during high speed streaming.</p>
853      *
854      * @see CameraCharacteristics#CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES
855      * @see CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION
856      * @see CaptureRequest#CONTROL_AE_LOCK
857      * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
858      * @see CaptureRequest#CONTROL_AE_REGIONS
859      * @see CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE
860      * @see CaptureRequest#CONTROL_AF_REGIONS
861      * @see CaptureRequest#CONTROL_AF_TRIGGER
862      * @see CaptureRequest#CONTROL_AWB_LOCK
863      * @see CaptureRequest#CONTROL_AWB_REGIONS
864      * @see CaptureRequest#CONTROL_EFFECT_MODE
865      * @see CaptureRequest#CONTROL_MODE
866      * @see CaptureRequest#CONTROL_ZOOM_RATIO
867      * @see CaptureRequest#FLASH_MODE
868      * @see CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE
869      * @see CaptureRequest#SCALER_CROP_REGION
870      * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
871      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
872      */
873     public static final int REQUEST_AVAILABLE_CAPABILITIES_CONSTRAINED_HIGH_SPEED_VIDEO = 9;
874 
875     /**
876      * <p>The camera device supports the MOTION_TRACKING value for
877      * {@link CaptureRequest#CONTROL_CAPTURE_INTENT android.control.captureIntent}, which limits maximum exposure time to 20 ms.</p>
878      * <p>This limits the motion blur of capture images, resulting in better image tracking
879      * results for use cases such as image stabilization or augmented reality.</p>
880      *
881      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
882      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
883      */
884     public static final int REQUEST_AVAILABLE_CAPABILITIES_MOTION_TRACKING = 10;
885 
886     /**
887      * <p>The camera device is a logical camera backed by two or more physical cameras.</p>
888      * <p>In API level 28, the physical cameras must also be exposed to the application via
889      * {@link android.hardware.camera2.CameraManager#getCameraIdList }.</p>
890      * <p>Starting from API level 29:</p>
891      * <ul>
892      * <li>Some or all physical cameras may not be independently exposed to the application,
893      * in which case the physical camera IDs will not be available in
894      * {@link android.hardware.camera2.CameraManager#getCameraIdList }. But the
895      * application can still query the physical cameras' characteristics by calling
896      * {@link android.hardware.camera2.CameraManager#getCameraCharacteristics }.</li>
897      * <li>If a physical camera is hidden from camera ID list, the mandatory stream
898      * combinations for that physical camera must be supported through the logical camera
899      * using physical streams. One exception is that in API level 30, a physical camera
900      * may become unavailable via
901      * {@link CameraManager.AvailabilityCallback#onPhysicalCameraUnavailable }
902      * callback.</li>
903      * </ul>
904      * <p>Combinations of logical and physical streams, or physical streams from different
905      * physical cameras are not guaranteed. However, if the camera device supports
906      * {@link CameraDevice#isSessionConfigurationSupported },
907      * application must be able to query whether a stream combination involving physical
908      * streams is supported by calling
909      * {@link CameraDevice#isSessionConfigurationSupported }.</p>
910      * <p>Camera application shouldn't assume that there are at most 1 rear camera and 1 front
911      * camera in the system. For an application that switches between front and back cameras,
912      * the recommendation is to switch between the first rear camera and the first front
913      * camera in the list of supported camera devices.</p>
914      * <p>This capability requires the camera device to support the following:</p>
915      * <ul>
916      * <li>The IDs of underlying physical cameras are returned via
917      *   {@link android.hardware.camera2.CameraCharacteristics#getPhysicalCameraIds }.</li>
918      * <li>This camera device must list static metadata
919      *   {@link CameraCharacteristics#LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE android.logicalMultiCamera.sensorSyncType} in
920      *   {@link android.hardware.camera2.CameraCharacteristics }.</li>
921      * <li>The underlying physical cameras' static metadata must list the following entries,
922      *   so that the application can correlate pixels from the physical streams:<ul>
923      * <li>{@link CameraCharacteristics#LENS_POSE_REFERENCE android.lens.poseReference}</li>
924      * <li>{@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation}</li>
925      * <li>{@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation}</li>
926      * <li>{@link CameraCharacteristics#LENS_INTRINSIC_CALIBRATION android.lens.intrinsicCalibration}</li>
927      * <li>{@link CameraCharacteristics#LENS_DISTORTION android.lens.distortion}</li>
928      * </ul>
929      * </li>
930      * <li>The SENSOR_INFO_TIMESTAMP_SOURCE of the logical device and physical devices must be
931      *   the same.</li>
932      * <li>The logical camera must be LIMITED or higher device.</li>
933      * </ul>
934      * <p>A logical camera device's dynamic metadata may contain
935      * {@link CaptureResult#LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID android.logicalMultiCamera.activePhysicalId} to notify the application of the current
936      * active physical camera Id. An active physical camera is the physical camera from which
937      * the logical camera's main image data outputs (YUV or RAW) and metadata come from.
938      * In addition, this serves as an indication which physical camera is used to output to
939      * a RAW stream, or in case only physical cameras support RAW, which physical RAW stream
940      * the application should request.</p>
941      * <p>Logical camera's static metadata tags below describe the default active physical
942      * camera. An active physical camera is default if it's used when application directly
943      * uses requests built from a template. All templates will default to the same active
944      * physical camera.</p>
945      * <ul>
946      * <li>{@link CameraCharacteristics#SENSOR_INFO_SENSITIVITY_RANGE android.sensor.info.sensitivityRange}</li>
947      * <li>{@link CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT android.sensor.info.colorFilterArrangement}</li>
948      * <li>{@link CameraCharacteristics#SENSOR_INFO_EXPOSURE_TIME_RANGE android.sensor.info.exposureTimeRange}</li>
949      * <li>{@link CameraCharacteristics#SENSOR_INFO_MAX_FRAME_DURATION android.sensor.info.maxFrameDuration}</li>
950      * <li>{@link CameraCharacteristics#SENSOR_INFO_PHYSICAL_SIZE android.sensor.info.physicalSize}</li>
951      * <li>{@link CameraCharacteristics#SENSOR_INFO_WHITE_LEVEL android.sensor.info.whiteLevel}</li>
952      * <li>{@link CameraCharacteristics#SENSOR_INFO_LENS_SHADING_APPLIED android.sensor.info.lensShadingApplied}</li>
953      * <li>{@link CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1 android.sensor.referenceIlluminant1}</li>
954      * <li>{@link CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2 android.sensor.referenceIlluminant2}</li>
955      * <li>{@link CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM1 android.sensor.calibrationTransform1}</li>
956      * <li>{@link CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM2 android.sensor.calibrationTransform2}</li>
957      * <li>{@link CameraCharacteristics#SENSOR_COLOR_TRANSFORM1 android.sensor.colorTransform1}</li>
958      * <li>{@link CameraCharacteristics#SENSOR_COLOR_TRANSFORM2 android.sensor.colorTransform2}</li>
959      * <li>{@link CameraCharacteristics#SENSOR_FORWARD_MATRIX1 android.sensor.forwardMatrix1}</li>
960      * <li>{@link CameraCharacteristics#SENSOR_FORWARD_MATRIX2 android.sensor.forwardMatrix2}</li>
961      * <li>{@link CameraCharacteristics#SENSOR_BLACK_LEVEL_PATTERN android.sensor.blackLevelPattern}</li>
962      * <li>{@link CameraCharacteristics#SENSOR_MAX_ANALOG_SENSITIVITY android.sensor.maxAnalogSensitivity}</li>
963      * <li>{@link CameraCharacteristics#SENSOR_OPTICAL_BLACK_REGIONS android.sensor.opticalBlackRegions}</li>
964      * <li>{@link CameraCharacteristics#SENSOR_AVAILABLE_TEST_PATTERN_MODES android.sensor.availableTestPatternModes}</li>
965      * <li>{@link CameraCharacteristics#LENS_INFO_HYPERFOCAL_DISTANCE android.lens.info.hyperfocalDistance}</li>
966      * <li>{@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance}</li>
967      * <li>{@link CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION android.lens.info.focusDistanceCalibration}</li>
968      * <li>{@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation}</li>
969      * <li>{@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation}</li>
970      * <li>{@link CameraCharacteristics#LENS_INTRINSIC_CALIBRATION android.lens.intrinsicCalibration}</li>
971      * <li>{@link CameraCharacteristics#LENS_POSE_REFERENCE android.lens.poseReference}</li>
972      * <li>{@link CameraCharacteristics#LENS_DISTORTION android.lens.distortion}</li>
973      * </ul>
974      * <p>The field of view of non-RAW physical streams must not be smaller than that of the
975      * non-RAW logical streams, or the maximum field-of-view of the physical camera,
976      * whichever is smaller. The application should check the physical capture result
977      * metadata for how the physical streams are cropped or zoomed. More specifically, given
978      * the physical camera result metadata, the effective horizontal field-of-view of the
979      * physical camera is:</p>
980      * <pre><code>fov = 2 * atan2(cropW * sensorW / (2 * zoomRatio * activeArrayW), focalLength)
981      * </code></pre>
982      * <p>where the equation parameters are the physical camera's crop region width, physical
983      * sensor width, zoom ratio, active array width, and focal length respectively. Typically
984      * the physical stream of active physical camera has the same field-of-view as the
985      * logical streams. However, the same may not be true for physical streams from
986      * non-active physical cameras. For example, if the logical camera has a wide-ultrawide
987      * configuration where the wide lens is the default, when the crop region is set to the
988      * logical camera's active array size, (and the zoom ratio set to 1.0 starting from
989      * Android 11), a physical stream for the ultrawide camera may prefer outputting images
990      * with larger field-of-view than that of the wide camera for better stereo matching
991      * margin or more robust motion tracking. At the same time, the physical non-RAW streams'
992      * field of view must not be smaller than the requested crop region and zoom ratio, as
993      * long as it's within the physical lens' capability. For example, for a logical camera
994      * with wide-tele lens configuration where the wide lens is the default, if the logical
995      * camera's crop region is set to maximum size, and zoom ratio set to 1.0, the physical
996      * stream for the tele lens will be configured to its maximum size crop region (no zoom).</p>
997      * <p><em>Deprecated:</em> Prior to Android 11, the field of view of all non-RAW physical streams
998      * cannot be larger than that of non-RAW logical streams. If the logical camera has a
999      * wide-ultrawide lens configuration where the wide lens is the default, when the logical
1000      * camera's crop region is set to maximum size, the FOV of the physical streams for the
1001      * ultrawide lens will be the same as the logical stream, by making the crop region
1002      * smaller than its active array size to compensate for the smaller focal length.</p>
1003      * <p>For a logical camera, typically the underlying physical cameras have different RAW
1004      * capabilities (such as resolution or CFA pattern). There are two ways for the
1005      * application to capture RAW images from the logical camera:</p>
1006      * <ul>
1007      * <li>If the logical camera has RAW capability, the application can create and use RAW
1008      * streams in the same way as before. In case a RAW stream is configured, to maintain
1009      * backward compatibility, the camera device makes sure the default active physical
1010      * camera remains active and does not switch to other physical cameras. (One exception
1011      * is that, if the logical camera consists of identical image sensors and advertises
1012      * multiple focalLength due to different lenses, the camera device may generate RAW
1013      * images from different physical cameras based on the focalLength being set by the
1014      * application.) This backward-compatible approach usually results in loss of optical
1015      * zoom, to telephoto lens or to ultrawide lens.</li>
1016      * <li>Alternatively, if supported by the device,
1017      * {@link android.hardware.camera2.MultiResolutionImageReader }
1018      * can be used to capture RAW images from one of the underlying physical cameras (
1019      * depending on current zoom level). Because different physical cameras may have
1020      * different RAW characteristics, the application needs to use the characteristics
1021      * and result metadata of the active physical camera for the relevant RAW metadata.</li>
1022      * </ul>
1023      * <p>The capture request and result metadata tags required for backward compatible camera
1024      * functionalities will be solely based on the logical camera capability. On the other
1025      * hand, the use of manual capture controls (sensor or post-processing) with a
1026      * logical camera may result in unexpected behavior when the HAL decides to switch
1027      * between physical cameras with different characteristics under the hood. For example,
1028      * when the application manually sets exposure time and sensitivity while zooming in,
1029      * the brightness of the camera images may suddenly change because HAL switches from one
1030      * physical camera to the other.</p>
1031      *
1032      * @see CameraCharacteristics#LENS_DISTORTION
1033      * @see CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION
1034      * @see CameraCharacteristics#LENS_INFO_HYPERFOCAL_DISTANCE
1035      * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE
1036      * @see CameraCharacteristics#LENS_INTRINSIC_CALIBRATION
1037      * @see CameraCharacteristics#LENS_POSE_REFERENCE
1038      * @see CameraCharacteristics#LENS_POSE_ROTATION
1039      * @see CameraCharacteristics#LENS_POSE_TRANSLATION
1040      * @see CaptureResult#LOGICAL_MULTI_CAMERA_ACTIVE_PHYSICAL_ID
1041      * @see CameraCharacteristics#LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE
1042      * @see CameraCharacteristics#SENSOR_AVAILABLE_TEST_PATTERN_MODES
1043      * @see CameraCharacteristics#SENSOR_BLACK_LEVEL_PATTERN
1044      * @see CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM1
1045      * @see CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM2
1046      * @see CameraCharacteristics#SENSOR_COLOR_TRANSFORM1
1047      * @see CameraCharacteristics#SENSOR_COLOR_TRANSFORM2
1048      * @see CameraCharacteristics#SENSOR_FORWARD_MATRIX1
1049      * @see CameraCharacteristics#SENSOR_FORWARD_MATRIX2
1050      * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
1051      * @see CameraCharacteristics#SENSOR_INFO_EXPOSURE_TIME_RANGE
1052      * @see CameraCharacteristics#SENSOR_INFO_LENS_SHADING_APPLIED
1053      * @see CameraCharacteristics#SENSOR_INFO_MAX_FRAME_DURATION
1054      * @see CameraCharacteristics#SENSOR_INFO_PHYSICAL_SIZE
1055      * @see CameraCharacteristics#SENSOR_INFO_SENSITIVITY_RANGE
1056      * @see CameraCharacteristics#SENSOR_INFO_WHITE_LEVEL
1057      * @see CameraCharacteristics#SENSOR_MAX_ANALOG_SENSITIVITY
1058      * @see CameraCharacteristics#SENSOR_OPTICAL_BLACK_REGIONS
1059      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1060      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2
1061      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1062      */
1063     public static final int REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA = 11;
1064 
1065     /**
1066      * <p>The camera device is a monochrome camera that doesn't contain a color filter array,
1067      * and for YUV_420_888 stream, the pixel values on U and V planes are all 128.</p>
1068      * <p>A MONOCHROME camera must support the guaranteed stream combinations required for
1069      * its device level and capabilities. Additionally, if the monochrome camera device
1070      * supports Y8 format, all mandatory stream combination requirements related to {@link android.graphics.ImageFormat#YUV_420_888 YUV_420_888} apply
1071      * to {@link android.graphics.ImageFormat#Y8 Y8} as well. There are no
1072      * mandatory stream combination requirements with regard to
1073      * {@link android.graphics.ImageFormat#Y8 Y8} for Bayer camera devices.</p>
1074      * <p>Starting from Android Q, the SENSOR_INFO_COLOR_FILTER_ARRANGEMENT of a MONOCHROME
1075      * camera will be either MONO or NIR.</p>
1076      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1077      */
1078     public static final int REQUEST_AVAILABLE_CAPABILITIES_MONOCHROME = 12;
1079 
1080     /**
1081      * <p>The camera device is capable of writing image data into a region of memory
1082      * inaccessible to Android userspace or the Android kernel, and only accessible to
1083      * trusted execution environments (TEE).</p>
1084      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1085      */
1086     public static final int REQUEST_AVAILABLE_CAPABILITIES_SECURE_IMAGE_DATA = 13;
1087 
1088     /**
1089      * <p>The camera device is only accessible by Android's system components and privileged
1090      * applications. Processes need to have the android.permission.SYSTEM_CAMERA in
1091      * addition to android.permission.CAMERA in order to connect to this camera device.</p>
1092      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1093      */
1094     public static final int REQUEST_AVAILABLE_CAPABILITIES_SYSTEM_CAMERA = 14;
1095 
1096     /**
1097      * <p>The camera device supports the OFFLINE_PROCESSING use case.</p>
1098      * <p>With OFFLINE_PROCESSING capability, the application can switch an ongoing
1099      * capture session to offline mode by calling the
1100      * CameraCaptureSession#switchToOffline method and specify streams to be kept in offline
1101      * mode. The camera will then stop currently active repeating requests, prepare for
1102      * some requests to go into offline mode, and return an offline session object. After
1103      * the switchToOffline call returns, the original capture session is in closed state as
1104      * if the CameraCaptureSession#close method has been called.
1105      * In the offline mode, all inflight requests will continue to be processed in the
1106      * background, and the application can immediately close the camera or create a new
1107      * capture session without losing those requests' output images and capture results.</p>
1108      * <p>While the camera device is processing offline requests, it
1109      * might not be able to support all stream configurations it can support
1110      * without offline requests. When that happens, the createCaptureSession
1111      * method call will fail. The following stream configurations are guaranteed to work
1112      * without hitting the resource busy exception:</p>
1113      * <ul>
1114      * <li>One ongoing offline session: target one output surface of YUV or
1115      * JPEG format, any resolution.</li>
1116      * <li>The active camera capture session:<ol>
1117      * <li>One preview surface (SurfaceView or SurfaceTexture) up to 1920 width</li>
1118      * <li>One YUV ImageReader surface up to 1920 width</li>
1119      * <li>One Jpeg ImageReader, any resolution: the camera device is
1120      *    allowed to slow down JPEG output speed by 50% if there is any ongoing offline
1121      *    session.</li>
1122      * <li>If the device supports PRIVATE_REPROCESSING, one pair of ImageWriter/ImageReader
1123      *    surfaces of private format, with the same resolution that is larger or equal to
1124      *    the JPEG ImageReader resolution above.</li>
1125      * </ol>
1126      * </li>
1127      * <li>Alternatively, the active camera session above can be replaced by an legacy
1128      * {@link android.hardware.Camera Camera} with the following parameter settings:<ol>
1129      * <li>Preview size up to 1920 width</li>
1130      * <li>Preview callback size up to 1920 width</li>
1131      * <li>Video size up to 1920 width</li>
1132      * <li>Picture size, any resolution: the camera device is
1133      *     allowed to slow down JPEG output speed by 50% if there is any ongoing offline
1134      *     session.</li>
1135      * </ol>
1136      * </li>
1137      * </ul>
1138      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1139      */
1140     public static final int REQUEST_AVAILABLE_CAPABILITIES_OFFLINE_PROCESSING = 15;
1141 
1142     /**
1143      * <p>This camera device is capable of producing ultra high resolution images in
1144      * addition to the image sizes described in the
1145      * {@link CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP android.scaler.streamConfigurationMap}.
1146      * It can operate in 'default' mode and 'max resolution' mode. It generally does this
1147      * by binning pixels in 'default' mode and not binning them in 'max resolution' mode.
1148      * <code>{@link CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP android.scaler.streamConfigurationMap}</code> describes the streams supported in 'default'
1149      * mode.
1150      * The stream configurations supported in 'max resolution' mode are described by
1151      * <code>{@link CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION android.scaler.streamConfigurationMapMaximumResolution}</code>.
1152      * The maximum resolution mode pixel array size of a camera device
1153      * (<code>{@link CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE android.sensor.info.pixelArraySize}</code>) with this capability,
1154      * will be at least 24 megapixels.</p>
1155      *
1156      * @see CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP
1157      * @see CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION
1158      * @see CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE
1159      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1160      */
1161     public static final int REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR = 16;
1162 
1163     /**
1164      * <p>The device supports reprocessing from the <code>RAW_SENSOR</code> format with a bayer pattern
1165      * given by {@link CameraCharacteristics#SENSOR_INFO_BINNING_FACTOR android.sensor.info.binningFactor} (m x n group of pixels with the same
1166      * color filter) to a remosaiced regular bayer pattern.</p>
1167      * <p>This capability will only be present for devices with
1168      * {@link android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR }
1169      * capability. When
1170      * {@link android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR }
1171      * devices do not advertise this capability,
1172      * {@link android.graphics.ImageFormat#RAW_SENSOR } images will already have a
1173      * regular bayer pattern.</p>
1174      * <p>If a <code>RAW_SENSOR</code> stream is requested along with another non-RAW stream in a
1175      * {@link android.hardware.camera2.CaptureRequest } (if multiple streams are supported
1176      * when {@link CaptureRequest#SENSOR_PIXEL_MODE android.sensor.pixelMode} is set to
1177      * {@link android.hardware.camera2.CameraMetadata#SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION }),
1178      * the <code>RAW_SENSOR</code> stream will have a regular bayer pattern.</p>
1179      * <p>This capability requires the camera device to support the following :</p>
1180      * <ul>
1181      * <li>The {@link android.hardware.camera2.params.StreamConfigurationMap } mentioned below
1182      *   refers to the one, described by
1183      *   <code>{@link CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION android.scaler.streamConfigurationMapMaximumResolution}</code>.</li>
1184      * <li>One input stream is supported, that is, <code>{@link CameraCharacteristics#REQUEST_MAX_NUM_INPUT_STREAMS android.request.maxNumInputStreams} == 1</code>.</li>
1185      * <li>{@link android.graphics.ImageFormat#RAW_SENSOR } is supported as an output/input
1186      *   format, that is, {@link android.graphics.ImageFormat#RAW_SENSOR } is included in the
1187      *   lists of formats returned by {@link android.hardware.camera2.params.StreamConfigurationMap#getInputFormats } and {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputFormats }.</li>
1188      * <li>{@link android.hardware.camera2.params.StreamConfigurationMap#getValidOutputFormatsForInput }
1189      *   returns non-empty int[] for each supported input format returned by {@link android.hardware.camera2.params.StreamConfigurationMap#getInputFormats }.</li>
1190      * <li>Each size returned by {@link android.hardware.camera2.params.StreamConfigurationMap#getInputSizes getInputSizes(ImageFormat.RAW_SENSOR)} is also included in {@link android.hardware.camera2.params.StreamConfigurationMap#getOutputSizes getOutputSizes(ImageFormat.RAW_SENSOR)}</li>
1191      * <li>Using {@link android.graphics.ImageFormat#RAW_SENSOR } does not cause a frame rate
1192      *   drop relative to the sensor's maximum capture rate (at that resolution).</li>
1193      * <li>No CaptureRequest controls will be applicable when a request has an input target
1194      *   with {@link android.graphics.ImageFormat#RAW_SENSOR } format.</li>
1195      * </ul>
1196      *
1197      * @see CameraCharacteristics#REQUEST_MAX_NUM_INPUT_STREAMS
1198      * @see CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP_MAXIMUM_RESOLUTION
1199      * @see CameraCharacteristics#SENSOR_INFO_BINNING_FACTOR
1200      * @see CaptureRequest#SENSOR_PIXEL_MODE
1201      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1202      */
1203     public static final int REQUEST_AVAILABLE_CAPABILITIES_REMOSAIC_REPROCESSING = 17;
1204 
1205     /**
1206      * <p>The device supports one or more 10-bit camera outputs according to the dynamic range
1207      * profiles specified in
1208      * {@link android.hardware.camera2.params.DynamicRangeProfiles#getSupportedProfiles }.
1209      * They can be configured as part of the capture session initialization via
1210      * {@link android.hardware.camera2.params.OutputConfiguration#setDynamicRangeProfile }.
1211      * Cameras that enable this capability must also support the following:</p>
1212      * <ul>
1213      * <li>Profile {@link android.hardware.camera2.params.DynamicRangeProfiles#HLG10 }</li>
1214      * <li>All mandatory stream combinations for this specific capability as per
1215      *   documentation {@link android.hardware.camera2.CameraDevice#createCaptureSession }</li>
1216      * <li>In case the device is not able to capture some combination of supported
1217      *   standard 8-bit and/or 10-bit dynamic range profiles within the same capture request,
1218      *   then those constraints must be listed in
1219      *   {@link android.hardware.camera2.params.DynamicRangeProfiles#getProfileCaptureRequestConstraints }</li>
1220      * <li>Recommended dynamic range profile listed in
1221      *   {@link android.hardware.camera2.CameraCharacteristics#REQUEST_RECOMMENDED_TEN_BIT_DYNAMIC_RANGE_PROFILE }.</li>
1222      * </ul>
1223      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1224      */
1225     public static final int REQUEST_AVAILABLE_CAPABILITIES_DYNAMIC_RANGE_TEN_BIT = 18;
1226 
1227     /**
1228      * <p>The camera device supports selecting a per-stream use case via
1229      * {@link android.hardware.camera2.params.OutputConfiguration#setStreamUseCase }
1230      * so that the device can optimize camera pipeline parameters such as tuning, sensor
1231      * mode, or ISP settings for a specific user scenario.
1232      * Some sample usages of this capability are:</p>
1233      * <ul>
1234      * <li>Distinguish high quality YUV captures from a regular YUV stream where
1235      *   the image quality may not be as good as the JPEG stream, or</li>
1236      * <li>Use one stream to serve multiple purposes: viewfinder, video recording and
1237      *   still capture. This is common with applications that wish to apply edits equally
1238      *   to preview, saved images, and saved videos.</li>
1239      * </ul>
1240      * <p>This capability requires the camera device to support the following
1241      * stream use cases:</p>
1242      * <ul>
1243      * <li>DEFAULT for backward compatibility where the application doesn't set
1244      *   a stream use case</li>
1245      * <li>PREVIEW for live viewfinder and in-app image analysis</li>
1246      * <li>STILL_CAPTURE for still photo capture</li>
1247      * <li>VIDEO_RECORD for recording video clips</li>
1248      * <li>PREVIEW_VIDEO_STILL for one single stream used for viewfinder, video
1249      *   recording, and still capture.</li>
1250      * <li>VIDEO_CALL for long running video calls</li>
1251      * </ul>
1252      * <p>{@link android.hardware.camera2.CameraCharacteristics#SCALER_AVAILABLE_STREAM_USE_CASES }
1253      * lists all of the supported stream use cases.</p>
1254      * <p>Refer to {@link android.hardware.camera2.CameraDevice#createCaptureSession } for the
1255      * mandatory stream combinations involving stream use cases, which can also be queried
1256      * via {@link android.hardware.camera2.params.MandatoryStreamCombination }.</p>
1257      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1258      */
1259     public static final int REQUEST_AVAILABLE_CAPABILITIES_STREAM_USE_CASE = 19;
1260 
1261     //
1262     // Enumeration values for CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1263     //
1264 
1265     /**
1266      * <p>8-bit SDR profile which is the default for all non 10-bit output capable devices.</p>
1267      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1268      * @hide
1269      */
1270     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_STANDARD = 0x1;
1271 
1272     /**
1273      * <p>10-bit pixel samples encoded using the Hybrid log-gamma transfer function.</p>
1274      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1275      * @hide
1276      */
1277     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HLG10 = 0x2;
1278 
1279     /**
1280      * <p>10-bit pixel samples encoded using the SMPTE ST 2084 transfer function.
1281      * This profile utilizes internal static metadata to increase the quality
1282      * of the capture.</p>
1283      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1284      * @hide
1285      */
1286     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HDR10 = 0x4;
1287 
1288     /**
1289      * <p>10-bit pixel samples encoded using the SMPTE ST 2084 transfer function.
1290      * In contrast to HDR10, this profile uses internal per-frame metadata
1291      * to further enhance the quality of the capture.</p>
1292      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1293      * @hide
1294      */
1295     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_HDR10_PLUS = 0x8;
1296 
1297     /**
1298      * <p>This is a camera mode for Dolby Vision capture optimized for a more scene
1299      * accurate capture. This would typically differ from what a specific device
1300      * might want to tune for a consumer optimized Dolby Vision general capture.</p>
1301      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1302      * @hide
1303      */
1304     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_REF = 0x10;
1305 
1306     /**
1307      * <p>This is the power optimized mode for 10-bit Dolby Vision HDR Reference Mode.</p>
1308      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1309      * @hide
1310      */
1311     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_REF_PO = 0x20;
1312 
1313     /**
1314      * <p>This is the camera mode for the default Dolby Vision capture mode for the
1315      * specific device. This would be tuned by each specific device for consumer
1316      * pleasing results that resonate with their particular audience. We expect
1317      * that each specific device would have a different look for their default
1318      * Dolby Vision capture.</p>
1319      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1320      * @hide
1321      */
1322     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_OEM = 0x40;
1323 
1324     /**
1325      * <p>This is the power optimized mode for 10-bit Dolby Vision HDR device specific
1326      * capture Mode.</p>
1327      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1328      * @hide
1329      */
1330     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_10B_HDR_OEM_PO = 0x80;
1331 
1332     /**
1333      * <p>This is the 8-bit version of the Dolby Vision reference capture mode optimized
1334      * for scene accuracy.</p>
1335      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1336      * @hide
1337      */
1338     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_REF = 0x100;
1339 
1340     /**
1341      * <p>This is the power optimized mode for 8-bit Dolby Vision HDR Reference Mode.</p>
1342      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1343      * @hide
1344      */
1345     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_REF_PO = 0x200;
1346 
1347     /**
1348      * <p>This is the 8-bit version of device specific tuned and optimized Dolby Vision
1349      * capture mode.</p>
1350      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1351      * @hide
1352      */
1353     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_OEM = 0x400;
1354 
1355     /**
1356      * <p>This is the power optimized mode for 8-bit Dolby Vision HDR device specific
1357      * capture Mode.</p>
1358      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1359      * @hide
1360      */
1361     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_DOLBY_VISION_8B_HDR_OEM_PO = 0x800;
1362 
1363     /**
1364      *
1365      * @see CameraCharacteristics#REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP
1366      * @hide
1367      */
1368     public static final int REQUEST_AVAILABLE_DYNAMIC_RANGE_PROFILES_MAP_MAX = 0x1000;
1369 
1370     //
1371     // Enumeration values for CameraCharacteristics#SCALER_CROPPING_TYPE
1372     //
1373 
1374     /**
1375      * <p>The camera device only supports centered crop regions.</p>
1376      * @see CameraCharacteristics#SCALER_CROPPING_TYPE
1377      */
1378     public static final int SCALER_CROPPING_TYPE_CENTER_ONLY = 0;
1379 
1380     /**
1381      * <p>The camera device supports arbitrarily chosen crop regions.</p>
1382      * @see CameraCharacteristics#SCALER_CROPPING_TYPE
1383      */
1384     public static final int SCALER_CROPPING_TYPE_FREEFORM = 1;
1385 
1386     //
1387     // Enumeration values for CameraCharacteristics#SCALER_AVAILABLE_STREAM_USE_CASES
1388     //
1389 
1390     /**
1391      * <p>Default stream use case.</p>
1392      * <p>This use case is the same as when the application doesn't set any use case for
1393      * the stream. The camera device uses the properties of the output target, such as
1394      * format, dataSpace, or surface class type, to optimize the image processing pipeline.</p>
1395      * @see CameraCharacteristics#SCALER_AVAILABLE_STREAM_USE_CASES
1396      */
1397     public static final int SCALER_AVAILABLE_STREAM_USE_CASES_DEFAULT = 0x0;
1398 
1399     /**
1400      * <p>Live stream shown to the user.</p>
1401      * <p>Optimized for performance and usability as a viewfinder, but not necessarily for
1402      * image quality. The output is not meant to be persisted as saved images or video.</p>
1403      * <p>No stall if android.control.* are set to FAST. There may be stall if
1404      * they are set to HIGH_QUALITY. This use case has the same behavior as the
1405      * default SurfaceView and SurfaceTexture targets. Additionally, this use case can be
1406      * used for in-app image analysis.</p>
1407      * @see CameraCharacteristics#SCALER_AVAILABLE_STREAM_USE_CASES
1408      */
1409     public static final int SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW = 0x1;
1410 
1411     /**
1412      * <p>Still photo capture.</p>
1413      * <p>Optimized for high-quality high-resolution capture, and not expected to maintain
1414      * preview-like frame rates.</p>
1415      * <p>The stream may have stalls regardless of whether android.control.* is HIGH_QUALITY.
1416      * This use case has the same behavior as the default JPEG and RAW related formats.</p>
1417      * @see CameraCharacteristics#SCALER_AVAILABLE_STREAM_USE_CASES
1418      */
1419     public static final int SCALER_AVAILABLE_STREAM_USE_CASES_STILL_CAPTURE = 0x2;
1420 
1421     /**
1422      * <p>Recording video clips.</p>
1423      * <p>Optimized for high-quality video capture, including high-quality image stabilization
1424      * if supported by the device and enabled by the application. As a result, may produce
1425      * output frames with a substantial lag from real time, to allow for highest-quality
1426      * stabilization or other processing. As such, such an output is not suitable for drawing
1427      * to screen directly, and is expected to be persisted to disk or similar for later
1428      * playback or processing. Only streams that set the VIDEO_RECORD use case are guaranteed
1429      * to have video stabilization applied when the video stabilization control is set
1430      * to ON, as opposed to PREVIEW_STABILIZATION.</p>
1431      * <p>This use case has the same behavior as the default MediaRecorder and MediaCodec
1432      * targets.</p>
1433      * @see CameraCharacteristics#SCALER_AVAILABLE_STREAM_USE_CASES
1434      */
1435     public static final int SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_RECORD = 0x3;
1436 
1437     /**
1438      * <p>One single stream used for combined purposes of preview, video, and still capture.</p>
1439      * <p>For such multi-purpose streams, the camera device aims to make the best tradeoff
1440      * between the individual use cases. For example, the STILL_CAPTURE use case by itself
1441      * may have stalls for achieving best image quality. But if combined with PREVIEW and
1442      * VIDEO_RECORD, the camera device needs to trade off the additional image processing
1443      * for speed so that preview and video recording aren't slowed down.</p>
1444      * <p>Similarly, VIDEO_RECORD may produce frames with a substantial lag, but
1445      * PREVIEW_VIDEO_STILL must have minimal output delay. This means that to enable video
1446      * stabilization with this use case, the device must support and the app must select the
1447      * PREVIEW_STABILIZATION mode for video stabilization.</p>
1448      * @see CameraCharacteristics#SCALER_AVAILABLE_STREAM_USE_CASES
1449      */
1450     public static final int SCALER_AVAILABLE_STREAM_USE_CASES_PREVIEW_VIDEO_STILL = 0x4;
1451 
1452     /**
1453      * <p>Long-running video call optimized for both power efficiency and video quality.</p>
1454      * <p>The camera sensor may run in a lower-resolution mode to reduce power consumption
1455      * at the cost of some image and digital zoom quality. Unlike VIDEO_RECORD, VIDEO_CALL
1456      * outputs are expected to work in dark conditions, so are usually accompanied with
1457      * variable frame rate settings to allow sufficient exposure time in low light.</p>
1458      * @see CameraCharacteristics#SCALER_AVAILABLE_STREAM_USE_CASES
1459      */
1460     public static final int SCALER_AVAILABLE_STREAM_USE_CASES_VIDEO_CALL = 0x5;
1461 
1462     /**
1463      * <p>Vendor defined use cases. These depend on the vendor implementation.</p>
1464      * @see CameraCharacteristics#SCALER_AVAILABLE_STREAM_USE_CASES
1465      * @hide
1466      */
1467     public static final int SCALER_AVAILABLE_STREAM_USE_CASES_VENDOR_START = 0x10000;
1468 
1469     //
1470     // Enumeration values for CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
1471     //
1472 
1473     /**
1474      * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
1475      */
1476     public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB = 0;
1477 
1478     /**
1479      * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
1480      */
1481     public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GRBG = 1;
1482 
1483     /**
1484      * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
1485      */
1486     public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GBRG = 2;
1487 
1488     /**
1489      * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
1490      */
1491     public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_BGGR = 3;
1492 
1493     /**
1494      * <p>Sensor is not Bayer; output has 3 16-bit
1495      * values for each pixel, instead of just 1 16-bit value
1496      * per pixel.</p>
1497      * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
1498      */
1499     public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGB = 4;
1500 
1501     /**
1502      * <p>Sensor doesn't have any Bayer color filter.
1503      * Such sensor captures visible light in monochrome. The exact weighting and
1504      * wavelengths captured is not specified, but generally only includes the visible
1505      * frequencies. This value implies a MONOCHROME camera.</p>
1506      * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
1507      */
1508     public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_MONO = 5;
1509 
1510     /**
1511      * <p>Sensor has a near infrared filter capturing light with wavelength between
1512      * roughly 750nm and 1400nm, and the same filter covers the whole sensor array. This
1513      * value implies a MONOCHROME camera.</p>
1514      * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
1515      */
1516     public static final int SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_NIR = 6;
1517 
1518     //
1519     // Enumeration values for CameraCharacteristics#SENSOR_INFO_TIMESTAMP_SOURCE
1520     //
1521 
1522     /**
1523      * <p>Timestamps from {@link CaptureResult#SENSOR_TIMESTAMP android.sensor.timestamp} are in nanoseconds and monotonic, but can
1524      * not be compared to timestamps from other subsystems (e.g. accelerometer, gyro etc.),
1525      * or other instances of the same or different camera devices in the same system with
1526      * accuracy. However, the timestamps are roughly in the same timebase as
1527      * {@link android.os.SystemClock#uptimeMillis }.  The accuracy is sufficient for tasks
1528      * like A/V synchronization for video recording, at least, and the timestamps can be
1529      * directly used together with timestamps from the audio subsystem for that task.</p>
1530      * <p>Timestamps between streams and results for a single camera instance are comparable,
1531      * and the timestamps for all buffers and the result metadata generated by a single
1532      * capture are identical.</p>
1533      *
1534      * @see CaptureResult#SENSOR_TIMESTAMP
1535      * @see CameraCharacteristics#SENSOR_INFO_TIMESTAMP_SOURCE
1536      */
1537     public static final int SENSOR_INFO_TIMESTAMP_SOURCE_UNKNOWN = 0;
1538 
1539     /**
1540      * <p>Timestamps from {@link CaptureResult#SENSOR_TIMESTAMP android.sensor.timestamp} are in the same timebase as
1541      * {@link android.os.SystemClock#elapsedRealtimeNanos },
1542      * and they can be compared to other timestamps using that base.</p>
1543      * <p>When buffers from a REALTIME device are passed directly to a video encoder from the
1544      * camera, automatic compensation is done to account for differing timebases of the
1545      * audio and camera subsystems.  If the application is receiving buffers and then later
1546      * sending them to a video encoder or other application where they are compared with
1547      * audio subsystem timestamps or similar, this compensation is not present.  In those
1548      * cases, applications need to adjust the timestamps themselves.  Since {@link android.os.SystemClock#elapsedRealtimeNanos } and {@link android.os.SystemClock#uptimeMillis } only diverge while the device is asleep, an
1549      * offset between the two sources can be measured once per active session and applied
1550      * to timestamps for sufficient accuracy for A/V sync.</p>
1551      *
1552      * @see CaptureResult#SENSOR_TIMESTAMP
1553      * @see CameraCharacteristics#SENSOR_INFO_TIMESTAMP_SOURCE
1554      */
1555     public static final int SENSOR_INFO_TIMESTAMP_SOURCE_REALTIME = 1;
1556 
1557     //
1558     // Enumeration values for CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1559     //
1560 
1561     /**
1562      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1563      */
1564     public static final int SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT = 1;
1565 
1566     /**
1567      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1568      */
1569     public static final int SENSOR_REFERENCE_ILLUMINANT1_FLUORESCENT = 2;
1570 
1571     /**
1572      * <p>Incandescent light</p>
1573      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1574      */
1575     public static final int SENSOR_REFERENCE_ILLUMINANT1_TUNGSTEN = 3;
1576 
1577     /**
1578      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1579      */
1580     public static final int SENSOR_REFERENCE_ILLUMINANT1_FLASH = 4;
1581 
1582     /**
1583      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1584      */
1585     public static final int SENSOR_REFERENCE_ILLUMINANT1_FINE_WEATHER = 9;
1586 
1587     /**
1588      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1589      */
1590     public static final int SENSOR_REFERENCE_ILLUMINANT1_CLOUDY_WEATHER = 10;
1591 
1592     /**
1593      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1594      */
1595     public static final int SENSOR_REFERENCE_ILLUMINANT1_SHADE = 11;
1596 
1597     /**
1598      * <p>D 5700 - 7100K</p>
1599      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1600      */
1601     public static final int SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT_FLUORESCENT = 12;
1602 
1603     /**
1604      * <p>N 4600 - 5400K</p>
1605      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1606      */
1607     public static final int SENSOR_REFERENCE_ILLUMINANT1_DAY_WHITE_FLUORESCENT = 13;
1608 
1609     /**
1610      * <p>W 3900 - 4500K</p>
1611      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1612      */
1613     public static final int SENSOR_REFERENCE_ILLUMINANT1_COOL_WHITE_FLUORESCENT = 14;
1614 
1615     /**
1616      * <p>WW 3200 - 3700K</p>
1617      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1618      */
1619     public static final int SENSOR_REFERENCE_ILLUMINANT1_WHITE_FLUORESCENT = 15;
1620 
1621     /**
1622      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1623      */
1624     public static final int SENSOR_REFERENCE_ILLUMINANT1_STANDARD_A = 17;
1625 
1626     /**
1627      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1628      */
1629     public static final int SENSOR_REFERENCE_ILLUMINANT1_STANDARD_B = 18;
1630 
1631     /**
1632      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1633      */
1634     public static final int SENSOR_REFERENCE_ILLUMINANT1_STANDARD_C = 19;
1635 
1636     /**
1637      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1638      */
1639     public static final int SENSOR_REFERENCE_ILLUMINANT1_D55 = 20;
1640 
1641     /**
1642      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1643      */
1644     public static final int SENSOR_REFERENCE_ILLUMINANT1_D65 = 21;
1645 
1646     /**
1647      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1648      */
1649     public static final int SENSOR_REFERENCE_ILLUMINANT1_D75 = 22;
1650 
1651     /**
1652      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1653      */
1654     public static final int SENSOR_REFERENCE_ILLUMINANT1_D50 = 23;
1655 
1656     /**
1657      * @see CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1
1658      */
1659     public static final int SENSOR_REFERENCE_ILLUMINANT1_ISO_STUDIO_TUNGSTEN = 24;
1660 
1661     //
1662     // Enumeration values for CameraCharacteristics#SENSOR_READOUT_TIMESTAMP
1663     //
1664 
1665     /**
1666      * <p>This camera device doesn't support readout timestamp and onReadoutStarted
1667      * callback.</p>
1668      * @see CameraCharacteristics#SENSOR_READOUT_TIMESTAMP
1669      * @hide
1670      */
1671     public static final int SENSOR_READOUT_TIMESTAMP_NOT_SUPPORTED = 0;
1672 
1673     /**
1674      * <p>This camera device supports the onReadoutStarted callback as well as outputting
1675      * readout timestamp for streams with TIMESTAMP_BASE_READOUT_SENSOR timestamp base. The
1676      * readout timestamp is generated by the camera hardware and it has the same accuracy
1677      * and timing characteristics of the start-of-exposure time.</p>
1678      * @see CameraCharacteristics#SENSOR_READOUT_TIMESTAMP
1679      * @hide
1680      */
1681     public static final int SENSOR_READOUT_TIMESTAMP_HARDWARE = 1;
1682 
1683     //
1684     // Enumeration values for CameraCharacteristics#LED_AVAILABLE_LEDS
1685     //
1686 
1687     /**
1688      * <p>android.led.transmit control is used.</p>
1689      * @see CameraCharacteristics#LED_AVAILABLE_LEDS
1690      * @hide
1691      */
1692     public static final int LED_AVAILABLE_LEDS_TRANSMIT = 0;
1693 
1694     //
1695     // Enumeration values for CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
1696     //
1697 
1698     /**
1699      * <p>This camera device does not have enough capabilities to qualify as a <code>FULL</code> device or
1700      * better.</p>
1701      * <p>Only the stream configurations listed in the <code>LEGACY</code> and <code>LIMITED</code> tables in the
1702      * {@link android.hardware.camera2.CameraDevice#createCaptureSession createCaptureSession} documentation are guaranteed to be supported.</p>
1703      * <p>All <code>LIMITED</code> devices support the <code>BACKWARDS_COMPATIBLE</code> capability, indicating basic
1704      * support for color image capture. The only exception is that the device may
1705      * alternatively support only the <code>DEPTH_OUTPUT</code> capability, if it can only output depth
1706      * measurements and not color images.</p>
1707      * <p><code>LIMITED</code> devices and above require the use of {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger}
1708      * to lock exposure metering (and calculate flash power, for cameras with flash) before
1709      * capturing a high-quality still image.</p>
1710      * <p>A <code>LIMITED</code> device that only lists the <code>BACKWARDS_COMPATIBLE</code> capability is only
1711      * required to support full-automatic operation and post-processing (<code>OFF</code> is not
1712      * supported for {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode}, {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}, or
1713      * {@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode})</p>
1714      * <p>Additional capabilities may optionally be supported by a <code>LIMITED</code>-level device, and
1715      * can be checked for in {@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities}.</p>
1716      *
1717      * @see CaptureRequest#CONTROL_AE_MODE
1718      * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
1719      * @see CaptureRequest#CONTROL_AF_MODE
1720      * @see CaptureRequest#CONTROL_AWB_MODE
1721      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1722      * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
1723      */
1724     public static final int INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED = 0;
1725 
1726     /**
1727      * <p>This camera device is capable of supporting advanced imaging applications.</p>
1728      * <p>The stream configurations listed in the <code>FULL</code>, <code>LEGACY</code> and <code>LIMITED</code> tables in the
1729      * {@link android.hardware.camera2.CameraDevice#createCaptureSession createCaptureSession} documentation are guaranteed to be supported.</p>
1730      * <p>A <code>FULL</code> device will support below capabilities:</p>
1731      * <ul>
1732      * <li><code>BURST_CAPTURE</code> capability ({@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities} contains
1733      *   <code>BURST_CAPTURE</code>)</li>
1734      * <li>Per frame control ({@link CameraCharacteristics#SYNC_MAX_LATENCY android.sync.maxLatency} <code>==</code> PER_FRAME_CONTROL)</li>
1735      * <li>Manual sensor control ({@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities} contains <code>MANUAL_SENSOR</code>)</li>
1736      * <li>Manual post-processing control ({@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities} contains
1737      *   <code>MANUAL_POST_PROCESSING</code>)</li>
1738      * <li>The required exposure time range defined in {@link CameraCharacteristics#SENSOR_INFO_EXPOSURE_TIME_RANGE android.sensor.info.exposureTimeRange}</li>
1739      * <li>The required maxFrameDuration defined in {@link CameraCharacteristics#SENSOR_INFO_MAX_FRAME_DURATION android.sensor.info.maxFrameDuration}</li>
1740      * </ul>
1741      * <p>Note:
1742      * Pre-API level 23, FULL devices also supported arbitrary cropping region
1743      * ({@link CameraCharacteristics#SCALER_CROPPING_TYPE android.scaler.croppingType} <code>== FREEFORM</code>); this requirement was relaxed in API level
1744      * 23, and <code>FULL</code> devices may only support <code>CENTERED</code> cropping.</p>
1745      *
1746      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1747      * @see CameraCharacteristics#SCALER_CROPPING_TYPE
1748      * @see CameraCharacteristics#SENSOR_INFO_EXPOSURE_TIME_RANGE
1749      * @see CameraCharacteristics#SENSOR_INFO_MAX_FRAME_DURATION
1750      * @see CameraCharacteristics#SYNC_MAX_LATENCY
1751      * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
1752      */
1753     public static final int INFO_SUPPORTED_HARDWARE_LEVEL_FULL = 1;
1754 
1755     /**
1756      * <p>This camera device is running in backward compatibility mode.</p>
1757      * <p>Only the stream configurations listed in the <code>LEGACY</code> table in the {@link android.hardware.camera2.CameraDevice#createCaptureSession createCaptureSession} documentation are supported.</p>
1758      * <p>A <code>LEGACY</code> device does not support per-frame control, manual sensor control, manual
1759      * post-processing, arbitrary cropping regions, and has relaxed performance constraints.
1760      * No additional capabilities beyond <code>BACKWARD_COMPATIBLE</code> will ever be listed by a
1761      * <code>LEGACY</code> device in {@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities}.</p>
1762      * <p>In addition, the {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger} is not functional on <code>LEGACY</code>
1763      * devices. Instead, every request that includes a JPEG-format output target is treated
1764      * as triggering a still capture, internally executing a precapture trigger.  This may
1765      * fire the flash for flash power metering during precapture, and then fire the flash
1766      * for the final capture, if a flash is available on the device and the AE mode is set to
1767      * enable the flash.</p>
1768      * <p>Devices that initially shipped with Android version {@link android.os.Build.VERSION_CODES#Q Q} or newer will not include any LEGACY-level devices.</p>
1769      *
1770      * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
1771      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1772      * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
1773      */
1774     public static final int INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY = 2;
1775 
1776     /**
1777      * <p>This camera device is capable of YUV reprocessing and RAW data capture, in addition to
1778      * FULL-level capabilities.</p>
1779      * <p>The stream configurations listed in the <code>LEVEL_3</code>, <code>RAW</code>, <code>FULL</code>, <code>LEGACY</code> and
1780      * <code>LIMITED</code> tables in the {@link android.hardware.camera2.CameraDevice#createCaptureSession createCaptureSession} documentation are guaranteed to be supported.</p>
1781      * <p>The following additional capabilities are guaranteed to be supported:</p>
1782      * <ul>
1783      * <li><code>YUV_REPROCESSING</code> capability ({@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities} contains
1784      *   <code>YUV_REPROCESSING</code>)</li>
1785      * <li><code>RAW</code> capability ({@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities} contains
1786      *   <code>RAW</code>)</li>
1787      * </ul>
1788      *
1789      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
1790      * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
1791      */
1792     public static final int INFO_SUPPORTED_HARDWARE_LEVEL_3 = 3;
1793 
1794     /**
1795      * <p>This camera device is backed by an external camera connected to this Android device.</p>
1796      * <p>The device has capability identical to a LIMITED level device, with the following
1797      * exceptions:</p>
1798      * <ul>
1799      * <li>The device may not report lens/sensor related information such as<ul>
1800      * <li>{@link CaptureRequest#LENS_FOCAL_LENGTH android.lens.focalLength}</li>
1801      * <li>{@link CameraCharacteristics#LENS_INFO_HYPERFOCAL_DISTANCE android.lens.info.hyperfocalDistance}</li>
1802      * <li>{@link CameraCharacteristics#SENSOR_INFO_PHYSICAL_SIZE android.sensor.info.physicalSize}</li>
1803      * <li>{@link CameraCharacteristics#SENSOR_INFO_WHITE_LEVEL android.sensor.info.whiteLevel}</li>
1804      * <li>{@link CameraCharacteristics#SENSOR_BLACK_LEVEL_PATTERN android.sensor.blackLevelPattern}</li>
1805      * <li>{@link CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT android.sensor.info.colorFilterArrangement}</li>
1806      * <li>{@link CaptureResult#SENSOR_ROLLING_SHUTTER_SKEW android.sensor.rollingShutterSkew}</li>
1807      * </ul>
1808      * </li>
1809      * <li>The device will report 0 for {@link CameraCharacteristics#SENSOR_ORIENTATION android.sensor.orientation}</li>
1810      * <li>The device has less guarantee on stable framerate, as the framerate partly depends
1811      *   on the external camera being used.</li>
1812      * </ul>
1813      *
1814      * @see CaptureRequest#LENS_FOCAL_LENGTH
1815      * @see CameraCharacteristics#LENS_INFO_HYPERFOCAL_DISTANCE
1816      * @see CameraCharacteristics#SENSOR_BLACK_LEVEL_PATTERN
1817      * @see CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT
1818      * @see CameraCharacteristics#SENSOR_INFO_PHYSICAL_SIZE
1819      * @see CameraCharacteristics#SENSOR_INFO_WHITE_LEVEL
1820      * @see CameraCharacteristics#SENSOR_ORIENTATION
1821      * @see CaptureResult#SENSOR_ROLLING_SHUTTER_SKEW
1822      * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
1823      */
1824     public static final int INFO_SUPPORTED_HARDWARE_LEVEL_EXTERNAL = 4;
1825 
1826     //
1827     // Enumeration values for CameraCharacteristics#SYNC_MAX_LATENCY
1828     //
1829 
1830     /**
1831      * <p>Every frame has the requests immediately applied.</p>
1832      * <p>Changing controls over multiple requests one after another will
1833      * produce results that have those controls applied atomically
1834      * each frame.</p>
1835      * <p>All FULL capability devices will have this as their maxLatency.</p>
1836      * @see CameraCharacteristics#SYNC_MAX_LATENCY
1837      */
1838     public static final int SYNC_MAX_LATENCY_PER_FRAME_CONTROL = 0;
1839 
1840     /**
1841      * <p>Each new frame has some subset (potentially the entire set)
1842      * of the past requests applied to the camera settings.</p>
1843      * <p>By submitting a series of identical requests, the camera device
1844      * will eventually have the camera settings applied, but it is
1845      * unknown when that exact point will be.</p>
1846      * <p>All LEGACY capability devices will have this as their maxLatency.</p>
1847      * @see CameraCharacteristics#SYNC_MAX_LATENCY
1848      */
1849     public static final int SYNC_MAX_LATENCY_UNKNOWN = -1;
1850 
1851     //
1852     // Enumeration values for CameraCharacteristics#LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE
1853     //
1854 
1855     /**
1856      * <p>A software mechanism is used to synchronize between the physical cameras. As a result,
1857      * the timestamp of an image from a physical stream is only an approximation of the
1858      * image sensor start-of-exposure time.</p>
1859      * @see CameraCharacteristics#LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE
1860      */
1861     public static final int LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_APPROXIMATE = 0;
1862 
1863     /**
1864      * <p>The camera device supports frame timestamp synchronization at the hardware level,
1865      * and the timestamp of a physical stream image accurately reflects its
1866      * start-of-exposure time.</p>
1867      * @see CameraCharacteristics#LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE
1868      */
1869     public static final int LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_CALIBRATED = 1;
1870 
1871     //
1872     // Enumeration values for CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1873     //
1874 
1875     /**
1876      * <p>The camera device faces the outside of the vehicle body frame but not exactly
1877      * one of the exterior sides defined by this enum.  Applications should determine
1878      * the exact facing direction from {@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation} and
1879      * {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation}.</p>
1880      *
1881      * @see CameraCharacteristics#LENS_POSE_ROTATION
1882      * @see CameraCharacteristics#LENS_POSE_TRANSLATION
1883      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1884      */
1885     public static final int AUTOMOTIVE_LENS_FACING_EXTERIOR_OTHER = 0;
1886 
1887     /**
1888      * <p>The camera device faces the front of the vehicle body frame.</p>
1889      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1890      */
1891     public static final int AUTOMOTIVE_LENS_FACING_EXTERIOR_FRONT = 1;
1892 
1893     /**
1894      * <p>The camera device faces the rear of the vehicle body frame.</p>
1895      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1896      */
1897     public static final int AUTOMOTIVE_LENS_FACING_EXTERIOR_REAR = 2;
1898 
1899     /**
1900      * <p>The camera device faces the left side of the vehicle body frame.</p>
1901      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1902      */
1903     public static final int AUTOMOTIVE_LENS_FACING_EXTERIOR_LEFT = 3;
1904 
1905     /**
1906      * <p>The camera device faces the right side of the vehicle body frame.</p>
1907      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1908      */
1909     public static final int AUTOMOTIVE_LENS_FACING_EXTERIOR_RIGHT = 4;
1910 
1911     /**
1912      * <p>The camera device faces the inside of the vehicle body frame but not exactly
1913      * one of seats described by this enum.  Applications should determine the exact
1914      * facing direction from {@link CameraCharacteristics#LENS_POSE_ROTATION android.lens.poseRotation} and {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation}.</p>
1915      *
1916      * @see CameraCharacteristics#LENS_POSE_ROTATION
1917      * @see CameraCharacteristics#LENS_POSE_TRANSLATION
1918      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1919      */
1920     public static final int AUTOMOTIVE_LENS_FACING_INTERIOR_OTHER = 5;
1921 
1922     /**
1923      * <p>The camera device faces the left side seat of the first row.</p>
1924      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1925      */
1926     public static final int AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_1_LEFT = 6;
1927 
1928     /**
1929      * <p>The camera device faces the center seat of the first row.</p>
1930      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1931      */
1932     public static final int AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_1_CENTER = 7;
1933 
1934     /**
1935      * <p>The camera device faces the right seat of the first row.</p>
1936      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1937      */
1938     public static final int AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_1_RIGHT = 8;
1939 
1940     /**
1941      * <p>The camera device faces the left side seat of the second row.</p>
1942      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1943      */
1944     public static final int AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_2_LEFT = 9;
1945 
1946     /**
1947      * <p>The camera device faces the center seat of the second row.</p>
1948      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1949      */
1950     public static final int AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_2_CENTER = 10;
1951 
1952     /**
1953      * <p>The camera device faces the right side seat of the second row.</p>
1954      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1955      */
1956     public static final int AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_2_RIGHT = 11;
1957 
1958     /**
1959      * <p>The camera device faces the left side seat of the third row.</p>
1960      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1961      */
1962     public static final int AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_3_LEFT = 12;
1963 
1964     /**
1965      * <p>The camera device faces the center seat of the third row.</p>
1966      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1967      */
1968     public static final int AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_3_CENTER = 13;
1969 
1970     /**
1971      * <p>The camera device faces the right seat of the third row.</p>
1972      * @see CameraCharacteristics#AUTOMOTIVE_LENS_FACING
1973      */
1974     public static final int AUTOMOTIVE_LENS_FACING_INTERIOR_SEAT_ROW_3_RIGHT = 14;
1975 
1976     //
1977     // Enumeration values for CameraCharacteristics#AUTOMOTIVE_LOCATION
1978     //
1979 
1980     /**
1981      * <p>The camera device exists inside of the vehicle cabin.</p>
1982      * @see CameraCharacteristics#AUTOMOTIVE_LOCATION
1983      */
1984     public static final int AUTOMOTIVE_LOCATION_INTERIOR = 0;
1985 
1986     /**
1987      * <p>The camera exists outside of the vehicle body frame but not exactly on one of the
1988      * exterior locations this enum defines.  The applications should determine the exact
1989      * location from {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation}.</p>
1990      *
1991      * @see CameraCharacteristics#LENS_POSE_TRANSLATION
1992      * @see CameraCharacteristics#AUTOMOTIVE_LOCATION
1993      */
1994     public static final int AUTOMOTIVE_LOCATION_EXTERIOR_OTHER = 1;
1995 
1996     /**
1997      * <p>The camera device exists outside of the vehicle body frame and on its front side.</p>
1998      * @see CameraCharacteristics#AUTOMOTIVE_LOCATION
1999      */
2000     public static final int AUTOMOTIVE_LOCATION_EXTERIOR_FRONT = 2;
2001 
2002     /**
2003      * <p>The camera device exists outside of the vehicle body frame and on its rear side.</p>
2004      * @see CameraCharacteristics#AUTOMOTIVE_LOCATION
2005      */
2006     public static final int AUTOMOTIVE_LOCATION_EXTERIOR_REAR = 3;
2007 
2008     /**
2009      * <p>The camera device exists outside and on left side of the vehicle body frame.</p>
2010      * @see CameraCharacteristics#AUTOMOTIVE_LOCATION
2011      */
2012     public static final int AUTOMOTIVE_LOCATION_EXTERIOR_LEFT = 4;
2013 
2014     /**
2015      * <p>The camera device exists outside and on right side of the vehicle body frame.</p>
2016      * @see CameraCharacteristics#AUTOMOTIVE_LOCATION
2017      */
2018     public static final int AUTOMOTIVE_LOCATION_EXTERIOR_RIGHT = 5;
2019 
2020     /**
2021      * <p>The camera device exists on an extra vehicle, such as the trailer, but not exactly
2022      * on one of front, rear, left, or right side.  Applications should determine the exact
2023      * location from {@link CameraCharacteristics#LENS_POSE_TRANSLATION android.lens.poseTranslation}.</p>
2024      *
2025      * @see CameraCharacteristics#LENS_POSE_TRANSLATION
2026      * @see CameraCharacteristics#AUTOMOTIVE_LOCATION
2027      */
2028     public static final int AUTOMOTIVE_LOCATION_EXTRA_OTHER = 6;
2029 
2030     /**
2031      * <p>The camera device exists outside of the extra vehicle's body frame and on its front
2032      * side.</p>
2033      * @see CameraCharacteristics#AUTOMOTIVE_LOCATION
2034      */
2035     public static final int AUTOMOTIVE_LOCATION_EXTRA_FRONT = 7;
2036 
2037     /**
2038      * <p>The camera device exists outside of the extra vehicle's body frame and on its rear
2039      * side.</p>
2040      * @see CameraCharacteristics#AUTOMOTIVE_LOCATION
2041      */
2042     public static final int AUTOMOTIVE_LOCATION_EXTRA_REAR = 8;
2043 
2044     /**
2045      * <p>The camera device exists outside and on left side of the extra vehicle body.</p>
2046      * @see CameraCharacteristics#AUTOMOTIVE_LOCATION
2047      */
2048     public static final int AUTOMOTIVE_LOCATION_EXTRA_LEFT = 9;
2049 
2050     /**
2051      * <p>The camera device exists outside and on right side of the extra vehicle body.</p>
2052      * @see CameraCharacteristics#AUTOMOTIVE_LOCATION
2053      */
2054     public static final int AUTOMOTIVE_LOCATION_EXTRA_RIGHT = 10;
2055 
2056     //
2057     // Enumeration values for CaptureRequest#COLOR_CORRECTION_MODE
2058     //
2059 
2060     /**
2061      * <p>Use the {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform} matrix
2062      * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} to do color conversion.</p>
2063      * <p>All advanced white balance adjustments (not specified
2064      * by our white balance pipeline) must be disabled.</p>
2065      * <p>If AWB is enabled with <code>{@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} != OFF</code>, then
2066      * TRANSFORM_MATRIX is ignored. The camera device will override
2067      * this value to either FAST or HIGH_QUALITY.</p>
2068      *
2069      * @see CaptureRequest#COLOR_CORRECTION_GAINS
2070      * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
2071      * @see CaptureRequest#CONTROL_AWB_MODE
2072      * @see CaptureRequest#COLOR_CORRECTION_MODE
2073      */
2074     public static final int COLOR_CORRECTION_MODE_TRANSFORM_MATRIX = 0;
2075 
2076     /**
2077      * <p>Color correction processing must not slow down
2078      * capture rate relative to sensor raw output.</p>
2079      * <p>Advanced white balance adjustments above and beyond
2080      * the specified white balance pipeline may be applied.</p>
2081      * <p>If AWB is enabled with <code>{@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} != OFF</code>, then
2082      * the camera device uses the last frame's AWB values
2083      * (or defaults if AWB has never been run).</p>
2084      *
2085      * @see CaptureRequest#CONTROL_AWB_MODE
2086      * @see CaptureRequest#COLOR_CORRECTION_MODE
2087      */
2088     public static final int COLOR_CORRECTION_MODE_FAST = 1;
2089 
2090     /**
2091      * <p>Color correction processing operates at improved
2092      * quality but the capture rate might be reduced (relative to sensor
2093      * raw output rate)</p>
2094      * <p>Advanced white balance adjustments above and beyond
2095      * the specified white balance pipeline may be applied.</p>
2096      * <p>If AWB is enabled with <code>{@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} != OFF</code>, then
2097      * the camera device uses the last frame's AWB values
2098      * (or defaults if AWB has never been run).</p>
2099      *
2100      * @see CaptureRequest#CONTROL_AWB_MODE
2101      * @see CaptureRequest#COLOR_CORRECTION_MODE
2102      */
2103     public static final int COLOR_CORRECTION_MODE_HIGH_QUALITY = 2;
2104 
2105     //
2106     // Enumeration values for CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE
2107     //
2108 
2109     /**
2110      * <p>No aberration correction is applied.</p>
2111      * @see CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE
2112      */
2113     public static final int COLOR_CORRECTION_ABERRATION_MODE_OFF = 0;
2114 
2115     /**
2116      * <p>Aberration correction will not slow down capture rate
2117      * relative to sensor raw output.</p>
2118      * @see CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE
2119      */
2120     public static final int COLOR_CORRECTION_ABERRATION_MODE_FAST = 1;
2121 
2122     /**
2123      * <p>Aberration correction operates at improved quality but the capture rate might be
2124      * reduced (relative to sensor raw output rate)</p>
2125      * @see CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE
2126      */
2127     public static final int COLOR_CORRECTION_ABERRATION_MODE_HIGH_QUALITY = 2;
2128 
2129     //
2130     // Enumeration values for CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
2131     //
2132 
2133     /**
2134      * <p>The camera device will not adjust exposure duration to
2135      * avoid banding problems.</p>
2136      * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
2137      */
2138     public static final int CONTROL_AE_ANTIBANDING_MODE_OFF = 0;
2139 
2140     /**
2141      * <p>The camera device will adjust exposure duration to
2142      * avoid banding problems with 50Hz illumination sources.</p>
2143      * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
2144      */
2145     public static final int CONTROL_AE_ANTIBANDING_MODE_50HZ = 1;
2146 
2147     /**
2148      * <p>The camera device will adjust exposure duration to
2149      * avoid banding problems with 60Hz illumination
2150      * sources.</p>
2151      * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
2152      */
2153     public static final int CONTROL_AE_ANTIBANDING_MODE_60HZ = 2;
2154 
2155     /**
2156      * <p>The camera device will automatically adapt its
2157      * antibanding routine to the current illumination
2158      * condition. This is the default mode if AUTO is
2159      * available on given camera device.</p>
2160      * @see CaptureRequest#CONTROL_AE_ANTIBANDING_MODE
2161      */
2162     public static final int CONTROL_AE_ANTIBANDING_MODE_AUTO = 3;
2163 
2164     //
2165     // Enumeration values for CaptureRequest#CONTROL_AE_MODE
2166     //
2167 
2168     /**
2169      * <p>The camera device's autoexposure routine is disabled.</p>
2170      * <p>The application-selected {@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime},
2171      * {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity} and
2172      * {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} are used by the camera
2173      * device, along with android.flash.* fields, if there's
2174      * a flash unit for this camera device.</p>
2175      * <p>Note that auto-white balance (AWB) and auto-focus (AF)
2176      * behavior is device dependent when AE is in OFF mode.
2177      * To have consistent behavior across different devices,
2178      * it is recommended to either set AWB and AF to OFF mode
2179      * or lock AWB and AF before setting AE to OFF.
2180      * See {@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode}, {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode},
2181      * {@link CaptureRequest#CONTROL_AWB_LOCK android.control.awbLock}, and {@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger}
2182      * for more details.</p>
2183      * <p>LEGACY devices do not support the OFF mode and will
2184      * override attempts to use this value to ON.</p>
2185      *
2186      * @see CaptureRequest#CONTROL_AF_MODE
2187      * @see CaptureRequest#CONTROL_AF_TRIGGER
2188      * @see CaptureRequest#CONTROL_AWB_LOCK
2189      * @see CaptureRequest#CONTROL_AWB_MODE
2190      * @see CaptureRequest#SENSOR_EXPOSURE_TIME
2191      * @see CaptureRequest#SENSOR_FRAME_DURATION
2192      * @see CaptureRequest#SENSOR_SENSITIVITY
2193      * @see CaptureRequest#CONTROL_AE_MODE
2194      */
2195     public static final int CONTROL_AE_MODE_OFF = 0;
2196 
2197     /**
2198      * <p>The camera device's autoexposure routine is active,
2199      * with no flash control.</p>
2200      * <p>The application's values for
2201      * {@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime},
2202      * {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}, and
2203      * {@link CaptureRequest#SENSOR_FRAME_DURATION android.sensor.frameDuration} are ignored. The
2204      * application has control over the various
2205      * android.flash.* fields.</p>
2206      *
2207      * @see CaptureRequest#SENSOR_EXPOSURE_TIME
2208      * @see CaptureRequest#SENSOR_FRAME_DURATION
2209      * @see CaptureRequest#SENSOR_SENSITIVITY
2210      * @see CaptureRequest#CONTROL_AE_MODE
2211      */
2212     public static final int CONTROL_AE_MODE_ON = 1;
2213 
2214     /**
2215      * <p>Like ON, except that the camera device also controls
2216      * the camera's flash unit, firing it in low-light
2217      * conditions.</p>
2218      * <p>The flash may be fired during a precapture sequence
2219      * (triggered by {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger}) and
2220      * may be fired for captures for which the
2221      * {@link CaptureRequest#CONTROL_CAPTURE_INTENT android.control.captureIntent} field is set to
2222      * STILL_CAPTURE</p>
2223      *
2224      * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
2225      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
2226      * @see CaptureRequest#CONTROL_AE_MODE
2227      */
2228     public static final int CONTROL_AE_MODE_ON_AUTO_FLASH = 2;
2229 
2230     /**
2231      * <p>Like ON, except that the camera device also controls
2232      * the camera's flash unit, always firing it for still
2233      * captures.</p>
2234      * <p>The flash may be fired during a precapture sequence
2235      * (triggered by {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger}) and
2236      * will always be fired for captures for which the
2237      * {@link CaptureRequest#CONTROL_CAPTURE_INTENT android.control.captureIntent} field is set to
2238      * STILL_CAPTURE</p>
2239      *
2240      * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
2241      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
2242      * @see CaptureRequest#CONTROL_AE_MODE
2243      */
2244     public static final int CONTROL_AE_MODE_ON_ALWAYS_FLASH = 3;
2245 
2246     /**
2247      * <p>Like ON_AUTO_FLASH, but with automatic red eye
2248      * reduction.</p>
2249      * <p>If deemed necessary by the camera device, a red eye
2250      * reduction flash will fire during the precapture
2251      * sequence.</p>
2252      * @see CaptureRequest#CONTROL_AE_MODE
2253      */
2254     public static final int CONTROL_AE_MODE_ON_AUTO_FLASH_REDEYE = 4;
2255 
2256     /**
2257      * <p>An external flash has been turned on.</p>
2258      * <p>It informs the camera device that an external flash has been turned on, and that
2259      * metering (and continuous focus if active) should be quickly recaculated to account
2260      * for the external flash. Otherwise, this mode acts like ON.</p>
2261      * <p>When the external flash is turned off, AE mode should be changed to one of the
2262      * other available AE modes.</p>
2263      * <p>If the camera device supports AE external flash mode, {@link CaptureResult#CONTROL_AE_STATE android.control.aeState} must
2264      * be FLASH_REQUIRED after the camera device finishes AE scan and it's too dark without
2265      * flash.</p>
2266      *
2267      * @see CaptureResult#CONTROL_AE_STATE
2268      * @see CaptureRequest#CONTROL_AE_MODE
2269      */
2270     public static final int CONTROL_AE_MODE_ON_EXTERNAL_FLASH = 5;
2271 
2272     //
2273     // Enumeration values for CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
2274     //
2275 
2276     /**
2277      * <p>The trigger is idle.</p>
2278      * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
2279      */
2280     public static final int CONTROL_AE_PRECAPTURE_TRIGGER_IDLE = 0;
2281 
2282     /**
2283      * <p>The precapture metering sequence will be started
2284      * by the camera device.</p>
2285      * <p>The exact effect of the precapture trigger depends on
2286      * the current AE mode and state.</p>
2287      * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
2288      */
2289     public static final int CONTROL_AE_PRECAPTURE_TRIGGER_START = 1;
2290 
2291     /**
2292      * <p>The camera device will cancel any currently active or completed
2293      * precapture metering sequence, the auto-exposure routine will return to its
2294      * initial state.</p>
2295      * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
2296      */
2297     public static final int CONTROL_AE_PRECAPTURE_TRIGGER_CANCEL = 2;
2298 
2299     //
2300     // Enumeration values for CaptureRequest#CONTROL_AF_MODE
2301     //
2302 
2303     /**
2304      * <p>The auto-focus routine does not control the lens;
2305      * {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance} is controlled by the
2306      * application.</p>
2307      *
2308      * @see CaptureRequest#LENS_FOCUS_DISTANCE
2309      * @see CaptureRequest#CONTROL_AF_MODE
2310      */
2311     public static final int CONTROL_AF_MODE_OFF = 0;
2312 
2313     /**
2314      * <p>Basic automatic focus mode.</p>
2315      * <p>In this mode, the lens does not move unless
2316      * the autofocus trigger action is called. When that trigger
2317      * is activated, AF will transition to ACTIVE_SCAN, then to
2318      * the outcome of the scan (FOCUSED or NOT_FOCUSED).</p>
2319      * <p>Always supported if lens is not fixed focus.</p>
2320      * <p>Use {@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance} to determine if lens
2321      * is fixed-focus.</p>
2322      * <p>Triggering AF_CANCEL resets the lens position to default,
2323      * and sets the AF state to INACTIVE.</p>
2324      *
2325      * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE
2326      * @see CaptureRequest#CONTROL_AF_MODE
2327      */
2328     public static final int CONTROL_AF_MODE_AUTO = 1;
2329 
2330     /**
2331      * <p>Close-up focusing mode.</p>
2332      * <p>In this mode, the lens does not move unless the
2333      * autofocus trigger action is called. When that trigger is
2334      * activated, AF will transition to ACTIVE_SCAN, then to
2335      * the outcome of the scan (FOCUSED or NOT_FOCUSED). This
2336      * mode is optimized for focusing on objects very close to
2337      * the camera.</p>
2338      * <p>When that trigger is activated, AF will transition to
2339      * ACTIVE_SCAN, then to the outcome of the scan (FOCUSED or
2340      * NOT_FOCUSED). Triggering cancel AF resets the lens
2341      * position to default, and sets the AF state to
2342      * INACTIVE.</p>
2343      * @see CaptureRequest#CONTROL_AF_MODE
2344      */
2345     public static final int CONTROL_AF_MODE_MACRO = 2;
2346 
2347     /**
2348      * <p>In this mode, the AF algorithm modifies the lens
2349      * position continually to attempt to provide a
2350      * constantly-in-focus image stream.</p>
2351      * <p>The focusing behavior should be suitable for good quality
2352      * video recording; typically this means slower focus
2353      * movement and no overshoots. When the AF trigger is not
2354      * involved, the AF algorithm should start in INACTIVE state,
2355      * and then transition into PASSIVE_SCAN and PASSIVE_FOCUSED
2356      * states as appropriate. When the AF trigger is activated,
2357      * the algorithm should immediately transition into
2358      * AF_FOCUSED or AF_NOT_FOCUSED as appropriate, and lock the
2359      * lens position until a cancel AF trigger is received.</p>
2360      * <p>Once cancel is received, the algorithm should transition
2361      * back to INACTIVE and resume passive scan. Note that this
2362      * behavior is not identical to CONTINUOUS_PICTURE, since an
2363      * ongoing PASSIVE_SCAN must immediately be
2364      * canceled.</p>
2365      * @see CaptureRequest#CONTROL_AF_MODE
2366      */
2367     public static final int CONTROL_AF_MODE_CONTINUOUS_VIDEO = 3;
2368 
2369     /**
2370      * <p>In this mode, the AF algorithm modifies the lens
2371      * position continually to attempt to provide a
2372      * constantly-in-focus image stream.</p>
2373      * <p>The focusing behavior should be suitable for still image
2374      * capture; typically this means focusing as fast as
2375      * possible. When the AF trigger is not involved, the AF
2376      * algorithm should start in INACTIVE state, and then
2377      * transition into PASSIVE_SCAN and PASSIVE_FOCUSED states as
2378      * appropriate as it attempts to maintain focus. When the AF
2379      * trigger is activated, the algorithm should finish its
2380      * PASSIVE_SCAN if active, and then transition into
2381      * AF_FOCUSED or AF_NOT_FOCUSED as appropriate, and lock the
2382      * lens position until a cancel AF trigger is received.</p>
2383      * <p>When the AF cancel trigger is activated, the algorithm
2384      * should transition back to INACTIVE and then act as if it
2385      * has just been started.</p>
2386      * @see CaptureRequest#CONTROL_AF_MODE
2387      */
2388     public static final int CONTROL_AF_MODE_CONTINUOUS_PICTURE = 4;
2389 
2390     /**
2391      * <p>Extended depth of field (digital focus) mode.</p>
2392      * <p>The camera device will produce images with an extended
2393      * depth of field automatically; no special focusing
2394      * operations need to be done before taking a picture.</p>
2395      * <p>AF triggers are ignored, and the AF state will always be
2396      * INACTIVE.</p>
2397      * @see CaptureRequest#CONTROL_AF_MODE
2398      */
2399     public static final int CONTROL_AF_MODE_EDOF = 5;
2400 
2401     //
2402     // Enumeration values for CaptureRequest#CONTROL_AF_TRIGGER
2403     //
2404 
2405     /**
2406      * <p>The trigger is idle.</p>
2407      * @see CaptureRequest#CONTROL_AF_TRIGGER
2408      */
2409     public static final int CONTROL_AF_TRIGGER_IDLE = 0;
2410 
2411     /**
2412      * <p>Autofocus will trigger now.</p>
2413      * @see CaptureRequest#CONTROL_AF_TRIGGER
2414      */
2415     public static final int CONTROL_AF_TRIGGER_START = 1;
2416 
2417     /**
2418      * <p>Autofocus will return to its initial
2419      * state, and cancel any currently active trigger.</p>
2420      * @see CaptureRequest#CONTROL_AF_TRIGGER
2421      */
2422     public static final int CONTROL_AF_TRIGGER_CANCEL = 2;
2423 
2424     //
2425     // Enumeration values for CaptureRequest#CONTROL_AWB_MODE
2426     //
2427 
2428     /**
2429      * <p>The camera device's auto-white balance routine is disabled.</p>
2430      * <p>The application-selected color transform matrix
2431      * ({@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}) and gains
2432      * ({@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains}) are used by the camera
2433      * device for manual white balance control.</p>
2434      *
2435      * @see CaptureRequest#COLOR_CORRECTION_GAINS
2436      * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
2437      * @see CaptureRequest#CONTROL_AWB_MODE
2438      */
2439     public static final int CONTROL_AWB_MODE_OFF = 0;
2440 
2441     /**
2442      * <p>The camera device's auto-white balance routine is active.</p>
2443      * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
2444      * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
2445      * For devices that support the MANUAL_POST_PROCESSING capability, the
2446      * values used by the camera device for the transform and gains
2447      * will be available in the capture result for this request.</p>
2448      *
2449      * @see CaptureRequest#COLOR_CORRECTION_GAINS
2450      * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
2451      * @see CaptureRequest#CONTROL_AWB_MODE
2452      */
2453     public static final int CONTROL_AWB_MODE_AUTO = 1;
2454 
2455     /**
2456      * <p>The camera device's auto-white balance routine is disabled;
2457      * the camera device uses incandescent light as the assumed scene
2458      * illumination for white balance.</p>
2459      * <p>While the exact white balance transforms are up to the
2460      * camera device, they will approximately match the CIE
2461      * standard illuminant A.</p>
2462      * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
2463      * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
2464      * For devices that support the MANUAL_POST_PROCESSING capability, the
2465      * values used by the camera device for the transform and gains
2466      * will be available in the capture result for this request.</p>
2467      *
2468      * @see CaptureRequest#COLOR_CORRECTION_GAINS
2469      * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
2470      * @see CaptureRequest#CONTROL_AWB_MODE
2471      */
2472     public static final int CONTROL_AWB_MODE_INCANDESCENT = 2;
2473 
2474     /**
2475      * <p>The camera device's auto-white balance routine is disabled;
2476      * the camera device uses fluorescent light as the assumed scene
2477      * illumination for white balance.</p>
2478      * <p>While the exact white balance transforms are up to the
2479      * camera device, they will approximately match the CIE
2480      * standard illuminant F2.</p>
2481      * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
2482      * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
2483      * For devices that support the MANUAL_POST_PROCESSING capability, the
2484      * values used by the camera device for the transform and gains
2485      * will be available in the capture result for this request.</p>
2486      *
2487      * @see CaptureRequest#COLOR_CORRECTION_GAINS
2488      * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
2489      * @see CaptureRequest#CONTROL_AWB_MODE
2490      */
2491     public static final int CONTROL_AWB_MODE_FLUORESCENT = 3;
2492 
2493     /**
2494      * <p>The camera device's auto-white balance routine is disabled;
2495      * the camera device uses warm fluorescent light as the assumed scene
2496      * illumination for white balance.</p>
2497      * <p>While the exact white balance transforms are up to the
2498      * camera device, they will approximately match the CIE
2499      * standard illuminant F4.</p>
2500      * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
2501      * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
2502      * For devices that support the MANUAL_POST_PROCESSING capability, the
2503      * values used by the camera device for the transform and gains
2504      * will be available in the capture result for this request.</p>
2505      *
2506      * @see CaptureRequest#COLOR_CORRECTION_GAINS
2507      * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
2508      * @see CaptureRequest#CONTROL_AWB_MODE
2509      */
2510     public static final int CONTROL_AWB_MODE_WARM_FLUORESCENT = 4;
2511 
2512     /**
2513      * <p>The camera device's auto-white balance routine is disabled;
2514      * the camera device uses daylight light as the assumed scene
2515      * illumination for white balance.</p>
2516      * <p>While the exact white balance transforms are up to the
2517      * camera device, they will approximately match the CIE
2518      * standard illuminant D65.</p>
2519      * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
2520      * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
2521      * For devices that support the MANUAL_POST_PROCESSING capability, the
2522      * values used by the camera device for the transform and gains
2523      * will be available in the capture result for this request.</p>
2524      *
2525      * @see CaptureRequest#COLOR_CORRECTION_GAINS
2526      * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
2527      * @see CaptureRequest#CONTROL_AWB_MODE
2528      */
2529     public static final int CONTROL_AWB_MODE_DAYLIGHT = 5;
2530 
2531     /**
2532      * <p>The camera device's auto-white balance routine is disabled;
2533      * the camera device uses cloudy daylight light as the assumed scene
2534      * illumination for white balance.</p>
2535      * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
2536      * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
2537      * For devices that support the MANUAL_POST_PROCESSING capability, the
2538      * values used by the camera device for the transform and gains
2539      * will be available in the capture result for this request.</p>
2540      *
2541      * @see CaptureRequest#COLOR_CORRECTION_GAINS
2542      * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
2543      * @see CaptureRequest#CONTROL_AWB_MODE
2544      */
2545     public static final int CONTROL_AWB_MODE_CLOUDY_DAYLIGHT = 6;
2546 
2547     /**
2548      * <p>The camera device's auto-white balance routine is disabled;
2549      * the camera device uses twilight light as the assumed scene
2550      * illumination for white balance.</p>
2551      * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
2552      * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
2553      * For devices that support the MANUAL_POST_PROCESSING capability, the
2554      * values used by the camera device for the transform and gains
2555      * will be available in the capture result for this request.</p>
2556      *
2557      * @see CaptureRequest#COLOR_CORRECTION_GAINS
2558      * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
2559      * @see CaptureRequest#CONTROL_AWB_MODE
2560      */
2561     public static final int CONTROL_AWB_MODE_TWILIGHT = 7;
2562 
2563     /**
2564      * <p>The camera device's auto-white balance routine is disabled;
2565      * the camera device uses shade light as the assumed scene
2566      * illumination for white balance.</p>
2567      * <p>The application's values for {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform}
2568      * and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains} are ignored.
2569      * For devices that support the MANUAL_POST_PROCESSING capability, the
2570      * values used by the camera device for the transform and gains
2571      * will be available in the capture result for this request.</p>
2572      *
2573      * @see CaptureRequest#COLOR_CORRECTION_GAINS
2574      * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
2575      * @see CaptureRequest#CONTROL_AWB_MODE
2576      */
2577     public static final int CONTROL_AWB_MODE_SHADE = 8;
2578 
2579     //
2580     // Enumeration values for CaptureRequest#CONTROL_CAPTURE_INTENT
2581     //
2582 
2583     /**
2584      * <p>The goal of this request doesn't fall into the other
2585      * categories. The camera device will default to preview-like
2586      * behavior.</p>
2587      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
2588      */
2589     public static final int CONTROL_CAPTURE_INTENT_CUSTOM = 0;
2590 
2591     /**
2592      * <p>This request is for a preview-like use case.</p>
2593      * <p>The precapture trigger may be used to start off a metering
2594      * w/flash sequence.</p>
2595      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
2596      */
2597     public static final int CONTROL_CAPTURE_INTENT_PREVIEW = 1;
2598 
2599     /**
2600      * <p>This request is for a still capture-type
2601      * use case.</p>
2602      * <p>If the flash unit is under automatic control, it may fire as needed.</p>
2603      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
2604      */
2605     public static final int CONTROL_CAPTURE_INTENT_STILL_CAPTURE = 2;
2606 
2607     /**
2608      * <p>This request is for a video recording
2609      * use case.</p>
2610      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
2611      */
2612     public static final int CONTROL_CAPTURE_INTENT_VIDEO_RECORD = 3;
2613 
2614     /**
2615      * <p>This request is for a video snapshot (still
2616      * image while recording video) use case.</p>
2617      * <p>The camera device should take the highest-quality image
2618      * possible (given the other settings) without disrupting the
2619      * frame rate of video recording.  </p>
2620      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
2621      */
2622     public static final int CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT = 4;
2623 
2624     /**
2625      * <p>This request is for a ZSL usecase; the
2626      * application will stream full-resolution images and
2627      * reprocess one or several later for a final
2628      * capture.</p>
2629      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
2630      */
2631     public static final int CONTROL_CAPTURE_INTENT_ZERO_SHUTTER_LAG = 5;
2632 
2633     /**
2634      * <p>This request is for manual capture use case where
2635      * the applications want to directly control the capture parameters.</p>
2636      * <p>For example, the application may wish to manually control
2637      * {@link CaptureRequest#SENSOR_EXPOSURE_TIME android.sensor.exposureTime}, {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity}, etc.</p>
2638      *
2639      * @see CaptureRequest#SENSOR_EXPOSURE_TIME
2640      * @see CaptureRequest#SENSOR_SENSITIVITY
2641      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
2642      */
2643     public static final int CONTROL_CAPTURE_INTENT_MANUAL = 6;
2644 
2645     /**
2646      * <p>This request is for a motion tracking use case, where
2647      * the application will use camera and inertial sensor data to
2648      * locate and track objects in the world.</p>
2649      * <p>The camera device auto-exposure routine will limit the exposure time
2650      * of the camera to no more than 20 milliseconds, to minimize motion blur.</p>
2651      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
2652      */
2653     public static final int CONTROL_CAPTURE_INTENT_MOTION_TRACKING = 7;
2654 
2655     //
2656     // Enumeration values for CaptureRequest#CONTROL_EFFECT_MODE
2657     //
2658 
2659     /**
2660      * <p>No color effect will be applied.</p>
2661      * @see CaptureRequest#CONTROL_EFFECT_MODE
2662      */
2663     public static final int CONTROL_EFFECT_MODE_OFF = 0;
2664 
2665     /**
2666      * <p>A "monocolor" effect where the image is mapped into
2667      * a single color.</p>
2668      * <p>This will typically be grayscale.</p>
2669      * @see CaptureRequest#CONTROL_EFFECT_MODE
2670      */
2671     public static final int CONTROL_EFFECT_MODE_MONO = 1;
2672 
2673     /**
2674      * <p>A "photo-negative" effect where the image's colors
2675      * are inverted.</p>
2676      * @see CaptureRequest#CONTROL_EFFECT_MODE
2677      */
2678     public static final int CONTROL_EFFECT_MODE_NEGATIVE = 2;
2679 
2680     /**
2681      * <p>A "solarisation" effect (Sabattier effect) where the
2682      * image is wholly or partially reversed in
2683      * tone.</p>
2684      * @see CaptureRequest#CONTROL_EFFECT_MODE
2685      */
2686     public static final int CONTROL_EFFECT_MODE_SOLARIZE = 3;
2687 
2688     /**
2689      * <p>A "sepia" effect where the image is mapped into warm
2690      * gray, red, and brown tones.</p>
2691      * @see CaptureRequest#CONTROL_EFFECT_MODE
2692      */
2693     public static final int CONTROL_EFFECT_MODE_SEPIA = 4;
2694 
2695     /**
2696      * <p>A "posterization" effect where the image uses
2697      * discrete regions of tone rather than a continuous
2698      * gradient of tones.</p>
2699      * @see CaptureRequest#CONTROL_EFFECT_MODE
2700      */
2701     public static final int CONTROL_EFFECT_MODE_POSTERIZE = 5;
2702 
2703     /**
2704      * <p>A "whiteboard" effect where the image is typically displayed
2705      * as regions of white, with black or grey details.</p>
2706      * @see CaptureRequest#CONTROL_EFFECT_MODE
2707      */
2708     public static final int CONTROL_EFFECT_MODE_WHITEBOARD = 6;
2709 
2710     /**
2711      * <p>A "blackboard" effect where the image is typically displayed
2712      * as regions of black, with white or grey details.</p>
2713      * @see CaptureRequest#CONTROL_EFFECT_MODE
2714      */
2715     public static final int CONTROL_EFFECT_MODE_BLACKBOARD = 7;
2716 
2717     /**
2718      * <p>An "aqua" effect where a blue hue is added to the image.</p>
2719      * @see CaptureRequest#CONTROL_EFFECT_MODE
2720      */
2721     public static final int CONTROL_EFFECT_MODE_AQUA = 8;
2722 
2723     //
2724     // Enumeration values for CaptureRequest#CONTROL_MODE
2725     //
2726 
2727     /**
2728      * <p>Full application control of pipeline.</p>
2729      * <p>All control by the device's metering and focusing (3A)
2730      * routines is disabled, and no other settings in
2731      * android.control.* have any effect, except that
2732      * {@link CaptureRequest#CONTROL_CAPTURE_INTENT android.control.captureIntent} may be used by the camera
2733      * device to select post-processing values for processing
2734      * blocks that do not allow for manual control, or are not
2735      * exposed by the camera API.</p>
2736      * <p>However, the camera device's 3A routines may continue to
2737      * collect statistics and update their internal state so that
2738      * when control is switched to AUTO mode, good control values
2739      * can be immediately applied.</p>
2740      *
2741      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
2742      * @see CaptureRequest#CONTROL_MODE
2743      */
2744     public static final int CONTROL_MODE_OFF = 0;
2745 
2746     /**
2747      * <p>Use settings for each individual 3A routine.</p>
2748      * <p>Manual control of capture parameters is disabled. All
2749      * controls in android.control.* besides sceneMode take
2750      * effect.</p>
2751      * @see CaptureRequest#CONTROL_MODE
2752      */
2753     public static final int CONTROL_MODE_AUTO = 1;
2754 
2755     /**
2756      * <p>Use a specific scene mode.</p>
2757      * <p>Enabling this disables control.aeMode, control.awbMode and
2758      * control.afMode controls; the camera device will ignore
2759      * those settings while USE_SCENE_MODE is active (except for
2760      * FACE_PRIORITY scene mode). Other control entries are still active.
2761      * This setting can only be used if scene mode is supported (i.e.
2762      * {@link CameraCharacteristics#CONTROL_AVAILABLE_SCENE_MODES android.control.availableSceneModes}
2763      * contain some modes other than DISABLED).</p>
2764      * <p>For extended scene modes such as BOKEH, please use USE_EXTENDED_SCENE_MODE instead.</p>
2765      *
2766      * @see CameraCharacteristics#CONTROL_AVAILABLE_SCENE_MODES
2767      * @see CaptureRequest#CONTROL_MODE
2768      */
2769     public static final int CONTROL_MODE_USE_SCENE_MODE = 2;
2770 
2771     /**
2772      * <p>Same as OFF mode, except that this capture will not be
2773      * used by camera device background auto-exposure, auto-white balance and
2774      * auto-focus algorithms (3A) to update their statistics.</p>
2775      * <p>Specifically, the 3A routines are locked to the last
2776      * values set from a request with AUTO, OFF, or
2777      * USE_SCENE_MODE, and any statistics or state updates
2778      * collected from manual captures with OFF_KEEP_STATE will be
2779      * discarded by the camera device.</p>
2780      * @see CaptureRequest#CONTROL_MODE
2781      */
2782     public static final int CONTROL_MODE_OFF_KEEP_STATE = 3;
2783 
2784     /**
2785      * <p>Use a specific extended scene mode.</p>
2786      * <p>When extended scene mode is on, the camera device may override certain control
2787      * parameters, such as targetFpsRange, AE, AWB, and AF modes, to achieve best power and
2788      * quality tradeoffs. Only the mandatory stream combinations of LIMITED hardware level
2789      * are guaranteed.</p>
2790      * <p>This setting can only be used if extended scene mode is supported (i.e.
2791      * android.control.availableExtendedSceneModes
2792      * contains some modes other than DISABLED).</p>
2793      * @see CaptureRequest#CONTROL_MODE
2794      */
2795     public static final int CONTROL_MODE_USE_EXTENDED_SCENE_MODE = 4;
2796 
2797     //
2798     // Enumeration values for CaptureRequest#CONTROL_SCENE_MODE
2799     //
2800 
2801     /**
2802      * <p>Indicates that no scene modes are set for a given capture request.</p>
2803      * @see CaptureRequest#CONTROL_SCENE_MODE
2804      */
2805     public static final int CONTROL_SCENE_MODE_DISABLED = 0;
2806 
2807     /**
2808      * <p>If face detection support exists, use face
2809      * detection data for auto-focus, auto-white balance, and
2810      * auto-exposure routines.</p>
2811      * <p>If face detection statistics are disabled
2812      * (i.e. {@link CaptureRequest#STATISTICS_FACE_DETECT_MODE android.statistics.faceDetectMode} is set to OFF),
2813      * this should still operate correctly (but will not return
2814      * face detection statistics to the framework).</p>
2815      * <p>Unlike the other scene modes, {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode},
2816      * {@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode}, and {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}
2817      * remain active when FACE_PRIORITY is set.</p>
2818      *
2819      * @see CaptureRequest#CONTROL_AE_MODE
2820      * @see CaptureRequest#CONTROL_AF_MODE
2821      * @see CaptureRequest#CONTROL_AWB_MODE
2822      * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
2823      * @see CaptureRequest#CONTROL_SCENE_MODE
2824      */
2825     public static final int CONTROL_SCENE_MODE_FACE_PRIORITY = 1;
2826 
2827     /**
2828      * <p>Optimized for photos of quickly moving objects.</p>
2829      * <p>Similar to SPORTS.</p>
2830      * @see CaptureRequest#CONTROL_SCENE_MODE
2831      */
2832     public static final int CONTROL_SCENE_MODE_ACTION = 2;
2833 
2834     /**
2835      * <p>Optimized for still photos of people.</p>
2836      * @see CaptureRequest#CONTROL_SCENE_MODE
2837      */
2838     public static final int CONTROL_SCENE_MODE_PORTRAIT = 3;
2839 
2840     /**
2841      * <p>Optimized for photos of distant macroscopic objects.</p>
2842      * @see CaptureRequest#CONTROL_SCENE_MODE
2843      */
2844     public static final int CONTROL_SCENE_MODE_LANDSCAPE = 4;
2845 
2846     /**
2847      * <p>Optimized for low-light settings.</p>
2848      * @see CaptureRequest#CONTROL_SCENE_MODE
2849      */
2850     public static final int CONTROL_SCENE_MODE_NIGHT = 5;
2851 
2852     /**
2853      * <p>Optimized for still photos of people in low-light
2854      * settings.</p>
2855      * @see CaptureRequest#CONTROL_SCENE_MODE
2856      */
2857     public static final int CONTROL_SCENE_MODE_NIGHT_PORTRAIT = 6;
2858 
2859     /**
2860      * <p>Optimized for dim, indoor settings where flash must
2861      * remain off.</p>
2862      * @see CaptureRequest#CONTROL_SCENE_MODE
2863      */
2864     public static final int CONTROL_SCENE_MODE_THEATRE = 7;
2865 
2866     /**
2867      * <p>Optimized for bright, outdoor beach settings.</p>
2868      * @see CaptureRequest#CONTROL_SCENE_MODE
2869      */
2870     public static final int CONTROL_SCENE_MODE_BEACH = 8;
2871 
2872     /**
2873      * <p>Optimized for bright, outdoor settings containing snow.</p>
2874      * @see CaptureRequest#CONTROL_SCENE_MODE
2875      */
2876     public static final int CONTROL_SCENE_MODE_SNOW = 9;
2877 
2878     /**
2879      * <p>Optimized for scenes of the setting sun.</p>
2880      * @see CaptureRequest#CONTROL_SCENE_MODE
2881      */
2882     public static final int CONTROL_SCENE_MODE_SUNSET = 10;
2883 
2884     /**
2885      * <p>Optimized to avoid blurry photos due to small amounts of
2886      * device motion (for example: due to hand shake).</p>
2887      * @see CaptureRequest#CONTROL_SCENE_MODE
2888      */
2889     public static final int CONTROL_SCENE_MODE_STEADYPHOTO = 11;
2890 
2891     /**
2892      * <p>Optimized for nighttime photos of fireworks.</p>
2893      * @see CaptureRequest#CONTROL_SCENE_MODE
2894      */
2895     public static final int CONTROL_SCENE_MODE_FIREWORKS = 12;
2896 
2897     /**
2898      * <p>Optimized for photos of quickly moving people.</p>
2899      * <p>Similar to ACTION.</p>
2900      * @see CaptureRequest#CONTROL_SCENE_MODE
2901      */
2902     public static final int CONTROL_SCENE_MODE_SPORTS = 13;
2903 
2904     /**
2905      * <p>Optimized for dim, indoor settings with multiple moving
2906      * people.</p>
2907      * @see CaptureRequest#CONTROL_SCENE_MODE
2908      */
2909     public static final int CONTROL_SCENE_MODE_PARTY = 14;
2910 
2911     /**
2912      * <p>Optimized for dim settings where the main light source
2913      * is a candle.</p>
2914      * @see CaptureRequest#CONTROL_SCENE_MODE
2915      */
2916     public static final int CONTROL_SCENE_MODE_CANDLELIGHT = 15;
2917 
2918     /**
2919      * <p>Optimized for accurately capturing a photo of barcode
2920      * for use by camera applications that wish to read the
2921      * barcode value.</p>
2922      * @see CaptureRequest#CONTROL_SCENE_MODE
2923      */
2924     public static final int CONTROL_SCENE_MODE_BARCODE = 16;
2925 
2926     /**
2927      * <p>This is deprecated, please use {@link android.hardware.camera2.CameraDevice#createConstrainedHighSpeedCaptureSession }
2928      * and {@link android.hardware.camera2.CameraConstrainedHighSpeedCaptureSession#createHighSpeedRequestList }
2929      * for high speed video recording.</p>
2930      * <p>Optimized for high speed video recording (frame rate &gt;=60fps) use case.</p>
2931      * <p>The supported high speed video sizes and fps ranges are specified in
2932      * android.control.availableHighSpeedVideoConfigurations. To get desired
2933      * output frame rates, the application is only allowed to select video size
2934      * and fps range combinations listed in this static metadata. The fps range
2935      * can be control via {@link CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE android.control.aeTargetFpsRange}.</p>
2936      * <p>In this mode, the camera device will override aeMode, awbMode, and afMode to
2937      * ON, ON, and CONTINUOUS_VIDEO, respectively. All post-processing block mode
2938      * controls will be overridden to be FAST. Therefore, no manual control of capture
2939      * and post-processing parameters is possible. All other controls operate the
2940      * same as when {@link CaptureRequest#CONTROL_MODE android.control.mode} == AUTO. This means that all other
2941      * android.control.* fields continue to work, such as</p>
2942      * <ul>
2943      * <li>{@link CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE android.control.aeTargetFpsRange}</li>
2944      * <li>{@link CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION android.control.aeExposureCompensation}</li>
2945      * <li>{@link CaptureRequest#CONTROL_AE_LOCK android.control.aeLock}</li>
2946      * <li>{@link CaptureRequest#CONTROL_AWB_LOCK android.control.awbLock}</li>
2947      * <li>{@link CaptureRequest#CONTROL_EFFECT_MODE android.control.effectMode}</li>
2948      * <li>{@link CaptureRequest#CONTROL_AE_REGIONS android.control.aeRegions}</li>
2949      * <li>{@link CaptureRequest#CONTROL_AF_REGIONS android.control.afRegions}</li>
2950      * <li>{@link CaptureRequest#CONTROL_AWB_REGIONS android.control.awbRegions}</li>
2951      * <li>{@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger}</li>
2952      * <li>{@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger}</li>
2953      * <li>{@link CaptureRequest#CONTROL_ZOOM_RATIO android.control.zoomRatio}</li>
2954      * </ul>
2955      * <p>Outside of android.control.*, the following controls will work:</p>
2956      * <ul>
2957      * <li>{@link CaptureRequest#FLASH_MODE android.flash.mode} (automatic flash for still capture will not work since aeMode is ON)</li>
2958      * <li>{@link CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE android.lens.opticalStabilizationMode} (if it is supported)</li>
2959      * <li>{@link CaptureRequest#SCALER_CROP_REGION android.scaler.cropRegion}</li>
2960      * <li>{@link CaptureRequest#STATISTICS_FACE_DETECT_MODE android.statistics.faceDetectMode}</li>
2961      * </ul>
2962      * <p>For high speed recording use case, the actual maximum supported frame rate may
2963      * be lower than what camera can output, depending on the destination Surfaces for
2964      * the image data. For example, if the destination surface is from video encoder,
2965      * the application need check if the video encoder is capable of supporting the
2966      * high frame rate for a given video size, or it will end up with lower recording
2967      * frame rate. If the destination surface is from preview window, the preview frame
2968      * rate will be bounded by the screen refresh rate.</p>
2969      * <p>The camera device will only support up to 2 output high speed streams
2970      * (processed non-stalling format defined in android.request.maxNumOutputStreams)
2971      * in this mode. This control will be effective only if all of below conditions are true:</p>
2972      * <ul>
2973      * <li>The application created no more than maxNumHighSpeedStreams processed non-stalling
2974      * format output streams, where maxNumHighSpeedStreams is calculated as
2975      * min(2, android.request.maxNumOutputStreams[Processed (but not-stalling)]).</li>
2976      * <li>The stream sizes are selected from the sizes reported by
2977      * android.control.availableHighSpeedVideoConfigurations.</li>
2978      * <li>No processed non-stalling or raw streams are configured.</li>
2979      * </ul>
2980      * <p>When above conditions are NOT satisfied, the controls of this mode and
2981      * {@link CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE android.control.aeTargetFpsRange} will be ignored by the camera device,
2982      * the camera device will fall back to {@link CaptureRequest#CONTROL_MODE android.control.mode} <code>==</code> AUTO,
2983      * and the returned capture result metadata will give the fps range chosen
2984      * by the camera device.</p>
2985      * <p>Switching into or out of this mode may trigger some camera ISP/sensor
2986      * reconfigurations, which may introduce extra latency. It is recommended that
2987      * the application avoids unnecessary scene mode switch as much as possible.</p>
2988      *
2989      * @see CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION
2990      * @see CaptureRequest#CONTROL_AE_LOCK
2991      * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
2992      * @see CaptureRequest#CONTROL_AE_REGIONS
2993      * @see CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE
2994      * @see CaptureRequest#CONTROL_AF_REGIONS
2995      * @see CaptureRequest#CONTROL_AF_TRIGGER
2996      * @see CaptureRequest#CONTROL_AWB_LOCK
2997      * @see CaptureRequest#CONTROL_AWB_REGIONS
2998      * @see CaptureRequest#CONTROL_EFFECT_MODE
2999      * @see CaptureRequest#CONTROL_MODE
3000      * @see CaptureRequest#CONTROL_ZOOM_RATIO
3001      * @see CaptureRequest#FLASH_MODE
3002      * @see CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE
3003      * @see CaptureRequest#SCALER_CROP_REGION
3004      * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
3005      * @see CaptureRequest#CONTROL_SCENE_MODE
3006      * @deprecated Please refer to this API documentation to find the alternatives
3007      */
3008     @Deprecated
3009     public static final int CONTROL_SCENE_MODE_HIGH_SPEED_VIDEO = 17;
3010 
3011     /**
3012      * <p>Turn on a device-specific high dynamic range (HDR) mode.</p>
3013      * <p>In this scene mode, the camera device captures images
3014      * that keep a larger range of scene illumination levels
3015      * visible in the final image. For example, when taking a
3016      * picture of a object in front of a bright window, both
3017      * the object and the scene through the window may be
3018      * visible when using HDR mode, while in normal AUTO mode,
3019      * one or the other may be poorly exposed. As a tradeoff,
3020      * HDR mode generally takes much longer to capture a single
3021      * image, has no user control, and may have other artifacts
3022      * depending on the HDR method used.</p>
3023      * <p>Therefore, HDR captures operate at a much slower rate
3024      * than regular captures.</p>
3025      * <p>In this mode, on LIMITED or FULL devices, when a request
3026      * is made with a {@link CaptureRequest#CONTROL_CAPTURE_INTENT android.control.captureIntent} of
3027      * STILL_CAPTURE, the camera device will capture an image
3028      * using a high dynamic range capture technique.  On LEGACY
3029      * devices, captures that target a JPEG-format output will
3030      * be captured with HDR, and the capture intent is not
3031      * relevant.</p>
3032      * <p>The HDR capture may involve the device capturing a burst
3033      * of images internally and combining them into one, or it
3034      * may involve the device using specialized high dynamic
3035      * range capture hardware. In all cases, a single image is
3036      * produced in response to a capture request submitted
3037      * while in HDR mode.</p>
3038      * <p>Since substantial post-processing is generally needed to
3039      * produce an HDR image, only YUV, PRIVATE, and JPEG
3040      * outputs are supported for LIMITED/FULL device HDR
3041      * captures, and only JPEG outputs are supported for LEGACY
3042      * HDR captures. Using a RAW output for HDR capture is not
3043      * supported.</p>
3044      * <p>Some devices may also support always-on HDR, which
3045      * applies HDR processing at full frame rate.  For these
3046      * devices, intents other than STILL_CAPTURE will also
3047      * produce an HDR output with no frame rate impact compared
3048      * to normal operation, though the quality may be lower
3049      * than for STILL_CAPTURE intents.</p>
3050      * <p>If SCENE_MODE_HDR is used with unsupported output types
3051      * or capture intents, the images captured will be as if
3052      * the SCENE_MODE was not enabled at all.</p>
3053      *
3054      * @see CaptureRequest#CONTROL_CAPTURE_INTENT
3055      * @see CaptureRequest#CONTROL_SCENE_MODE
3056      */
3057     public static final int CONTROL_SCENE_MODE_HDR = 18;
3058 
3059     /**
3060      * <p>Same as FACE_PRIORITY scene mode, except that the camera
3061      * device will choose higher sensitivity values ({@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity})
3062      * under low light conditions.</p>
3063      * <p>The camera device may be tuned to expose the images in a reduced
3064      * sensitivity range to produce the best quality images. For example,
3065      * if the {@link CameraCharacteristics#SENSOR_INFO_SENSITIVITY_RANGE android.sensor.info.sensitivityRange} gives range of [100, 1600],
3066      * the camera device auto-exposure routine tuning process may limit the actual
3067      * exposure sensitivity range to [100, 1200] to ensure that the noise level isn't
3068      * excessive in order to preserve the image quality. Under this situation, the image under
3069      * low light may be under-exposed when the sensor max exposure time (bounded by the
3070      * {@link CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE android.control.aeTargetFpsRange} when {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode} is one of the
3071      * ON_* modes) and effective max sensitivity are reached. This scene mode allows the
3072      * camera device auto-exposure routine to increase the sensitivity up to the max
3073      * sensitivity specified by {@link CameraCharacteristics#SENSOR_INFO_SENSITIVITY_RANGE android.sensor.info.sensitivityRange} when the scene is too
3074      * dark and the max exposure time is reached. The captured images may be noisier
3075      * compared with the images captured in normal FACE_PRIORITY mode; therefore, it is
3076      * recommended that the application only use this scene mode when it is capable of
3077      * reducing the noise level of the captured images.</p>
3078      * <p>Unlike the other scene modes, {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode},
3079      * {@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode}, and {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}
3080      * remain active when FACE_PRIORITY_LOW_LIGHT is set.</p>
3081      *
3082      * @see CaptureRequest#CONTROL_AE_MODE
3083      * @see CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE
3084      * @see CaptureRequest#CONTROL_AF_MODE
3085      * @see CaptureRequest#CONTROL_AWB_MODE
3086      * @see CameraCharacteristics#SENSOR_INFO_SENSITIVITY_RANGE
3087      * @see CaptureRequest#SENSOR_SENSITIVITY
3088      * @see CaptureRequest#CONTROL_SCENE_MODE
3089      * @hide
3090      */
3091     public static final int CONTROL_SCENE_MODE_FACE_PRIORITY_LOW_LIGHT = 19;
3092 
3093     /**
3094      * <p>Scene mode values within the range of
3095      * <code>[DEVICE_CUSTOM_START, DEVICE_CUSTOM_END]</code> are reserved for device specific
3096      * customized scene modes.</p>
3097      * @see CaptureRequest#CONTROL_SCENE_MODE
3098      * @hide
3099      */
3100     public static final int CONTROL_SCENE_MODE_DEVICE_CUSTOM_START = 100;
3101 
3102     /**
3103      * <p>Scene mode values within the range of
3104      * <code>[DEVICE_CUSTOM_START, DEVICE_CUSTOM_END]</code> are reserved for device specific
3105      * customized scene modes.</p>
3106      * @see CaptureRequest#CONTROL_SCENE_MODE
3107      * @hide
3108      */
3109     public static final int CONTROL_SCENE_MODE_DEVICE_CUSTOM_END = 127;
3110 
3111     //
3112     // Enumeration values for CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE
3113     //
3114 
3115     /**
3116      * <p>Video stabilization is disabled.</p>
3117      * @see CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE
3118      */
3119     public static final int CONTROL_VIDEO_STABILIZATION_MODE_OFF = 0;
3120 
3121     /**
3122      * <p>Video stabilization is enabled.</p>
3123      * @see CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE
3124      */
3125     public static final int CONTROL_VIDEO_STABILIZATION_MODE_ON = 1;
3126 
3127     /**
3128      * <p>Preview stabilization, where the preview in addition to all other non-RAW streams are
3129      * stabilized with the same quality of stabilization, is enabled. This mode aims to give
3130      * clients a 'what you see is what you get' effect. In this mode, the FoV reduction will
3131      * be a maximum of 20 % both horizontally and vertically
3132      * (10% from left, right, top, bottom) for the given zoom ratio / crop region.
3133      * The resultant FoV will also be the same across all processed streams
3134      * (that have the same aspect ratio).</p>
3135      * @see CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE
3136      */
3137     public static final int CONTROL_VIDEO_STABILIZATION_MODE_PREVIEW_STABILIZATION = 2;
3138 
3139     //
3140     // Enumeration values for CaptureRequest#CONTROL_EXTENDED_SCENE_MODE
3141     //
3142 
3143     /**
3144      * <p>Extended scene mode is disabled.</p>
3145      * @see CaptureRequest#CONTROL_EXTENDED_SCENE_MODE
3146      */
3147     public static final int CONTROL_EXTENDED_SCENE_MODE_DISABLED = 0;
3148 
3149     /**
3150      * <p>High quality bokeh mode is enabled for all non-raw streams (including YUV,
3151      * JPEG, and IMPLEMENTATION_DEFINED) when capture intent is STILL_CAPTURE. Due to the
3152      * extra image processing, this mode may introduce additional stall to non-raw streams.
3153      * This mode should be used in high quality still capture use case.</p>
3154      * @see CaptureRequest#CONTROL_EXTENDED_SCENE_MODE
3155      */
3156     public static final int CONTROL_EXTENDED_SCENE_MODE_BOKEH_STILL_CAPTURE = 1;
3157 
3158     /**
3159      * <p>Bokeh effect must not slow down capture rate relative to sensor raw output,
3160      * and the effect is applied to all processed streams no larger than the maximum
3161      * streaming dimension. This mode should be used if performance and power are a
3162      * priority, such as video recording.</p>
3163      * @see CaptureRequest#CONTROL_EXTENDED_SCENE_MODE
3164      */
3165     public static final int CONTROL_EXTENDED_SCENE_MODE_BOKEH_CONTINUOUS = 2;
3166 
3167     /**
3168      * <p>Vendor defined extended scene modes. These depend on vendor implementation.</p>
3169      * @see CaptureRequest#CONTROL_EXTENDED_SCENE_MODE
3170      * @hide
3171      */
3172     public static final int CONTROL_EXTENDED_SCENE_MODE_VENDOR_START = 0x40;
3173 
3174     //
3175     // Enumeration values for CaptureRequest#EDGE_MODE
3176     //
3177 
3178     /**
3179      * <p>No edge enhancement is applied.</p>
3180      * @see CaptureRequest#EDGE_MODE
3181      */
3182     public static final int EDGE_MODE_OFF = 0;
3183 
3184     /**
3185      * <p>Apply edge enhancement at a quality level that does not slow down frame rate
3186      * relative to sensor output. It may be the same as OFF if edge enhancement will
3187      * slow down frame rate relative to sensor.</p>
3188      * @see CaptureRequest#EDGE_MODE
3189      */
3190     public static final int EDGE_MODE_FAST = 1;
3191 
3192     /**
3193      * <p>Apply high-quality edge enhancement, at a cost of possibly reduced output frame rate.</p>
3194      * @see CaptureRequest#EDGE_MODE
3195      */
3196     public static final int EDGE_MODE_HIGH_QUALITY = 2;
3197 
3198     /**
3199      * <p>Edge enhancement is applied at different
3200      * levels for different output streams, based on resolution. Streams at maximum recording
3201      * resolution (see {@link android.hardware.camera2.CameraDevice#createCaptureSession })
3202      * or below have edge enhancement applied, while higher-resolution streams have no edge
3203      * enhancement applied. The level of edge enhancement for low-resolution streams is tuned
3204      * so that frame rate is not impacted, and the quality is equal to or better than FAST
3205      * (since it is only applied to lower-resolution outputs, quality may improve from FAST).</p>
3206      * <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
3207      * with YUV or PRIVATE reprocessing, where the application continuously captures
3208      * high-resolution intermediate buffers into a circular buffer, from which a final image is
3209      * produced via reprocessing when a user takes a picture.  For such a use case, the
3210      * high-resolution buffers must not have edge enhancement applied to maximize efficiency of
3211      * preview and to avoid double-applying enhancement when reprocessed, while low-resolution
3212      * buffers (used for recording or preview, generally) need edge enhancement applied for
3213      * reasonable preview quality.</p>
3214      * <p>This mode is guaranteed to be supported by devices that support either the
3215      * YUV_REPROCESSING or PRIVATE_REPROCESSING capabilities
3216      * ({@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities} lists either of those capabilities) and it will
3217      * be the default mode for CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG template.</p>
3218      *
3219      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
3220      * @see CaptureRequest#EDGE_MODE
3221      */
3222     public static final int EDGE_MODE_ZERO_SHUTTER_LAG = 3;
3223 
3224     //
3225     // Enumeration values for CaptureRequest#FLASH_MODE
3226     //
3227 
3228     /**
3229      * <p>Do not fire the flash for this capture.</p>
3230      * @see CaptureRequest#FLASH_MODE
3231      */
3232     public static final int FLASH_MODE_OFF = 0;
3233 
3234     /**
3235      * <p>If the flash is available and charged, fire flash
3236      * for this capture.</p>
3237      * @see CaptureRequest#FLASH_MODE
3238      */
3239     public static final int FLASH_MODE_SINGLE = 1;
3240 
3241     /**
3242      * <p>Transition flash to continuously on.</p>
3243      * @see CaptureRequest#FLASH_MODE
3244      */
3245     public static final int FLASH_MODE_TORCH = 2;
3246 
3247     //
3248     // Enumeration values for CaptureRequest#HOT_PIXEL_MODE
3249     //
3250 
3251     /**
3252      * <p>No hot pixel correction is applied.</p>
3253      * <p>The frame rate must not be reduced relative to sensor raw output
3254      * for this option.</p>
3255      * <p>The hotpixel map may be returned in {@link CaptureResult#STATISTICS_HOT_PIXEL_MAP android.statistics.hotPixelMap}.</p>
3256      *
3257      * @see CaptureResult#STATISTICS_HOT_PIXEL_MAP
3258      * @see CaptureRequest#HOT_PIXEL_MODE
3259      */
3260     public static final int HOT_PIXEL_MODE_OFF = 0;
3261 
3262     /**
3263      * <p>Hot pixel correction is applied, without reducing frame
3264      * rate relative to sensor raw output.</p>
3265      * <p>The hotpixel map may be returned in {@link CaptureResult#STATISTICS_HOT_PIXEL_MAP android.statistics.hotPixelMap}.</p>
3266      *
3267      * @see CaptureResult#STATISTICS_HOT_PIXEL_MAP
3268      * @see CaptureRequest#HOT_PIXEL_MODE
3269      */
3270     public static final int HOT_PIXEL_MODE_FAST = 1;
3271 
3272     /**
3273      * <p>High-quality hot pixel correction is applied, at a cost
3274      * of possibly reduced frame rate relative to sensor raw output.</p>
3275      * <p>The hotpixel map may be returned in {@link CaptureResult#STATISTICS_HOT_PIXEL_MAP android.statistics.hotPixelMap}.</p>
3276      *
3277      * @see CaptureResult#STATISTICS_HOT_PIXEL_MAP
3278      * @see CaptureRequest#HOT_PIXEL_MODE
3279      */
3280     public static final int HOT_PIXEL_MODE_HIGH_QUALITY = 2;
3281 
3282     //
3283     // Enumeration values for CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE
3284     //
3285 
3286     /**
3287      * <p>Optical stabilization is unavailable.</p>
3288      * @see CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE
3289      */
3290     public static final int LENS_OPTICAL_STABILIZATION_MODE_OFF = 0;
3291 
3292     /**
3293      * <p>Optical stabilization is enabled.</p>
3294      * @see CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE
3295      */
3296     public static final int LENS_OPTICAL_STABILIZATION_MODE_ON = 1;
3297 
3298     //
3299     // Enumeration values for CaptureRequest#NOISE_REDUCTION_MODE
3300     //
3301 
3302     /**
3303      * <p>No noise reduction is applied.</p>
3304      * @see CaptureRequest#NOISE_REDUCTION_MODE
3305      */
3306     public static final int NOISE_REDUCTION_MODE_OFF = 0;
3307 
3308     /**
3309      * <p>Noise reduction is applied without reducing frame rate relative to sensor
3310      * output. It may be the same as OFF if noise reduction will reduce frame rate
3311      * relative to sensor.</p>
3312      * @see CaptureRequest#NOISE_REDUCTION_MODE
3313      */
3314     public static final int NOISE_REDUCTION_MODE_FAST = 1;
3315 
3316     /**
3317      * <p>High-quality noise reduction is applied, at the cost of possibly reduced frame
3318      * rate relative to sensor output.</p>
3319      * @see CaptureRequest#NOISE_REDUCTION_MODE
3320      */
3321     public static final int NOISE_REDUCTION_MODE_HIGH_QUALITY = 2;
3322 
3323     /**
3324      * <p>MINIMAL noise reduction is applied without reducing frame rate relative to
3325      * sensor output. </p>
3326      * @see CaptureRequest#NOISE_REDUCTION_MODE
3327      */
3328     public static final int NOISE_REDUCTION_MODE_MINIMAL = 3;
3329 
3330     /**
3331      * <p>Noise reduction is applied at different levels for different output streams,
3332      * based on resolution. Streams at maximum recording resolution (see {@link android.hardware.camera2.CameraDevice#createCaptureSession })
3333      * or below have noise reduction applied, while higher-resolution streams have MINIMAL (if
3334      * supported) or no noise reduction applied (if MINIMAL is not supported.) The degree of
3335      * noise reduction for low-resolution streams is tuned so that frame rate is not impacted,
3336      * and the quality is equal to or better than FAST (since it is only applied to
3337      * lower-resolution outputs, quality may improve from FAST).</p>
3338      * <p>This mode is intended to be used by applications operating in a zero-shutter-lag mode
3339      * with YUV or PRIVATE reprocessing, where the application continuously captures
3340      * high-resolution intermediate buffers into a circular buffer, from which a final image is
3341      * produced via reprocessing when a user takes a picture.  For such a use case, the
3342      * high-resolution buffers must not have noise reduction applied to maximize efficiency of
3343      * preview and to avoid over-applying noise filtering when reprocessing, while
3344      * low-resolution buffers (used for recording or preview, generally) need noise reduction
3345      * applied for reasonable preview quality.</p>
3346      * <p>This mode is guaranteed to be supported by devices that support either the
3347      * YUV_REPROCESSING or PRIVATE_REPROCESSING capabilities
3348      * ({@link CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES android.request.availableCapabilities} lists either of those capabilities) and it will
3349      * be the default mode for CAMERA3_TEMPLATE_ZERO_SHUTTER_LAG template.</p>
3350      *
3351      * @see CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES
3352      * @see CaptureRequest#NOISE_REDUCTION_MODE
3353      */
3354     public static final int NOISE_REDUCTION_MODE_ZERO_SHUTTER_LAG = 4;
3355 
3356     //
3357     // Enumeration values for CaptureRequest#SCALER_ROTATE_AND_CROP
3358     //
3359 
3360     /**
3361      * <p>No rotate and crop is applied. Processed outputs are in the sensor orientation.</p>
3362      * @see CaptureRequest#SCALER_ROTATE_AND_CROP
3363      */
3364     public static final int SCALER_ROTATE_AND_CROP_NONE = 0;
3365 
3366     /**
3367      * <p>Processed images are rotated by 90 degrees clockwise, and then cropped
3368      * to the original aspect ratio.</p>
3369      * @see CaptureRequest#SCALER_ROTATE_AND_CROP
3370      */
3371     public static final int SCALER_ROTATE_AND_CROP_90 = 1;
3372 
3373     /**
3374      * <p>Processed images are rotated by 180 degrees.  Since the aspect ratio does not
3375      * change, no cropping is performed.</p>
3376      * @see CaptureRequest#SCALER_ROTATE_AND_CROP
3377      */
3378     public static final int SCALER_ROTATE_AND_CROP_180 = 2;
3379 
3380     /**
3381      * <p>Processed images are rotated by 270 degrees clockwise, and then cropped
3382      * to the original aspect ratio.</p>
3383      * @see CaptureRequest#SCALER_ROTATE_AND_CROP
3384      */
3385     public static final int SCALER_ROTATE_AND_CROP_270 = 3;
3386 
3387     /**
3388      * <p>The camera API automatically selects the best concrete value for
3389      * rotate-and-crop based on the application's support for resizability and the current
3390      * multi-window mode.</p>
3391      * <p>If the application does not support resizing but the display mode for its main
3392      * Activity is not in a typical orientation, the camera API will set <code>ROTATE_AND_CROP_90</code>
3393      * or some other supported rotation value, depending on device configuration,
3394      * to ensure preview and captured images are correctly shown to the user. Otherwise,
3395      * <code>ROTATE_AND_CROP_NONE</code> will be selected.</p>
3396      * <p>When a value other than NONE is selected, several metadata fields will also be parsed
3397      * differently to ensure that coordinates are correctly handled for features like drawing
3398      * face detection boxes or passing in tap-to-focus coordinates.  The camera API will
3399      * convert positions in the active array coordinate system to/from the cropped-and-rotated
3400      * coordinate system to make the operation transparent for applications.</p>
3401      * <p>No coordinate mapping will be done when the application selects a non-AUTO mode.</p>
3402      * @see CaptureRequest#SCALER_ROTATE_AND_CROP
3403      */
3404     public static final int SCALER_ROTATE_AND_CROP_AUTO = 4;
3405 
3406     //
3407     // Enumeration values for CaptureRequest#SENSOR_TEST_PATTERN_MODE
3408     //
3409 
3410     /**
3411      * <p>No test pattern mode is used, and the camera
3412      * device returns captures from the image sensor.</p>
3413      * <p>This is the default if the key is not set.</p>
3414      * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
3415      */
3416     public static final int SENSOR_TEST_PATTERN_MODE_OFF = 0;
3417 
3418     /**
3419      * <p>Each pixel in <code>[R, G_even, G_odd, B]</code> is replaced by its
3420      * respective color channel provided in
3421      * {@link CaptureRequest#SENSOR_TEST_PATTERN_DATA android.sensor.testPatternData}.</p>
3422      * <p>For example:</p>
3423      * <pre><code>{@link CaptureRequest#SENSOR_TEST_PATTERN_DATA android.sensor.testPatternData} = [0, 0xFFFFFFFF, 0xFFFFFFFF, 0]
3424      * </code></pre>
3425      * <p>All green pixels are 100% green. All red/blue pixels are black.</p>
3426      * <pre><code>{@link CaptureRequest#SENSOR_TEST_PATTERN_DATA android.sensor.testPatternData} = [0xFFFFFFFF, 0, 0xFFFFFFFF, 0]
3427      * </code></pre>
3428      * <p>All red pixels are 100% red. Only the odd green pixels
3429      * are 100% green. All blue pixels are 100% black.</p>
3430      *
3431      * @see CaptureRequest#SENSOR_TEST_PATTERN_DATA
3432      * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
3433      */
3434     public static final int SENSOR_TEST_PATTERN_MODE_SOLID_COLOR = 1;
3435 
3436     /**
3437      * <p>All pixel data is replaced with an 8-bar color pattern.</p>
3438      * <p>The vertical bars (left-to-right) are as follows:</p>
3439      * <ul>
3440      * <li>100% white</li>
3441      * <li>yellow</li>
3442      * <li>cyan</li>
3443      * <li>green</li>
3444      * <li>magenta</li>
3445      * <li>red</li>
3446      * <li>blue</li>
3447      * <li>black</li>
3448      * </ul>
3449      * <p>In general the image would look like the following:</p>
3450      * <pre><code>W Y C G M R B K
3451      * W Y C G M R B K
3452      * W Y C G M R B K
3453      * W Y C G M R B K
3454      * W Y C G M R B K
3455      * . . . . . . . .
3456      * . . . . . . . .
3457      * . . . . . . . .
3458      *
3459      * (B = Blue, K = Black)
3460      * </code></pre>
3461      * <p>Each bar should take up 1/8 of the sensor pixel array width.
3462      * When this is not possible, the bar size should be rounded
3463      * down to the nearest integer and the pattern can repeat
3464      * on the right side.</p>
3465      * <p>Each bar's height must always take up the full sensor
3466      * pixel array height.</p>
3467      * <p>Each pixel in this test pattern must be set to either
3468      * 0% intensity or 100% intensity.</p>
3469      * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
3470      */
3471     public static final int SENSOR_TEST_PATTERN_MODE_COLOR_BARS = 2;
3472 
3473     /**
3474      * <p>The test pattern is similar to COLOR_BARS, except that
3475      * each bar should start at its specified color at the top,
3476      * and fade to gray at the bottom.</p>
3477      * <p>Furthermore each bar is further subdivided into a left and
3478      * right half. The left half should have a smooth gradient,
3479      * and the right half should have a quantized gradient.</p>
3480      * <p>In particular, the right half's should consist of blocks of the
3481      * same color for 1/16th active sensor pixel array width.</p>
3482      * <p>The least significant bits in the quantized gradient should
3483      * be copied from the most significant bits of the smooth gradient.</p>
3484      * <p>The height of each bar should always be a multiple of 128.
3485      * When this is not the case, the pattern should repeat at the bottom
3486      * of the image.</p>
3487      * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
3488      */
3489     public static final int SENSOR_TEST_PATTERN_MODE_COLOR_BARS_FADE_TO_GRAY = 3;
3490 
3491     /**
3492      * <p>All pixel data is replaced by a pseudo-random sequence
3493      * generated from a PN9 512-bit sequence (typically implemented
3494      * in hardware with a linear feedback shift register).</p>
3495      * <p>The generator should be reset at the beginning of each frame,
3496      * and thus each subsequent raw frame with this test pattern should
3497      * be exactly the same as the last.</p>
3498      * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
3499      */
3500     public static final int SENSOR_TEST_PATTERN_MODE_PN9 = 4;
3501 
3502     /**
3503      * <p>All pixel data is replaced by 0% intensity (black) values.</p>
3504      * <p>This test pattern is identical to SOLID_COLOR with a value of <code>[0, 0, 0, 0]</code> for
3505      * {@link CaptureRequest#SENSOR_TEST_PATTERN_DATA android.sensor.testPatternData}.  It is recommended that devices implement full
3506      * SOLID_COLOR support instead, but BLACK can be used to provide minimal support for a
3507      * test pattern suitable for privacy use cases.</p>
3508      *
3509      * @see CaptureRequest#SENSOR_TEST_PATTERN_DATA
3510      * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
3511      * @hide
3512      */
3513     @TestApi
3514     public static final int SENSOR_TEST_PATTERN_MODE_BLACK = 5;
3515 
3516     /**
3517      * <p>The first custom test pattern. All custom patterns that are
3518      * available only on this camera device are at least this numeric
3519      * value.</p>
3520      * <p>All of the custom test patterns will be static
3521      * (that is the raw image must not vary from frame to frame).</p>
3522      * @see CaptureRequest#SENSOR_TEST_PATTERN_MODE
3523      */
3524     public static final int SENSOR_TEST_PATTERN_MODE_CUSTOM1 = 256;
3525 
3526     //
3527     // Enumeration values for CaptureRequest#SENSOR_PIXEL_MODE
3528     //
3529 
3530     /**
3531      * <p>This is the default sensor pixel mode. This is the only sensor pixel mode
3532      * supported unless a camera device advertises
3533      * {@link android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR }.</p>
3534      * @see CaptureRequest#SENSOR_PIXEL_MODE
3535      */
3536     public static final int SENSOR_PIXEL_MODE_DEFAULT = 0;
3537 
3538     /**
3539      * <p>This sensor pixel mode is offered by devices with capability
3540      * {@link android.hardware.camera2.CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_ULTRA_HIGH_RESOLUTION_SENSOR }.
3541      * In this mode, sensors typically do not bin pixels, as a result can offer larger
3542      * image sizes.</p>
3543      * @see CaptureRequest#SENSOR_PIXEL_MODE
3544      */
3545     public static final int SENSOR_PIXEL_MODE_MAXIMUM_RESOLUTION = 1;
3546 
3547     //
3548     // Enumeration values for CaptureRequest#SHADING_MODE
3549     //
3550 
3551     /**
3552      * <p>No lens shading correction is applied.</p>
3553      * @see CaptureRequest#SHADING_MODE
3554      */
3555     public static final int SHADING_MODE_OFF = 0;
3556 
3557     /**
3558      * <p>Apply lens shading corrections, without slowing
3559      * frame rate relative to sensor raw output</p>
3560      * @see CaptureRequest#SHADING_MODE
3561      */
3562     public static final int SHADING_MODE_FAST = 1;
3563 
3564     /**
3565      * <p>Apply high-quality lens shading correction, at the
3566      * cost of possibly reduced frame rate.</p>
3567      * @see CaptureRequest#SHADING_MODE
3568      */
3569     public static final int SHADING_MODE_HIGH_QUALITY = 2;
3570 
3571     //
3572     // Enumeration values for CaptureRequest#STATISTICS_FACE_DETECT_MODE
3573     //
3574 
3575     /**
3576      * <p>Do not include face detection statistics in capture
3577      * results.</p>
3578      * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
3579      */
3580     public static final int STATISTICS_FACE_DETECT_MODE_OFF = 0;
3581 
3582     /**
3583      * <p>Return face rectangle and confidence values only.</p>
3584      * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
3585      */
3586     public static final int STATISTICS_FACE_DETECT_MODE_SIMPLE = 1;
3587 
3588     /**
3589      * <p>Return all face
3590      * metadata.</p>
3591      * <p>In this mode, face rectangles, scores, landmarks, and face IDs are all valid.</p>
3592      * @see CaptureRequest#STATISTICS_FACE_DETECT_MODE
3593      */
3594     public static final int STATISTICS_FACE_DETECT_MODE_FULL = 2;
3595 
3596     //
3597     // Enumeration values for CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE
3598     //
3599 
3600     /**
3601      * <p>Do not include a lens shading map in the capture result.</p>
3602      * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE
3603      */
3604     public static final int STATISTICS_LENS_SHADING_MAP_MODE_OFF = 0;
3605 
3606     /**
3607      * <p>Include a lens shading map in the capture result.</p>
3608      * @see CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE
3609      */
3610     public static final int STATISTICS_LENS_SHADING_MAP_MODE_ON = 1;
3611 
3612     //
3613     // Enumeration values for CaptureRequest#STATISTICS_OIS_DATA_MODE
3614     //
3615 
3616     /**
3617      * <p>Do not include OIS data in the capture result.</p>
3618      * @see CaptureRequest#STATISTICS_OIS_DATA_MODE
3619      */
3620     public static final int STATISTICS_OIS_DATA_MODE_OFF = 0;
3621 
3622     /**
3623      * <p>Include OIS data in the capture result.</p>
3624      * <p>{@link CaptureResult#STATISTICS_OIS_SAMPLES android.statistics.oisSamples} provides OIS sample data in the
3625      * output result metadata.</p>
3626      *
3627      * @see CaptureResult#STATISTICS_OIS_SAMPLES
3628      * @see CaptureRequest#STATISTICS_OIS_DATA_MODE
3629      */
3630     public static final int STATISTICS_OIS_DATA_MODE_ON = 1;
3631 
3632     //
3633     // Enumeration values for CaptureRequest#TONEMAP_MODE
3634     //
3635 
3636     /**
3637      * <p>Use the tone mapping curve specified in
3638      * the {@link CaptureRequest#TONEMAP_CURVE android.tonemap.curve}* entries.</p>
3639      * <p>All color enhancement and tonemapping must be disabled, except
3640      * for applying the tonemapping curve specified by
3641      * {@link CaptureRequest#TONEMAP_CURVE android.tonemap.curve}.</p>
3642      * <p>Must not slow down frame rate relative to raw
3643      * sensor output.</p>
3644      *
3645      * @see CaptureRequest#TONEMAP_CURVE
3646      * @see CaptureRequest#TONEMAP_MODE
3647      */
3648     public static final int TONEMAP_MODE_CONTRAST_CURVE = 0;
3649 
3650     /**
3651      * <p>Advanced gamma mapping and color enhancement may be applied, without
3652      * reducing frame rate compared to raw sensor output.</p>
3653      * @see CaptureRequest#TONEMAP_MODE
3654      */
3655     public static final int TONEMAP_MODE_FAST = 1;
3656 
3657     /**
3658      * <p>High-quality gamma mapping and color enhancement will be applied, at
3659      * the cost of possibly reduced frame rate compared to raw sensor output.</p>
3660      * @see CaptureRequest#TONEMAP_MODE
3661      */
3662     public static final int TONEMAP_MODE_HIGH_QUALITY = 2;
3663 
3664     /**
3665      * <p>Use the gamma value specified in {@link CaptureRequest#TONEMAP_GAMMA android.tonemap.gamma} to perform
3666      * tonemapping.</p>
3667      * <p>All color enhancement and tonemapping must be disabled, except
3668      * for applying the tonemapping curve specified by {@link CaptureRequest#TONEMAP_GAMMA android.tonemap.gamma}.</p>
3669      * <p>Must not slow down frame rate relative to raw sensor output.</p>
3670      *
3671      * @see CaptureRequest#TONEMAP_GAMMA
3672      * @see CaptureRequest#TONEMAP_MODE
3673      */
3674     public static final int TONEMAP_MODE_GAMMA_VALUE = 3;
3675 
3676     /**
3677      * <p>Use the preset tonemapping curve specified in
3678      * {@link CaptureRequest#TONEMAP_PRESET_CURVE android.tonemap.presetCurve} to perform tonemapping.</p>
3679      * <p>All color enhancement and tonemapping must be disabled, except
3680      * for applying the tonemapping curve specified by
3681      * {@link CaptureRequest#TONEMAP_PRESET_CURVE android.tonemap.presetCurve}.</p>
3682      * <p>Must not slow down frame rate relative to raw sensor output.</p>
3683      *
3684      * @see CaptureRequest#TONEMAP_PRESET_CURVE
3685      * @see CaptureRequest#TONEMAP_MODE
3686      */
3687     public static final int TONEMAP_MODE_PRESET_CURVE = 4;
3688 
3689     //
3690     // Enumeration values for CaptureRequest#TONEMAP_PRESET_CURVE
3691     //
3692 
3693     /**
3694      * <p>Tonemapping curve is defined by sRGB</p>
3695      * @see CaptureRequest#TONEMAP_PRESET_CURVE
3696      */
3697     public static final int TONEMAP_PRESET_CURVE_SRGB = 0;
3698 
3699     /**
3700      * <p>Tonemapping curve is defined by ITU-R BT.709</p>
3701      * @see CaptureRequest#TONEMAP_PRESET_CURVE
3702      */
3703     public static final int TONEMAP_PRESET_CURVE_REC709 = 1;
3704 
3705     //
3706     // Enumeration values for CaptureRequest#DISTORTION_CORRECTION_MODE
3707     //
3708 
3709     /**
3710      * <p>No distortion correction is applied.</p>
3711      * @see CaptureRequest#DISTORTION_CORRECTION_MODE
3712      */
3713     public static final int DISTORTION_CORRECTION_MODE_OFF = 0;
3714 
3715     /**
3716      * <p>Lens distortion correction is applied without reducing frame rate
3717      * relative to sensor output. It may be the same as OFF if distortion correction would
3718      * reduce frame rate relative to sensor.</p>
3719      * @see CaptureRequest#DISTORTION_CORRECTION_MODE
3720      */
3721     public static final int DISTORTION_CORRECTION_MODE_FAST = 1;
3722 
3723     /**
3724      * <p>High-quality distortion correction is applied, at the cost of
3725      * possibly reduced frame rate relative to sensor output.</p>
3726      * @see CaptureRequest#DISTORTION_CORRECTION_MODE
3727      */
3728     public static final int DISTORTION_CORRECTION_MODE_HIGH_QUALITY = 2;
3729 
3730     //
3731     // Enumeration values for CaptureResult#CONTROL_AE_STATE
3732     //
3733 
3734     /**
3735      * <p>AE is off or recently reset.</p>
3736      * <p>When a camera device is opened, it starts in
3737      * this state. This is a transient state, the camera device may skip reporting
3738      * this state in capture result.</p>
3739      * @see CaptureResult#CONTROL_AE_STATE
3740      */
3741     public static final int CONTROL_AE_STATE_INACTIVE = 0;
3742 
3743     /**
3744      * <p>AE doesn't yet have a good set of control values
3745      * for the current scene.</p>
3746      * <p>This is a transient state, the camera device may skip
3747      * reporting this state in capture result.</p>
3748      * @see CaptureResult#CONTROL_AE_STATE
3749      */
3750     public static final int CONTROL_AE_STATE_SEARCHING = 1;
3751 
3752     /**
3753      * <p>AE has a good set of control values for the
3754      * current scene.</p>
3755      * @see CaptureResult#CONTROL_AE_STATE
3756      */
3757     public static final int CONTROL_AE_STATE_CONVERGED = 2;
3758 
3759     /**
3760      * <p>AE has been locked.</p>
3761      * @see CaptureResult#CONTROL_AE_STATE
3762      */
3763     public static final int CONTROL_AE_STATE_LOCKED = 3;
3764 
3765     /**
3766      * <p>AE has a good set of control values, but flash
3767      * needs to be fired for good quality still
3768      * capture.</p>
3769      * @see CaptureResult#CONTROL_AE_STATE
3770      */
3771     public static final int CONTROL_AE_STATE_FLASH_REQUIRED = 4;
3772 
3773     /**
3774      * <p>AE has been asked to do a precapture sequence
3775      * and is currently executing it.</p>
3776      * <p>Precapture can be triggered through setting
3777      * {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger} to START. Currently
3778      * active and completed (if it causes camera device internal AE lock) precapture
3779      * metering sequence can be canceled through setting
3780      * {@link CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER android.control.aePrecaptureTrigger} to CANCEL.</p>
3781      * <p>Once PRECAPTURE completes, AE will transition to CONVERGED
3782      * or FLASH_REQUIRED as appropriate. This is a transient
3783      * state, the camera device may skip reporting this state in
3784      * capture result.</p>
3785      *
3786      * @see CaptureRequest#CONTROL_AE_PRECAPTURE_TRIGGER
3787      * @see CaptureResult#CONTROL_AE_STATE
3788      */
3789     public static final int CONTROL_AE_STATE_PRECAPTURE = 5;
3790 
3791     //
3792     // Enumeration values for CaptureResult#CONTROL_AF_STATE
3793     //
3794 
3795     /**
3796      * <p>AF is off or has not yet tried to scan/been asked
3797      * to scan.</p>
3798      * <p>When a camera device is opened, it starts in this
3799      * state. This is a transient state, the camera device may
3800      * skip reporting this state in capture
3801      * result.</p>
3802      * @see CaptureResult#CONTROL_AF_STATE
3803      */
3804     public static final int CONTROL_AF_STATE_INACTIVE = 0;
3805 
3806     /**
3807      * <p>AF is currently performing an AF scan initiated the
3808      * camera device in a continuous autofocus mode.</p>
3809      * <p>Only used by CONTINUOUS_* AF modes. This is a transient
3810      * state, the camera device may skip reporting this state in
3811      * capture result.</p>
3812      * @see CaptureResult#CONTROL_AF_STATE
3813      */
3814     public static final int CONTROL_AF_STATE_PASSIVE_SCAN = 1;
3815 
3816     /**
3817      * <p>AF currently believes it is in focus, but may
3818      * restart scanning at any time.</p>
3819      * <p>Only used by CONTINUOUS_* AF modes. This is a transient
3820      * state, the camera device may skip reporting this state in
3821      * capture result.</p>
3822      * @see CaptureResult#CONTROL_AF_STATE
3823      */
3824     public static final int CONTROL_AF_STATE_PASSIVE_FOCUSED = 2;
3825 
3826     /**
3827      * <p>AF is performing an AF scan because it was
3828      * triggered by AF trigger.</p>
3829      * <p>Only used by AUTO or MACRO AF modes. This is a transient
3830      * state, the camera device may skip reporting this state in
3831      * capture result.</p>
3832      * @see CaptureResult#CONTROL_AF_STATE
3833      */
3834     public static final int CONTROL_AF_STATE_ACTIVE_SCAN = 3;
3835 
3836     /**
3837      * <p>AF believes it is focused correctly and has locked
3838      * focus.</p>
3839      * <p>This state is reached only after an explicit START AF trigger has been
3840      * sent ({@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger}), when good focus has been obtained.</p>
3841      * <p>The lens will remain stationary until the AF mode ({@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}) is changed or
3842      * a new AF trigger is sent to the camera device ({@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger}).</p>
3843      *
3844      * @see CaptureRequest#CONTROL_AF_MODE
3845      * @see CaptureRequest#CONTROL_AF_TRIGGER
3846      * @see CaptureResult#CONTROL_AF_STATE
3847      */
3848     public static final int CONTROL_AF_STATE_FOCUSED_LOCKED = 4;
3849 
3850     /**
3851      * <p>AF has failed to focus successfully and has locked
3852      * focus.</p>
3853      * <p>This state is reached only after an explicit START AF trigger has been
3854      * sent ({@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger}), when good focus cannot be obtained.</p>
3855      * <p>The lens will remain stationary until the AF mode ({@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}) is changed or
3856      * a new AF trigger is sent to the camera device ({@link CaptureRequest#CONTROL_AF_TRIGGER android.control.afTrigger}).</p>
3857      *
3858      * @see CaptureRequest#CONTROL_AF_MODE
3859      * @see CaptureRequest#CONTROL_AF_TRIGGER
3860      * @see CaptureResult#CONTROL_AF_STATE
3861      */
3862     public static final int CONTROL_AF_STATE_NOT_FOCUSED_LOCKED = 5;
3863 
3864     /**
3865      * <p>AF finished a passive scan without finding focus,
3866      * and may restart scanning at any time.</p>
3867      * <p>Only used by CONTINUOUS_* AF modes. This is a transient state, the camera
3868      * device may skip reporting this state in capture result.</p>
3869      * <p>LEGACY camera devices do not support this state. When a passive
3870      * scan has finished, it will always go to PASSIVE_FOCUSED.</p>
3871      * @see CaptureResult#CONTROL_AF_STATE
3872      */
3873     public static final int CONTROL_AF_STATE_PASSIVE_UNFOCUSED = 6;
3874 
3875     //
3876     // Enumeration values for CaptureResult#CONTROL_AWB_STATE
3877     //
3878 
3879     /**
3880      * <p>AWB is not in auto mode, or has not yet started metering.</p>
3881      * <p>When a camera device is opened, it starts in this
3882      * state. This is a transient state, the camera device may
3883      * skip reporting this state in capture
3884      * result.</p>
3885      * @see CaptureResult#CONTROL_AWB_STATE
3886      */
3887     public static final int CONTROL_AWB_STATE_INACTIVE = 0;
3888 
3889     /**
3890      * <p>AWB doesn't yet have a good set of control
3891      * values for the current scene.</p>
3892      * <p>This is a transient state, the camera device
3893      * may skip reporting this state in capture result.</p>
3894      * @see CaptureResult#CONTROL_AWB_STATE
3895      */
3896     public static final int CONTROL_AWB_STATE_SEARCHING = 1;
3897 
3898     /**
3899      * <p>AWB has a good set of control values for the
3900      * current scene.</p>
3901      * @see CaptureResult#CONTROL_AWB_STATE
3902      */
3903     public static final int CONTROL_AWB_STATE_CONVERGED = 2;
3904 
3905     /**
3906      * <p>AWB has been locked.</p>
3907      * @see CaptureResult#CONTROL_AWB_STATE
3908      */
3909     public static final int CONTROL_AWB_STATE_LOCKED = 3;
3910 
3911     //
3912     // Enumeration values for CaptureResult#CONTROL_AF_SCENE_CHANGE
3913     //
3914 
3915     /**
3916      * <p>Scene change is not detected within the AF region(s).</p>
3917      * @see CaptureResult#CONTROL_AF_SCENE_CHANGE
3918      */
3919     public static final int CONTROL_AF_SCENE_CHANGE_NOT_DETECTED = 0;
3920 
3921     /**
3922      * <p>Scene change is detected within the AF region(s).</p>
3923      * @see CaptureResult#CONTROL_AF_SCENE_CHANGE
3924      */
3925     public static final int CONTROL_AF_SCENE_CHANGE_DETECTED = 1;
3926 
3927     //
3928     // Enumeration values for CaptureResult#FLASH_STATE
3929     //
3930 
3931     /**
3932      * <p>No flash on camera.</p>
3933      * @see CaptureResult#FLASH_STATE
3934      */
3935     public static final int FLASH_STATE_UNAVAILABLE = 0;
3936 
3937     /**
3938      * <p>Flash is charging and cannot be fired.</p>
3939      * @see CaptureResult#FLASH_STATE
3940      */
3941     public static final int FLASH_STATE_CHARGING = 1;
3942 
3943     /**
3944      * <p>Flash is ready to fire.</p>
3945      * @see CaptureResult#FLASH_STATE
3946      */
3947     public static final int FLASH_STATE_READY = 2;
3948 
3949     /**
3950      * <p>Flash fired for this capture.</p>
3951      * @see CaptureResult#FLASH_STATE
3952      */
3953     public static final int FLASH_STATE_FIRED = 3;
3954 
3955     /**
3956      * <p>Flash partially illuminated this frame.</p>
3957      * <p>This is usually due to the next or previous frame having
3958      * the flash fire, and the flash spilling into this capture
3959      * due to hardware limitations.</p>
3960      * @see CaptureResult#FLASH_STATE
3961      */
3962     public static final int FLASH_STATE_PARTIAL = 4;
3963 
3964     //
3965     // Enumeration values for CaptureResult#LENS_STATE
3966     //
3967 
3968     /**
3969      * <p>The lens parameters ({@link CaptureRequest#LENS_FOCAL_LENGTH android.lens.focalLength}, {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance},
3970      * {@link CaptureRequest#LENS_FILTER_DENSITY android.lens.filterDensity} and {@link CaptureRequest#LENS_APERTURE android.lens.aperture}) are not changing.</p>
3971      *
3972      * @see CaptureRequest#LENS_APERTURE
3973      * @see CaptureRequest#LENS_FILTER_DENSITY
3974      * @see CaptureRequest#LENS_FOCAL_LENGTH
3975      * @see CaptureRequest#LENS_FOCUS_DISTANCE
3976      * @see CaptureResult#LENS_STATE
3977      */
3978     public static final int LENS_STATE_STATIONARY = 0;
3979 
3980     /**
3981      * <p>One or several of the lens parameters
3982      * ({@link CaptureRequest#LENS_FOCAL_LENGTH android.lens.focalLength}, {@link CaptureRequest#LENS_FOCUS_DISTANCE android.lens.focusDistance},
3983      * {@link CaptureRequest#LENS_FILTER_DENSITY android.lens.filterDensity} or {@link CaptureRequest#LENS_APERTURE android.lens.aperture}) is
3984      * currently changing.</p>
3985      *
3986      * @see CaptureRequest#LENS_APERTURE
3987      * @see CaptureRequest#LENS_FILTER_DENSITY
3988      * @see CaptureRequest#LENS_FOCAL_LENGTH
3989      * @see CaptureRequest#LENS_FOCUS_DISTANCE
3990      * @see CaptureResult#LENS_STATE
3991      */
3992     public static final int LENS_STATE_MOVING = 1;
3993 
3994     //
3995     // Enumeration values for CaptureResult#STATISTICS_SCENE_FLICKER
3996     //
3997 
3998     /**
3999      * <p>The camera device does not detect any flickering illumination
4000      * in the current scene.</p>
4001      * @see CaptureResult#STATISTICS_SCENE_FLICKER
4002      */
4003     public static final int STATISTICS_SCENE_FLICKER_NONE = 0;
4004 
4005     /**
4006      * <p>The camera device detects illumination flickering at 50Hz
4007      * in the current scene.</p>
4008      * @see CaptureResult#STATISTICS_SCENE_FLICKER
4009      */
4010     public static final int STATISTICS_SCENE_FLICKER_50HZ = 1;
4011 
4012     /**
4013      * <p>The camera device detects illumination flickering at 60Hz
4014      * in the current scene.</p>
4015      * @see CaptureResult#STATISTICS_SCENE_FLICKER
4016      */
4017     public static final int STATISTICS_SCENE_FLICKER_60HZ = 2;
4018 
4019     //
4020     // Enumeration values for CaptureResult#SYNC_FRAME_NUMBER
4021     //
4022 
4023     /**
4024      * <p>The current result is not yet fully synchronized to any request.</p>
4025      * <p>Synchronization is in progress, and reading metadata from this
4026      * result may include a mix of data that have taken effect since the
4027      * last synchronization time.</p>
4028      * <p>In some future result, within {@link CameraCharacteristics#SYNC_MAX_LATENCY android.sync.maxLatency} frames,
4029      * this value will update to the actual frame number frame number
4030      * the result is guaranteed to be synchronized to (as long as the
4031      * request settings remain constant).</p>
4032      *
4033      * @see CameraCharacteristics#SYNC_MAX_LATENCY
4034      * @see CaptureResult#SYNC_FRAME_NUMBER
4035      * @hide
4036      */
4037     public static final int SYNC_FRAME_NUMBER_CONVERGING = -1;
4038 
4039     /**
4040      * <p>The current result's synchronization status is unknown.</p>
4041      * <p>The result may have already converged, or it may be in
4042      * progress.  Reading from this result may include some mix
4043      * of settings from past requests.</p>
4044      * <p>After a settings change, the new settings will eventually all
4045      * take effect for the output buffers and results. However, this
4046      * value will not change when that happens. Altering settings
4047      * rapidly may provide outcomes using mixes of settings from recent
4048      * requests.</p>
4049      * <p>This value is intended primarily for backwards compatibility with
4050      * the older camera implementations (for android.hardware.Camera).</p>
4051      * @see CaptureResult#SYNC_FRAME_NUMBER
4052      * @hide
4053      */
4054     public static final int SYNC_FRAME_NUMBER_UNKNOWN = -2;
4055 
4056     /*~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~
4057      * End generated code
4058      *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~O@*/
4059 
4060 }
4061