Merge "Camera: Extend FEATURE_CAMERA_CONCURRENT to old API levels" into rvc-dev am: 80a18c0a7b am: 5600e116c1

Change-Id: I4ec702d83daf6751ecd3a210030ee795785fd86b
This commit is contained in:
TreeHugger Robot
2020-05-27 01:12:34 +00:00
committed by Automerger Merge Worker

View File

@@ -2032,8 +2032,16 @@ public abstract class PackageManager {
/**
* Feature for {@link #getSystemAvailableFeatures} and
* {@link #hasSystemFeature}: The device's main front and back cameras can stream
* concurrently as described in {@link
* android.hardware.camera2.CameraManager#getConcurrentCameraIds()}
* concurrently as described in {@link
* android.hardware.camera2.CameraManager#getConcurrentCameraIds()}.
* </p>
* <p>While {@link android.hardware.camera2.CameraManager#getConcurrentCameraIds()} and
* associated APIs are only available on API level 30 or newer, this feature flag may be
* advertised by devices on API levels below 30. If present on such a device, the same
* guarantees hold: The main front and main back camera can be used at the same time, with
* guaranteed stream configurations as defined in the table for concurrent streaming at
* {@link android.hardware.camera2.CameraDevice#createCaptureSession(android.hardware.camera2.params.SessionConfiguration)}.
* </p>
*/
@SdkConstant(SdkConstantType.FEATURE)
public static final String FEATURE_CAMERA_CONCURRENT = "android.hardware.camera.concurrent";