Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fdf749b2 authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera: Extend FEATURE_CAMERA_CONCURRENT to old API levels

Since running the front and back camera at the same time has been
possible since forever, there's no reason devices on older API levels
can't declare the FEATURE_CAMERA_CONCURRENT flag, even with the new
query APIs not present.  Explicitly document that the flag can be set
on API level 29 or earlier, and what it means.

Test: m offline-sdk-docs
Bug: 77960042
Change-Id: I186cb53d95debcc62c98afdef8c629bd9c6a5919
parent b79cde63
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -2017,7 +2017,15 @@ 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()}
     * 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";