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

Commit a6452ab5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Camera: Clarify doc for registerAvailabilityCallback" into tm-dev am:...

Merge "Camera: Clarify doc for registerAvailabilityCallback" into tm-dev am: 837979c6 am: efa05a99 am: 07ee54c2

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20919943



Change-Id: I3b7f67f9a0196b21ef2e8e64d0bb762e8a9502aa
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents fed86580 07ee54c2
Loading
Loading
Loading
Loading
+17 −0
Original line number Original line Diff line number Diff line
@@ -398,6 +398,23 @@ public final class CameraManager {
     * except that it uses {@link java.util.concurrent.Executor} as an argument
     * except that it uses {@link java.util.concurrent.Executor} as an argument
     * instead of {@link android.os.Handler}.</p>
     * instead of {@link android.os.Handler}.</p>
     *
     *
     * <p>Note: If the order between some availability callbacks matters, the implementation of the
     * executor should handle those callbacks in the same thread to maintain the callbacks' order.
     * Some examples are:</p>
     *
     * <ul>
     *
     * <li>{@link AvailabilityCallback#onCameraAvailable} and
     * {@link AvailabilityCallback#onCameraUnavailable} of the same camera ID.</li>
     *
     * <li>{@link AvailabilityCallback#onCameraAvailable} or
     * {@link AvailabilityCallback#onCameraUnavailable} of a logical multi-camera, and {@link
     * AvailabilityCallback#onPhysicalCameraUnavailable} or
     * {@link AvailabilityCallback#onPhysicalCameraAvailable} of its physical
     * cameras.</li>
     *
     * </ul>
     *
     * @param executor The executor which will be used to invoke the callback.
     * @param executor The executor which will be used to invoke the callback.
     * @param callback the new callback to send camera availability notices to
     * @param callback the new callback to send camera availability notices to
     *
     *