Stubs for video and connection handoff
This CL adds two sets of APIs:
- video handoff: switch the given call to video
- connection handoff: switch the given call between wifi and cell
For now these APIs are just stubs to be implemented later.
Change-Id: Ie5894cb786482935095b1f44a49609eb69226f44
diff --git a/common/src/com/android/services/telephony/common/Call.java b/common/src/com/android/services/telephony/common/Call.java
index 8e7a595..7553ee2 100644
--- a/common/src/com/android/services/telephony/common/Call.java
+++ b/common/src/com/android/services/telephony/common/Call.java
@@ -87,10 +87,12 @@
public static final int ADD_CALL = 0x00000010; /* add another call to this one */
public static final int RESPOND_VIA_TEXT = 0x00000020; /* has respond via text option */
public static final int MUTE = 0x00000040; /* can mute the call */
- public static final int GENERIC_CONFERENCE = 0x00000080; /* Generic conference mode */
+ public static final int GENERIC_CONFERENCE = 0x00000080; /* generic conference mode */
+ public static final int VIDEO_HANDOFF = 0x00000100; /* handoff to video */
+ public static final int CONNECTION_HANDOFF = 0x00000200; /* handoff between wifi and cell */
public static final int ALL = HOLD | SUPPORT_HOLD | MERGE_CALLS | SWAP_CALLS | ADD_CALL
- | RESPOND_VIA_TEXT | MUTE | GENERIC_CONFERENCE;
+ | RESPOND_VIA_TEXT | MUTE | GENERIC_CONFERENCE | VIDEO_HANDOFF | CONNECTION_HANDOFF;
}
/**
diff --git a/common/src/com/android/services/telephony/common/ICallCommandService.aidl b/common/src/com/android/services/telephony/common/ICallCommandService.aidl
index cb3b674..89a27d9 100644
--- a/common/src/com/android/services/telephony/common/ICallCommandService.aidl
+++ b/common/src/com/android/services/telephony/common/ICallCommandService.aidl
@@ -106,4 +106,14 @@
* device has soft navigation buttons.
*/
void setSystemBarNavigationEnabled(boolean enable);
+
+ /**
+ * Switch to video mode.
+ */
+ void videoHandoff(int callId);
+
+ /**
+ * Switch between wifi and cell.
+ */
+ void connectionHandoff(int callId);
}
diff --git a/src/com/android/phone/CallCommandService.java b/src/com/android/phone/CallCommandService.java
index 5238911..175a0ed 100644
--- a/src/com/android/phone/CallCommandService.java
+++ b/src/com/android/phone/CallCommandService.java
@@ -268,4 +268,13 @@
}
}
+ @Override
+ public void videoHandoff(int callId) {
+ // TODO(sail): Implement this.
+ }
+
+ @Override
+ public void connectionHandoff(int callId) {
+ // TODO(sail): Implement this.
+ }
}