Simplify deallocation/unbinding of services.
Call counts of call services and selectors are kept current during call
and during the outgoing call process. This allows us to unbind simply
when the call-count goes down to 0.
A second optimization that can be made is to remove associated-call
counts from ServiceBinder and use the callIdMapper to maintain counts of
the associated calls. This binds the call count to the mapper items,
however there are two small roadblocks:
1. It isn't as easy to deal with the replace() scenario, but doable
2. The caller-ID mapper implementations between CS and selectors are
separate and it's nice to keep a single associated count implementation
for all ServiceBinders...this is also addressable, just not that
important at the moment.
Change-Id: Ibbf894ed5b7dd9ede1b088e530dd9cc2e0e649c2
diff --git a/src/com/android/telecomm/Timeouts.java b/src/com/android/telecomm/Timeouts.java
index 4f8dc1c..0221ccd 100644
--- a/src/com/android/telecomm/Timeouts.java
+++ b/src/com/android/telecomm/Timeouts.java
@@ -54,20 +54,10 @@
}
/**
- * @return How frequently, in milliseconds, to run {@link Switchboard}'s clean-up "tick" cycle.
- */
- public static long getTickMillis() {
- return get("tick_ms", 250);
- }
-
- /**
* Returns the longest period, in milliseconds, each new outgoing call is allowed to wait before
* being established. If the call does not connect before this time, abort the call.
- *
- * @return The longest period, in milliseconds, each new call is allowed to wait before being
- * established.
*/
public static long getNewOutgoingCallMillis() {
- return get("new_outgoing_call_ms", 5000);
+ return get("new_outgoing_call_ms", 60 * 1000L);
}
}