CameraCharacteristics.java revision 855bae407d61b5cc6629248e7692927b4dacd92f
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
17package android.hardware.camera2;
18
19import android.hardware.camera2.impl.CameraMetadataNative;
20
21import java.util.Collections;
22import java.util.List;
23
24/**
25 * <p>The properties describing a
26 * {@link CameraDevice CameraDevice}.</p>
27 *
28 * <p>These properties are fixed for a given CameraDevice, and can be queried
29 * through the {@link CameraManager CameraManager}
30 * interface in addition to through the CameraDevice interface.</p>
31 *
32 * @see CameraDevice
33 * @see CameraManager
34 */
35public final class CameraCharacteristics extends CameraMetadata {
36
37    private final CameraMetadataNative mProperties;
38    private List<Key<?>> mAvailableRequestKeys;
39    private List<Key<?>> mAvailableResultKeys;
40
41    /**
42     * Takes ownership of the passed-in properties object
43     * @hide
44     */
45    public CameraCharacteristics(CameraMetadataNative properties) {
46        mProperties = properties;
47    }
48
49    @Override
50    public <T> T get(Key<T> key) {
51        return mProperties.get(key);
52    }
53
54    /**
55     * Returns the list of keys supported by this {@link CameraDevice} for querying
56     * with a {@link CaptureRequest}.
57     *
58     * <p>The list returned is not modifiable, so any attempts to modify it will throw
59     * a {@code UnsupportedOperationException}.</p>
60     *
61     * <p>Each key is only listed once in the list. The order of the keys is undefined.</p>
62     *
63     * <p>Note that there is no {@code getAvailableCameraCharacteristicsKeys()} -- use
64     * {@link #getKeys()} instead.</p>
65     *
66     * @return List of keys supported by this CameraDevice for CaptureRequests.
67     */
68    public List<Key<?>> getAvailableCaptureRequestKeys() {
69        if (mAvailableRequestKeys == null) {
70            mAvailableRequestKeys = getAvailableKeyList(CaptureRequest.class);
71        }
72        return mAvailableRequestKeys;
73    }
74
75    /**
76     * Returns the list of keys supported by this {@link CameraDevice} for querying
77     * with a {@link CaptureResult}.
78     *
79     * <p>The list returned is not modifiable, so any attempts to modify it will throw
80     * a {@code UnsupportedOperationException}.</p>
81     *
82     * <p>Each key is only listed once in the list. The order of the keys is undefined.</p>
83     *
84     * <p>Note that there is no {@code getAvailableCameraCharacteristicsKeys()} -- use
85     * {@link #getKeys()} instead.</p>
86     *
87     * @return List of keys supported by this CameraDevice for CaptureResults.
88     */
89    public List<Key<?>> getAvailableCaptureResultKeys() {
90        if (mAvailableResultKeys == null) {
91            mAvailableResultKeys = getAvailableKeyList(CaptureResult.class);
92        }
93        return mAvailableResultKeys;
94    }
95
96    /**
97     * Returns the list of keys supported by this {@link CameraDevice} by metadataClass.
98     *
99     * <p>The list returned is not modifiable, so any attempts to modify it will throw
100     * a {@code UnsupportedOperationException}.</p>
101     *
102     * <p>Each key is only listed once in the list. The order of the keys is undefined.</p>
103     *
104     * @param metadataClass The subclass of CameraMetadata that you want to get the keys for.
105     *
106     * @return List of keys supported by this CameraDevice for metadataClass.
107     *
108     * @throws IllegalArgumentException if metadataClass is not a subclass of CameraMetadata
109     */
110    private <T extends CameraMetadata> List<Key<?>> getAvailableKeyList(Class<T> metadataClass) {
111
112        if (metadataClass.equals(CameraMetadata.class)) {
113            throw new AssertionError(
114                    "metadataClass must be a strict subclass of CameraMetadata");
115        } else if (!CameraMetadata.class.isAssignableFrom(metadataClass)) {
116            throw new AssertionError(
117                    "metadataClass must be a subclass of CameraMetadata");
118        }
119
120        return Collections.unmodifiableList(getKeysStatic(metadataClass, /*instance*/null));
121    }
122
123    /*@O~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~
124     * The key entries below this point are generated from metadata
125     * definitions in /system/media/camera/docs. Do not modify by hand or
126     * modify the comment blocks at the start or end.
127     *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~*/
128
129
130    /**
131     * <p>The set of auto-exposure antibanding modes that are
132     * supported by this camera device.</p>
133     * <p>Not all of the auto-exposure anti-banding modes may be
134     * supported by a given camera device. This field lists the
135     * valid anti-banding modes that the application may request
136     * for this camera device; they must include AUTO.</p>
137     */
138    public static final Key<byte[]> CONTROL_AE_AVAILABLE_ANTIBANDING_MODES =
139            new Key<byte[]>("android.control.aeAvailableAntibandingModes", byte[].class);
140
141    /**
142     * <p>The set of auto-exposure modes that are supported by this
143     * camera device.</p>
144     * <p>Not all the auto-exposure modes may be supported by a
145     * given camera device, especially if no flash unit is
146     * available. This entry lists the valid modes for
147     * {@link CaptureRequest#CONTROL_AE_MODE android.control.aeMode} for this camera device.</p>
148     * <p>All camera devices support ON, and all camera devices with
149     * flash units support ON_AUTO_FLASH and
150     * ON_ALWAYS_FLASH.</p>
151     * <p>Full-capability camera devices always support OFF mode,
152     * which enables application control of camera exposure time,
153     * sensitivity, and frame duration.</p>
154     *
155     * @see CaptureRequest#CONTROL_AE_MODE
156     */
157    public static final Key<byte[]> CONTROL_AE_AVAILABLE_MODES =
158            new Key<byte[]>("android.control.aeAvailableModes", byte[].class);
159
160    /**
161     * <p>List of frame rate ranges supported by the
162     * AE algorithm/hardware</p>
163     */
164    public static final Key<int[]> CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES =
165            new Key<int[]>("android.control.aeAvailableTargetFpsRanges", int[].class);
166
167    /**
168     * <p>Maximum and minimum exposure compensation
169     * setting, in counts of
170     * android.control.aeCompensationStepSize</p>
171     */
172    public static final Key<int[]> CONTROL_AE_COMPENSATION_RANGE =
173            new Key<int[]>("android.control.aeCompensationRange", int[].class);
174
175    /**
176     * <p>Smallest step by which exposure compensation
177     * can be changed</p>
178     */
179    public static final Key<Rational> CONTROL_AE_COMPENSATION_STEP =
180            new Key<Rational>("android.control.aeCompensationStep", Rational.class);
181
182    /**
183     * <p>List of AF modes that can be
184     * selected with {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode}.</p>
185     * <p>Not all the auto-focus modes may be supported by a
186     * given camera device. This entry lists the valid modes for
187     * {@link CaptureRequest#CONTROL_AF_MODE android.control.afMode} for this camera device.</p>
188     * <p>All camera devices will support OFF mode, and all camera devices with
189     * adjustable focuser units (<code>{@link CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE android.lens.info.minimumFocusDistance} &gt; 0</code>)
190     * will support AUTO mode.</p>
191     *
192     * @see CaptureRequest#CONTROL_AF_MODE
193     * @see CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE
194     */
195    public static final Key<byte[]> CONTROL_AF_AVAILABLE_MODES =
196            new Key<byte[]>("android.control.afAvailableModes", byte[].class);
197
198    /**
199     * <p>what subset of the full color effect enum
200     * list is supported</p>
201     */
202    public static final Key<byte[]> CONTROL_AVAILABLE_EFFECTS =
203            new Key<byte[]>("android.control.availableEffects", byte[].class);
204
205    /**
206     * <p>what subset of the scene mode enum list is
207     * supported.</p>
208     */
209    public static final Key<byte[]> CONTROL_AVAILABLE_SCENE_MODES =
210            new Key<byte[]>("android.control.availableSceneModes", byte[].class);
211
212    /**
213     * <p>List of video stabilization modes that can
214     * be supported</p>
215     */
216    public static final Key<byte[]> CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES =
217            new Key<byte[]>("android.control.availableVideoStabilizationModes", byte[].class);
218
219    /**
220     * <p>The set of auto-white-balance modes ({@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode})
221     * that are supported by this camera device.</p>
222     * <p>Not all the auto-white-balance modes may be supported by a
223     * given camera device. This entry lists the valid modes for
224     * {@link CaptureRequest#CONTROL_AWB_MODE android.control.awbMode} for this camera device.</p>
225     * <p>All camera devices will support ON mode.</p>
226     * <p>Full-capability camera devices will always support OFF mode,
227     * which enables application control of white balance, by using
228     * {@link CaptureRequest#COLOR_CORRECTION_TRANSFORM android.colorCorrection.transform} and {@link CaptureRequest#COLOR_CORRECTION_GAINS android.colorCorrection.gains}({@link CaptureRequest#COLOR_CORRECTION_MODE android.colorCorrection.mode} must be set to TRANSFORM_MATRIX).</p>
229     *
230     * @see CaptureRequest#COLOR_CORRECTION_GAINS
231     * @see CaptureRequest#COLOR_CORRECTION_MODE
232     * @see CaptureRequest#COLOR_CORRECTION_TRANSFORM
233     * @see CaptureRequest#CONTROL_AWB_MODE
234     */
235    public static final Key<byte[]> CONTROL_AWB_AVAILABLE_MODES =
236            new Key<byte[]>("android.control.awbAvailableModes", byte[].class);
237
238    /**
239     * <p>For AE, AWB, and AF, how many individual
240     * regions can be listed for metering?</p>
241     */
242    public static final Key<Integer> CONTROL_MAX_REGIONS =
243            new Key<Integer>("android.control.maxRegions", int.class);
244
245    /**
246     * <p>Whether this camera has a
247     * flash</p>
248     * <p>If no flash, none of the flash controls do
249     * anything. All other metadata should return 0</p>
250     */
251    public static final Key<Byte> FLASH_INFO_AVAILABLE =
252            new Key<Byte>("android.flash.info.available", byte.class);
253
254    /**
255     * <p>Supported resolutions for the JPEG thumbnail</p>
256     * <p>Below condiditions will be satisfied for this size list:</p>
257     * <ul>
258     * <li>The sizes will be sorted by increasing pixel area (width x height).
259     * If several resolutions have the same area, they will be sorted by increasing width.</li>
260     * <li>The aspect ratio of the largest thumbnail size will be same as the
261     * aspect ratio of largest size in {@link CameraCharacteristics#SCALER_AVAILABLE_JPEG_SIZES android.scaler.availableJpegSizes}.
262     * The largest size is defined as the size that has the largest pixel area
263     * in a given size list.</li>
264     * <li>Each size in {@link CameraCharacteristics#SCALER_AVAILABLE_JPEG_SIZES android.scaler.availableJpegSizes} will have at least
265     * one corresponding size that has the same aspect ratio in availableThumbnailSizes,
266     * and vice versa.</li>
267     * <li>All non (0, 0) sizes will have non-zero widths and heights.</li>
268     * </ul>
269     *
270     * @see CameraCharacteristics#SCALER_AVAILABLE_JPEG_SIZES
271     */
272    public static final Key<android.hardware.camera2.Size[]> JPEG_AVAILABLE_THUMBNAIL_SIZES =
273            new Key<android.hardware.camera2.Size[]>("android.jpeg.availableThumbnailSizes", android.hardware.camera2.Size[].class);
274
275    /**
276     * <p>List of supported aperture
277     * values.</p>
278     * <p>If the camera device doesn't support variable apertures,
279     * listed value will be the fixed aperture.</p>
280     * <p>If the camera device supports variable apertures, the aperture value
281     * in this list will be sorted in ascending order.</p>
282     */
283    public static final Key<float[]> LENS_INFO_AVAILABLE_APERTURES =
284            new Key<float[]>("android.lens.info.availableApertures", float[].class);
285
286    /**
287     * <p>List of supported neutral density filter values for
288     * {@link CaptureRequest#LENS_FILTER_DENSITY android.lens.filterDensity}.</p>
289     * <p>If changing {@link CaptureRequest#LENS_FILTER_DENSITY android.lens.filterDensity} is not supported,
290     * availableFilterDensities must contain only 0. Otherwise, this
291     * list contains only the exact filter density values available on
292     * this camera device.</p>
293     *
294     * @see CaptureRequest#LENS_FILTER_DENSITY
295     */
296    public static final Key<float[]> LENS_INFO_AVAILABLE_FILTER_DENSITIES =
297            new Key<float[]>("android.lens.info.availableFilterDensities", float[].class);
298
299    /**
300     * <p>If fitted with optical zoom, what focal
301     * lengths are available. If not, the static focal
302     * length</p>
303     * <p>If optical zoom not supported, only one value
304     * should be reported</p>
305     */
306    public static final Key<float[]> LENS_INFO_AVAILABLE_FOCAL_LENGTHS =
307            new Key<float[]>("android.lens.info.availableFocalLengths", float[].class);
308
309    /**
310     * <p>List of supported optical image
311     * stabilization modes</p>
312     */
313    public static final Key<byte[]> LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION =
314            new Key<byte[]>("android.lens.info.availableOpticalStabilization", byte[].class);
315
316    /**
317     * <p>Hyperfocal distance for this lens; set to
318     * 0 if fixed focus</p>
319     * <p>The hyperfocal distance is used for the old
320     * API's 'fixed' setting</p>
321     */
322    public static final Key<Float> LENS_INFO_HYPERFOCAL_DISTANCE =
323            new Key<Float>("android.lens.info.hyperfocalDistance", float.class);
324
325    /**
326     * <p>Shortest distance from frontmost surface
327     * of the lens that can be focused correctly</p>
328     * <p>If the lens is fixed-focus, this should be
329     * 0</p>
330     */
331    public static final Key<Float> LENS_INFO_MINIMUM_FOCUS_DISTANCE =
332            new Key<Float>("android.lens.info.minimumFocusDistance", float.class);
333
334    /**
335     * <p>Dimensions of lens shading map.</p>
336     * <p>The map should be on the order of 30-40 rows and columns, and
337     * must be smaller than 64x64.</p>
338     */
339    public static final Key<android.hardware.camera2.Size> LENS_INFO_SHADING_MAP_SIZE =
340            new Key<android.hardware.camera2.Size>("android.lens.info.shadingMapSize", android.hardware.camera2.Size.class);
341
342    /**
343     * <p>Direction the camera faces relative to
344     * device screen</p>
345     * @see #LENS_FACING_FRONT
346     * @see #LENS_FACING_BACK
347     */
348    public static final Key<Integer> LENS_FACING =
349            new Key<Integer>("android.lens.facing", int.class);
350
351    /**
352     * <p>If set to 1, the HAL will always split result
353     * metadata for a single capture into multiple buffers,
354     * returned using multiple process_capture_result calls.</p>
355     * <p>Does not need to be listed in static
356     * metadata. Support for partial results will be reworked in
357     * future versions of camera service. This quirk will stop
358     * working at that point; DO NOT USE without careful
359     * consideration of future support.</p>
360     * <p><b>Optional</b> - This value may be {@code null} on some devices.</p>
361     * @hide
362     */
363    public static final Key<Byte> QUIRKS_USE_PARTIAL_RESULT =
364            new Key<Byte>("android.quirks.usePartialResult", byte.class);
365
366    /**
367     * <p>How many output streams can be allocated at
368     * the same time for each type of stream</p>
369     * <p>Video snapshot with preview callbacks requires 3
370     * processed streams (preview, record, app callbacks) and
371     * one JPEG stream (snapshot)</p>
372     */
373    public static final Key<int[]> REQUEST_MAX_NUM_OUTPUT_STREAMS =
374            new Key<int[]>("android.request.maxNumOutputStreams", int[].class);
375
376    /**
377     * <p>List of app-visible formats</p>
378     */
379    public static final Key<int[]> SCALER_AVAILABLE_FORMATS =
380            new Key<int[]>("android.scaler.availableFormats", int[].class);
381
382    /**
383     * <p>The minimum frame duration that is supported
384     * for each resolution in availableJpegSizes. Should
385     * correspond to the frame duration when only that JPEG
386     * stream is active and captured in a burst, with all
387     * processing set to FAST</p>
388     * <p>When multiple streams are configured, the minimum
389     * frame duration will be &gt;= max(individual stream min
390     * durations)</p>
391     */
392    public static final Key<long[]> SCALER_AVAILABLE_JPEG_MIN_DURATIONS =
393            new Key<long[]>("android.scaler.availableJpegMinDurations", long[].class);
394
395    /**
396     * <p>The resolutions available for output from
397     * the JPEG block. Listed as width x height</p>
398     */
399    public static final Key<android.hardware.camera2.Size[]> SCALER_AVAILABLE_JPEG_SIZES =
400            new Key<android.hardware.camera2.Size[]>("android.scaler.availableJpegSizes", android.hardware.camera2.Size[].class);
401
402    /**
403     * <p>The maximum ratio between active area width
404     * and crop region width, or between active area height and
405     * crop region height, if the crop region height is larger
406     * than width</p>
407     */
408    public static final Key<Float> SCALER_AVAILABLE_MAX_DIGITAL_ZOOM =
409            new Key<Float>("android.scaler.availableMaxDigitalZoom", float.class);
410
411    /**
412     * <p>The minimum frame duration that is supported
413     * for each resolution in availableProcessedSizes. Should
414     * correspond to the frame duration when only that processed
415     * stream is active, with all processing set to
416     * FAST</p>
417     * <p>When multiple streams are configured, the minimum
418     * frame duration will be &gt;= max(individual stream min
419     * durations)</p>
420     */
421    public static final Key<long[]> SCALER_AVAILABLE_PROCESSED_MIN_DURATIONS =
422            new Key<long[]>("android.scaler.availableProcessedMinDurations", long[].class);
423
424    /**
425     * <p>The resolutions available for use with
426     * processed output streams, such as YV12, NV12, and
427     * platform opaque YUV/RGB streams to the GPU or video
428     * encoders. Listed as width, height</p>
429     * <p>The actual supported resolution list may be limited by
430     * consumer end points for different use cases. For example, for
431     * recording use case, the largest supported resolution may be
432     * limited by max supported size from encoder, for preview use
433     * case, the largest supported resolution may be limited by max
434     * resolution SurfaceTexture/SurfaceView can support.</p>
435     */
436    public static final Key<android.hardware.camera2.Size[]> SCALER_AVAILABLE_PROCESSED_SIZES =
437            new Key<android.hardware.camera2.Size[]>("android.scaler.availableProcessedSizes", android.hardware.camera2.Size[].class);
438
439    /**
440     * <p>Area of raw data which corresponds to only
441     * active pixels; smaller or equal to
442     * pixelArraySize.</p>
443     */
444    public static final Key<android.graphics.Rect> SENSOR_INFO_ACTIVE_ARRAY_SIZE =
445            new Key<android.graphics.Rect>("android.sensor.info.activeArraySize", android.graphics.Rect.class);
446
447    /**
448     * <p>Range of valid sensitivities</p>
449     */
450    public static final Key<int[]> SENSOR_INFO_SENSITIVITY_RANGE =
451            new Key<int[]>("android.sensor.info.sensitivityRange", int[].class);
452
453    /**
454     * <p>Range of valid exposure
455     * times</p>
456     */
457    public static final Key<long[]> SENSOR_INFO_EXPOSURE_TIME_RANGE =
458            new Key<long[]>("android.sensor.info.exposureTimeRange", long[].class);
459
460    /**
461     * <p>Maximum possible frame duration (minimum frame
462     * rate)</p>
463     * <p>Minimum duration is a function of resolution,
464     * processing settings. See
465     * android.scaler.availableProcessedMinDurations
466     * android.scaler.availableJpegMinDurations
467     * android.scaler.availableRawMinDurations</p>
468     */
469    public static final Key<Long> SENSOR_INFO_MAX_FRAME_DURATION =
470            new Key<Long>("android.sensor.info.maxFrameDuration", long.class);
471
472    /**
473     * <p>The physical dimensions of the full pixel
474     * array</p>
475     * <p>Needed for FOV calculation for old API</p>
476     */
477    public static final Key<float[]> SENSOR_INFO_PHYSICAL_SIZE =
478            new Key<float[]>("android.sensor.info.physicalSize", float[].class);
479
480    /**
481     * <p>Gain factor from electrons to raw units when
482     * ISO=100</p>
483     * <p><b>Optional</b> - This value may be {@code null} on some devices.</p>
484     * <p><b>Full capability</b> -
485     * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the
486     * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key</p>
487     *
488     * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
489     */
490    public static final Key<Rational> SENSOR_BASE_GAIN_FACTOR =
491            new Key<Rational>("android.sensor.baseGainFactor", Rational.class);
492
493    /**
494     * <p>Maximum sensitivity that is implemented
495     * purely through analog gain</p>
496     * <p>For {@link CaptureRequest#SENSOR_SENSITIVITY android.sensor.sensitivity} values less than or
497     * equal to this, all applied gain must be analog. For
498     * values above this, it can be a mix of analog and
499     * digital</p>
500     * <p><b>Optional</b> - This value may be {@code null} on some devices.</p>
501     * <p><b>Full capability</b> -
502     * Present on all camera devices that report being {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL HARDWARE_LEVEL_FULL} devices in the
503     * {@link CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL android.info.supportedHardwareLevel} key</p>
504     *
505     * @see CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL
506     * @see CaptureRequest#SENSOR_SENSITIVITY
507     */
508    public static final Key<Integer> SENSOR_MAX_ANALOG_SENSITIVITY =
509            new Key<Integer>("android.sensor.maxAnalogSensitivity", int.class);
510
511    /**
512     * <p>Clockwise angle through which the output
513     * image needs to be rotated to be upright on the device
514     * screen in its native orientation. Also defines the
515     * direction of rolling shutter readout, which is from top
516     * to bottom in the sensor's coordinate system</p>
517     */
518    public static final Key<Integer> SENSOR_ORIENTATION =
519            new Key<Integer>("android.sensor.orientation", int.class);
520
521    /**
522     * <p>Which face detection modes are available,
523     * if any</p>
524     * <p>OFF means face detection is disabled, it must
525     * be included in the list.</p>
526     * <p>SIMPLE means the device supports the
527     * android.statistics.faceRectangles and
528     * android.statistics.faceScores outputs.</p>
529     * <p>FULL means the device additionally supports the
530     * android.statistics.faceIds and
531     * android.statistics.faceLandmarks outputs.</p>
532     */
533    public static final Key<byte[]> STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES =
534            new Key<byte[]>("android.statistics.info.availableFaceDetectModes", byte[].class);
535
536    /**
537     * <p>Maximum number of simultaneously detectable
538     * faces</p>
539     */
540    public static final Key<Integer> STATISTICS_INFO_MAX_FACE_COUNT =
541            new Key<Integer>("android.statistics.info.maxFaceCount", int.class);
542
543    /**
544     * <p>Maximum number of supported points in the
545     * tonemap curve</p>
546     */
547    public static final Key<Integer> TONEMAP_MAX_CURVE_POINTS =
548            new Key<Integer>("android.tonemap.maxCurvePoints", int.class);
549
550    /**
551     * <p>A list of camera LEDs that are available on this system.</p>
552     * @see #LED_AVAILABLE_LEDS_TRANSMIT
553     * @hide
554     */
555    public static final Key<int[]> LED_AVAILABLE_LEDS =
556            new Key<int[]>("android.led.availableLeds", int[].class);
557
558    /**
559     * <p>The camera 3 HAL device can implement one of two possible
560     * operational modes; limited and full. Full support is
561     * expected from new higher-end devices. Limited mode has
562     * hardware requirements roughly in line with those for a
563     * camera HAL device v1 implementation, and is expected from
564     * older or inexpensive devices. Full is a strict superset of
565     * limited, and they share the same essential operational flow.</p>
566     * <p>For full details refer to "S3. Operational Modes" in camera3.h</p>
567     * @see #INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED
568     * @see #INFO_SUPPORTED_HARDWARE_LEVEL_FULL
569     */
570    public static final Key<Integer> INFO_SUPPORTED_HARDWARE_LEVEL =
571            new Key<Integer>("android.info.supportedHardwareLevel", int.class);
572
573    /*~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~
574     * End generated code
575     *~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~@~O@*/
576}
577