Sent initial data to telecomm on connection creation. (1/3)

Telecomm was not sending the initial state for new connections forcing
the connection services to postpone when they set data on the connection
which resulted in hacky code.  This CL makes use of a
ParcelableConnection to send the intial connection data.

Change-Id: If571414aba19fa1bb282e30632431962b8366cf4
This commit is contained in:
Santos Cordon
2014-07-21 01:28:28 -07:00
parent 1e586e08bf
commit e8dc4bef00
7 changed files with 228 additions and 28 deletions

View File

@@ -74,10 +74,11 @@ final class ConnectionServiceAdapter implements DeathRecipient {
}
}
void handleCreateConnectionSuccessful(ConnectionRequest request) {
void handleCreateConnectionSuccessful(
ConnectionRequest request, ParcelableConnection connection) {
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.handleCreateConnectionSuccessful(request);
adapter.handleCreateConnectionSuccessful(request, connection);
} catch (RemoteException e) {
}
}
@@ -277,7 +278,9 @@ final class ConnectionServiceAdapter implements DeathRecipient {
void setCallVideoProvider(String callId, CallVideoProvider callVideoProvider) {
for (IConnectionServiceAdapter adapter : mAdapters) {
try {
adapter.setCallVideoProvider(callId, callVideoProvider.getInterface());
adapter.setCallVideoProvider(
callId,
callVideoProvider == null ? null : callVideoProvider.getInterface());
} catch (RemoteException e) {
}
}