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