Add support for remote incoming calls: impl
This CL changes how incoming calls are routed. We now
treat incoming calls the same as outgoing calls.
This allows a ConnectionService to attach to a incoming call
using a remote connection.
Change-Id: I5232d062ad3b559f4fe7c8224e7234b2c6bf8431
diff --git a/src/com/android/telecomm/ConnectionServiceRepository.java b/src/com/android/telecomm/ConnectionServiceRepository.java
index 7672e30..598bdd1 100644
--- a/src/com/android/telecomm/ConnectionServiceRepository.java
+++ b/src/com/android/telecomm/ConnectionServiceRepository.java
@@ -32,12 +32,10 @@
*/
final class ConnectionServiceRepository
implements ServiceBinder.Listener<ConnectionServiceWrapper> {
- private final IncomingCallsManager mIncomingCallsManager;
private final HashMap<ComponentName, ConnectionServiceWrapper> mServiceCache =
new HashMap<ComponentName, ConnectionServiceWrapper>();
- ConnectionServiceRepository(IncomingCallsManager incomingCallsManager) {
- mIncomingCallsManager = incomingCallsManager;
+ ConnectionServiceRepository() {
}
Collection<ConnectionServiceWrapper> lookupServices() {
@@ -58,7 +56,7 @@
ConnectionServiceWrapper getService(ComponentName componentName) {
ConnectionServiceWrapper service = mServiceCache.get(componentName);
if (service == null) {
- service = new ConnectionServiceWrapper(componentName, mIncomingCallsManager, this);
+ service = new ConnectionServiceWrapper(componentName, this);
service.addListener(this);
mServiceCache.put(componentName, service);
}