diff options
author | Tyler Gunn <tgunn@google.com> | 2015-06-03 10:09:59 -0700 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2015-06-03 10:09:59 -0700 |
commit | 87b73f370e2b8a76b0540580f43edba6ec21c6cf (patch) | |
tree | 3990fd7eb2b25e1081388fb3c0a10e8459380728 /telephony/java/com/android | |
parent | 6ef831fe1a953f6b67f3c6a43bde38e80689698b (diff) | |
download | frameworks_base-87b73f370e2b8a76b0540580f43edba6ec21c6cf.zip frameworks_base-87b73f370e2b8a76b0540580f43edba6ec21c6cf.tar.gz frameworks_base-87b73f370e2b8a76b0540580f43edba6ec21c6cf.tar.bz2 |
API Cleanup: Remove VideoState class.
- Remove VideoState class.
- Replace references to VideoState constants with VideoProfile equivalent.
- Push VideoState static methods into VideoProfile.
Bug: 21573551
Change-Id: I1bca02772b5b7d86643f612824b07faef7618725
Diffstat (limited to 'telephony/java/com/android')
-rw-r--r-- | telephony/java/com/android/ims/ImsCallProfile.java | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/telephony/java/com/android/ims/ImsCallProfile.java b/telephony/java/com/android/ims/ImsCallProfile.java index 604d32d..1c69794 100644 --- a/telephony/java/com/android/ims/ImsCallProfile.java +++ b/telephony/java/com/android/ims/ImsCallProfile.java @@ -313,28 +313,28 @@ public class ImsCallProfile implements Parcelable { * @return The video state. */ public static int getVideoStateFromImsCallProfile(ImsCallProfile callProfile) { - int videostate = VideoProfile.VideoState.AUDIO_ONLY; + int videostate = VideoProfile.STATE_AUDIO_ONLY; switch (callProfile.mCallType) { case CALL_TYPE_VT_TX: - videostate = VideoProfile.VideoState.TX_ENABLED; + videostate = VideoProfile.STATE_TX_ENABLED; break; case CALL_TYPE_VT_RX: - videostate = VideoProfile.VideoState.RX_ENABLED; + videostate = VideoProfile.STATE_RX_ENABLED; break; case CALL_TYPE_VT: - videostate = VideoProfile.VideoState.BIDIRECTIONAL; + videostate = VideoProfile.STATE_BIDIRECTIONAL; break; case CALL_TYPE_VOICE: - videostate = VideoProfile.VideoState.AUDIO_ONLY; + videostate = VideoProfile.STATE_AUDIO_ONLY; break; default: - videostate = VideoProfile.VideoState.AUDIO_ONLY; + videostate = VideoProfile.STATE_AUDIO_ONLY; break; } - if (callProfile.isVideoPaused() && videostate != VideoProfile.VideoState.AUDIO_ONLY) { - videostate |= VideoProfile.VideoState.PAUSED; + if (callProfile.isVideoPaused() && videostate != VideoProfile.STATE_AUDIO_ONLY) { + videostate |= VideoProfile.STATE_PAUSED; } else { - videostate &= ~VideoProfile.VideoState.PAUSED; + videostate &= ~VideoProfile.STATE_PAUSED; } return videostate; } @@ -347,9 +347,9 @@ public class ImsCallProfile implements Parcelable { * @return The call type. */ public static int getCallTypeFromVideoState(int videoState) { - boolean videoTx = isVideoStateSet(videoState, VideoProfile.VideoState.TX_ENABLED); - boolean videoRx = isVideoStateSet(videoState, VideoProfile.VideoState.RX_ENABLED); - boolean isPaused = isVideoStateSet(videoState, VideoProfile.VideoState.PAUSED); + boolean videoTx = isVideoStateSet(videoState, VideoProfile.STATE_TX_ENABLED); + boolean videoRx = isVideoStateSet(videoState, VideoProfile.STATE_RX_ENABLED); + boolean isPaused = isVideoStateSet(videoState, VideoProfile.STATE_PAUSED); if (isPaused) { return ImsCallProfile.CALL_TYPE_VT_NODIR; } else if (videoTx && !videoRx) { |