summaryrefslogtreecommitdiff
path: root/InCallUI/src/com/android/incallui/InCallPresenter.java
diff options
context:
space:
mode:
authorIhab Awad <ihab@google.com>2014-08-07 19:48:36 -0700
committerIhab Awad <ihab@google.com>2014-08-13 10:53:28 -0700
commit3718dcb345e77e421ab18a760e48f0c3a760fcca (patch)
treed4f8b7c8381b2e949b30a9815902377d44301394 /InCallUI/src/com/android/incallui/InCallPresenter.java
parentcf1c6b805796866e4c84ca52ca00b77bd0785200 (diff)
Final structural tweaks to Telecomm API (3/8)
Bug: 16416927 Bug: 16494880 Change-Id: If756941a5bdd25ff8ac633a56fe90c894d4a46a4
Diffstat (limited to 'InCallUI/src/com/android/incallui/InCallPresenter.java')
-rw-r--r--InCallUI/src/com/android/incallui/InCallPresenter.java24
1 files changed, 12 insertions, 12 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallPresenter.java b/InCallUI/src/com/android/incallui/InCallPresenter.java
index 79085acfe..66890eb8c 100644
--- a/InCallUI/src/com/android/incallui/InCallPresenter.java
+++ b/InCallUI/src/com/android/incallui/InCallPresenter.java
@@ -20,10 +20,10 @@ import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
-import android.telecomm.CallCapabilities;
+import android.telecomm.PhoneCapabilities;
import android.telecomm.Phone;
import android.telecomm.PhoneAccountHandle;
-import android.telecomm.VideoCallProfile;
+import android.telecomm.VideoProfile;
import android.text.TextUtils;
import android.view.Surface;
import android.view.View;
@@ -534,8 +534,8 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener {
Call call = mCallList.getVideoUpgradeRequestCall();
if (call != null) {
- VideoCallProfile videoProfile =
- new VideoCallProfile(VideoCallProfile.VideoState.BIDIRECTIONAL);
+ VideoProfile videoProfile =
+ new VideoProfile(VideoProfile.VideoState.BIDIRECTIONAL);
call.getVideoCall().sendSessionModifyResponse(videoProfile);
call.setSessionModificationState(Call.SessionModificationState.NO_REQUEST);
}
@@ -550,8 +550,8 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener {
Call call = mCallList.getVideoUpgradeRequestCall();
if (call != null) {
- VideoCallProfile videoProfile =
- new VideoCallProfile(VideoCallProfile.VideoState.AUDIO_ONLY);
+ VideoProfile videoProfile =
+ new VideoProfile(VideoProfile.VideoState.AUDIO_ONLY);
call.getVideoCall().sendSessionModifyResponse(videoProfile);
call.setSessionModificationState(Call.SessionModificationState.NO_REQUEST);
}
@@ -639,20 +639,20 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener {
// (1) Attempt to answer a call
if (incomingCall != null) {
TelecommAdapter.getInstance().answerCall(
- incomingCall.getId(), VideoCallProfile.VideoState.AUDIO_ONLY);
+ incomingCall.getId(), VideoProfile.VideoState.AUDIO_ONLY);
return true;
}
/**
- * ACTIVE CALL
+ * STATE_ACTIVE CALL
*/
final Call activeCall = calls.getActiveCall();
if (activeCall != null) {
// TODO: This logic is repeated from CallButtonPresenter.java. We should
// consolidate this logic.
- final boolean isGeneric = activeCall.can(CallCapabilities.GENERIC_CONFERENCE);
- final boolean canMerge = activeCall.can(CallCapabilities.MERGE_CALLS);
- final boolean canSwap = activeCall.can(CallCapabilities.SWAP_CALLS);
+ final boolean isGeneric = activeCall.can(PhoneCapabilities.GENERIC_CONFERENCE);
+ final boolean canMerge = activeCall.can(PhoneCapabilities.MERGE_CALLS);
+ final boolean canSwap = activeCall.can(PhoneCapabilities.SWAP_CALLS);
Log.v(this, "activeCall: " + activeCall + ", isGeneric: " + isGeneric + ", canMerge: " +
canMerge + ", canSwap: " + canSwap);
@@ -682,7 +682,7 @@ public class InCallPresenter implements CallList.Listener, InCallPhoneListener {
if (heldCall != null) {
// We have a hold call so presumeable it will always support HOLD...but
// there is no harm in double checking.
- final boolean canHold = heldCall.can(CallCapabilities.HOLD);
+ final boolean canHold = heldCall.can(PhoneCapabilities.HOLD);
Log.v(this, "heldCall: " + heldCall + ", canHold: " + canHold);