API Cleanup: Remove references to VideoState class.
- Replace use of VideoState static methods with VideoProfile equivalent.
- Replace use of VideoState consts with VideoProfile equivalent.
Bug: 21573551
Change-Id: I567abaf4b6c0de51656869d1c7367a7ff3e51cd1
diff --git a/src/com/android/server/telecom/CallsManager.java b/src/com/android/server/telecom/CallsManager.java
index 2d74d88..d325774 100644
--- a/src/com/android/server/telecom/CallsManager.java
+++ b/src/com/android/server/telecom/CallsManager.java
@@ -24,7 +24,6 @@
import android.os.SystemProperties;
import android.os.Trace;
import android.provider.CallLog.Calls;
-import android.telecom.AudioState;
import android.telecom.CallAudioState;
import android.telecom.Conference;
import android.telecom.Connection;
@@ -400,7 +399,7 @@
boolean hasVideoCall() {
for (Call call : mCalls) {
- if (call.getVideoState() != VideoProfile.VideoState.AUDIO_ONLY) {
+ if (call.getVideoState() != VideoProfile.STATE_AUDIO_ONLY) {
return true;
}
}
@@ -708,7 +707,7 @@
// We do not update the UI until we get confirmation of the answer() through
// {@link #markCallAsActive}.
call.answer(videoState);
- if (VideoProfile.VideoState.isVideo(videoState) &&
+ if (VideoProfile.isVideo(videoState) &&
!mWiredHeadsetManager.isPluggedIn() &&
!mCallAudioManager.isBluetoothDeviceAvailable() &&
isSpeakerEnabledForVideoCalls()) {