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

Commit 1fca0e71 authored by Rekha Kumar's avatar Rekha Kumar Committed by Linux Build Service Account
Browse files

IMS-VT: Upgrade/Downgrade change

-Add isVideo API to VideoProfile.VideoState

Change-Id: I0b0b5cc9f59102767dc6947528838b38f18ee38e
parent 5971ffbf
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -180,6 +180,16 @@ public class VideoProfile implements Parcelable {
            return !hasState(videoState, TX_ENABLED) && !hasState(videoState, RX_ENABLED);
        }

        /**
         * Whether the video state is any of the video type
         * @param videoState The video state.
         * @return Returns true if the video state TX or RX or Bidirectional
         */
        public static boolean isVideo(int videoState) {
            return hasState(videoState, TX_ENABLED) || hasState(videoState, RX_ENABLED)
                    || hasState(videoState, BIDIRECTIONAL);
        }

        /**
         * Whether the video transmission is enabled.
         * @param videoState The video state.