summaryrefslogtreecommitdiffstats
path: root/telecomm/java/android/telecom/ConnectionServiceAdapterServant.java
diff options
context:
space:
mode:
Diffstat (limited to 'telecomm/java/android/telecom/ConnectionServiceAdapterServant.java')
-rw-r--r--telecomm/java/android/telecom/ConnectionServiceAdapterServant.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/telecomm/java/android/telecom/ConnectionServiceAdapterServant.java b/telecomm/java/android/telecom/ConnectionServiceAdapterServant.java
index 429f296..5f93789 100644
--- a/telecomm/java/android/telecom/ConnectionServiceAdapterServant.java
+++ b/telecomm/java/android/telecom/ConnectionServiceAdapterServant.java
@@ -59,6 +59,7 @@ final class ConnectionServiceAdapterServant {
private static final int MSG_SET_CONFERENCEABLE_CONNECTIONS = 20;
private static final int MSG_ADD_EXISTING_CONNECTION = 21;
private static final int MSG_ON_POST_DIAL_CHAR = 22;
+ private static final int MSG_SET_CALL_SUBSTATE = 23;
private final IConnectionServiceAdapter mDelegate;
@@ -220,6 +221,10 @@ final class ConnectionServiceAdapterServant {
}
break;
}
+ case MSG_SET_CALL_SUBSTATE: {
+ mDelegate.setCallSubstate((String) msg.obj, msg.arg1);
+ break;
+ }
}
}
};
@@ -384,6 +389,12 @@ final class ConnectionServiceAdapterServant {
args.arg2 = connection;
mHandler.obtainMessage(MSG_ADD_EXISTING_CONNECTION, args).sendToTarget();
}
+
+ @Override
+ public void setCallSubstate(String connectionId, int callSubstate) {
+ mHandler.obtainMessage(MSG_SET_CALL_SUBSTATE, callSubstate, 0,
+ connectionId).sendToTarget();
+ }
};
public ConnectionServiceAdapterServant(IConnectionServiceAdapter delegate) {