# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Nested Classes | Inherited Constants | Fields | Methods | Inherited Methods

# CameraCharacteristics

`public final class CameraCharacteristics`
`` `extends CameraMetadata<Key<?>>` ``

java.lang.Object
↳ | android.hardware.camera2.CameraMetadata<android.hardware.camera2.CameraCharacteristics.Key<?>>
| ↳ | android.hardware.camera2.CameraCharacteristics

The properties describing a `CameraDevice`.

These properties are fixed for a given CameraDevice, and can be queried through the `CameraManager` interface with `CameraManager#getCameraCharacteristics`.

When obtained by a client that does not hold the CAMERA permission, some metadata values are not included. The list of keys that require the permission is given by `getKeysNeedingPermission()`.

`CameraCharacteristics` objects are immutable.

See also:

- `CameraDevice`
- `CameraManager`

## Summary

### Nested classes
`class` | `CameraCharacteristics.Key<T>` A `Key` is used to do camera characteristics field lookups with `CameraCharacteristics#get`.

### Inherited constants
From class `android.hardware.camera2.CameraMetadata`
`int` | `COLOR_CORRECTION_ABERRATION_MODE_FAST` Aberration correction will not slow down capture rate relative to sensor raw output.
`int` | `COLOR_CORRECTION_ABERRATION_MODE_HIGH_QUALITY` Aberration correction operates at improved quality but the capture rate might be reduced (relative to sensor raw output rate)
`int` | `COLOR_CORRECTION_ABERRATION_MODE_OFF` No aberration correction is applied.
`int` | `COLOR_CORRECTION_MODE_FAST` Color correction processing must not slow down capture rate relative to sensor raw output.
`int` | `COLOR_CORRECTION_MODE_HIGH_QUALITY` Color correction processing operates at improved quality but the capture rate might be reduced (relative to sensor raw output rate) Advanced white balance adjustments above and beyond the specified white balance pipeline may be applied.
`int` | `COLOR_CORRECTION_MODE_TRANSFORM_MATRIX` Use the `CaptureRequest#COLOR_CORRECTION_TRANSFORM` matrix and `CaptureRequest#COLOR_CORRECTION_GAINS` to do color conversion.
`int` | `CONTROL_AE_ANTIBANDING_MODE_50HZ` The camera device will adjust exposure duration to avoid banding problems with 50Hz illumination sources.
`int` | `CONTROL_AE_ANTIBANDING_MODE_60HZ` The camera device will adjust exposure duration to avoid banding problems with 60Hz illumination sources.
`int` | `CONTROL_AE_ANTIBANDING_MODE_AUTO` The camera device will automatically adapt its antibanding routine to the current illumination condition.
`int` | `CONTROL_AE_ANTIBANDING_MODE_OFF` The camera device will not adjust exposure duration to avoid banding problems.
`int` | `CONTROL_AE_MODE_OFF` The camera device's autoexposure routine is disabled.
`int` | `CONTROL_AE_MODE_ON` The camera device's autoexposure routine is active, with no flash control.
`int` | `CONTROL_AE_MODE_ON_ALWAYS_FLASH` Like ON, except that the camera device also controls the camera's flash unit, always firing it for still captures.
`int` | `CONTROL_AE_MODE_ON_AUTO_FLASH` Like ON, except that the camera device also controls the camera's flash unit, firing it in low-light conditions.
`int` | `CONTROL_AE_MODE_ON_AUTO_FLASH_REDEYE` Like ON_AUTO_FLASH, but with automatic red eye reduction.
`int` | `CONTROL_AE_MODE_ON_EXTERNAL_FLASH` An external flash has been turned on.
`int` | `CONTROL_AE_PRECAPTURE_TRIGGER_CANCEL` The camera device will cancel any currently active or completed precapture metering sequence, the auto-exposure routine will return to its initial state.
`int` | `CONTROL_AE_PRECAPTURE_TRIGGER_IDLE` The trigger is idle.
`int` | `CONTROL_AE_PRECAPTURE_TRIGGER_START` The precapture metering sequence will be started by the camera device.
`int` | `CONTROL_AE_STATE_CONVERGED` AE has a good set of control values for the current scene.
`int` | `CONTROL_AE_STATE_FLASH_REQUIRED` AE has a good set of control values, but flash needs to be fired for good quality still capture.
`int` | `CONTROL_AE_STATE_INACTIVE` AE is off or recently reset.
`int` | `CONTROL_AE_STATE_LOCKED` AE has been locked.
`int` | `CONTROL_AE_STATE_PRECAPTURE` AE has been asked to do a precapture sequence and is currently executing it.
`int` | `CONTROL_AE_STATE_SEARCHING` AE doesn't yet have a good set of control values for the current scene.
`int` | `CONTROL_AF_MODE_AUTO` Basic automatic focus mode.
`int` | `CONTROL_AF_MODE_CONTINUOUS_PICTURE` In this mode, the AF algorithm modifies the lens position continually to attempt to provide a constantly-in-focus image stream.
`int` | `CONTROL_AF_MODE_CONTINUOUS_VIDEO` In this mode, the AF algorithm modifies the lens position continually to attempt to provide a constantly-in-focus image stream.
`int` | `CONTROL_AF_MODE_EDOF` Extended depth of field (digital focus) mode.
`int` | `CONTROL_AF_MODE_MACRO` Close-up focusing mode.
`int` | `CONTROL_AF_MODE_OFF` The auto-focus routine does not control the lens; `CaptureRequest#LENS_FOCUS_DISTANCE` is controlled by the application.
`int` | `CONTROL_AF_SCENE_CHANGE_DETECTED` Scene change is detected within the AF region(s).
`int` | `CONTROL_AF_SCENE_CHANGE_NOT_DETECTED` Scene change is not detected within the AF region(s).
`int` | `CONTROL_AF_STATE_ACTIVE_SCAN` AF is performing an AF scan because it was triggered by AF trigger.
`int` | `CONTROL_AF_STATE_FOCUSED_LOCKED` AF believes it is focused correctly and has locked focus.
`int` | `CONTROL_AF_STATE_INACTIVE` AF is off or has not yet tried to scan/been asked to scan.
`int` | `CONTROL_AF_STATE_NOT_FOCUSED_LOCKED` AF has failed to focus successfully and has locked focus.
`int` | `CONTROL_AF_STATE_PASSIVE_FOCUSED` AF currently believes it is in focus, but may restart scanning at any time.
`int` | `CONTROL_AF_STATE_PASSIVE_SCAN` AF is currently performing an AF scan initiated the camera device in a continuous autofocus mode.
`int` | `CONTROL_AF_STATE_PASSIVE_UNFOCUSED` AF finished a passive scan without finding focus, and may restart scanning at any time.
`int` | `CONTROL_AF_TRIGGER_CANCEL` Autofocus will return to its initial state, and cancel any currently active trigger.
`int` | `CONTROL_AF_TRIGGER_IDLE` The trigger is idle.
`int` | `CONTROL_AF_TRIGGER_START` Autofocus will trigger now.
`int` | `CONTROL_AWB_MODE_AUTO` The camera device's auto-white balance routine is active.
`int` | `CONTROL_AWB_MODE_CLOUDY_DAYLIGHT` The camera device's auto-white balance routine is disabled; the camera device uses cloudy daylight light as the assumed scene illumination for white balance.
`int` | `CONTROL_AWB_MODE_DAYLIGHT` The camera device's auto-white balance routine is disabled; the camera device uses daylight light as the assumed scene illumination for white balance.
`int` | `CONTROL_AWB_MODE_FLUORESCENT` The camera device's auto-white balance routine is disabled; the camera device uses fluorescent light as the assumed scene illumination for white balance.
`int` | `CONTROL_AWB_MODE_INCANDESCENT` The camera device's auto-white balance routine is disabled; the camera device uses incandescent light as the assumed scene illumination for white balance.
`int` | `CONTROL_AWB_MODE_OFF` The camera device's auto-white balance routine is disabled.
`int` | `CONTROL_AWB_MODE_SHADE` The camera device's auto-white balance routine is disabled; the camera device uses shade light as the assumed scene illumination for white balance.
`int` | `CONTROL_AWB_MODE_TWILIGHT` The camera device's auto-white balance routine is disabled; the camera device uses twilight light as the assumed scene illumination for white balance.
`int` | `CONTROL_AWB_MODE_WARM_FLUORESCENT` The camera device's auto-white balance routine is disabled; the camera device uses warm fluorescent light as the assumed scene illumination for white balance.
`int` | `CONTROL_AWB_STATE_CONVERGED` AWB has a good set of control values for the current scene.
`int` | `CONTROL_AWB_STATE_INACTIVE` AWB is not in auto mode, or has not yet started metering.
`int` | `CONTROL_AWB_STATE_LOCKED` AWB has been locked.
`int` | `CONTROL_AWB_STATE_SEARCHING` AWB doesn't yet have a good set of control values for the current scene.
`int` | `CONTROL_CAPTURE_INTENT_CUSTOM` The goal of this request doesn't fall into the other categories.
`int` | `CONTROL_CAPTURE_INTENT_MANUAL` This request is for manual capture use case where the applications want to directly control the capture parameters.
`int` | `CONTROL_CAPTURE_INTENT_MOTION_TRACKING` This request is for a motion tracking use case, where the application will use camera and inertial sensor data to locate and track objects in the world.
`int` | `CONTROL_CAPTURE_INTENT_PREVIEW` This request is for a preview-like use case.
`int` | `CONTROL_CAPTURE_INTENT_STILL_CAPTURE` This request is for a still capture-type use case.
`int` | `CONTROL_CAPTURE_INTENT_VIDEO_RECORD` This request is for a video recording use case.
`int` | `CONTROL_CAPTURE_INTENT_VIDEO_SNAPSHOT` This request is for a video snapshot (still image while recording video) use case.
`int` | `CONTROL_CAPTURE_INTENT_ZERO_SHUTTER_LAG` This request is for a ZSL usecase; the application will stream full-resolution images and reprocess one or several later for a final capture.
`int` | `CONTROL_EFFECT_MODE_AQUA` An "aqua" effect where a blue hue is added to the image.
`int` | `CONTROL_EFFECT_MODE_BLACKBOARD` A "blackboard" effect where the image is typically displayed as regions of black, with white or grey details.
`int` | `CONTROL_EFFECT_MODE_MONO` A "monocolor" effect where the image is mapped into a single color.
`int` | `CONTROL_EFFECT_MODE_NEGATIVE` A "photo-negative" effect where the image's colors are inverted.
`int` | `CONTROL_EFFECT_MODE_OFF` No color effect will be applied.
`int` | `CONTROL_EFFECT_MODE_POSTERIZE` A "posterization" effect where the image uses discrete regions of tone rather than a continuous gradient of tones.
`int` | `CONTROL_EFFECT_MODE_SEPIA` A "sepia" effect where the image is mapped into warm gray, red, and brown tones.
`int` | `CONTROL_EFFECT_MODE_SOLARIZE` A "solarisation" effect (Sabattier effect) where the image is wholly or partially reversed in tone.
`int` | `CONTROL_EFFECT_MODE_WHITEBOARD` A "whiteboard" effect where the image is typically displayed as regions of white, with black or grey details.
`int` | `CONTROL_EXTENDED_SCENE_MODE_BOKEH_CONTINUOUS` Bokeh effect must not slow down capture rate relative to sensor raw output, and the effect is applied to all processed streams no larger than the maximum streaming dimension.
`int` | `CONTROL_EXTENDED_SCENE_MODE_BOKEH_STILL_CAPTURE` High quality bokeh mode is enabled for all non-raw streams (including YUV, JPEG, and IMPLEMENTATION_DEFINED) when capture intent is STILL_CAPTURE.
`int` | `CONTROL_EXTENDED_SCENE_MODE_DISABLED` Extended scene mode is disabled.
`int` | `CONTROL_MODE_AUTO` Use settings for each individual 3A routine.
`int` | `CONTROL_MODE_OFF` Full application control of pipeline.
`int` | `CONTROL_MODE_OFF_KEEP_STATE` Same as OFF mode, except that this capture will not be used by camera device background auto-exposure, auto-white balance and auto-focus algorithms (3A) to update their statistics.
`int` | `CONTROL_MODE_USE_EXTENDED_SCENE_MODE` Use a specific extended scene mode.
`int` | `CONTROL_MODE_USE_SCENE_MODE` Use a specific scene mode.
`int` | `CONTROL_SCENE_MODE_ACTION` Optimized for photos of quickly moving objects.
`int` | `CONTROL_SCENE_MODE_BARCODE` Optimized for accurately capturing a photo of barcode for use by camera applications that wish to read the barcode value.
`int` | `CONTROL_SCENE_MODE_BEACH` Optimized for bright, outdoor beach settings.
`int` | `CONTROL_SCENE_MODE_CANDLELIGHT` Optimized for dim settings where the main light source is a candle.
`int` | `CONTROL_SCENE_MODE_DISABLED` Indicates that no scene modes are set for a given capture request.
`int` | `CONTROL_SCENE_MODE_FACE_PRIORITY` If face detection support exists, use face detection data for auto-focus, auto-white balance, and auto-exposure routines.
`int` | `CONTROL_SCENE_MODE_FIREWORKS` Optimized for nighttime photos of fireworks.
`int` | `CONTROL_SCENE_MODE_HDR` Turn on a device-specific high dynamic range (HDR) mode.
`int` | `CONTROL_SCENE_MODE_HIGH_SPEED_VIDEO` This constant is deprecated. Please refer to this API documentation to find the alternatives
`int` | `CONTROL_SCENE_MODE_LANDSCAPE` Optimized for photos of distant macroscopic objects.
`int` | `CONTROL_SCENE_MODE_NIGHT` Optimized for low-light settings.
`int` | `CONTROL_SCENE_MODE_NIGHT_PORTRAIT` Optimized for still photos of people in low-light settings.
`int` | `CONTROL_SCENE_MODE_PARTY` Optimized for dim, indoor settings with multiple moving people.
`int` | `CONTROL_SCENE_MODE_PORTRAIT` Optimized for still photos of people.
`int` | `CONTROL_SCENE_MODE_SNOW` Optimized for bright, outdoor settings containing snow.
`int` | `CONTROL_SCENE_MODE_SPORTS` Optimized for photos of quickly moving people.
`int` | `CONTROL_SCENE_MODE_STEADYPHOTO` Optimized to avoid blurry photos due to small amounts of device motion (for example: due to hand shake).
`int` | `CONTROL_SCENE_MODE_SUNSET` Optimized for scenes of the setting sun.
`int` | `CONTROL_SCENE_MODE_THEATRE` Optimized for dim, indoor settings where flash must remain off.
`int` | `CONTROL_VIDEO_STABILIZATION_MODE_OFF` Video stabilization is disabled.
`int` | `CONTROL_VIDEO_STABILIZATION_MODE_ON` Video stabilization is enabled.
`int` | `DISTORTION_CORRECTION_MODE_FAST` Lens distortion correction is applied without reducing frame rate relative to sensor output.
`int` | `DISTORTION_CORRECTION_MODE_HIGH_QUALITY` High-quality distortion correction is applied, at the cost of possibly reduced frame rate relative to sensor output.
`int` | `DISTORTION_CORRECTION_MODE_OFF` No distortion correction is applied.
`int` | `EDGE_MODE_FAST` Apply edge enhancement at a quality level that does not slow down frame rate relative to sensor output.
`int` | `EDGE_MODE_HIGH_QUALITY` Apply high-quality edge enhancement, at a cost of possibly reduced output frame rate.
`int` | `EDGE_MODE_OFF` No edge enhancement is applied.
`int` | `EDGE_MODE_ZERO_SHUTTER_LAG` Edge enhancement is applied at different levels for different output streams, based on resolution.
`int` | `FLASH_MODE_OFF` Do not fire the flash for this capture.
`int` | `FLASH_MODE_SINGLE` If the flash is available and charged, fire flash for this capture.
`int` | `FLASH_MODE_TORCH` Transition flash to continuously on.
`int` | `FLASH_STATE_CHARGING` Flash is charging and cannot be fired.
`int` | `FLASH_STATE_FIRED` Flash fired for this capture.
`int` | `FLASH_STATE_PARTIAL` Flash partially illuminated this frame.
`int` | `FLASH_STATE_READY` Flash is ready to fire.
`int` | `FLASH_STATE_UNAVAILABLE` No flash on camera.
`int` | `HOT_PIXEL_MODE_FAST` Hot pixel correction is applied, without reducing frame rate relative to sensor raw output.
`int` | `HOT_PIXEL_MODE_HIGH_QUALITY` High-quality hot pixel correction is applied, at a cost of possibly reduced frame rate relative to sensor raw output.
`int` | `HOT_PIXEL_MODE_OFF` No hot pixel correction is applied.
`int` | `INFO_SUPPORTED_HARDWARE_LEVEL_3` This camera device is capable of YUV reprocessing and RAW data capture, in addition to FULL-level capabilities.
`int` | `INFO_SUPPORTED_HARDWARE_LEVEL_EXTERNAL` This camera device is backed by an external camera connected to this Android device.
`int` | `INFO_SUPPORTED_HARDWARE_LEVEL_FULL` This camera device is capable of supporting advanced imaging applications.
`int` | `INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY` This camera device is running in backward compatibility mode.
`int` | `INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED` This camera device does not have enough capabilities to qualify as a `FULL` device or better.
`int` | `LENS_FACING_BACK` The camera device faces the opposite direction as the device's screen.
`int` | `LENS_FACING_EXTERNAL` The camera device is an external camera, and has no fixed facing relative to the device's screen.
`int` | `LENS_FACING_FRONT` The camera device faces the same direction as the device's screen.
`int` | `LENS_INFO_FOCUS_DISTANCE_CALIBRATION_APPROXIMATE` The lens focus distance is measured in diopters.
`int` | `LENS_INFO_FOCUS_DISTANCE_CALIBRATION_CALIBRATED` The lens focus distance is measured in diopters, and is calibrated.
`int` | `LENS_INFO_FOCUS_DISTANCE_CALIBRATION_UNCALIBRATED` The lens focus distance is not accurate, and the units used for `CaptureRequest#LENS_FOCUS_DISTANCE` do not correspond to any physical units.
`int` | `LENS_OPTICAL_STABILIZATION_MODE_OFF` Optical stabilization is unavailable.
`int` | `LENS_OPTICAL_STABILIZATION_MODE_ON` Optical stabilization is enabled.
`int` | `LENS_POSE_REFERENCE_GYROSCOPE` The value of `CameraCharacteristics#LENS_POSE_TRANSLATION` is relative to the position of the primary gyroscope of this Android device.
`int` | `LENS_POSE_REFERENCE_PRIMARY_CAMERA` The value of `CameraCharacteristics#LENS_POSE_TRANSLATION` is relative to the optical center of the largest camera device facing the same direction as this camera.
`int` | `LENS_POSE_REFERENCE_UNDEFINED` The camera device cannot represent the values of `CameraCharacteristics#LENS_POSE_TRANSLATION` and `CameraCharacteristics#LENS_POSE_ROTATION` accurately enough.
`int` | `LENS_STATE_MOVING` One or several of the lens parameters (`CaptureRequest#LENS_FOCAL_LENGTH`, `CaptureRequest#LENS_FOCUS_DISTANCE`, `CaptureRequest#LENS_FILTER_DENSITY` or `CaptureRequest#LENS_APERTURE`) is currently changing.
`int` | `LENS_STATE_STATIONARY` The lens parameters (`CaptureRequest#LENS_FOCAL_LENGTH`, `CaptureRequest#LENS_FOCUS_DISTANCE`, `CaptureRequest#LENS_FILTER_DENSITY` and `CaptureRequest#LENS_APERTURE`) are not changing.
`int` | `LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_APPROXIMATE` A software mechanism is used to synchronize between the physical cameras.
`int` | `LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_CALIBRATED` The camera device supports frame timestamp synchronization at the hardware level, and the timestamp of a physical stream image accurately reflects its start-of-exposure time.
`int` | `NOISE_REDUCTION_MODE_FAST` Noise reduction is applied without reducing frame rate relative to sensor output.
`int` | `NOISE_REDUCTION_MODE_HIGH_QUALITY` High-quality noise reduction is applied, at the cost of possibly reduced frame rate relative to sensor output.
`int` | `NOISE_REDUCTION_MODE_MINIMAL` MINIMAL noise reduction is applied without reducing frame rate relative to sensor output.
`int` | `NOISE_REDUCTION_MODE_OFF` No noise reduction is applied.
`int` | `NOISE_REDUCTION_MODE_ZERO_SHUTTER_LAG` Noise reduction is applied at different levels for different output streams, based on resolution.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE` The minimal set of capabilities that every camera device (regardless of `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL`) supports.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_BURST_CAPTURE` The camera device supports capturing high-resolution images at >= 20 frames per second, in at least the uncompressed YUV format, when post-processing settings are set to FAST.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_CONSTRAINED_HIGH_SPEED_VIDEO` The device supports constrained high speed video recording (frame rate >=120fps) use case.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_DEPTH_OUTPUT` The camera device can produce depth measurements from its field of view.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA` The camera device is a logical camera backed by two or more physical cameras.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING` The camera device post-processing stages can be manually controlled.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR` The camera device can be manually controlled (3A algorithms such as auto-exposure, and auto-focus can be bypassed).
`int` | `REQUEST_AVAILABLE_CAPABILITIES_MONOCHROME` The camera device is a monochrome camera that doesn't contain a color filter array, and for YUV_420_888 stream, the pixel values on U and V planes are all 128.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_MOTION_TRACKING` The camera device supports the MOTION_TRACKING value for `CaptureRequest#CONTROL_CAPTURE_INTENT`, which limits maximum exposure time to 20 ms.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_OFFLINE_PROCESSING` The camera device supports the OFFLINE_PROCESSING use case.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_PRIVATE_REPROCESSING` The camera device supports the Zero Shutter Lag reprocessing use case.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_RAW` The camera device supports outputting RAW buffers and metadata for interpreting them.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_READ_SENSOR_SETTINGS` The camera device supports accurately reporting the sensor settings for many of the sensor controls while the built-in 3A algorithm is running.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_SECURE_IMAGE_DATA` The camera device is capable of writing image data into a region of memory inaccessible to Android userspace or the Android kernel, and only accessible to trusted execution environments (TEE).
`int` | `REQUEST_AVAILABLE_CAPABILITIES_SYSTEM_CAMERA` The camera device is only accessible by Android's system components and privileged applications.
`int` | `REQUEST_AVAILABLE_CAPABILITIES_YUV_REPROCESSING` The camera device supports the YUV_420_888 reprocessing use case, similar as PRIVATE_REPROCESSING, This capability requires the camera device to support the following: One input stream is supported, that is, ``CameraCharacteristics#REQUEST_MAX_NUM_INPUT_STREAMS` == 1`.
`int` | `SCALER_CROPPING_TYPE_CENTER_ONLY` The camera device only supports centered crop regions.
`int` | `SCALER_CROPPING_TYPE_FREEFORM` The camera device supports arbitrarily chosen crop regions.
`int` | `SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_BGGR`
`int` | `SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GBRG`
`int` | `SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GRBG`
`int` | `SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_MONO` Sensor doesn't have any Bayer color filter.
`int` | `SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_NIR` Sensor has a near infrared filter capturing light with wavelength between roughly 750nm and 1400nm, and the same filter covers the whole sensor array.
`int` | `SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGB` Sensor is not Bayer; output has 3 16-bit values for each pixel, instead of just 1 16-bit value per pixel.
`int` | `SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB`
`int` | `SENSOR_INFO_TIMESTAMP_SOURCE_REALTIME` Timestamps from `CaptureResult#SENSOR_TIMESTAMP` are in the same timebase as `SystemClock.elapsedRealtimeNanos()`, and they can be compared to other timestamps using that base.
`int` | `SENSOR_INFO_TIMESTAMP_SOURCE_UNKNOWN` Timestamps from `CaptureResult#SENSOR_TIMESTAMP` are in nanoseconds and monotonic, but can not be compared to timestamps from other subsystems (e.g.
`int` | `SENSOR_REFERENCE_ILLUMINANT1_CLOUDY_WEATHER`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_COOL_WHITE_FLUORESCENT` W 3900 - 4500K
`int` | `SENSOR_REFERENCE_ILLUMINANT1_D50`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_D55`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_D65`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_D75`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT_FLUORESCENT` D 5700 - 7100K
`int` | `SENSOR_REFERENCE_ILLUMINANT1_DAY_WHITE_FLUORESCENT` N 4600 - 5400K
`int` | `SENSOR_REFERENCE_ILLUMINANT1_FINE_WEATHER`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_FLASH`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_FLUORESCENT`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_ISO_STUDIO_TUNGSTEN`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_SHADE`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_STANDARD_A`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_STANDARD_B`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_STANDARD_C`
`int` | `SENSOR_REFERENCE_ILLUMINANT1_TUNGSTEN` Incandescent light
`int` | `SENSOR_REFERENCE_ILLUMINANT1_WHITE_FLUORESCENT` WW 3200 - 3700K
`int` | `SENSOR_TEST_PATTERN_MODE_COLOR_BARS` All pixel data is replaced with an 8-bar color pattern.
`int` | `SENSOR_TEST_PATTERN_MODE_COLOR_BARS_FADE_TO_GRAY` The test pattern is similar to COLOR_BARS, except that each bar should start at its specified color at the top, and fade to gray at the bottom.
`int` | `SENSOR_TEST_PATTERN_MODE_CUSTOM1` The first custom test pattern.
`int` | `SENSOR_TEST_PATTERN_MODE_OFF` No test pattern mode is used, and the camera device returns captures from the image sensor.
`int` | `SENSOR_TEST_PATTERN_MODE_PN9` All pixel data is replaced by a pseudo-random sequence generated from a PN9 512-bit sequence (typically implemented in hardware with a linear feedback shift register).
`int` | `SENSOR_TEST_PATTERN_MODE_SOLID_COLOR` Each pixel in `[R, G_even, G_odd, B]` is replaced by its respective color channel provided in `CaptureRequest#SENSOR_TEST_PATTERN_DATA`.
`int` | `SHADING_MODE_FAST` Apply lens shading corrections, without slowing frame rate relative to sensor raw output
`int` | `SHADING_MODE_HIGH_QUALITY` Apply high-quality lens shading correction, at the cost of possibly reduced frame rate.
`int` | `SHADING_MODE_OFF` No lens shading correction is applied.
`int` | `STATISTICS_FACE_DETECT_MODE_FULL` Return all face metadata.
`int` | `STATISTICS_FACE_DETECT_MODE_OFF` Do not include face detection statistics in capture results.
`int` | `STATISTICS_FACE_DETECT_MODE_SIMPLE` Return face rectangle and confidence values only.
`int` | `STATISTICS_LENS_SHADING_MAP_MODE_OFF` Do not include a lens shading map in the capture result.
`int` | `STATISTICS_LENS_SHADING_MAP_MODE_ON` Include a lens shading map in the capture result.
`int` | `STATISTICS_OIS_DATA_MODE_OFF` Do not include OIS data in the capture result.
`int` | `STATISTICS_OIS_DATA_MODE_ON` Include OIS data in the capture result.
`int` | `STATISTICS_SCENE_FLICKER_50HZ` The camera device detects illumination flickering at 50Hz in the current scene.
`int` | `STATISTICS_SCENE_FLICKER_60HZ` The camera device detects illumination flickering at 60Hz in the current scene.
`int` | `STATISTICS_SCENE_FLICKER_NONE` The camera device does not detect any flickering illumination in the current scene.
`int` | `SYNC_MAX_LATENCY_PER_FRAME_CONTROL` Every frame has the requests immediately applied.
`int` | `SYNC_MAX_LATENCY_UNKNOWN` Each new frame has some subset (potentially the entire set) of the past requests applied to the camera settings.
`int` | `TONEMAP_MODE_CONTRAST_CURVE` Use the tone mapping curve specified in the `CaptureRequest#TONEMAP_CURVE`* entries.
`int` | `TONEMAP_MODE_FAST` Advanced gamma mapping and color enhancement may be applied, without reducing frame rate compared to raw sensor output.
`int` | `TONEMAP_MODE_GAMMA_VALUE` Use the gamma value specified in `CaptureRequest#TONEMAP_GAMMA` to peform tonemapping.
`int` | `TONEMAP_MODE_HIGH_QUALITY` High-quality gamma mapping and color enhancement will be applied, at the cost of possibly reduced frame rate compared to raw sensor output.
`int` | `TONEMAP_MODE_PRESET_CURVE` Use the preset tonemapping curve specified in `CaptureRequest#TONEMAP_PRESET_CURVE` to peform tonemapping.
`int` | `TONEMAP_PRESET_CURVE_REC709` Tonemapping curve is defined by ITU-R BT.709
`int` | `TONEMAP_PRESET_CURVE_SRGB` Tonemapping curve is defined by sRGB

### Fields
`public static final Key<int[]>` | `COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES` List of aberration correction modes for `CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE` that are supported by this camera device.
`public static final Key<int[]>` | `CONTROL_AE_AVAILABLE_ANTIBANDING_MODES` List of auto-exposure antibanding modes for `CaptureRequest#CONTROL_AE_ANTIBANDING_MODE` that are supported by this camera device.
`public static final Key<int[]>` | `CONTROL_AE_AVAILABLE_MODES` List of auto-exposure modes for `CaptureRequest#CONTROL_AE_MODE` that are supported by this camera device.
`public static final Key<Range[]<Integer>>` | `CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES` List of frame rate ranges for `CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE` supported by this camera device.
`public static final Key<Range<Integer>>` | `CONTROL_AE_COMPENSATION_RANGE` Maximum and minimum exposure compensation values for `CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION`, in counts of `CameraCharacteristics#CONTROL_AE_COMPENSATION_STEP`, that are supported by this camera device.
`public static final Key<Rational>` | `CONTROL_AE_COMPENSATION_STEP` Smallest step by which the exposure compensation can be changed.
`public static final Key<Boolean>` | `CONTROL_AE_LOCK_AVAILABLE` Whether the camera device supports `CaptureRequest#CONTROL_AE_LOCK` Devices with MANUAL_SENSOR capability or BURST_CAPTURE capability will always list `true`.
`public static final Key<int[]>` | `CONTROL_AF_AVAILABLE_MODES` List of auto-focus (AF) modes for `CaptureRequest#CONTROL_AF_MODE` that are supported by this camera device.
`public static final Key<int[]>` | `CONTROL_AVAILABLE_EFFECTS` List of color effects for `CaptureRequest#CONTROL_EFFECT_MODE` that are supported by this camera device.
`public static final Key<Capability[]>` | `CONTROL_AVAILABLE_EXTENDED_SCENE_MODE_CAPABILITIES` The list of extended scene modes for `CaptureRequest#CONTROL_EXTENDED_SCENE_MODE` that are supported by this camera device, and each extended scene mode's capabilities such as maximum streaming size, and supported zoom ratio ranges.
`public static final Key<int[]>` | `CONTROL_AVAILABLE_MODES` List of control modes for `CaptureRequest#CONTROL_MODE` that are supported by this camera device.
`public static final Key<int[]>` | `CONTROL_AVAILABLE_SCENE_MODES` List of scene modes for `CaptureRequest#CONTROL_SCENE_MODE` that are supported by this camera device.
`public static final Key<int[]>` | `CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES` List of video stabilization modes for `CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE` that are supported by this camera device.
`public static final Key<int[]>` | `CONTROL_AWB_AVAILABLE_MODES` List of auto-white-balance modes for `CaptureRequest#CONTROL_AWB_MODE` that are supported by this camera device.
`public static final Key<Boolean>` | `CONTROL_AWB_LOCK_AVAILABLE` Whether the camera device supports `CaptureRequest#CONTROL_AWB_LOCK` Devices with MANUAL_POST_PROCESSING capability or BURST_CAPTURE capability will always list `true`.
`public static final Key<Integer>` | `CONTROL_MAX_REGIONS_AE` The maximum number of metering regions that can be used by the auto-exposure (AE) routine.
`public static final Key<Integer>` | `CONTROL_MAX_REGIONS_AF` The maximum number of metering regions that can be used by the auto-focus (AF) routine.
`public static final Key<Integer>` | `CONTROL_MAX_REGIONS_AWB` The maximum number of metering regions that can be used by the auto-white balance (AWB) routine.
`public static final Key<Range<Integer>>` | `CONTROL_POST_RAW_SENSITIVITY_BOOST_RANGE` Range of boosts for `CaptureRequest#CONTROL_POST_RAW_SENSITIVITY_BOOST` supported by this camera device.
`public static final Key<Range<Float>>` | `CONTROL_ZOOM_RATIO_RANGE` Minimum and maximum zoom ratios supported by this camera device.
`public static final Key<Boolean>` | `DEPTH_DEPTH_IS_EXCLUSIVE` Indicates whether a capture request may target both a DEPTH16 / DEPTH_POINT_CLOUD output, and normal color outputs (such as YUV_420_888, JPEG, or RAW) simultaneously.
`public static final Key<int[]>` | `DISTORTION_CORRECTION_AVAILABLE_MODES` List of distortion correction modes for `CaptureRequest#DISTORTION_CORRECTION_MODE` that are supported by this camera device.
`public static final Key<int[]>` | `EDGE_AVAILABLE_EDGE_MODES` List of edge enhancement modes for `CaptureRequest#EDGE_MODE` that are supported by this camera device.
`public static final Key<Boolean>` | `FLASH_INFO_AVAILABLE` Whether this camera device has a flash unit.
`public static final Key<int[]>` | `HOT_PIXEL_AVAILABLE_HOT_PIXEL_MODES` List of hot pixel correction modes for `CaptureRequest#HOT_PIXEL_MODE` that are supported by this camera device.
`public static final Key<Integer>` | `INFO_SUPPORTED_HARDWARE_LEVEL` Generally classifies the overall set of the camera device functionality.
`public static final Key<String>` | `INFO_VERSION` A short string for manufacturer version information about the camera device, such as ISP hardware, sensors, etc.
`public static final Key<Size[]>` | `JPEG_AVAILABLE_THUMBNAIL_SIZES` List of JPEG thumbnail sizes for `CaptureRequest#JPEG_THUMBNAIL_SIZE` supported by this camera device.
`public static final Key<float[]>` | `LENS_DISTORTION` The correction coefficients to correct for this camera device's radial and tangential lens distortion.
`public static final Key<Integer>` | `LENS_FACING` Direction the camera faces relative to device screen.
`public static final Key<float[]>` | `LENS_INFO_AVAILABLE_APERTURES` List of aperture size values for `CaptureRequest#LENS_APERTURE` that are supported by this camera device.
`public static final Key<float[]>` | `LENS_INFO_AVAILABLE_FILTER_DENSITIES` List of neutral density filter values for `CaptureRequest#LENS_FILTER_DENSITY` that are supported by this camera device.
`public static final Key<float[]>` | `LENS_INFO_AVAILABLE_FOCAL_LENGTHS` List of focal lengths for `CaptureRequest#LENS_FOCAL_LENGTH` that are supported by this camera device.
`public static final Key<int[]>` | `LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION` List of optical image stabilization (OIS) modes for `CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE` that are supported by this camera device.
`public static final Key<Integer>` | `LENS_INFO_FOCUS_DISTANCE_CALIBRATION` The lens focus distance calibration quality.
`public static final Key<Float>` | `LENS_INFO_HYPERFOCAL_DISTANCE` Hyperfocal distance for this lens.
`public static final Key<Float>` | `LENS_INFO_MINIMUM_FOCUS_DISTANCE` Shortest distance from frontmost surface of the lens that can be brought into sharp focus.
`public static final Key<float[]>` | `LENS_INTRINSIC_CALIBRATION` The parameters for this camera device's intrinsic calibration.
`public static final Key<Integer>` | `LENS_POSE_REFERENCE` The origin for `CameraCharacteristics#LENS_POSE_TRANSLATION`, and the accuracy of `CameraCharacteristics#LENS_POSE_TRANSLATION` and `CameraCharacteristics#LENS_POSE_ROTATION`.
`public static final Key<float[]>` | `LENS_POSE_ROTATION` The orientation of the camera relative to the sensor coordinate system.
`public static final Key<float[]>` | `LENS_POSE_TRANSLATION` Position of the camera optical center.
`public static final Key<float[]>` | `LENS_RADIAL_DISTORTION` This field is deprecated. This field was inconsistently defined in terms of its normalization. Use `CameraCharacteristics#LENS_DISTORTION` instead.
`public static final Key<Integer>` | `LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE` The accuracy of frame timestamp synchronization between physical cameras The accuracy of the frame timestamp synchronization determines the physical cameras' ability to start exposure at the same time.
`public static final Key<int[]>` | `NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES` List of noise reduction modes for `CaptureRequest#NOISE_REDUCTION_MODE` that are supported by this camera device.
`public static final Key<Integer>` | `REPROCESS_MAX_CAPTURE_STALL` The maximal camera capture pipeline stall (in unit of frame count) introduced by a reprocess capture request.
`public static final Key<int[]>` | `REQUEST_AVAILABLE_CAPABILITIES` List of capabilities that this camera device advertises as fully supporting.
`public static final Key<Integer>` | `REQUEST_MAX_NUM_INPUT_STREAMS` The maximum numbers of any type of input streams that can be configured and used simultaneously by a camera device.
`public static final Key<Integer>` | `REQUEST_MAX_NUM_OUTPUT_PROC` The maximum numbers of different types of output streams that can be configured and used simultaneously by a camera device for any processed (but not-stalling) formats.
`public static final Key<Integer>` | `REQUEST_MAX_NUM_OUTPUT_PROC_STALLING` The maximum numbers of different types of output streams that can be configured and used simultaneously by a camera device for any processed (and stalling) formats.
`public static final Key<Integer>` | `REQUEST_MAX_NUM_OUTPUT_RAW` The maximum numbers of different types of output streams that can be configured and used simultaneously by a camera device for any `RAW` formats.
`public static final Key<Integer>` | `REQUEST_PARTIAL_RESULT_COUNT` Defines how many sub-components a result will be composed of.
`public static final Key<Byte>` | `REQUEST_PIPELINE_MAX_DEPTH` Specifies the number of maximum pipeline stages a frame has to go through from when it's exposed to when it's available to the framework.
`public static final Key<Float>` | `SCALER_AVAILABLE_MAX_DIGITAL_ZOOM` The maximum ratio between both active area width and crop region width, and active area height and crop region height, for `CaptureRequest#SCALER_CROP_REGION`.
`public static final Key<Integer>` | `SCALER_CROPPING_TYPE` The crop type that this camera device supports.
`public static final Key<MandatoryStreamCombination[]>` | `SCALER_MANDATORY_CONCURRENT_STREAM_COMBINATIONS` An array of mandatory concurrent stream combinations.
`public static final Key<MandatoryStreamCombination[]>` | `SCALER_MANDATORY_STREAM_COMBINATIONS` An array of mandatory stream combinations generated according to the camera device `INFO_SUPPORTED_HARDWARE_LEVEL` and `REQUEST_AVAILABLE_CAPABILITIES`.
`public static final Key<StreamConfigurationMap>` | `SCALER_STREAM_CONFIGURATION_MAP` The available stream configurations that this camera device supports; also includes the minimum frame durations and the stall durations for each format/size combination.
`public static final Key<int[]>` | `SENSOR_AVAILABLE_TEST_PATTERN_MODES` List of sensor test pattern modes for `CaptureRequest#SENSOR_TEST_PATTERN_MODE` supported by this camera device.
`public static final Key<BlackLevelPattern>` | `SENSOR_BLACK_LEVEL_PATTERN` A fixed black level offset for each of the color filter arrangement (CFA) mosaic channels.
`public static final Key<ColorSpaceTransform>` | `SENSOR_CALIBRATION_TRANSFORM1` A per-device calibration transform matrix that maps from the reference sensor colorspace to the actual device sensor colorspace.
`public static final Key<ColorSpaceTransform>` | `SENSOR_CALIBRATION_TRANSFORM2` A per-device calibration transform matrix that maps from the reference sensor colorspace to the actual device sensor colorspace (this is the colorspace of the raw buffer data).
`public static final Key<ColorSpaceTransform>` | `SENSOR_COLOR_TRANSFORM1` A matrix that transforms color values from CIE XYZ color space to reference sensor color space.
`public static final Key<ColorSpaceTransform>` | `SENSOR_COLOR_TRANSFORM2` A matrix that transforms color values from CIE XYZ color space to reference sensor color space.
`public static final Key<ColorSpaceTransform>` | `SENSOR_FORWARD_MATRIX1` A matrix that transforms white balanced camera colors from the reference sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.
`public static final Key<ColorSpaceTransform>` | `SENSOR_FORWARD_MATRIX2` A matrix that transforms white balanced camera colors from the reference sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.
`public static final Key<Rect>` | `SENSOR_INFO_ACTIVE_ARRAY_SIZE` The area of the image sensor which corresponds to active pixels after any geometric distortion correction has been applied.
`public static final Key<Integer>` | `SENSOR_INFO_COLOR_FILTER_ARRANGEMENT` The arrangement of color filters on sensor; represents the colors in the top-left 2x2 section of the sensor, in reading order, for a Bayer camera, or the light spectrum it captures for MONOCHROME camera.
`public static final Key<Range<Long>>` | `SENSOR_INFO_EXPOSURE_TIME_RANGE` The range of image exposure times for `CaptureRequest#SENSOR_EXPOSURE_TIME` supported by this camera device.
`public static final Key<Boolean>` | `SENSOR_INFO_LENS_SHADING_APPLIED` Whether the RAW images output from this camera device are subject to lens shading correction.
`public static final Key<Long>` | `SENSOR_INFO_MAX_FRAME_DURATION` The maximum possible frame duration (minimum frame rate) for `CaptureRequest#SENSOR_FRAME_DURATION` that is supported this camera device.
`public static final Key<SizeF>` | `SENSOR_INFO_PHYSICAL_SIZE` The physical dimensions of the full pixel array.
`public static final Key<Size>` | `SENSOR_INFO_PIXEL_ARRAY_SIZE` Dimensions of the full pixel array, possibly including black calibration pixels.
`public static final Key<Rect>` | `SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE` The area of the image sensor which corresponds to active pixels prior to the application of any geometric distortion correction.
`public static final Key<Range<Integer>>` | `SENSOR_INFO_SENSITIVITY_RANGE` Range of sensitivities for `CaptureRequest#SENSOR_SENSITIVITY` supported by this camera device.
`public static final Key<Integer>` | `SENSOR_INFO_TIMESTAMP_SOURCE` The time base source for sensor capture start timestamps.
`public static final Key<Integer>` | `SENSOR_INFO_WHITE_LEVEL` Maximum raw value output by sensor.
`public static final Key<Integer>` | `SENSOR_MAX_ANALOG_SENSITIVITY` Maximum sensitivity that is implemented purely through analog gain.
`public static final Key<Rect[]>` | `SENSOR_OPTICAL_BLACK_REGIONS` List of disjoint rectangles indicating the sensor optically shielded black pixel regions.
`public static final Key<Integer>` | `SENSOR_ORIENTATION` Clockwise angle through which the output image needs to be rotated to be upright on the device screen in its native orientation.
`public static final Key<Integer>` | `SENSOR_REFERENCE_ILLUMINANT1` The standard reference illuminant used as the scene light source when calculating the `CameraCharacteristics#SENSOR_COLOR_TRANSFORM1`, `CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM1`, and `CameraCharacteristics#SENSOR_FORWARD_MATRIX1` matrices.
`public static final Key<Byte>` | `SENSOR_REFERENCE_ILLUMINANT2` The standard reference illuminant used as the scene light source when calculating the `CameraCharacteristics#SENSOR_COLOR_TRANSFORM2`, `CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM2`, and `CameraCharacteristics#SENSOR_FORWARD_MATRIX2` matrices.
`public static final Key<int[]>` | `SHADING_AVAILABLE_MODES` List of lens shading modes for `CaptureRequest#SHADING_MODE` that are supported by this camera device.
`public static final Key<int[]>` | `STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES` List of face detection modes for `CaptureRequest#STATISTICS_FACE_DETECT_MODE` that are supported by this camera device.
`public static final Key<boolean[]>` | `STATISTICS_INFO_AVAILABLE_HOT_PIXEL_MAP_MODES` List of hot pixel map output modes for `CaptureRequest#STATISTICS_HOT_PIXEL_MAP_MODE` that are supported by this camera device.
`public static final Key<int[]>` | `STATISTICS_INFO_AVAILABLE_LENS_SHADING_MAP_MODES` List of lens shading map output modes for `CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE` that are supported by this camera device.
`public static final Key<int[]>` | `STATISTICS_INFO_AVAILABLE_OIS_DATA_MODES` List of OIS data output modes for `CaptureRequest#STATISTICS_OIS_DATA_MODE` that are supported by this camera device.
`public static final Key<Integer>` | `STATISTICS_INFO_MAX_FACE_COUNT` The maximum number of simultaneously detectable faces.
`public static final Key<Integer>` | `SYNC_MAX_LATENCY` The maximum number of frames that can occur after a request (different than the previous) has been submitted, and before the result's state becomes synchronized.
`public static final Key<int[]>` | `TONEMAP_AVAILABLE_TONE_MAP_MODES` List of tonemapping modes for `CaptureRequest#TONEMAP_MODE` that are supported by this camera device.
`public static final Key<Integer>` | `TONEMAP_MAX_CURVE_POINTS` Maximum number of supported points in the tonemap curve that can be used for `CaptureRequest#TONEMAP_CURVE`.

### Public methods
`<T> T` | `get(Key<T> key)` Get a camera characteristics field value.
`List<Key<?>>` | `getAvailableCaptureRequestKeys()` Returns the list of keys supported by this `CameraDevice` for querying with a `CaptureRequest`.
`List<Key<?>>` | `getAvailableCaptureResultKeys()` Returns the list of keys supported by this `CameraDevice` for querying with a `CaptureResult`.
`List<Key<?>>` | `getAvailablePhysicalCameraRequestKeys()` Returns a subset of `getAvailableCaptureRequestKeys()` keys that can be overridden for physical devices backing a logical multi-camera.
`List<Key<?>>` | `getAvailableSessionKeys()` Returns a subset of `getAvailableCaptureRequestKeys()` keys that the camera device can pass as part of the capture session initialization.
`List<Key<?>>` | `getKeys()` Returns a list of the keys contained in this map.
`List<Key<?>>` | `getKeysNeedingPermission()` Returns a subset of the list returned by `getKeys()` with all keys that require camera clients to obtain the `Manifest.permission.CAMERA` permission.
`Set<String>` | `getPhysicalCameraIds()` Returns the set of physical camera ids that this logical `CameraDevice` is made up of.
`RecommendedStreamConfigurationMap` | `getRecommendedStreamConfigurationMap(int usecase)` Retrieve camera device recommended stream configuration map `RecommendedStreamConfigurationMap` for a given use case.

### Inherited methods
From class `android.hardware.camera2.CameraMetadata`
`List<Key<?>>` | `getKeys()` Returns a list of the keys contained in this map.
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.

## Fields

### COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES

    public static final Key<int[]> COLOR_CORRECTION_AVAILABLE_ABERRATION_MODES

List of aberration correction modes for `CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE` that are supported by this camera device.

This key lists the valid modes for `CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE`. If no aberration correction modes are available for a device, this list will solely include OFF mode. All camera devices will support either OFF or FAST mode.

Camera devices that support the MANUAL_POST_PROCESSING capability will always list OFF mode. This includes all FULL level devices.

LEGACY devices will always only support FAST mode.

Range of valid values:
Any value listed in `CaptureRequest#COLOR_CORRECTION_ABERRATION_MODE`

This key is available on all devices.

See also:

- `CaptureRequest.COLOR_CORRECTION_ABERRATION_MODE`

### CONTROL_AE_AVAILABLE_ANTIBANDING_MODES

    public static final Key<int[]> CONTROL_AE_AVAILABLE_ANTIBANDING_MODES

List of auto-exposure antibanding modes for `CaptureRequest#CONTROL_AE_ANTIBANDING_MODE` that are supported by this camera device.

Not all of the auto-exposure anti-banding modes may be supported by a given camera device. This field lists the valid anti-banding modes that the application may request for this camera device with the `CaptureRequest#CONTROL_AE_ANTIBANDING_MODE` control.

Range of valid values:
Any value listed in `CaptureRequest#CONTROL_AE_ANTIBANDING_MODE`

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_AE_ANTIBANDING_MODE`

### CONTROL_AE_AVAILABLE_MODES

    public static final Key<int[]> CONTROL_AE_AVAILABLE_MODES

List of auto-exposure modes for `CaptureRequest#CONTROL_AE_MODE` that are supported by this camera device.

Not all the auto-exposure modes may be supported by a given camera device, especially if no flash unit is available. This entry lists the valid modes for `CaptureRequest#CONTROL_AE_MODE` for this camera device.

All camera devices support ON, and all camera devices with flash units support ON_AUTO_FLASH and ON_ALWAYS_FLASH.

FULL mode camera devices always support OFF mode, which enables application control of camera exposure time, sensitivity, and frame duration.

LEGACY mode camera devices never support OFF mode. LIMITED mode devices support OFF if they support the MANUAL_SENSOR capability.

Range of valid values:
Any value listed in `CaptureRequest#CONTROL_AE_MODE`

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_AE_MODE`

### CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES

    public static final Key<Range[]<Integer>> CONTROL_AE_AVAILABLE_TARGET_FPS_RANGES

List of frame rate ranges for `CaptureRequest#CONTROL_AE_TARGET_FPS_RANGE` supported by this camera device.

For devices at the LEGACY level or above:

- For constant-framerate recording, for each normal `CamcorderProfile`, that is, a `CamcorderProfile` that has `quality` in the range [`QUALITY_LOW`, `QUALITY_2160P`], if the profile is supported by the device and has `videoFrameRate` `x`, this list will always include (`x`,`x`).

- Also, a camera device must either not support any `CamcorderProfile`, or support at least one normal `CamcorderProfile` that has `videoFrameRate` `x` >= 24.

For devices at the LIMITED level or above:

- For devices that advertise NIR color filter arrangement in `CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT`, this list will always include (`max`, `max`) where `max` = the maximum output frame rate of the maximum YUV_420_888 output size.
- For devices advertising any color filter arrangement other than NIR, or devices not advertising color filter arrangement, this list will always include (`min`, `max`) and (`max`, `max`) where `min` <= 15 and `max` = the maximum output frame rate of the maximum YUV_420_888 output size.

Units: Frames per second (FPS)

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_AE_TARGET_FPS_RANGE`
- `SENSOR_INFO_COLOR_FILTER_ARRANGEMENT`

### CONTROL_AE_COMPENSATION_RANGE

    public static final Key<Range<Integer>> CONTROL_AE_COMPENSATION_RANGE

Maximum and minimum exposure compensation values for `CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION`, in counts of `CameraCharacteristics#CONTROL_AE_COMPENSATION_STEP`, that are supported by this camera device.

Range of valid values:

Range [0,0] indicates that exposure compensation is not supported.

For LIMITED and FULL devices, range must follow below requirements if exposure compensation is supported (`range != [0, 0]`):

`Min.exposure compensation * `CameraCharacteristics#CONTROL_AE_COMPENSATION_STEP` <= -2 EV`

`Max.exposure compensation * `CameraCharacteristics#CONTROL_AE_COMPENSATION_STEP` >= 2 EV`

LEGACY devices may support a smaller range than this.

This key is available on all devices.

See also:

- `CONTROL_AE_COMPENSATION_STEP`
- `CaptureRequest.CONTROL_AE_EXPOSURE_COMPENSATION`

### CONTROL_AE_COMPENSATION_STEP

    public static final Key<Rational> CONTROL_AE_COMPENSATION_STEP

Smallest step by which the exposure compensation can be changed.

This is the unit for `CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION`. For example, if this key has a value of `1/2`, then a setting of `-2` for `CaptureRequest#CONTROL_AE_EXPOSURE_COMPENSATION` means that the target EV offset for the auto-exposure routine is -1 EV.

One unit of EV compensation changes the brightness of the captured image by a factor of two. +1 EV doubles the image brightness, while -1 EV halves the image brightness.

Units: Exposure Value (EV)

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_AE_EXPOSURE_COMPENSATION`

### CONTROL_AE_LOCK_AVAILABLE

    public static final Key<Boolean> CONTROL_AE_LOCK_AVAILABLE

Whether the camera device supports `CaptureRequest#CONTROL_AE_LOCK`

Devices with MANUAL_SENSOR capability or BURST_CAPTURE capability will always list `true`. This includes FULL devices.

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_AE_LOCK`

### CONTROL_AF_AVAILABLE_MODES

    public static final Key<int[]> CONTROL_AF_AVAILABLE_MODES

List of auto-focus (AF) modes for `CaptureRequest#CONTROL_AF_MODE` that are supported by this camera device.

Not all the auto-focus modes may be supported by a given camera device. This entry lists the valid modes for `CaptureRequest#CONTROL_AF_MODE` for this camera device.

All LIMITED and FULL mode camera devices will support OFF mode, and all camera devices with adjustable focuser units (``CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE` > 0`) will support AUTO mode.

LEGACY devices will support OFF mode only if they support focusing to infinity (by also setting `CaptureRequest#LENS_FOCUS_DISTANCE` to `0.0f`).

Range of valid values:
Any value listed in `CaptureRequest#CONTROL_AF_MODE`

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_AF_MODE`
- `CaptureRequest.LENS_FOCUS_DISTANCE`
- `LENS_INFO_MINIMUM_FOCUS_DISTANCE`

### CONTROL_AVAILABLE_EFFECTS

    public static final Key<int[]> CONTROL_AVAILABLE_EFFECTS

List of color effects for `CaptureRequest#CONTROL_EFFECT_MODE` that are supported by this camera device.

This list contains the color effect modes that can be applied to images produced by the camera device. Implementations are not expected to be consistent across all devices. If no color effect modes are available for a device, this will only list OFF.

A color effect will only be applied if `CaptureRequest#CONTROL_MODE` != OFF. OFF is always included in this list.

This control has no effect on the operation of other control routines such as auto-exposure, white balance, or focus.

Range of valid values:
Any value listed in `CaptureRequest#CONTROL_EFFECT_MODE`

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_EFFECT_MODE`
- `CaptureRequest.CONTROL_MODE`

### CONTROL_AVAILABLE_EXTENDED_SCENE_MODE_CAPABILITIES

    public static final Key<Capability[]> CONTROL_AVAILABLE_EXTENDED_SCENE_MODE_CAPABILITIES

The list of extended scene modes for `CaptureRequest#CONTROL_EXTENDED_SCENE_MODE` that are supported by this camera device, and each extended scene mode's capabilities such as maximum streaming size, and supported zoom ratio ranges.

For DISABLED mode, the camera behaves normally with no extended scene mdoe enabled.

For BOKEH_STILL_CAPTURE mode, the maximum streaming dimension specifies the limit under which bokeh is effective when capture intent is PREVIEW. Note that when capture intent is PREVIEW, the bokeh effect may not be as high quality compared to STILL_CAPTURE intent in order to maintain reasonable frame rate. The maximum streaming dimension must be one of the YUV_420_888 or PRIVATE resolutions in availableStreamConfigurations, or (0, 0) if preview bokeh is not supported. If the application configures a stream larger than the maximum streaming dimension, bokeh effect may not be applied for this stream for PREVIEW intent.

For BOKEH_CONTINUOUS mode, the maximum streaming dimension specifies the limit under which bokeh is effective. This dimension must be one of the YUV_420_888 or PRIVATE resolutions in availableStreamConfigurations, and if the sensor maximum resolution is larger than or equal to 1080p, the maximum streaming dimension must be at least 1080p. If the application configures a stream with larger dimension, the stream may not have bokeh effect applied.

When extended scene mode is set, the camera device may have limited range of zoom ratios compared to when the mode is DISABLED. availableExtendedSceneModeCapabilities lists the zoom ranges for all supported extended modes. A range of (1.0, 1.0) means that no zoom (optical or digital) is supported.

Optional - The value for this key may be `null` on some devices.

See also:

- `CaptureRequest.CONTROL_EXTENDED_SCENE_MODE`

### CONTROL_AVAILABLE_MODES

    public static final Key<int[]> CONTROL_AVAILABLE_MODES

List of control modes for `CaptureRequest#CONTROL_MODE` that are supported by this camera device.

This list contains control modes that can be set for the camera device. LEGACY mode devices will always support AUTO mode. LIMITED and FULL devices will always support OFF, AUTO modes.

Range of valid values:
Any value listed in `CaptureRequest#CONTROL_MODE`

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_MODE`

### CONTROL_AVAILABLE_SCENE_MODES

    public static final Key<int[]> CONTROL_AVAILABLE_SCENE_MODES

List of scene modes for `CaptureRequest#CONTROL_SCENE_MODE` that are supported by this camera device.

This list contains scene modes that can be set for the camera device. Only scene modes that have been fully implemented for the camera device may be included here. Implementations are not expected to be consistent across all devices.

If no scene modes are supported by the camera device, this will be set to DISABLED. Otherwise DISABLED will not be listed.

FACE_PRIORITY is always listed if face detection is supported (i.e.``CameraCharacteristics#STATISTICS_INFO_MAX_FACE_COUNT` > 0`).

Range of valid values:
Any value listed in `CaptureRequest#CONTROL_SCENE_MODE`

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_SCENE_MODE`
- `STATISTICS_INFO_MAX_FACE_COUNT`

### CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES

    public static final Key<int[]> CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES

List of video stabilization modes for `CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE` that are supported by this camera device.

OFF will always be listed.

Range of valid values:
Any value listed in `CaptureRequest#CONTROL_VIDEO_STABILIZATION_MODE`

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_VIDEO_STABILIZATION_MODE`

### CONTROL_AWB_AVAILABLE_MODES

    public static final Key<int[]> CONTROL_AWB_AVAILABLE_MODES

List of auto-white-balance modes for `CaptureRequest#CONTROL_AWB_MODE` that are supported by this camera device.

Not all the auto-white-balance modes may be supported by a given camera device. This entry lists the valid modes for `CaptureRequest#CONTROL_AWB_MODE` for this camera device.

All camera devices will support ON mode.

Camera devices that support the MANUAL_POST_PROCESSING capability will always support OFF mode, which enables application control of white balance, by using `CaptureRequest#COLOR_CORRECTION_TRANSFORM` and `CaptureRequest#COLOR_CORRECTION_GAINS`(`CaptureRequest#COLOR_CORRECTION_MODE` must be set to TRANSFORM_MATRIX). This includes all FULL mode camera devices.

Range of valid values:
Any value listed in `CaptureRequest#CONTROL_AWB_MODE`

This key is available on all devices.

See also:

- `CaptureRequest.COLOR_CORRECTION_GAINS`
- `CaptureRequest.COLOR_CORRECTION_MODE`
- `CaptureRequest.COLOR_CORRECTION_TRANSFORM`
- `CaptureRequest.CONTROL_AWB_MODE`

### CONTROL_AWB_LOCK_AVAILABLE

    public static final Key<Boolean> CONTROL_AWB_LOCK_AVAILABLE

Whether the camera device supports `CaptureRequest#CONTROL_AWB_LOCK`

Devices with MANUAL_POST_PROCESSING capability or BURST_CAPTURE capability will always list `true`. This includes FULL devices.

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_AWB_LOCK`

### CONTROL_MAX_REGIONS_AE

    public static final Key<Integer> CONTROL_MAX_REGIONS_AE

The maximum number of metering regions that can be used by the auto-exposure (AE) routine.

This corresponds to the maximum allowed number of elements in `CaptureRequest#CONTROL_AE_REGIONS`.

Range of valid values:
Value will be >= 0. For FULL-capability devices, this value will be >= 1.

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_AE_REGIONS`

### CONTROL_MAX_REGIONS_AF

    public static final Key<Integer> CONTROL_MAX_REGIONS_AF

The maximum number of metering regions that can be used by the auto-focus (AF) routine.

This corresponds to the maximum allowed number of elements in `CaptureRequest#CONTROL_AF_REGIONS`.

Range of valid values:
Value will be >= 0. For FULL-capability devices, this value will be >= 1.

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_AF_REGIONS`

### CONTROL_MAX_REGIONS_AWB

    public static final Key<Integer> CONTROL_MAX_REGIONS_AWB

The maximum number of metering regions that can be used by the auto-white balance (AWB) routine.

This corresponds to the maximum allowed number of elements in `CaptureRequest#CONTROL_AWB_REGIONS`.

Range of valid values:
Value will be >= 0.

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_AWB_REGIONS`

### CONTROL_POST_RAW_SENSITIVITY_BOOST_RANGE

    public static final Key<Range<Integer>> CONTROL_POST_RAW_SENSITIVITY_BOOST_RANGE

Range of boosts for `CaptureRequest#CONTROL_POST_RAW_SENSITIVITY_BOOST` supported by this camera device.

Devices support post RAW sensitivity boost will advertise `CaptureRequest#CONTROL_POST_RAW_SENSITIVITY_BOOST` key for controling post RAW sensitivity boost.

This key will be `null` for devices that do not support any RAW format outputs. For devices that do support RAW format outputs, this key will always present, and if a device does not support post RAW sensitivity boost, it will list `(100, 100)` in this key.

Units: ISO arithmetic units, the same as `CaptureRequest#SENSOR_SENSITIVITY`

Optional - The value for this key may be `null` on some devices.

See also:

- `CaptureRequest.CONTROL_POST_RAW_SENSITIVITY_BOOST`
- `CaptureRequest.SENSOR_SENSITIVITY`

### CONTROL_ZOOM_RATIO_RANGE

    public static final Key<Range<Float>> CONTROL_ZOOM_RATIO_RANGE

Minimum and maximum zoom ratios supported by this camera device.

If the camera device supports zoom-out from 1x zoom, minZoom will be less than 1.0, and setting `CaptureRequest#CONTROL_ZOOM_RATIO` to values less than 1.0 increases the camera's field of view.

Units: A pair of zoom ratio in floating-points: (minZoom, maxZoom)

Range of valid values:

maxZoom >= 1.0 >= minZoom

Optional - The value for this key may be `null` on some devices.

Limited capability - Present on all camera devices that report being at least `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `CaptureRequest.CONTROL_ZOOM_RATIO`
- `INFO_SUPPORTED_HARDWARE_LEVEL`

### DEPTH_DEPTH_IS_EXCLUSIVE

    public static final Key<Boolean> DEPTH_DEPTH_IS_EXCLUSIVE

Indicates whether a capture request may target both a DEPTH16 / DEPTH_POINT_CLOUD output, and normal color outputs (such as YUV_420_888, JPEG, or RAW) simultaneously.

If TRUE, including both depth and color outputs in a single capture request is not supported. An application must interleave color and depth requests. If FALSE, a single request can target both types of output.

Typically, this restriction exists on camera devices that need to emit a specific pattern or wavelength of light to measure depth values, which causes the color image to be corrupted during depth measurement.

Optional - The value for this key may be `null` on some devices.

Limited capability - Present on all camera devices that report being at least `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`

### DISTORTION_CORRECTION_AVAILABLE_MODES

    public static final Key<int[]> DISTORTION_CORRECTION_AVAILABLE_MODES

List of distortion correction modes for `CaptureRequest#DISTORTION_CORRECTION_MODE` that are supported by this camera device.

No device is required to support this API; such devices will always list only 'OFF'. All devices that support this API will list both FAST and HIGH_QUALITY.

Range of valid values:
Any value listed in `CaptureRequest#DISTORTION_CORRECTION_MODE`

Optional - The value for this key may be `null` on some devices.

See also:

- `CaptureRequest.DISTORTION_CORRECTION_MODE`

### EDGE_AVAILABLE_EDGE_MODES

    public static final Key<int[]> EDGE_AVAILABLE_EDGE_MODES

List of edge enhancement modes for `CaptureRequest#EDGE_MODE` that are supported by this camera device.

Full-capability camera devices must always support OFF; camera devices that support YUV_REPROCESSING or PRIVATE_REPROCESSING will list ZERO_SHUTTER_LAG; all devices will list FAST.

Range of valid values:
Any value listed in `CaptureRequest#EDGE_MODE`

Optional - The value for this key may be `null` on some devices.

Full capability - Present on all camera devices that report being `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `CaptureRequest.EDGE_MODE`
- `INFO_SUPPORTED_HARDWARE_LEVEL`

### FLASH_INFO_AVAILABLE

    public static final Key<Boolean> FLASH_INFO_AVAILABLE

Whether this camera device has a flash unit.

Will be `false` if no flash is available.

If there is no flash unit, none of the flash controls do anything. This key is available on all devices.

### HOT_PIXEL_AVAILABLE_HOT_PIXEL_MODES

    public static final Key<int[]> HOT_PIXEL_AVAILABLE_HOT_PIXEL_MODES

List of hot pixel correction modes for `CaptureRequest#HOT_PIXEL_MODE` that are supported by this camera device.

FULL mode camera devices will always support FAST.

Range of valid values:
Any value listed in `CaptureRequest#HOT_PIXEL_MODE`

Optional - The value for this key may be `null` on some devices.

See also:

- `CaptureRequest.HOT_PIXEL_MODE`

### INFO_SUPPORTED_HARDWARE_LEVEL

    public static final Key<Integer> INFO_SUPPORTED_HARDWARE_LEVEL

Generally classifies the overall set of the camera device functionality.

The supported hardware level is a high-level description of the camera device's capabilities, summarizing several capabilities into one field. Each level adds additional features to the previous one, and is always a strict superset of the previous level. The ordering is `LEGACY < LIMITED < FULL < LEVEL_3`.

Starting from `LEVEL_3`, the level enumerations are guaranteed to be in increasing numerical value as well. To check if a given device is at least at a given hardware level, the following code snippet can be used:

    // Returns true if the device supports the required hardware level, or better.
     boolean isHardwareLevelSupported(CameraCharacteristics c, int requiredLevel) {
         final int[] sortedHwLevels = {
             CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY,
             CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_EXTERNAL,
             CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED,
             CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_FULL,
             CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL_3
         };
         int deviceLevel = c.get(CameraCharacteristics.INFO_SUPPORTED_HARDWARE_LEVEL);
         if (requiredLevel == deviceLevel) {
             return true;
         }

         for (int sortedlevel : sortedHwLevels) {
             if (sortedlevel == requiredLevel) {
                 return true;
             } else if (sortedlevel == deviceLevel) {
                 return false;
             }
         }
         return false; // Should never reach here
     }

At a high level, the levels are:

- `LEGACY` devices operate in a backwards-compatibility mode for older Android devices, and have very limited capabilities.
- `LIMITED` devices represent the baseline feature set, and may also include additional capabilities that are subsets of `FULL`.
- `FULL` devices additionally support per-frame manual control of sensor, flash, lens and post-processing settings, and image capture at a high rate.
- `LEVEL_3` devices additionally support YUV reprocessing and RAW image capture, along with additional output stream configurations.
- `EXTERNAL` devices are similar to `LIMITED` devices with exceptions like some sensor or lens information not reported or less stable framerates.

See the individual level enums for full descriptions of the supported capabilities. The `CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES` entry describes the device's capabilities at a finer-grain level, if needed. In addition, many controls have their available settings or ranges defined in individual entries from `CameraCharacteristics`.

Some features are not part of any particular hardware level or capability and must be queried separately. These include:

- Calibrated timestamps (`CameraCharacteristics#SENSOR_INFO_TIMESTAMP_SOURCE` `==` REALTIME)
- Precision lens control (`CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION` `==` CALIBRATED)
- Face detection (`CameraCharacteristics#STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES`)
- Optical or electrical image stabilization (`CameraCharacteristics#LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION`, `CameraCharacteristics#CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES`)

Possible values:

- `LIMITED`
- `FULL`
- `LEGACY`
- `3`
- `EXTERNAL`

This key is available on all devices.

See also:

- `CONTROL_AVAILABLE_VIDEO_STABILIZATION_MODES`
- `LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION`
- `LENS_INFO_FOCUS_DISTANCE_CALIBRATION`
- `REQUEST_AVAILABLE_CAPABILITIES`
- `SENSOR_INFO_TIMESTAMP_SOURCE`
- `STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES`
- `CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED`
- `CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_FULL`
- `CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_LEGACY`
- `CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_3`
- `CameraMetadata.INFO_SUPPORTED_HARDWARE_LEVEL_EXTERNAL`

### INFO_VERSION

    public static final Key<String> INFO_VERSION

A short string for manufacturer version information about the camera device, such as ISP hardware, sensors, etc.

This can be used in `TAG_IMAGE_DESCRIPTION` in jpeg EXIF. This key may be absent if no version information is available on the device.

Optional - The value for this key may be `null` on some devices.

### JPEG_AVAILABLE_THUMBNAIL_SIZES

    public static final Key<Size[]> JPEG_AVAILABLE_THUMBNAIL_SIZES

List of JPEG thumbnail sizes for `CaptureRequest#JPEG_THUMBNAIL_SIZE` supported by this camera device.

This list will include at least one non-zero resolution, plus `(0,0)` for indicating no thumbnail should be generated.

Below condiditions will be satisfied for this size list:

- The sizes will be sorted by increasing pixel area (width x height). If several resolutions have the same area, they will be sorted by increasing width.
- The aspect ratio of the largest thumbnail size will be same as the aspect ratio of largest JPEG output size in android.scaler.availableStreamConfigurations. The largest size is defined as the size that has the largest pixel area in a given size list.
- Each output JPEG size in android.scaler.availableStreamConfigurations will have at least one corresponding size that has the same aspect ratio in availableThumbnailSizes, and vice versa.
- All non-`(0, 0)` sizes will have non-zero widths and heights.

This list is also used as supported thumbnail sizes for HEIC image format capture.

This key is available on all devices.

See also:

- `CaptureRequest.JPEG_THUMBNAIL_SIZE`

### LENS_DISTORTION

    public static final Key<float[]> LENS_DISTORTION

The correction coefficients to correct for this camera device's radial and tangential lens distortion.

Replaces the deprecated `CameraCharacteristics#LENS_RADIAL_DISTORTION` field, which was inconsistently defined.

Three radial distortion coefficients `[kappa_1, kappa_2, kappa_3]` and two tangential distortion coefficients `[kappa_4, kappa_5]` that can be used to correct the lens's geometric distortion with the mapping equations:

     x_c = x_i * ( 1 + kappa_1 * r^2 + kappa_2 * r^4 + kappa_3 * r^6 ) +
            kappa_4 * (2 * x_i * y_i) + kappa_5 * ( r^2 + 2 * x_i^2 )
      y_c = y_i * ( 1 + kappa_1 * r^2 + kappa_2 * r^4 + kappa_3 * r^6 ) +
            kappa_5 * (2 * x_i * y_i) + kappa_4 * ( r^2 + 2 * y_i^2 )

Here, `[x_c, y_c]` are the coordinates to sample in the input image that correspond to the pixel values in the corrected image at the coordinate `[x_i, y_i]`:

     correctedImage(x_i, y_i) = sample_at(x_c, y_c, inputImage)

The pixel coordinates are defined in a coordinate system related to the `CameraCharacteristics#LENS_INTRINSIC_CALIBRATION` calibration fields; see that entry for details of the mapping stages. Both `[x_i, y_i]` and `[x_c, y_c]` have `(0,0)` at the lens optical center `[c_x, c_y]`, and the range of the coordinates depends on the focal length terms of the intrinsic calibration.

Finally, `r` represents the radial distance from the optical center, `r^2 = x_i^2 + y_i^2`.

The distortion model used is the Brown-Conrady model.

Units: Unitless coefficients.

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `LENS_INTRINSIC_CALIBRATION`
- `LENS_RADIAL_DISTORTION`

### LENS_FACING

    public static final Key<Integer> LENS_FACING

Direction the camera faces relative to device screen.

Possible values:

- `FRONT`
- `BACK`
- `EXTERNAL`

This key is available on all devices.

See also:

- `CameraMetadata.LENS_FACING_FRONT`
- `CameraMetadata.LENS_FACING_BACK`
- `CameraMetadata.LENS_FACING_EXTERNAL`

### LENS_INFO_AVAILABLE_APERTURES

    public static final Key<float[]> LENS_INFO_AVAILABLE_APERTURES

List of aperture size values for `CaptureRequest#LENS_APERTURE` that are supported by this camera device.

If the camera device doesn't support a variable lens aperture, this list will contain only one value, which is the fixed aperture size.

If the camera device supports a variable aperture, the aperture values in this list will be sorted in ascending order.

Units: The aperture f-number

Optional - The value for this key may be `null` on some devices.

Full capability - Present on all camera devices that report being `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CaptureRequest.LENS_APERTURE`

### LENS_INFO_AVAILABLE_FILTER_DENSITIES

    public static final Key<float[]> LENS_INFO_AVAILABLE_FILTER_DENSITIES

List of neutral density filter values for `CaptureRequest#LENS_FILTER_DENSITY` that are supported by this camera device.

If a neutral density filter is not supported by this camera device, this list will contain only 0. Otherwise, this list will include every filter density supported by the camera device, in ascending order.

Units: Exposure value (EV)

Range of valid values:

Values are >= 0

Optional - The value for this key may be `null` on some devices.

Full capability - Present on all camera devices that report being `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CaptureRequest.LENS_FILTER_DENSITY`

### LENS_INFO_AVAILABLE_FOCAL_LENGTHS

    public static final Key<float[]> LENS_INFO_AVAILABLE_FOCAL_LENGTHS

List of focal lengths for `CaptureRequest#LENS_FOCAL_LENGTH` that are supported by this camera device.

If optical zoom is not supported, this list will only contain a single value corresponding to the fixed focal length of the device. Otherwise, this list will include every focal length supported by the camera device, in ascending order.

Units: Millimeters

Range of valid values:

Values are > 0

This key is available on all devices.

See also:

- `CaptureRequest.LENS_FOCAL_LENGTH`

### LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION

    public static final Key<int[]> LENS_INFO_AVAILABLE_OPTICAL_STABILIZATION

List of optical image stabilization (OIS) modes for `CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE` that are supported by this camera device.

If OIS is not supported by a given camera device, this list will contain only OFF.

Range of valid values:
Any value listed in `CaptureRequest#LENS_OPTICAL_STABILIZATION_MODE`

Optional - The value for this key may be `null` on some devices.

Limited capability - Present on all camera devices that report being at least `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CaptureRequest.LENS_OPTICAL_STABILIZATION_MODE`

### LENS_INFO_FOCUS_DISTANCE_CALIBRATION

    public static final Key<Integer> LENS_INFO_FOCUS_DISTANCE_CALIBRATION

The lens focus distance calibration quality.

The lens focus distance calibration quality determines the reliability of focus related metadata entries, i.e. `CaptureRequest#LENS_FOCUS_DISTANCE`, `CaptureResult#LENS_FOCUS_RANGE`, `CameraCharacteristics#LENS_INFO_HYPERFOCAL_DISTANCE`, and `CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE`.

APPROXIMATE and CALIBRATED devices report the focus metadata in units of diopters (1/meter), so `0.0f` represents focusing at infinity, and increasing positive numbers represent focusing closer and closer to the camera device. The focus distance control also uses diopters on these devices.

UNCALIBRATED devices do not use units that are directly comparable to any real physical measurement, but `0.0f` still represents farthest focus, and `CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE` represents the nearest focus the device can achieve.

Possible values:

- `UNCALIBRATED`
- `APPROXIMATE`
- `CALIBRATED`

Optional - The value for this key may be `null` on some devices.

Limited capability - Present on all camera devices that report being at least `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CaptureRequest.LENS_FOCUS_DISTANCE`
- `CaptureResult.LENS_FOCUS_RANGE`
- `LENS_INFO_HYPERFOCAL_DISTANCE`
- `LENS_INFO_MINIMUM_FOCUS_DISTANCE`
- `CameraMetadata.LENS_INFO_FOCUS_DISTANCE_CALIBRATION_UNCALIBRATED`
- `CameraMetadata.LENS_INFO_FOCUS_DISTANCE_CALIBRATION_APPROXIMATE`
- `CameraMetadata.LENS_INFO_FOCUS_DISTANCE_CALIBRATION_CALIBRATED`

### LENS_INFO_HYPERFOCAL_DISTANCE

    public static final Key<Float> LENS_INFO_HYPERFOCAL_DISTANCE

Hyperfocal distance for this lens.

If the lens is not fixed focus, the camera device will report this field when `CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION` is APPROXIMATE or CALIBRATED.

Units: See `CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION` for details

Range of valid values:
If lens is fixed focus, >= 0. If lens has focuser unit, the value is within `(0.0f, `CameraCharacteristics#LENS_INFO_MINIMUM_FOCUS_DISTANCE`]`

Optional - The value for this key may be `null` on some devices.

Limited capability - Present on all camera devices that report being at least `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `LENS_INFO_FOCUS_DISTANCE_CALIBRATION`
- `LENS_INFO_MINIMUM_FOCUS_DISTANCE`

### LENS_INFO_MINIMUM_FOCUS_DISTANCE

    public static final Key<Float> LENS_INFO_MINIMUM_FOCUS_DISTANCE

Shortest distance from frontmost surface of the lens that can be brought into sharp focus.

If the lens is fixed-focus, this will be 0.

Units: See `CameraCharacteristics#LENS_INFO_FOCUS_DISTANCE_CALIBRATION` for details

Range of valid values:
>= 0

Optional - The value for this key may be `null` on some devices.

Limited capability - Present on all camera devices that report being at least `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `LENS_INFO_FOCUS_DISTANCE_CALIBRATION`

### LENS_INTRINSIC_CALIBRATION

    public static final Key<float[]> LENS_INTRINSIC_CALIBRATION

The parameters for this camera device's intrinsic calibration.

The five calibration parameters that describe the transform from camera-centric 3D coordinates to sensor pixel coordinates:

    [f_x, f_y, c_x, c_y, s]

Where `f_x` and `f_y` are the horizontal and vertical focal lengths, `[c_x, c_y]` is the position of the optical axis, and `s` is a skew parameter for the sensor plane not being aligned with the lens plane.

These are typically used within a transformation matrix K:

    K = [ f_x,   s, c_x,
            0, f_y, c_y,
            0    0,   1 ]

which can then be combined with the camera pose rotation `R` and translation `t` (`CameraCharacteristics#LENS_POSE_ROTATION` and `CameraCharacteristics#LENS_POSE_TRANSLATION`, respectively) to calculate the complete transform from world coordinates to pixel coordinates:

    P = [ K 0   * [ R -Rt
          0 1 ]      0 1 ]

(Note the negation of poseTranslation when mapping from camera to world coordinates, and multiplication by the rotation).

With `p_w` being a point in the world coordinate system and `p_s` being a point in the camera active pixel array coordinate system, and with the mapping including the homogeneous division by z:

     p_h = (x_h, y_h, z_h) = P p_w
     p_s = p_h / z_h

so `[x_s, y_s]` is the pixel coordinates of the world point, `z_s = 1`, and `w_s` is a measurement of disparity (depth) in pixel coordinates.

Note that the coordinate system for this transform is the `CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE` system, where `(0,0)` is the top-left of the preCorrectionActiveArraySize rectangle. Once the pose and intrinsic calibration transforms have been applied to a world point, then the `CameraCharacteristics#LENS_DISTORTION` transform needs to be applied, and the result adjusted to be in the `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE` coordinate system (where `(0, 0)` is the top-left of the activeArraySize rectangle), to determine the final pixel coordinate of the world point for processed (non-RAW) output buffers.

For camera devices, the center of pixel `(x,y)` is located at coordinate `(x + 0.5, y + 0.5)`. So on a device with a precorrection active array of size `(10,10)`, the valid pixel indices go from `(0,0)-(9,9)`, and an perfectly-built camera would have an optical center at the exact center of the pixel grid, at coordinates `(5.0, 5.0)`, which is the top-left corner of pixel `(5,5)`.

Units: Pixels in the `CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE` coordinate system.

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `LENS_DISTORTION`
- `LENS_POSE_ROTATION`
- `LENS_POSE_TRANSLATION`
- `SENSOR_INFO_ACTIVE_ARRAY_SIZE`
- `SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE`

### LENS_POSE_REFERENCE

    public static final Key<Integer> LENS_POSE_REFERENCE

The origin for `CameraCharacteristics#LENS_POSE_TRANSLATION`, and the accuracy of `CameraCharacteristics#LENS_POSE_TRANSLATION` and `CameraCharacteristics#LENS_POSE_ROTATION`.

Different calibration methods and use cases can produce better or worse results depending on the selected coordinate origin.

Possible values:

- `PRIMARY_CAMERA`
- `GYROSCOPE`
- `UNDEFINED`

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `LENS_POSE_ROTATION`
- `LENS_POSE_TRANSLATION`
- `CameraMetadata.LENS_POSE_REFERENCE_PRIMARY_CAMERA`
- `CameraMetadata.LENS_POSE_REFERENCE_GYROSCOPE`
- `CameraMetadata.LENS_POSE_REFERENCE_UNDEFINED`

### LENS_POSE_ROTATION

    public static final Key<float[]> LENS_POSE_ROTATION

The orientation of the camera relative to the sensor coordinate system.

The four coefficients that describe the quaternion rotation from the Android sensor coordinate system to a camera-aligned coordinate system where the X-axis is aligned with the long side of the image sensor, the Y-axis is aligned with the short side of the image sensor, and the Z-axis is aligned with the optical axis of the sensor.

To convert from the quaternion coefficients `(x,y,z,w)` to the axis of rotation `(a_x, a_y, a_z)` and rotation amount `theta`, the following formulas can be used:

     theta = 2 * acos(w)
     a_x = x / sin(theta/2)
     a_y = y / sin(theta/2)
     a_z = z / sin(theta/2)

To create a 3x3 rotation matrix that applies the rotation defined by this quaternion, the following matrix can be used:

    R = [ 1 - 2y^2 - 2z^2,       2xy - 2zw,       2xz + 2yw,
                2xy + 2zw, 1 - 2x^2 - 2z^2,       2yz - 2xw,
                2xz - 2yw,       2yz + 2xw, 1 - 2x^2 - 2y^2 ]

This matrix can then be used to apply the rotation to a column vector point with

`p' = Rp`

where `p` is in the device sensor coordinate system, and `p'` is in the camera-oriented coordinate system.

If `CameraCharacteristics#LENS_POSE_REFERENCE` is UNDEFINED, the quaternion rotation cannot be accurately represented by the camera device, and will be represented by default values matching its default facing.

Units: Quaternion coefficients

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `LENS_POSE_REFERENCE`

### LENS_POSE_TRANSLATION

    public static final Key<float[]> LENS_POSE_TRANSLATION

Position of the camera optical center.

The position of the camera device's lens optical center, as a three-dimensional vector `(x,y,z)`.

Prior to Android P, or when `CameraCharacteristics#LENS_POSE_REFERENCE` is PRIMARY_CAMERA, this position is relative to the optical center of the largest camera device facing in the same direction as this camera, in the `Android sensor coordinate axes`. Note that only the axis definitions are shared with the sensor coordinate system, but not the origin.

If this device is the largest or only camera device with a given facing, then this position will be `(0, 0, 0)`; a camera device with a lens optical center located 3 cm from the main sensor along the +X axis (to the right from the user's perspective) will report `(0.03, 0, 0)`. Note that this means that, for many computer vision applications, the position needs to be negated to convert it to a translation from the camera to the origin.

To transform a pixel coordinates between two cameras facing the same direction, first the source camera `CameraCharacteristics#LENS_DISTORTION` must be corrected for. Then the source camera `CameraCharacteristics#LENS_INTRINSIC_CALIBRATION` needs to be applied, followed by the `CameraCharacteristics#LENS_POSE_ROTATION` of the source camera, the translation of the source camera relative to the destination camera, the `CameraCharacteristics#LENS_POSE_ROTATION` of the destination camera, and finally the inverse of `CameraCharacteristics#LENS_INTRINSIC_CALIBRATION` of the destination camera. This obtains a radial-distortion-free coordinate in the destination camera pixel coordinates.

To compare this against a real image from the destination camera, the destination camera image then needs to be corrected for radial distortion before comparison or sampling.

When `CameraCharacteristics#LENS_POSE_REFERENCE` is GYROSCOPE, then this position is relative to the center of the primary gyroscope on the device. The axis definitions are the same as with PRIMARY_CAMERA.

When `CameraCharacteristics#LENS_POSE_REFERENCE` is UNDEFINED, this position cannot be accurately represented by the camera device, and will be represented as `(0, 0, 0)`.

Units: Meters

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `LENS_DISTORTION`
- `LENS_INTRINSIC_CALIBRATION`
- `LENS_POSE_REFERENCE`
- `LENS_POSE_ROTATION`

### LENS_RADIAL_DISTORTION

    public static final Key<float[]> LENS_RADIAL_DISTORTION

This field is deprecated.

This field was inconsistently defined in terms of its normalization. Use `CameraCharacteristics#LENS_DISTORTION` instead.

The correction coefficients to correct for this camera device's radial and tangential lens distortion.

Four radial distortion coefficients `[kappa_0, kappa_1, kappa_2, kappa_3]` and two tangential distortion coefficients `[kappa_4, kappa_5]` that can be used to correct the lens's geometric distortion with the mapping equations:

     x_c = x_i * ( kappa_0 + kappa_1 * r^2 + kappa_2 * r^4 + kappa_3 * r^6 ) +
            kappa_4 * (2 * x_i * y_i) + kappa_5 * ( r^2 + 2 * x_i^2 )
      y_c = y_i * ( kappa_0 + kappa_1 * r^2 + kappa_2 * r^4 + kappa_3 * r^6 ) +
            kappa_5 * (2 * x_i * y_i) + kappa_4 * ( r^2 + 2 * y_i^2 )

Here, `[x_c, y_c]` are the coordinates to sample in the input image that correspond to the pixel values in the corrected image at the coordinate `[x_i, y_i]`:

     correctedImage(x_i, y_i) = sample_at(x_c, y_c, inputImage)

The pixel coordinates are defined in a normalized coordinate system related to the `CameraCharacteristics#LENS_INTRINSIC_CALIBRATION` calibration fields. Both `[x_i, y_i]` and `[x_c, y_c]` have `(0,0)` at the lens optical center `[c_x, c_y]`. The maximum magnitudes of both x and y coordinates are normalized to be 1 at the edge further from the optical center, so the range for both dimensions is `-1 <= x <= 1`.

Finally, `r` represents the radial distance from the optical center, `r^2 = x_i^2 + y_i^2`, and its magnitude is therefore no larger than `|r| <= sqrt(2)`.

The distortion model used is the Brown-Conrady model.

Units: Unitless coefficients.

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `LENS_INTRINSIC_CALIBRATION`
- `LENS_DISTORTION`

### LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE

    public static final Key<Integer> LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE

The accuracy of frame timestamp synchronization between physical cameras

The accuracy of the frame timestamp synchronization determines the physical cameras' ability to start exposure at the same time. If the sensorSyncType is CALIBRATED, the physical camera sensors usually run in leader/follower mode where one sensor generates a timing signal for the other, so that their shutter time is synchronized. For APPROXIMATE sensorSyncType, the camera sensors usually run in leader/leader mode, where both sensors use their own timing generator, and there could be offset between their start of exposure.

In both cases, all images generated for a particular capture request still carry the same timestamps, so that they can be used to look up the matching frame number and onCaptureStarted callback.

This tag is only applicable if the logical camera device supports concurrent physical streams from different physical cameras.

Possible values:

- `APPROXIMATE`
- `CALIBRATED`

Optional - The value for this key may be `null` on some devices.

Limited capability - Present on all camera devices that report being at least `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CameraMetadata.LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_APPROXIMATE`
- `CameraMetadata.LOGICAL_MULTI_CAMERA_SENSOR_SYNC_TYPE_CALIBRATED`

### NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES

    public static final Key<int[]> NOISE_REDUCTION_AVAILABLE_NOISE_REDUCTION_MODES

List of noise reduction modes for `CaptureRequest#NOISE_REDUCTION_MODE` that are supported by this camera device.

Full-capability camera devices will always support OFF and FAST.

Camera devices that support YUV_REPROCESSING or PRIVATE_REPROCESSING will support ZERO_SHUTTER_LAG.

Legacy-capability camera devices will only support FAST mode.

Range of valid values:
Any value listed in `CaptureRequest#NOISE_REDUCTION_MODE`

Optional - The value for this key may be `null` on some devices.

Limited capability - Present on all camera devices that report being at least `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CaptureRequest.NOISE_REDUCTION_MODE`

### REPROCESS_MAX_CAPTURE_STALL

    public static final Key<Integer> REPROCESS_MAX_CAPTURE_STALL

The maximal camera capture pipeline stall (in unit of frame count) introduced by a reprocess capture request.

The key describes the maximal interference that one reprocess (input) request can introduce to the camera simultaneous streaming of regular (output) capture requests, including repeating requests.

When a reprocessing capture request is submitted while a camera output repeating request (e.g. preview) is being served by the camera device, it may preempt the camera capture pipeline for at least one frame duration so that the camera device is unable to process the following capture request in time for the next sensor start of exposure boundary. When this happens, the application may observe a capture time gap (longer than one frame duration) between adjacent capture output frames, which usually exhibits as preview glitch if the repeating request output targets include a preview surface. This key gives the worst-case number of frame stall introduced by one reprocess request with any kind of formats/sizes combination.

If this key reports 0, it means a reprocess request doesn't introduce any glitch to the ongoing camera repeating request outputs, as if this reprocess request is never issued.

This key is supported if the camera device supports PRIVATE or YUV reprocessing ( i.e. `CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES` contains PRIVATE_REPROCESSING or YUV_REPROCESSING).

Units: Number of frames.

Range of valid values:
<= 4

Optional - The value for this key may be `null` on some devices.

Limited capability - Present on all camera devices that report being at least `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `REQUEST_AVAILABLE_CAPABILITIES`

### REQUEST_AVAILABLE_CAPABILITIES

    public static final Key<int[]> REQUEST_AVAILABLE_CAPABILITIES

List of capabilities that this camera device advertises as fully supporting.

A capability is a contract that the camera device makes in order to be able to satisfy one or more use cases.

Listing a capability guarantees that the whole set of features required to support a common use will all be available.

Using a subset of the functionality provided by an unsupported capability may be possible on a specific camera device implementation; to do this query each of android.request.availableRequestKeys, android.request.availableResultKeys, android.request.availableCharacteristicsKeys.

The following capabilities are guaranteed to be available on `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` `==` FULL devices:

- MANUAL_SENSOR
- MANUAL_POST_PROCESSING

Other capabilities may be available on either FULL or LIMITED devices, but the application should query this key to be sure.

Possible values:

- `BACKWARD_COMPATIBLE`
- `MANUAL_SENSOR`
- `MANUAL_POST_PROCESSING`
- `RAW`
- `PRIVATE_REPROCESSING`
- `READ_SENSOR_SETTINGS`
- `BURST_CAPTURE`
- `YUV_REPROCESSING`
- `DEPTH_OUTPUT`
- `CONSTRAINED_HIGH_SPEED_VIDEO`
- `MOTION_TRACKING`
- `LOGICAL_MULTI_CAMERA`
- `MONOCHROME`
- `SECURE_IMAGE_DATA`
- `SYSTEM_CAMERA`
- `OFFLINE_PROCESSING`

This key is available on all devices.

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_MANUAL_SENSOR`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_MANUAL_POST_PROCESSING`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_RAW`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_PRIVATE_REPROCESSING`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_READ_SENSOR_SETTINGS`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_BURST_CAPTURE`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_YUV_REPROCESSING`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_DEPTH_OUTPUT`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_CONSTRAINED_HIGH_SPEED_VIDEO`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_MOTION_TRACKING`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_MONOCHROME`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_SECURE_IMAGE_DATA`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_SYSTEM_CAMERA`
- `CameraMetadata.REQUEST_AVAILABLE_CAPABILITIES_OFFLINE_PROCESSING`

### REQUEST_MAX_NUM_INPUT_STREAMS

    public static final Key<Integer> REQUEST_MAX_NUM_INPUT_STREAMS

The maximum numbers of any type of input streams that can be configured and used simultaneously by a camera device.

When set to 0, it means no input stream is supported.

The image format for a input stream can be any supported format returned by `StreamConfigurationMap.getInputFormats()`. When using an input stream, there must be at least one output stream configured to to receive the reprocessed images.

When an input stream and some output streams are used in a reprocessing request, only the input buffer will be used to produce these output stream buffers, and a new sensor image will not be captured.

For example, for Zero Shutter Lag (ZSL) still capture use case, the input stream image format will be PRIVATE, the associated output stream image format should be JPEG.

Range of valid values:

0 or 1.

Optional - The value for this key may be `null` on some devices.

Full capability - Present on all camera devices that report being `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`

### REQUEST_MAX_NUM_OUTPUT_PROC

    public static final Key<Integer> REQUEST_MAX_NUM_OUTPUT_PROC

The maximum numbers of different types of output streams that can be configured and used simultaneously by a camera device for any processed (but not-stalling) formats.

This value contains the max number of output simultaneous streams for any processed (but not-stalling) formats.

This lists the upper bound of the number of output streams supported by the camera device. Using more streams simultaneously may require more hardware and CPU resources that will consume more power. The image format for this kind of an output stream can be any non-`RAW` and supported format provided by `CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP`.

Processed (but not-stalling) is defined as any non-RAW format without a stall duration. Typically:

- `YUV_420_888`
- `NV21`
- `YV12`
- Implementation-defined formats, i.e. `StreamConfigurationMap.isOutputSupportedFor(Class)`
- `Y8`

For full guarantees, query `StreamConfigurationMap.getOutputStallDuration(int, Size)` with a processed format -- it will return 0 for a non-stalling stream.

LEGACY devices will support at least 2 processing/non-stalling streams.

Range of valid values:

>= 3 for FULL mode devices (``CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` == FULL`); >= 2 for LIMITED mode devices (``CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` == LIMITED`).

This key is available on all devices.

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `SCALER_STREAM_CONFIGURATION_MAP`

### REQUEST_MAX_NUM_OUTPUT_PROC_STALLING

    public static final Key<Integer> REQUEST_MAX_NUM_OUTPUT_PROC_STALLING

The maximum numbers of different types of output streams that can be configured and used simultaneously by a camera device for any processed (and stalling) formats.

This value contains the max number of output simultaneous streams for any processed (but not-stalling) formats.

This lists the upper bound of the number of output streams supported by the camera device. Using more streams simultaneously may require more hardware and CPU resources that will consume more power. The image format for this kind of an output stream can be any non-`RAW` and supported format provided by `CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP`.

A processed and stalling format is defined as any non-RAW format with a stallDurations > 0. Typically only the `JPEG format` is a stalling format.

For full guarantees, query `StreamConfigurationMap.getOutputStallDuration(int, Size)` with a processed format -- it will return a non-0 value for a stalling stream.

LEGACY devices will support up to 1 processing/stalling stream.

Range of valid values:

>= 1

This key is available on all devices.

See also:

- `SCALER_STREAM_CONFIGURATION_MAP`

### REQUEST_MAX_NUM_OUTPUT_RAW

    public static final Key<Integer> REQUEST_MAX_NUM_OUTPUT_RAW

The maximum numbers of different types of output streams that can be configured and used simultaneously by a camera device for any `RAW` formats.

This value contains the max number of output simultaneous streams from the raw sensor.

This lists the upper bound of the number of output streams supported by the camera device. Using more streams simultaneously may require more hardware and CPU resources that will consume more power. The image format for this kind of an output stream can be any `RAW` and supported format provided by `CameraCharacteristics#SCALER_STREAM_CONFIGURATION_MAP`.

In particular, a `RAW` format is typically one of:

- `RAW_SENSOR`
- `RAW10`
- `RAW12`

LEGACY mode devices (`CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` `==` LEGACY) never support raw streams.

Range of valid values:

>= 0

This key is available on all devices.

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `SCALER_STREAM_CONFIGURATION_MAP`

### REQUEST_PARTIAL_RESULT_COUNT

    public static final Key<Integer> REQUEST_PARTIAL_RESULT_COUNT

Defines how many sub-components a result will be composed of.

In order to combat the pipeline latency, partial results may be delivered to the application layer from the camera device as soon as they are available.

Optional; defaults to 1. A value of 1 means that partial results are not supported, and only the final TotalCaptureResult will be produced by the camera device.

A typical use case for this might be: after requesting an auto-focus (AF) lock the new AF state might be available 50% of the way through the pipeline. The camera device could then immediately dispatch this state via a partial result to the application, and the rest of the metadata via later partial results.

Range of valid values:
>= 1

Optional - The value for this key may be `null` on some devices.

### REQUEST_PIPELINE_MAX_DEPTH

    public static final Key<Byte> REQUEST_PIPELINE_MAX_DEPTH

Specifies the number of maximum pipeline stages a frame has to go through from when it's exposed to when it's available to the framework.

A typical minimum value for this is 2 (one stage to expose, one stage to readout) from the sensor. The ISP then usually adds its own stages to do custom HW processing. Further stages may be added by SW processing.

Depending on what settings are used (e.g. YUV, JPEG) and what processing is enabled (e.g. face detection), the actual pipeline depth (specified by `CaptureResult#REQUEST_PIPELINE_DEPTH`) may be less than the max pipeline depth.

A pipeline depth of X stages is equivalent to a pipeline latency of X frame intervals.

This value will normally be 8 or less, however, for high speed capture session, the max pipeline depth will be up to 8 x size of high speed capture request list.

This key is available on all devices.

See also:

- `CaptureResult.REQUEST_PIPELINE_DEPTH`

### SCALER_AVAILABLE_MAX_DIGITAL_ZOOM

    public static final Key<Float> SCALER_AVAILABLE_MAX_DIGITAL_ZOOM

The maximum ratio between both active area width and crop region width, and active area height and crop region height, for `CaptureRequest#SCALER_CROP_REGION`.

This represents the maximum amount of zooming possible by the camera device, or equivalently, the minimum cropping window size.

Crop regions that have a width or height that is smaller than this ratio allows will be rounded up to the minimum allowed size by the camera device.

Starting from API level 30, when using `CaptureRequest#CONTROL_ZOOM_RATIO` to zoom in or out, the application must use `CameraCharacteristics#CONTROL_ZOOM_RATIO_RANGE` to query both the minimum and maximum zoom ratio.

Units: Zoom scale factor

Range of valid values:
>=1

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_ZOOM_RATIO`
- `CONTROL_ZOOM_RATIO_RANGE`
- `CaptureRequest.SCALER_CROP_REGION`

### SCALER_CROPPING_TYPE

    public static final Key<Integer> SCALER_CROPPING_TYPE

The crop type that this camera device supports.

When passing a non-centered crop region (`CaptureRequest#SCALER_CROP_REGION`) to a camera device that only supports CENTER_ONLY cropping, the camera device will move the crop region to the center of the sensor active array (`CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE`) and keep the crop region width and height unchanged. The camera device will return the final used crop region in metadata result `CaptureRequest#SCALER_CROP_REGION`.

Camera devices that support FREEFORM cropping will support any crop region that is inside of the active array. The camera device will apply the same crop region and return the final used crop region in capture result metadata `CaptureRequest#SCALER_CROP_REGION`.

Starting from API level 30,

- If the camera device supports FREEFORM cropping, in order to do FREEFORM cropping, the application must set `CaptureRequest#CONTROL_ZOOM_RATIO` to 1.0, and use `CaptureRequest#SCALER_CROP_REGION` for zoom.
- To do CENTER_ONLY zoom, the application has below 2 options:
  1. Set `CaptureRequest#CONTROL_ZOOM_RATIO` to 1.0; adjust zoom by `CaptureRequest#SCALER_CROP_REGION`.
  2. Adjust zoom by `CaptureRequest#CONTROL_ZOOM_RATIO`; use `CaptureRequest#SCALER_CROP_REGION` to crop the field of view vertically (letterboxing) or horizontally (pillarboxing), but not windowboxing.
- Setting `CaptureRequest#CONTROL_ZOOM_RATIO` to values different than 1.0 and `CaptureRequest#SCALER_CROP_REGION` to be windowboxing at the same time are not supported. In this case, the camera framework will override the `CaptureRequest#SCALER_CROP_REGION` to be the active array.

LEGACY capability devices will only support CENTER_ONLY cropping.

Possible values:

- `CENTER_ONLY`
- `FREEFORM`

This key is available on all devices.

See also:

- `CaptureRequest.CONTROL_ZOOM_RATIO`
- `CaptureRequest.SCALER_CROP_REGION`
- `SENSOR_INFO_ACTIVE_ARRAY_SIZE`
- `CameraMetadata.SCALER_CROPPING_TYPE_CENTER_ONLY`
- `CameraMetadata.SCALER_CROPPING_TYPE_FREEFORM`

### SCALER_MANDATORY_CONCURRENT_STREAM_COMBINATIONS

    public static final Key<MandatoryStreamCombination[]> SCALER_MANDATORY_CONCURRENT_STREAM_COMBINATIONS

An array of mandatory concurrent stream combinations. This is an app-readable conversion of the concurrent mandatory stream combination `tables`.

The array of `combinations` is generated according to the documented `guideline` for each device which has its Id present in the set returned by `CameraManager.getConcurrentCameraIds()`. Clients can use the array as a quick reference to find an appropriate camera stream combination. The mandatory stream combination array will be `null` in case the device is not a part of at least one set of combinations returned by `CameraManager.getConcurrentCameraIds()`.

Optional - The value for this key may be `null` on some devices.

### SCALER_MANDATORY_STREAM_COMBINATIONS

    public static final Key<MandatoryStreamCombination[]> SCALER_MANDATORY_STREAM_COMBINATIONS

An array of mandatory stream combinations generated according to the camera device `INFO_SUPPORTED_HARDWARE_LEVEL` and `REQUEST_AVAILABLE_CAPABILITIES`. This is an app-readable conversion of the mandatory stream combination `tables`.

The array of `combinations` is generated according to the documented `guideline` based on specific device level and capabilities. Clients can use the array as a quick reference to find an appropriate camera stream combination. As per documentation, the stream combinations with given PREVIEW, RECORD and MAXIMUM resolutions and anything smaller from the list given by `StreamConfigurationMap.getOutputSizes(int)` are guaranteed to work. For a physical camera not independently exposed in `CameraManager.getCameraIdList()`, the mandatory stream combinations for that physical camera Id are also generated, so that the application can configure them as physical streams via the logical camera. The mandatory stream combination array will be `null` in case the device is not backward compatible.

Optional - The value for this key may be `null` on some devices.

Limited capability - Present on all camera devices that report being at least `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_LIMITED` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`

### SCALER_STREAM_CONFIGURATION_MAP

    public static final Key<StreamConfigurationMap> SCALER_STREAM_CONFIGURATION_MAP

The available stream configurations that this camera device supports; also includes the minimum frame durations and the stall durations for each format/size combination.

All camera devices will support sensor maximum resolution (defined by `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE`) for the JPEG format.

For a given use case, the actual maximum supported resolution may be lower than what is listed here, depending on the destination Surface for the image data. For example, for recording video, the video encoder chosen may have a maximum size limit (e.g. 1080p) smaller than what the camera (e.g. maximum resolution is 3264x2448) can provide.

Please reference the documentation for the image data destination to check if it limits the maximum size for image data.

The following table describes the minimum required output stream configurations based on the hardware level (`CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL`):

Format | Size | Hardware Level | Notes
--- | --- | --- | ---
`ImageFormat.JPEG` | `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE` (*1) | Any |
`ImageFormat.JPEG` | 1920x1080 (1080p) | Any | if 1080p <= activeArraySize
`ImageFormat.JPEG` | 1280x720 (720p) | Any | if 720p <= activeArraySize
`ImageFormat.JPEG` | 640x480 (480p) | Any | if 480p <= activeArraySize
`ImageFormat.JPEG` | 320x240 (240p) | Any | if 240p <= activeArraySize
`ImageFormat.YUV_420_888` | all output sizes available for JPEG | FULL |
`ImageFormat.YUV_420_888` | all output sizes available for JPEG, up to the maximum video size | LIMITED |
`ImageFormat.PRIVATE` | same as YUV_420_888 | Any |

Refer to `CameraCharacteristics#REQUEST_AVAILABLE_CAPABILITIES` and `CameraDevice.createCaptureSession(SessionConfiguration)` for additional mandatory stream configurations on a per-capability basis.

*1: For JPEG format, the sizes may be restricted by below conditions:

- The HAL may choose the aspect ratio of each Jpeg size to be one of well known ones (e.g. 4:3, 16:9, 3:2 etc.). If the sensor maximum resolution (defined by `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE`) has an aspect ratio other than these, it does not have to be included in the supported JPEG sizes.
- Some hardware JPEG encoders may have pixel boundary alignment requirements, such as the dimensions being a multiple of 16. Therefore, the maximum JPEG size may be smaller than sensor maximum resolution. However, the largest JPEG size will be as close as possible to the sensor maximum resolution given above constraints. It is required that after aspect ratio adjustments, additional size reduction due to other issues must be less than 3% in area. For example, if the sensor maximum resolution is 3280x2464, if the maximum JPEG size has aspect ratio 4:3, and the JPEG encoder alignment requirement is 16, the maximum JPEG size will be 3264x2448.

Exception on 176x144 (QCIF) resolution: camera devices usually have a fixed capability on downscaling from larger resolution to smaller ones, and the QCIF resolution can sometimes not be fully supported due to this limitation on devices with high-resolution image sensors. Therefore, trying to configure a QCIF resolution stream together with any other stream larger than 1920x1080 resolution (either width or height) might not be supported, and capture session creation will fail if it is not.

This key is available on all devices.

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `REQUEST_AVAILABLE_CAPABILITIES`
- `SENSOR_INFO_ACTIVE_ARRAY_SIZE`

### SENSOR_AVAILABLE_TEST_PATTERN_MODES

    public static final Key<int[]> SENSOR_AVAILABLE_TEST_PATTERN_MODES

List of sensor test pattern modes for `CaptureRequest#SENSOR_TEST_PATTERN_MODE` supported by this camera device.

Defaults to OFF, and always includes OFF if defined.

Range of valid values:
Any value listed in `CaptureRequest#SENSOR_TEST_PATTERN_MODE`

Optional - The value for this key may be `null` on some devices.

See also:

- `CaptureRequest.SENSOR_TEST_PATTERN_MODE`

### SENSOR_BLACK_LEVEL_PATTERN

    public static final Key<BlackLevelPattern> SENSOR_BLACK_LEVEL_PATTERN

A fixed black level offset for each of the color filter arrangement (CFA) mosaic channels.

This key specifies the zero light value for each of the CFA mosaic channels in the camera sensor. The maximal value output by the sensor is represented by the value in `CameraCharacteristics#SENSOR_INFO_WHITE_LEVEL`.

The values are given in the same order as channels listed for the CFA layout key (see `CameraCharacteristics#SENSOR_INFO_COLOR_FILTER_ARRANGEMENT`), i.e. the nth value given corresponds to the black level offset for the nth color channel listed in the CFA.

The black level values of captured images may vary for different capture settings (e.g., `CaptureRequest#SENSOR_SENSITIVITY`). This key represents a coarse approximation for such case. It is recommended to use `CaptureResult#SENSOR_DYNAMIC_BLACK_LEVEL` or use pixels from `CameraCharacteristics#SENSOR_OPTICAL_BLACK_REGIONS` directly for captures when supported by the camera device, which provides more accurate black level values. For raw capture in particular, it is recommended to use pixels from `CameraCharacteristics#SENSOR_OPTICAL_BLACK_REGIONS` to calculate black level values for each frame.

For a MONOCHROME camera device, all of the 2x2 channels must have the same values.

Range of valid values:
>= 0 for each.

Optional - The value for this key may be `null` on some devices.

See also:

- `CaptureResult.SENSOR_DYNAMIC_BLACK_LEVEL`
- `SENSOR_INFO_COLOR_FILTER_ARRANGEMENT`
- `SENSOR_INFO_WHITE_LEVEL`
- `SENSOR_OPTICAL_BLACK_REGIONS`
- `CaptureRequest.SENSOR_SENSITIVITY`

### SENSOR_CALIBRATION_TRANSFORM1

    public static final Key<ColorSpaceTransform> SENSOR_CALIBRATION_TRANSFORM1

A per-device calibration transform matrix that maps from the reference sensor colorspace to the actual device sensor colorspace.

This matrix is used to correct for per-device variations in the sensor colorspace, and is used for processing raw buffer data.

The matrix is expressed as a 3x3 matrix in row-major-order, and contains a per-device calibration transform that maps colors from reference sensor color space (i.e. the "golden module" colorspace) into this camera device's native sensor color space under the first reference illuminant (`CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1`).

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if the camera device has RAW capability.

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `SENSOR_REFERENCE_ILLUMINANT1`

### SENSOR_CALIBRATION_TRANSFORM2

    public static final Key<ColorSpaceTransform> SENSOR_CALIBRATION_TRANSFORM2

A per-device calibration transform matrix that maps from the reference sensor colorspace to the actual device sensor colorspace (this is the colorspace of the raw buffer data).

This matrix is used to correct for per-device variations in the sensor colorspace, and is used for processing raw buffer data.

The matrix is expressed as a 3x3 matrix in row-major-order, and contains a per-device calibration transform that maps colors from reference sensor color space (i.e. the "golden module" colorspace) into this camera device's native sensor color space under the second reference illuminant (`CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2`).

This matrix will only be present if the second reference illuminant is present.

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if the camera device has RAW capability.

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `SENSOR_REFERENCE_ILLUMINANT2`

### SENSOR_COLOR_TRANSFORM1

    public static final Key<ColorSpaceTransform> SENSOR_COLOR_TRANSFORM1

A matrix that transforms color values from CIE XYZ color space to reference sensor color space.

This matrix is used to convert from the standard CIE XYZ color space to the reference sensor colorspace, and is used when processing raw buffer data.

The matrix is expressed as a 3x3 matrix in row-major-order, and contains a color transform matrix that maps colors from the CIE XYZ color space to the reference sensor color space (i.e. the "golden module" colorspace) under the first reference illuminant (`CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1`).

The white points chosen in both the reference sensor color space and the CIE XYZ colorspace when calculating this transform will match the standard white point for the first reference illuminant (i.e. no chromatic adaptation will be applied by this transform).

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if the camera device has RAW capability.

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `SENSOR_REFERENCE_ILLUMINANT1`

### SENSOR_COLOR_TRANSFORM2

    public static final Key<ColorSpaceTransform> SENSOR_COLOR_TRANSFORM2

A matrix that transforms color values from CIE XYZ color space to reference sensor color space.

This matrix is used to convert from the standard CIE XYZ color space to the reference sensor colorspace, and is used when processing raw buffer data.

The matrix is expressed as a 3x3 matrix in row-major-order, and contains a color transform matrix that maps colors from the CIE XYZ color space to the reference sensor color space (i.e. the "golden module" colorspace) under the second reference illuminant (`CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2`).

The white points chosen in both the reference sensor color space and the CIE XYZ colorspace when calculating this transform will match the standard white point for the second reference illuminant (i.e. no chromatic adaptation will be applied by this transform).

This matrix will only be present if the second reference illuminant is present.

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if the camera device has RAW capability.

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `SENSOR_REFERENCE_ILLUMINANT2`

### SENSOR_FORWARD_MATRIX1

    public static final Key<ColorSpaceTransform> SENSOR_FORWARD_MATRIX1

A matrix that transforms white balanced camera colors from the reference sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.

This matrix is used to convert to the standard CIE XYZ colorspace, and is used when processing raw buffer data.

This matrix is expressed as a 3x3 matrix in row-major-order, and contains a color transform matrix that maps white balanced colors from the reference sensor color space to the CIE XYZ color space with a D50 white point.

Under the first reference illuminant (`CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1`) this matrix is chosen so that the standard white point for this reference illuminant in the reference sensor colorspace is mapped to D50 in the CIE XYZ colorspace.

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if the camera device has RAW capability.

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `SENSOR_REFERENCE_ILLUMINANT1`

### SENSOR_FORWARD_MATRIX2

    public static final Key<ColorSpaceTransform> SENSOR_FORWARD_MATRIX2

A matrix that transforms white balanced camera colors from the reference sensor colorspace to the CIE XYZ colorspace with a D50 whitepoint.

This matrix is used to convert to the standard CIE XYZ colorspace, and is used when processing raw buffer data.

This matrix is expressed as a 3x3 matrix in row-major-order, and contains a color transform matrix that maps white balanced colors from the reference sensor color space to the CIE XYZ color space with a D50 white point.

Under the second reference illuminant (`CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2`) this matrix is chosen so that the standard white point for this reference illuminant in the reference sensor colorspace is mapped to D50 in the CIE XYZ colorspace.

This matrix will only be present if the second reference illuminant is present.

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if the camera device has RAW capability.

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `SENSOR_REFERENCE_ILLUMINANT2`

### SENSOR_INFO_ACTIVE_ARRAY_SIZE

    public static final Key<Rect> SENSOR_INFO_ACTIVE_ARRAY_SIZE

The area of the image sensor which corresponds to active pixels after any geometric distortion correction has been applied.

This is the rectangle representing the size of the active region of the sensor (i.e. the region that actually receives light from the scene) after any geometric correction has been applied, and should be treated as the maximum size in pixels of any of the image output formats aside from the raw formats.

This rectangle is defined relative to the full pixel array; (0,0) is the top-left of the full pixel array, and the size of the full pixel array is given by `CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE`.

The coordinate system for most other keys that list pixel coordinates, including `CaptureRequest#SCALER_CROP_REGION`, is defined relative to the active array rectangle given in this field, with `(0, 0)` being the top-left of this rectangle.

The active array may be smaller than the full pixel array, since the full array may include black calibration pixels or other inactive regions.

For devices that do not support `CaptureRequest#DISTORTION_CORRECTION_MODE` control, the active array must be the same as `CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE`.

For devices that support `CaptureRequest#DISTORTION_CORRECTION_MODE` control, the active array must be enclosed by `CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE`. The difference between pre-correction active array and active array accounts for scaling or cropping caused by lens geometric distortion correction.

In general, application should always refer to active array size for controls like metering regions or crop region. Two exceptions are when the application is dealing with RAW image buffers (RAW_SENSOR, RAW10, RAW12 etc), or when application explicitly set `CaptureRequest#DISTORTION_CORRECTION_MODE` to OFF. In these cases, application should refer to `CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE`.

Units: Pixel coordinates on the image sensor

This key is available on all devices.

See also:

- `CaptureRequest.DISTORTION_CORRECTION_MODE`
- `CaptureRequest.SCALER_CROP_REGION`
- `SENSOR_INFO_PIXEL_ARRAY_SIZE`
- `SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE`

### SENSOR_INFO_COLOR_FILTER_ARRANGEMENT

    public static final Key<Integer> SENSOR_INFO_COLOR_FILTER_ARRANGEMENT

The arrangement of color filters on sensor; represents the colors in the top-left 2x2 section of the sensor, in reading order, for a Bayer camera, or the light spectrum it captures for MONOCHROME camera.

Possible values:

- `RGGB`
- `GRBG`
- `GBRG`
- `BGGR`
- `RGB`
- `MONO`
- `NIR`

Optional - The value for this key may be `null` on some devices.

Full capability - Present on all camera devices that report being `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CameraMetadata.SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGGB`
- `CameraMetadata.SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GRBG`
- `CameraMetadata.SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_GBRG`
- `CameraMetadata.SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_BGGR`
- `CameraMetadata.SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_RGB`
- `CameraMetadata.SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_MONO`
- `CameraMetadata.SENSOR_INFO_COLOR_FILTER_ARRANGEMENT_NIR`

### SENSOR_INFO_EXPOSURE_TIME_RANGE

    public static final Key<Range<Long>> SENSOR_INFO_EXPOSURE_TIME_RANGE

The range of image exposure times for `CaptureRequest#SENSOR_EXPOSURE_TIME` supported by this camera device.

Units: Nanoseconds

Range of valid values:
The minimum exposure time will be less than 100 us. For FULL capability devices (`CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` == FULL), the maximum exposure time will be greater than 100ms.

Optional - The value for this key may be `null` on some devices.

Full capability - Present on all camera devices that report being `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CaptureRequest.SENSOR_EXPOSURE_TIME`

### SENSOR_INFO_LENS_SHADING_APPLIED

    public static final Key<Boolean> SENSOR_INFO_LENS_SHADING_APPLIED

Whether the RAW images output from this camera device are subject to lens shading correction.

If TRUE, all images produced by the camera device in the RAW image formats will have lens shading correction already applied to it. If FALSE, the images will not be adjusted for lens shading correction. See `CameraCharacteristics#REQUEST_MAX_NUM_OUTPUT_RAW` for a list of RAW image formats.

This key will be `null` for all devices do not report this information. Devices with RAW capability will always report this information in this key.

Optional - The value for this key may be `null` on some devices.

See also:

- `REQUEST_MAX_NUM_OUTPUT_RAW`

### SENSOR_INFO_MAX_FRAME_DURATION

    public static final Key<Long> SENSOR_INFO_MAX_FRAME_DURATION

The maximum possible frame duration (minimum frame rate) for `CaptureRequest#SENSOR_FRAME_DURATION` that is supported this camera device.

Attempting to use frame durations beyond the maximum will result in the frame duration being clipped to the maximum. See that control for a full definition of frame durations.

Refer to `StreamConfigurationMap.getOutputMinFrameDuration(int, Size)` for the minimum frame duration values.

Units: Nanoseconds

Range of valid values:
For FULL capability devices (`CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` == FULL), at least 100ms.

Optional - The value for this key may be `null` on some devices.

Full capability - Present on all camera devices that report being `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CaptureRequest.SENSOR_FRAME_DURATION`

### SENSOR_INFO_PHYSICAL_SIZE

    public static final Key<SizeF> SENSOR_INFO_PHYSICAL_SIZE

The physical dimensions of the full pixel array.

This is the physical size of the sensor pixel array defined by `CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE`.

Units: Millimeters

This key is available on all devices.

See also:

- `SENSOR_INFO_PIXEL_ARRAY_SIZE`

### SENSOR_INFO_PIXEL_ARRAY_SIZE

    public static final Key<Size> SENSOR_INFO_PIXEL_ARRAY_SIZE

Dimensions of the full pixel array, possibly including black calibration pixels.

The pixel count of the full pixel array of the image sensor, which covers `CameraCharacteristics#SENSOR_INFO_PHYSICAL_SIZE` area. This represents the full pixel dimensions of the raw buffers produced by this sensor.

If a camera device supports raw sensor formats, either this or `CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE` is the maximum dimensions for the raw output formats listed in `StreamConfigurationMap` (this depends on whether or not the image sensor returns buffers containing pixels that are not part of the active array region for blacklevel calibration or other purposes).

Some parts of the full pixel array may not receive light from the scene, or be otherwise inactive. The `CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE` key defines the rectangle of active pixels that will be included in processed image formats.

Units: Pixels

This key is available on all devices.

See also:

- `SENSOR_INFO_PHYSICAL_SIZE`
- `SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE`

### SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE

    public static final Key<Rect> SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE

The area of the image sensor which corresponds to active pixels prior to the application of any geometric distortion correction.

This is the rectangle representing the size of the active region of the sensor (i.e. the region that actually receives light from the scene) before any geometric correction has been applied, and should be treated as the active region rectangle for any of the raw formats. All metadata associated with raw processing (e.g. the lens shading correction map, and radial distortion fields) treats the top, left of this rectangle as the origin, (0,0).

The size of this region determines the maximum field of view and the maximum number of pixels that an image from this sensor can contain, prior to the application of geometric distortion correction. The effective maximum pixel dimensions of a post-distortion-corrected image is given by the `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE` field, and the effective maximum field of view for a post-distortion-corrected image can be calculated by applying the geometric distortion correction fields to this rectangle, and cropping to the rectangle given in `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE`.

E.g. to calculate position of a pixel, (x,y), in a processed YUV output image with the dimensions in `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE` given the position of a pixel, (x', y'), in the raw pixel array with dimensions give in `CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE`:

1. Choose a pixel (x', y') within the active array region of the raw buffer given in `CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE`, otherwise this pixel is considered to be outside of the FOV, and will not be shown in the processed output image.
2. Apply geometric distortion correction to get the post-distortion pixel coordinate, (x_i, y_i). When applying geometric correction metadata, note that metadata for raw buffers is defined relative to the top, left of the `CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE` rectangle.
3. If the resulting corrected pixel coordinate is within the region given in `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE`, then the position of this pixel in the processed output image buffer is `(x_i - activeArray.left, y_i - activeArray.top)`, when the top, left coordinate of that buffer is treated as (0, 0).

Thus, for pixel x',y' = (25, 25) on a sensor where `CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE` is (100,100), `CameraCharacteristics#SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE` is (10, 10, 100, 100), `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE` is (20, 20, 80, 80), and the geometric distortion correction doesn't change the pixel coordinate, the resulting pixel selected in pixel coordinates would be x,y = (25, 25) relative to the top,left of the raw buffer with dimensions given in `CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE`, and would be (5, 5) relative to the top,left of post-processed YUV output buffer with dimensions given in `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE`.

The currently supported fields that correct for geometric distortion are:

1. `CameraCharacteristics#LENS_DISTORTION`.

If the camera device doesn't support geometric distortion correction, or all of the geometric distortion fields are no-ops, this rectangle will be the same as the post-distortion-corrected rectangle given in `CameraCharacteristics#SENSOR_INFO_ACTIVE_ARRAY_SIZE`.

This rectangle is defined relative to the full pixel array; (0,0) is the top-left of the full pixel array, and the size of the full pixel array is given by `CameraCharacteristics#SENSOR_INFO_PIXEL_ARRAY_SIZE`.

The pre-correction active array may be smaller than the full pixel array, since the full array may include black calibration pixels or other inactive regions.

Units: Pixel coordinates on the image sensor

This key is available on all devices.

See also:

- `LENS_DISTORTION`
- `SENSOR_INFO_ACTIVE_ARRAY_SIZE`
- `SENSOR_INFO_PIXEL_ARRAY_SIZE`
- `SENSOR_INFO_PRE_CORRECTION_ACTIVE_ARRAY_SIZE`

### SENSOR_INFO_SENSITIVITY_RANGE

    public static final Key<Range<Integer>> SENSOR_INFO_SENSITIVITY_RANGE

Range of sensitivities for `CaptureRequest#SENSOR_SENSITIVITY` supported by this camera device.

The values are the standard ISO sensitivity values, as defined in ISO 12232:2006.

Range of valid values:
Min <= 100, Max >= 800

Optional - The value for this key may be `null` on some devices.

Full capability - Present on all camera devices that report being `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CaptureRequest.SENSOR_SENSITIVITY`

### SENSOR_INFO_TIMESTAMP_SOURCE

    public static final Key<Integer> SENSOR_INFO_TIMESTAMP_SOURCE

The time base source for sensor capture start timestamps.

The timestamps provided for captures are always in nanoseconds and monotonic, but may not based on a time source that can be compared to other system time sources.

This characteristic defines the source for the timestamps, and therefore whether they can be compared against other system time sources/timestamps.

Possible values:

- `UNKNOWN`
- `REALTIME`

This key is available on all devices.

See also:

- `CameraMetadata.SENSOR_INFO_TIMESTAMP_SOURCE_UNKNOWN`
- `CameraMetadata.SENSOR_INFO_TIMESTAMP_SOURCE_REALTIME`

### SENSOR_INFO_WHITE_LEVEL

    public static final Key<Integer> SENSOR_INFO_WHITE_LEVEL

Maximum raw value output by sensor.

This specifies the fully-saturated encoding level for the raw sample values from the sensor. This is typically caused by the sensor becoming highly non-linear or clipping. The minimum for each channel is specified by the offset in the `CameraCharacteristics#SENSOR_BLACK_LEVEL_PATTERN` key.

The white level is typically determined either by sensor bit depth (8-14 bits is expected), or by the point where the sensor response becomes too non-linear to be useful. The default value for this is maximum representable value for a 16-bit raw sample (2^16 - 1).

The white level values of captured images may vary for different capture settings (e.g., `CaptureRequest#SENSOR_SENSITIVITY`). This key represents a coarse approximation for such case. It is recommended to use `CaptureResult#SENSOR_DYNAMIC_WHITE_LEVEL` for captures when supported by the camera device, which provides more accurate white level values.

Range of valid values:
> 255 (8-bit output)

Optional - The value for this key may be `null` on some devices.

See also:

- `SENSOR_BLACK_LEVEL_PATTERN`
- `CaptureResult.SENSOR_DYNAMIC_WHITE_LEVEL`
- `CaptureRequest.SENSOR_SENSITIVITY`

### SENSOR_MAX_ANALOG_SENSITIVITY

    public static final Key<Integer> SENSOR_MAX_ANALOG_SENSITIVITY

Maximum sensitivity that is implemented purely through analog gain.

For `CaptureRequest#SENSOR_SENSITIVITY` values less than or equal to this, all applied gain must be analog. For values above this, the gain applied can be a mix of analog and digital.

Optional - The value for this key may be `null` on some devices.

Full capability - Present on all camera devices that report being `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CaptureRequest.SENSOR_SENSITIVITY`

### SENSOR_OPTICAL_BLACK_REGIONS

    public static final Key<Rect[]> SENSOR_OPTICAL_BLACK_REGIONS

List of disjoint rectangles indicating the sensor optically shielded black pixel regions.

In most camera sensors, the active array is surrounded by some optically shielded pixel areas. By blocking light, these pixels provides a reliable black reference for black level compensation in active array region.

This key provides a list of disjoint rectangles specifying the regions of optically shielded (with metal shield) black pixel regions if the camera device is capable of reading out these black pixels in the output raw images. In comparison to the fixed black level values reported by `CameraCharacteristics#SENSOR_BLACK_LEVEL_PATTERN`, this key may provide a more accurate way for the application to calculate black level of each captured raw images.

When this key is reported, the `CaptureResult#SENSOR_DYNAMIC_BLACK_LEVEL` and `CaptureResult#SENSOR_DYNAMIC_WHITE_LEVEL` will also be reported.

Optional - The value for this key may be `null` on some devices.

See also:

- `SENSOR_BLACK_LEVEL_PATTERN`
- `CaptureResult.SENSOR_DYNAMIC_BLACK_LEVEL`
- `CaptureResult.SENSOR_DYNAMIC_WHITE_LEVEL`

### SENSOR_ORIENTATION

    public static final Key<Integer> SENSOR_ORIENTATION

Clockwise angle through which the output image needs to be rotated to be upright on the device screen in its native orientation.

Also defines the direction of rolling shutter readout, which is from top to bottom in the sensor's coordinate system.

Units: Degrees of clockwise rotation; always a multiple of 90

Range of valid values:
0, 90, 180, 270

This key is available on all devices.

### SENSOR_REFERENCE_ILLUMINANT1

    public static final Key<Integer> SENSOR_REFERENCE_ILLUMINANT1

The standard reference illuminant used as the scene light source when calculating the `CameraCharacteristics#SENSOR_COLOR_TRANSFORM1`, `CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM1`, and `CameraCharacteristics#SENSOR_FORWARD_MATRIX1` matrices.

The values in this key correspond to the values defined for the EXIF LightSource tag. These illuminants are standard light sources that are often used calibrating camera devices.

If this key is present, then `CameraCharacteristics#SENSOR_COLOR_TRANSFORM1`, `CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM1`, and `CameraCharacteristics#SENSOR_FORWARD_MATRIX1` will also be present.

Some devices may choose to provide a second set of calibration information for improved quality, including `CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT2` and its corresponding matrices.

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if the camera device has RAW capability.

Possible values:

- `DAYLIGHT`
- `FLUORESCENT`
- `TUNGSTEN`
- `FLASH`
- `FINE_WEATHER`
- `CLOUDY_WEATHER`
- `SHADE`
- `DAYLIGHT_FLUORESCENT`
- `DAY_WHITE_FLUORESCENT`
- `COOL_WHITE_FLUORESCENT`
- `WHITE_FLUORESCENT`
- `STANDARD_A`
- `STANDARD_B`
- `STANDARD_C`
- `D55`
- `D65`
- `D75`
- `D50`
- `ISO_STUDIO_TUNGSTEN`

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `SENSOR_CALIBRATION_TRANSFORM1`
- `SENSOR_COLOR_TRANSFORM1`
- `SENSOR_FORWARD_MATRIX1`
- `SENSOR_REFERENCE_ILLUMINANT2`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_FLUORESCENT`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_TUNGSTEN`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_FLASH`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_FINE_WEATHER`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_CLOUDY_WEATHER`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_SHADE`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_DAYLIGHT_FLUORESCENT`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_DAY_WHITE_FLUORESCENT`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_COOL_WHITE_FLUORESCENT`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_WHITE_FLUORESCENT`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_STANDARD_A`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_STANDARD_B`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_STANDARD_C`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_D55`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_D65`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_D75`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_D50`
- `CameraMetadata.SENSOR_REFERENCE_ILLUMINANT1_ISO_STUDIO_TUNGSTEN`

### SENSOR_REFERENCE_ILLUMINANT2

    public static final Key<Byte> SENSOR_REFERENCE_ILLUMINANT2

The standard reference illuminant used as the scene light source when calculating the `CameraCharacteristics#SENSOR_COLOR_TRANSFORM2`, `CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM2`, and `CameraCharacteristics#SENSOR_FORWARD_MATRIX2` matrices.

See `CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1` for more details.

If this key is present, then `CameraCharacteristics#SENSOR_COLOR_TRANSFORM2`, `CameraCharacteristics#SENSOR_CALIBRATION_TRANSFORM2`, and `CameraCharacteristics#SENSOR_FORWARD_MATRIX2` will also be present.

Starting from Android Q, this key will not be present for a MONOCHROME camera, even if the camera device has RAW capability.

Range of valid values:
Any value listed in `CameraCharacteristics#SENSOR_REFERENCE_ILLUMINANT1`

Optional - The value for this key may be `null` on some devices.

Permission `Manifest.permission.CAMERA` is needed to access this property

See also:

- `SENSOR_CALIBRATION_TRANSFORM2`
- `SENSOR_COLOR_TRANSFORM2`
- `SENSOR_FORWARD_MATRIX2`
- `SENSOR_REFERENCE_ILLUMINANT1`

### SHADING_AVAILABLE_MODES

    public static final Key<int[]> SHADING_AVAILABLE_MODES

List of lens shading modes for `CaptureRequest#SHADING_MODE` that are supported by this camera device.

This list contains lens shading modes that can be set for the camera device. Camera devices that support the MANUAL_POST_PROCESSING capability will always list OFF and FAST mode. This includes all FULL level devices. LEGACY devices will always only support FAST mode.

Range of valid values:
Any value listed in `CaptureRequest#SHADING_MODE`

This key is available on all devices.

See also:

- `CaptureRequest.SHADING_MODE`

### STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES

    public static final Key<int[]> STATISTICS_INFO_AVAILABLE_FACE_DETECT_MODES

List of face detection modes for `CaptureRequest#STATISTICS_FACE_DETECT_MODE` that are supported by this camera device.

OFF is always supported.

Range of valid values:
Any value listed in `CaptureRequest#STATISTICS_FACE_DETECT_MODE`

This key is available on all devices.

See also:

- `CaptureRequest.STATISTICS_FACE_DETECT_MODE`

### STATISTICS_INFO_AVAILABLE_HOT_PIXEL_MAP_MODES

    public static final Key<boolean[]> STATISTICS_INFO_AVAILABLE_HOT_PIXEL_MAP_MODES

List of hot pixel map output modes for `CaptureRequest#STATISTICS_HOT_PIXEL_MAP_MODE` that are supported by this camera device.

If no hotpixel map output is available for this camera device, this will contain only `false`.

ON is always supported on devices with the RAW capability.

Range of valid values:
Any value listed in `CaptureRequest#STATISTICS_HOT_PIXEL_MAP_MODE`

Optional - The value for this key may be `null` on some devices.

See also:

- `CaptureRequest.STATISTICS_HOT_PIXEL_MAP_MODE`

### STATISTICS_INFO_AVAILABLE_LENS_SHADING_MAP_MODES

    public static final Key<int[]> STATISTICS_INFO_AVAILABLE_LENS_SHADING_MAP_MODES

List of lens shading map output modes for `CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE` that are supported by this camera device.

If no lens shading map output is available for this camera device, this key will contain only OFF.

ON is always supported on devices with the RAW capability. LEGACY mode devices will always only support OFF.

Range of valid values:
Any value listed in `CaptureRequest#STATISTICS_LENS_SHADING_MAP_MODE`

Optional - The value for this key may be `null` on some devices.

See also:

- `CaptureRequest.STATISTICS_LENS_SHADING_MAP_MODE`

### STATISTICS_INFO_AVAILABLE_OIS_DATA_MODES

    public static final Key<int[]> STATISTICS_INFO_AVAILABLE_OIS_DATA_MODES

List of OIS data output modes for `CaptureRequest#STATISTICS_OIS_DATA_MODE` that are supported by this camera device.

If no OIS data output is available for this camera device, this key will contain only OFF.

Range of valid values:
Any value listed in `CaptureRequest#STATISTICS_OIS_DATA_MODE`

Optional - The value for this key may be `null` on some devices.

See also:

- `CaptureRequest.STATISTICS_OIS_DATA_MODE`

### STATISTICS_INFO_MAX_FACE_COUNT

    public static final Key<Integer> STATISTICS_INFO_MAX_FACE_COUNT

The maximum number of simultaneously detectable faces.

Range of valid values:
0 for cameras without available face detection; otherwise: `>=4` for LIMITED or FULL hwlevel devices or `>0` for LEGACY devices.

This key is available on all devices.

### SYNC_MAX_LATENCY

    public static final Key<Integer> SYNC_MAX_LATENCY

The maximum number of frames that can occur after a request (different than the previous) has been submitted, and before the result's state becomes synchronized.

This defines the maximum distance (in number of metadata results), between the frame number of the request that has new controls to apply and the frame number of the result that has all the controls applied.

In other words this acts as an upper boundary for how many frames must occur before the camera device knows for a fact that the new submitted camera settings have been applied in outgoing frames.

Units: Frame counts

Possible values:

- `PER_FRAME_CONTROL`
- `UNKNOWN`

Available values for this device:
A positive value, PER_FRAME_CONTROL, or UNKNOWN.

This key is available on all devices.

See also:

- `CameraMetadata.SYNC_MAX_LATENCY_PER_FRAME_CONTROL`
- `CameraMetadata.SYNC_MAX_LATENCY_UNKNOWN`

### TONEMAP_AVAILABLE_TONE_MAP_MODES

    public static final Key<int[]> TONEMAP_AVAILABLE_TONE_MAP_MODES

List of tonemapping modes for `CaptureRequest#TONEMAP_MODE` that are supported by this camera device.

Camera devices that support the MANUAL_POST_PROCESSING capability will always contain at least one of below mode combinations:

- CONTRAST_CURVE, FAST and HIGH_QUALITY
- GAMMA_VALUE, PRESET_CURVE, FAST and HIGH_QUALITY

This includes all FULL level devices.

Range of valid values:
Any value listed in `CaptureRequest#TONEMAP_MODE`

Optional - The value for this key may be `null` on some devices.

Full capability - Present on all camera devices that report being `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CaptureRequest.TONEMAP_MODE`

### TONEMAP_MAX_CURVE_POINTS

    public static final Key<Integer> TONEMAP_MAX_CURVE_POINTS

Maximum number of supported points in the tonemap curve that can be used for `CaptureRequest#TONEMAP_CURVE`.

If the actual number of points provided by the application (in `CaptureRequest#TONEMAP_CURVE`*) is less than this maximum, the camera device will resample the curve to its internal representation, using linear interpolation.

The output curves in the result metadata may have a different number of points than the input curves, and will represent the actual hardware curves used as closely as possible when linearly interpolated.

Optional - The value for this key may be `null` on some devices.

Full capability - Present on all camera devices that report being `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL_FULL` devices in the `CameraCharacteristics#INFO_SUPPORTED_HARDWARE_LEVEL` key

See also:

- `INFO_SUPPORTED_HARDWARE_LEVEL`
- `CaptureRequest.TONEMAP_CURVE`

## Public methods

### get

    public T get (Key<T> key)

Get a camera characteristics field value.

The field definitions can be found in `CameraCharacteristics`.

Querying the value for the same key more than once will return a value which is equal to the previous queried value.

Parameters
`key` | `Key`: The characteristics field to read.

Returns
`T` | The value of that key, or `null` if the field is not set.

Throws
`IllegalArgumentException` | if the key was not valid

### getAvailableCaptureRequestKeys

    public List<Key<?>> getAvailableCaptureRequestKeys ()

Returns the list of keys supported by this `CameraDevice` for querying with a `CaptureRequest`.

The list returned is not modifiable, so any attempts to modify it will throw a `UnsupportedOperationException`.

Each key is only listed once in the list. The order of the keys is undefined.

Note that there is no `getAvailableCameraCharacteristicsKeys()` -- use `getKeys()` instead.

Returns
`List<Key<?>>` | List of keys supported by this CameraDevice for CaptureRequests. This value cannot be `null`.

### getAvailableCaptureResultKeys

    public List<Key<?>> getAvailableCaptureResultKeys ()

Returns the list of keys supported by this `CameraDevice` for querying with a `CaptureResult`.

The list returned is not modifiable, so any attempts to modify it will throw a `UnsupportedOperationException`.

Each key is only listed once in the list. The order of the keys is undefined.

Note that there is no `getAvailableCameraCharacteristicsKeys()` -- use `getKeys()` instead.

Returns
`List<Key<?>>` | List of keys supported by this CameraDevice for CaptureResults. This value cannot be `null`.

### getAvailablePhysicalCameraRequestKeys

    public List<Key<?>> getAvailablePhysicalCameraRequestKeys ()

Returns a subset of `getAvailableCaptureRequestKeys()` keys that can be overridden for physical devices backing a logical multi-camera.

This is a subset of android.request.availableRequestKeys which contains a list of keys that can be overridden using `CaptureRequest.Builder#setPhysicalCameraKey`. The respective value of such request key can be obtained by calling `CaptureRequest.Builder#getPhysicalCameraKey`. Capture requests that contain individual physical device requests must be built via `CameraDevice.createCaptureRequest(int, Set)`.

The list returned is not modifiable, so any attempts to modify it will throw a `UnsupportedOperationException`.

Each key is only listed once in the list. The order of the keys is undefined.

Returns
`List<Key<?>>` | List of keys that can be overridden in individual physical device requests. In case the camera device doesn't support such keys the list can be null.

### getAvailableSessionKeys

    public List<Key<?>> getAvailableSessionKeys ()

Returns a subset of `getAvailableCaptureRequestKeys()` keys that the camera device can pass as part of the capture session initialization.

This list includes keys that are difficult to apply per-frame and can result in unexpected delays when modified during the capture session lifetime. Typical examples include parameters that require a time-consuming hardware re-configuration or internal camera pipeline change. For performance reasons we suggest clients to pass their initial values as part of `SessionConfiguration#setSessionParameters`. Once the camera capture session is enabled it is also recommended to avoid changing them from their initial values set in `SessionConfiguration#setSessionParameters`. Control over session parameters can still be exerted in capture requests but clients should be aware and expect delays during their application. An example usage scenario could look like this:

- The camera client starts by querying the session parameter key list via `getAvailableSessionKeys()`.
- Before triggering the capture session create sequence, a capture request must be built via `CameraDevice#createCaptureRequest` using an appropriate template matching the particular use case.
- The client should go over the list of session parameters and check whether some of the keys listed matches with the parameters that they intend to modify as part of the first capture request.
- If there is no such match, the capture request can be passed unmodified to `SessionConfiguration#setSessionParameters`.
- If matches do exist, the client should update the respective values and pass the request to `SessionConfiguration#setSessionParameters`.
- After the capture session initialization completes the session parameter key list can continue to serve as reference when posting or updating further requests. As mentioned above further changes to session parameters should ideally be avoided, if updates are necessary however clients could expect a delay/glitch during the parameter switch.

The list returned is not modifiable, so any attempts to modify it will throw a `UnsupportedOperationException`.

Each key is only listed once in the list. The order of the keys is undefined.

Returns
`List<Key<?>>` | List of keys that can be passed during capture session initialization. In case the camera device doesn't support such keys the list can be null.

### getKeys

    public List<Key<?>> getKeys ()

Returns a list of the keys contained in this map.

The list returned is not modifiable, so any attempts to modify it will throw a `UnsupportedOperationException`.

All values retrieved by a key from this list with `#get` are guaranteed to be non-`null`. Each key is only listed once in the list. The order of the keys is undefined.

Returns
`List<Key<?>>` | This value cannot be `null`.

### getKeysNeedingPermission

    public List<Key<?>> getKeysNeedingPermission ()

Returns a subset of the list returned by `getKeys()` with all keys that require camera clients to obtain the `Manifest.permission.CAMERA` permission.

If an application calls `CameraManager#getCameraCharacteristics` without holding the `Manifest.permission.CAMERA` permission, all keys in this list will not be available, and calling `get(CameraCharacteristics.Key)` will return null for those keys. If the application obtains the `Manifest.permission.CAMERA` permission, then the CameraCharacteristics from a call to a subsequent `CameraManager#getCameraCharacteristics` will have the keys available.

The list returned is not modifiable, so any attempts to modify it will throw a `UnsupportedOperationException`.

Each key is only listed once in the list. The order of the keys is undefined.

Returns
`List<Key<?>>` | List of camera characteristic keys that require the `Manifest.permission.CAMERA` permission. The list can be empty in case there are no currently present keys that need additional permission.

### getPhysicalCameraIds

    public Set<String> getPhysicalCameraIds ()

Returns the set of physical camera ids that this logical `CameraDevice` is made up of.

A camera device is a logical camera if it has REQUEST_AVAILABLE_CAPABILITIES_LOGICAL_MULTI_CAMERA capability. If the camera device doesn't have the capability, the return value will be an empty set.

Prior to API level 29, all returned IDs are guaranteed to be returned by `CameraManager#getCameraIdList`, and can be opened directly by `CameraManager#openCamera`. Starting from API level 29, for each of the returned ID, if it's also returned by `CameraManager#getCameraIdList`, it can be used as a standalone camera by `CameraManager#openCamera`. Otherwise, the camera ID can only be used as part of the current logical camera.

The set returned is not modifiable, so any attempts to modify it will throw a `UnsupportedOperationException`.

Returns
`Set<String>` | Set of physical camera ids for this logical camera device. This value cannot be `null`.

### getRecommendedStreamConfigurationMap

    public RecommendedStreamConfigurationMap getRecommendedStreamConfigurationMap (int usecase)

Retrieve camera device recommended stream configuration map `RecommendedStreamConfigurationMap` for a given use case.

The stream configurations advertised here are efficient in terms of power and performance for common use cases like preview, video, snapshot, etc. The recommended maps are usually only small subsets of the exhaustive list provided in `SCALER_STREAM_CONFIGURATION_MAP` and suggested for a particular use case by the camera device implementation. For further information about the expected configurations in various scenarios please refer to:

- `RecommendedStreamConfigurationMap#USECASE_PREVIEW`
- `RecommendedStreamConfigurationMap#USECASE_RECORD`
- `RecommendedStreamConfigurationMap#USECASE_VIDEO_SNAPSHOT`
- `RecommendedStreamConfigurationMap#USECASE_SNAPSHOT`
- `RecommendedStreamConfigurationMap#USECASE_RAW`
- `RecommendedStreamConfigurationMap#USECASE_ZSL`
- `RecommendedStreamConfigurationMap#USECASE_LOW_LATENCY_SNAPSHOT`

For example on how this can be used by camera clients to find out the maximum recommended preview and snapshot resolution, consider the following pseudo-code:

     public static Size getMaxSize(Size... sizes) {
         if (sizes == null || sizes.length == 0) {
             throw new IllegalArgumentException("sizes was empty");
         }

         Size sz = sizes[0];
         for (Size size : sizes) {
             if (size.getWidth() * size.getHeight() > sz.getWidth() * sz.getHeight()) {
                 sz = size;
             }
         }

         return sz;
     }

     CameraCharacteristics characteristics =
             cameraManager.getCameraCharacteristics(cameraId);
     RecommendedStreamConfigurationMap previewConfig =
             characteristics.getRecommendedStreamConfigurationMap(
                      RecommendedStreamConfigurationMap.USECASE_PREVIEW);
     RecommendedStreamConfigurationMap snapshotConfig =
             characteristics.getRecommendedStreamConfigurationMap(
                      RecommendedStreamConfigurationMap.USECASE_SNAPSHOT);

     if ((previewConfig != null) && (snapshotConfig != null)) {

          Set snapshotSizeSet = snapshotConfig.getOutputSizes(
                  ImageFormat.JPEG);
          Size[] snapshotSizes = new Size[snapshotSizeSet.size()];
          snapshotSizes = snapshotSizeSet.toArray(snapshotSizes);
          Size suggestedMaxJpegSize = getMaxSize(snapshotSizes);

          Set previewSizeSet = snapshotConfig.getOutputSizes(
                  ImageFormat.PRIVATE);
          Size[] previewSizes = new Size[previewSizeSet.size()];
          previewSizes = previewSizeSet.toArray(previewSizes);
          Size suggestedMaxPreviewSize = getMaxSize(previewSizes);
     }

Similar logic can be used for other use cases as well.

Support for recommended stream configurations is optional. In case there a no suggested configurations for the particular use case, please refer to `SCALER_STREAM_CONFIGURATION_MAP` for the exhaustive available list.

Parameters
`usecase` | `int`: Use case id. Value is `RecommendedStreamConfigurationMap.USECASE_PREVIEW`, `RecommendedStreamConfigurationMap.USECASE_RECORD`, `RecommendedStreamConfigurationMap.USECASE_VIDEO_SNAPSHOT`, `RecommendedStreamConfigurationMap.USECASE_SNAPSHOT`, `RecommendedStreamConfigurationMap.USECASE_ZSL`, `RecommendedStreamConfigurationMap.USECASE_RAW`, or `RecommendedStreamConfigurationMap.USECASE_LOW_LATENCY_SNAPSHOT`

Returns
`RecommendedStreamConfigurationMap` | Valid `RecommendedStreamConfigurationMap` or null in case the camera device doesn't have any recommendation for this use case or the recommended configurations are invalid.

Throws
`IllegalArgumentException` | In case the use case argument is invalid.

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*