diff options
author | Andrew Lee <anwlee@google.com> | 2014-07-28 14:04:20 -0700 |
---|---|---|
committer | Andrew Lee <anwlee@google.com> | 2014-07-29 13:35:59 -0700 |
commit | 48332d622b138aeb3a198efe29bb3d4705411f62 (patch) | |
tree | c9f4378b192b8cb159e64e34334b3be72ba6e06d /telephony | |
parent | 4d193bdbe70d82842ff3cba614a9ed6f32f1449b (diff) | |
download | frameworks_base-48332d622b138aeb3a198efe29bb3d4705411f62.zip frameworks_base-48332d622b138aeb3a198efe29bb3d4705411f62.tar.gz frameworks_base-48332d622b138aeb3a198efe29bb3d4705411f62.tar.bz2 |
Convert VideoState into an inner class.
- Add helper functions to make it easier to figure out properties of a
particular video state, to make things more convenient.
- Update references and documentation.
Bug: 16629892
Change-Id: I621532e8cab080afd56e5db739b9edbee6261f74
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/com/android/ims/ImsCallProfile.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/telephony/java/com/android/ims/ImsCallProfile.java b/telephony/java/com/android/ims/ImsCallProfile.java index 6896f4d..adcb435 100644 --- a/telephony/java/com/android/ims/ImsCallProfile.java +++ b/telephony/java/com/android/ims/ImsCallProfile.java @@ -298,18 +298,18 @@ public class ImsCallProfile implements Parcelable { public static int getVideoStateFromCallType(int callType) { switch (callType) { case CALL_TYPE_VT_NODIR: - return VideoCallProfile.VIDEO_STATE_PAUSED | - VideoCallProfile.VIDEO_STATE_BIDIRECTIONAL; + return VideoCallProfile.VideoState.PAUSED | + VideoCallProfile.VideoState.BIDIRECTIONAL; case CALL_TYPE_VT_TX: - return VideoCallProfile.VIDEO_STATE_TX_ENABLED; + return VideoCallProfile.VideoState.TX_ENABLED; case CALL_TYPE_VT_RX: - return VideoCallProfile.VIDEO_STATE_RX_ENABLED; + return VideoCallProfile.VideoState.RX_ENABLED; case CALL_TYPE_VT: - return VideoCallProfile.VIDEO_STATE_BIDIRECTIONAL; + return VideoCallProfile.VideoState.BIDIRECTIONAL; case CALL_TYPE_VOICE: - return VideoCallProfile.VIDEO_STATE_AUDIO_ONLY; + return VideoCallProfile.VideoState.AUDIO_ONLY; default: - return VideoCallProfile.VIDEO_STATE_AUDIO_ONLY; + return VideoCallProfile.VideoState.AUDIO_ONLY; } } @@ -321,9 +321,9 @@ public class ImsCallProfile implements Parcelable { * @return The call type. */ public static int getCallTypeFromVideoState(int videoState) { - boolean videoTx = isVideoStateSet(videoState, VideoCallProfile.VIDEO_STATE_TX_ENABLED); - boolean videoRx = isVideoStateSet(videoState, VideoCallProfile.VIDEO_STATE_RX_ENABLED); - boolean isPaused = isVideoStateSet(videoState, VideoCallProfile.VIDEO_STATE_PAUSED); + boolean videoTx = isVideoStateSet(videoState, VideoCallProfile.VideoState.TX_ENABLED); + boolean videoRx = isVideoStateSet(videoState, VideoCallProfile.VideoState.RX_ENABLED); + boolean isPaused = isVideoStateSet(videoState, VideoCallProfile.VideoState.PAUSED); if (isPaused) { return ImsCallProfile.CALL_TYPE_VT_NODIR; } else if (videoTx && !videoRx) { |