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

Commit 7edbe283 authored by Tyler Gunn's avatar Tyler Gunn
Browse files

Adding camera failure/ready session events.

The VT provider can use these to inform In-Call of a camera failure and
the camera becoming ready again after recovery.

Bug: 16900653
Change-Id: I279176860b30d02f55732b327ac3385eff8d19a8
parent 7c91b343
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -28901,6 +28901,8 @@ package android.telecomm {
    method public abstract void setPreviewSurface(android.view.Surface);
    method public abstract void setVideoCallListener(android.telecomm.InCallService.VideoCall.Listener);
    method public abstract void setZoom(float);
    field public static final int SESSION_EVENT_CAMERA_FAILURE = 5; // 0x5
    field public static final int SESSION_EVENT_CAMERA_READY = 6; // 0x6
    field public static final int SESSION_EVENT_RX_PAUSE = 1; // 0x1
    field public static final int SESSION_EVENT_RX_RESUME = 2; // 0x2
    field public static final int SESSION_EVENT_TX_START = 3; // 0x3
+18 −3
Original line number Diff line number Diff line
@@ -207,11 +207,24 @@ public abstract class InCallService extends Service {
        public static final int SESSION_EVENT_TX_START = 3;

        /**
         * Video transmission has stopped. This occur after a negotiated stop of video transmission when
         * the underlying protocol has actually stopped transmitting video to the remote party.
         * Video transmission has stopped. This occurs after a negotiated stop of video transmission
         * when the underlying protocol has actually stopped transmitting video to the remote party.
         */
        public static final int SESSION_EVENT_TX_STOP = 4;

        /**
         * A camera failure has occurred for the selected camera.  The In-Call UI can use this as a
         * cue to inform the user the camera is not available.
         */
        public static final int SESSION_EVENT_CAMERA_FAILURE = 5;

        /**
         * Issued after {@code SESSION_EVENT_CAMERA_FAILURE} when the camera is once again ready for
         * operation.  The In-Call UI can use this as a cue to inform the user that the camera has
         * become available again.
         */
        public static final int SESSION_EVENT_CAMERA_READY = 6;

        /**
         * Session modify request was successful.
         */
@@ -359,7 +372,9 @@ public abstract class InCallService extends Service {
             * Valid values are: {@link VideoCall#SESSION_EVENT_RX_PAUSE},
             * {@link VideoCall#SESSION_EVENT_RX_RESUME},
             * {@link VideoCall#SESSION_EVENT_TX_START},
             * {@link VideoCall#SESSION_EVENT_TX_STOP}
             * {@link VideoCall#SESSION_EVENT_TX_STOP},
             * {@link VideoCall#SESSION_EVENT_CAMERA_FAILURE},
             * {@link VideoCall#SESSION_EVENT_CAMERA_READY}
             *
             * @param event The event.
             */