History log of /packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
70d3866b170effeb64cacbdb59e3a5161447c944 22-Oct-2013 Santos Cordon <santoscordon@google.com> Updating reconnect retry code for InCallUI.

After we failed to retry our maximum number of times, we never retried
again until the device was restarted. This is because the only place
we reset the retry count was on successfull connection.

Changes:
1) Dont stop trying to connect as long as there is a live call. Instead,
move to a much slower 30-second retry interval.
2) Reset the retry count when a new incoming call comes in.

bug:11275842
Change-Id: Iacc223dddb5a8fd071637040f8e75a7e6f57d9a5
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
97a5a0ed717dffe65636dd0b61d1ed5dcc07df19 27-Sep-2013 Santos Cordon <santoscordon@google.com> Merge "Restart UI if it crashes" into klp-dev
f9ad0640b8f71c0f3ee0d5a46e6f709b0827f544 26-Sep-2013 Santos Cordon <santoscordon@google.com> Restart UI if it crashes

If the UI disconnects and we still have live calls, then restart the UI.

bug:1083649
Change-Id: I8d1677ce9b9f5e2a4150c5c9a114e837f7d2a462
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
d3105fe2f9f544fccd2cddbb1ab977dfe157b56e 25-Sep-2013 Yorke Lee <yorkelee@google.com> Fix crash when voice dialing an emergency number

Bug: 10925472
Change-Id: I3566ab0ef098b35b969768b9d5e08fd4712c2004
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
de10b75b2802b0a74de17a972d007efc0fc19f55 19-Sep-2013 Santos Cordon <santoscordon@google.com> Hang up all calls if the UI crashes.

bug:10823938
Change-Id: I417b4f4e1351efd65de65edaedd778115e605cd1
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
5d8351358e27e822dde683a2ccb6b31d72de3b8e 19-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Play local DTMF tones for post-dial actions" into klp-dev
3e0f0414daa2266dc51b77198fe433797f7d610a 19-Sep-2013 Christine Chen <christinech@google.com> Adds support for DISCONNECTING state

Bug: 10808537
Change-Id: I012c05baa04c4d5fa6691e2f89d724dad57373c7
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
de41f67985e48d9cc17d48a9299648966b9bc7e5 19-Sep-2013 Yorke Lee <yorkelee@google.com> Play local DTMF tones for post-dial actions

Bug: 10695960
Change-Id: I9d039f8a1a27c7f9371eea1a76f175ca9df3249f
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
a0e8b87600f93a267abfcf48d5a7523a55155d9d 19-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Add ability to enable/disable navigation features from In-Call UI" into klp-dev
362cec21b259ce1a8bfe69a873a7e90293f8b33d 19-Sep-2013 Yorke Lee <yorkelee@google.com> Add ability to enable/disable navigation features from In-Call UI

Also automatically reenables all navigation in unBind

Bug: 10692603
Change-Id: I88c79b9761da5c3462acfeb720442439148a8ddc
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
7984000187238151f2a5c46c7289db87df923050 16-Sep-2013 Yorke Lee <yorkelee@google.com> Add bind call permission check to Telephony service

Make sure that we are binding to a service that requires
the BIND_CALL_SERVICE permission.

Change-Id: I80343cea2bea10553266059657525999d2fdb3c6
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
bcf2099b92870b863f53e79288d4c8e73a4dc42d 13-Sep-2013 Makoto Onuki <omakoto@google.com> b/10699042 show dialpad when connects to voice mail.

Also now "Use touch tone keypad" in the dialer works, and
it automatically un-holds if there's only once call and it's
on hold. (which was a regression too.)

Change-Id: I94d50b92f67c494a4527f25e157c3aec536ee376
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
9d8e324ef83a1e50dee58c1dcb0930b9b604120e 16-Sep-2013 Makoto Onuki <omakoto@google.com> Merge "Revert "b/10699042 show dialpad when connects to voice mail."" into klp-dev
9d95f7e85da5ae18f326b8a4568110085f88ff82 16-Sep-2013 Makoto Onuki <omakoto@google.com> Revert "b/10699042 show dialpad when connects to voice mail."

This reverts commit f4d9dfa2faf5da3f83c925f96686e8b545b31f7c.

Change-Id: I50d96ff3f66839a3e690b732d1c80dfb28f06906
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
84c7f16b25ab2310be7834c331ffe462f6e1c7e7 16-Sep-2013 Makoto Onuki <omakoto@google.com> Merge "b/10699042 show dialpad when connects to voice mail." into klp-dev
26c6e92b6bb096e7f4a863f8dba2c64bdb5c34b0 15-Sep-2013 Chiao Cheng <chiaocheng@google.com> Wake up screen when phone call ends.

Bug: 10713115
Change-Id: I4f8b7810d89a2204b1b8614d6a5afd7332e1e5b3
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
f4d9dfa2faf5da3f83c925f96686e8b545b31f7c 13-Sep-2013 Makoto Onuki <omakoto@google.com> b/10699042 show dialpad when connects to voice mail.

Also now "Use touch tone keypad" in the dialer works, and
it automatically un-holds if there's only once call and it's
on hold. (which was a regression too.)

Change-Id: Ic9b797487edf960efc43d16c18d08559ae349b2a
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
12a03aa7bf49224d531f7469cdcd019e1b0f155e 13-Sep-2013 Santos Cordon <santoscordon@google.com> Update TeleService callback and reduce update frequency.

1. Changed name of the initial callback on the binder interface.
2. Made it so that we dont issue updates for Incoming and Disconnected
calls. Incoming calls dont change until their state changes and
disconnected calls dont change at all. What was happening is that the
redundant calls to onUpdate were executing before onDisconnect and
onIncoming effectively changing the state of the call before the
functions that were meant to change them to those states.
Additionally, with disconnected calls, we start tearing down the system
once the last call ends, which would happen twice: one with onUpdate and
once with onDisconnect. This caused additional binder activity after we
already started tearing things down.

bug:10682538
Change-Id: I47161c12429455f5f4fbca9113e6b06438028eb1
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
8d1de3499e10b571b64ba76a1e05086a93131400 12-Sep-2013 Santos Cordon <santoscordon@google.com> Merge "Do not create incoming/disconnected calls on update." into klp-dev
3f015c9e837c4e7a2b710d32f16e81eb684dda74 07-Sep-2013 Chiao Cheng <chiaocheng@google.com> Porting DTMF post dial wait feature.

Bug: 10459289
Change-Id: Ib279fcdf71857abae218b70081f7da569901d80c
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
71d5c6e4d0036e30eaa6a23faf0c246934ef8e6b 06-Sep-2013 Santos Cordon <santoscordon@google.com> Do not create incoming/disconnected calls on update.

This change fixes two things:
1. onIncoming will always get called for incoming calls, but sometimes
so does onUpdate. This caused too many updates since we ALWAYS send the
onIncoming (we need to). The solution is to not create incoming calls
on an update any more. After this change, onUpdate will only handle
updates to incoming calls, not the creation of them.
2. Basically, the same thing happens for disconnect calls. Some
disconnect updates come after we've disconnected and in those cases,
there is no need to recreate the objects since we've already sent a
disconnect update for the call.

bug:10571325
Change-Id: Ifa8eefd197161f90d60d4a55337a6a285e85e3bb
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
3e6486e012ce6c15675cd0d2f20155e5a49ed0ae 04-Sep-2013 Chiao Cheng <chiaocheng@google.com> Stop in call service when there are no calls.

Bug: 10610367
Change-Id: I1efd4cf0b69d5d457d7e07d16c47662e53d0bb05
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
11a4b650d5b5203045d82f37a10b2eb7623cf639 02-Sep-2013 Chiao Cheng <chiaocheng@google.com> Fix DeadObjectException when bind fails.

There is a window of time during install when the service is deleted and
installed. During this time, binding to the service may cause a silent
service not found error in the log. But this error does not propagate to
our application. Check for this case by querying the package manager
before trying to bind to the service.

Bug: 10569795
Change-Id: Ia58fde001603d0c716a2d1d91890dc31f78034a7
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
c340ba99a03178987c15789cbca0994190c15fd6 30-Aug-2013 Chiao Cheng <chiaocheng@google.com> Fix inproper queue.

Updates were being queued into the incoming queue by mistake.

Change-Id: If63527d626abf7206aff41a4deb598ade9f6f136
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
8fd0ec73400aed9ad5e46d46befb20b2b1008338 30-Aug-2013 Santos Cordon <santoscordon@google.com> fix build break

Change-Id: Iffd1d825afde1864043baa9eb4cec96f841e582f
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
717bfa1e73083320be0755873b47a3c67bad0342 30-Aug-2013 Santos Cordon <santoscordon@google.com> Merge changes I0295e9d6,Ib0bb7ab2 into klp-dev

* changes:
Send mute state to UI.
Stop overwriting CALL_WAITING with INCOMING
8e3c770888d0c587fdac8a8f5878e23fc59d7700 29-Aug-2013 Chiao Cheng <chiaocheng@google.com> Merge "Fix potential out of order callbacks." into klp-dev
576472debf35a0d63f9507541150d16728e142f3 29-Aug-2013 Yorke Lee <yorkelee@google.com> Fix phone crash on tablets

Bug: 10544674
Change-Id: I0dda5aff3c5050a48fc3b0efd1499a9933bdd2e1
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
cd95f62ea9f94c06d01debfcd1f01fd2cd6e2708 29-Aug-2013 Santos Cordon <santoscordon@google.com> Send mute state to UI.

Append to API to support deliver of mute status.
Have PhoneUtils.setMuteInternal notify the AudioRouter of the change.
AudioRouter then notifies CallHandlerServiceProxy.

Removed unused "previousstate" from the AudioRouter listener method;
replaced it with muted state.

bug:10395427
Change-Id: I0295e9d6b9af981c4911f2f5ba3abd65b748fd6e
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
d38eebcd68a92b7ba1ebb1b79530b98b594e04c2 28-Aug-2013 Chiao Cheng <chiaocheng@google.com> Fix potential out of order callbacks.

Combined all queues into a single queue to guarantee ordering.

Change-Id: Ib0f20ac56eaa4e1ece26821cb668611fc4579abc
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
ad07819ef0a3968cf562ccc87c2be9417db08328 29-Aug-2013 Santos Cordon <santoscordon@google.com> Sending initial audio mode when service connects.

Change also orders the setCallCommandService() above the updates.

bug:10426581
Change-Id: I544a7e3bd14274699350bf0393b502ee8e213a30
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
19d814b12a6ba77ba93ee5d8f3b46ca979d8e5ca 28-Aug-2013 Santos Cordon <santoscordon@google.com> fixing merge conflict

Change-Id: I73593c2c0cc98fb7cd7a758b21bc8004b663ecaa
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
dfc77d88ca5aef745f56d1e8af283dfa15851025 28-Aug-2013 Chiao Cheng <chiaocheng@google.com> Merge "Fix incoming callback and binding issues." into klp-dev
406c0341600bd414fe7561b4edd8cdf7ed11f315 28-Aug-2013 Santos Cordon <santoscordon@google.com> Adding support for dialer to bring incallUI to foreground.

Previously, the Dialer relied on
TelephonyManager.showCallScreenWithDialpad to bring the UI to the
foreground after the user selected "return to call in progress." This
was not updated for the split in-call-ui.

The fix adds a new API to CallHandlerService to bring the incallui to
the foreground. This new API now gets called as part of
showCallScreenWithDialpad().

bug:10313347
Change-Id: Id95a1e266471970cf1295423ea720b0e1926325b
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
6c6b27265806a053193b8ccbc57f66b1feb8e5ab 23-Aug-2013 Chiao Cheng <chiaocheng@google.com> Fix incoming callback and binding issues.

- Created queues to handle cases where callbacks were getting dropped while
the service was connecting.
- Fixed DeadObjectExceptions when the in-call ui was being re-installed.
- Change to a single connection object to fix connection leak where every
re-bind caused connection to double.
- Split caller information from Call into CallIdentification object.

Bug: 10468815
Bug: 10457750

Change-Id: Icaef130db2f6893df3175eed07d0d483a3c4c455
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
af763a15f376f8248684b02695d38a5a08e61ac3 20-Aug-2013 Santos Cordon <santoscordon@google.com> start/stop in-call UI on demand

This change severs the connection to the in-call UI whenever there is no
active call. When we get a new call, we attempt to the bind to the
UI service. Whenever we lose/disconnect a call, we see if there are any calls
left and if not, unbind from the UI service.

Changes:
- Add explicit component name to config.xml and use them when binding to
the UI service.
- onUpdate and onIncomingCall in CAllHandlerServiceProxy now make a call
to maybeBindToService() in case the service requires binding.
- onDisconnect calls maybeUnbind() after a disconnect.
- add cleanup of current binding to onServiceDisconnect(). Also attempt
to rebind if there are still active calls.

bug: 10363682
Change-Id: I7ddbb33fde7e3b03c1f1ea759d174cb03baabc76
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
4ad64cd167e942b1dd132106750f4c221e3bf1a9 15-Aug-2013 Santos Cordon <santoscordon@google.com> Adding support for manage conference UI (Part 1 of 4)

This the the first part of the work to enable manage conference UI in
the in-call screen.

The gist:
We added the notion of a conference call object. Where we would have
had 2 Calls before during a conference call, we now have 3. 2 originals
(which have the new state CONFERENCED) and a new Call object for the
conference call with a list of child Ids for it's children. The new
conference object maintains the State that the oldest child Call would
have if it wasn't CONFERENCED.

Changes:
- Added CONFERENCED state for Call objects which are part of a
conference call.
- Added ability to specify child calls in Call objects so that
conference calls can identify which calls are their children.
- Updated CallCommandService to allow CONFERENCED Calls to disconnect.
- Updated CallModeler to have a secondary updateConference() step which
does the following:
- Calls which are part of a conference call now get the CONFERENCED
state
- Creates a new Conference call objects for ever connection that is
part of a conference call and is the earliest connection. This
ensures that there is only one conference call created regardless of
the amount of child connections.
- New conference call objects are stored in a new mConfCallMap which
maps Connection to a conference Call
- Change the updateCallFromConnection() function so that it works for
new conference Call objects as well. Conference call objects inherit
the status from the earliest Connection (earliest child Call), such
as ACTIVE, ONHOLD, etc.
- Send Conference call objects to the UI with the rest of the calls.

bug: 10334739
Change-Id: I9c6fa067195a1e6c43a5635a4f27405b01c46f8e
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
593ab38970a84a60ac39edba4306647c8b66436d 07-Aug-2013 Santos Cordon <santoscordon@google.com> Audio routing part 2

- Added WIRED_HEADSET and SPEAKER to AudioModes
- Added WiredHeadsetManager class
- AudioRouter now listens to WiredHeadsetManager and PhoneUtils for
speakerphone
- AudioRouter maintains state across earpiece,headset,bluetooth,speaker
- Most code copied from InCallScreen for speaker logic
- CallHandlerService listens to audioRouter for audio states
- Moved Wired headset logic from phoneglobals to wiredheadsetmanager
- Better toString for logging Call objects

Change-Id: Iebc8c83934ce5eff6f1918b0610804fadb163b43
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
ee09a49b24b2228f7ea7fb3d3be7a551120abb1a 07-Aug-2013 Christine Chen <christinech@google.com> Add support for text messages

Change-Id: I3883de331fd881133e29755fde3c7b772823ad70
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
9b7bac7705b3afcae7b010edc2032c7c0f37f770 06-Aug-2013 Santos Cordon <santoscordon@google.com> new class AudioRouter manages audio routing for the phone call

This CL only has support between bluetooth/earpiece

Of Note:
- New shared class AudioMode defines different modes for audio routing
- New class AudioRouter manages between EARPIECE and Bluetooth modes.
- Add function in CallCommandService and CallHandlerService for audio
mode

Change-Id: I52ff70e53868c45e5202b757cc80a13af3abe5f8
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
daf7bf63f4f104977b01623e4f36a50db190d47c 06-Aug-2013 Christine Chen <christinech@google.com> Supports DTMF tone in incallui split.

- Adds accessibility code for short tone.
- Also changed CallModeler listener behaviour

Change-Id: Ia052a877bdf301f478d3fcf4fd1d337dd9bc66ff
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
998f42b9186900945a170521cb44f1eef8340802 03-Aug-2013 Santos Cordon <santoscordon@google.com> Removed onIncomingCall() from the CallHandlerService.

Using OnUpdate() exclusively with a fullUpdate flag.

Change-Id: I107cfdc6d132a524354bbede99550c71360e33ba
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
a3d0514c3480db25a813d8841c39e965f2925180 29-Jul-2013 Santos Cordon <santoscordon@google.com> Adds State to the Call Objects.

Also, updates the onUpdate method of ICallHandlerService to get called
when a call changes state.

Change-Id: I8fe830cdd8c7f4b92e985c518b5e1a60d6552284
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
995c816b6a596ccd48628c1da4199ea9e8a830b2 29-Jul-2013 Santos Cordon <santoscordon@google.com> Adding phone-style state

Change-Id: I8d8ed6249ccc52b4d67c4c7d6a7329ba381f6fb6
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
f404688cbde8e73c68c3b285cdd144c0b8580f8f 26-Jul-2013 Santos Cordon <santoscordon@google.com> Add CallModel object to the API and onCallUpdate.

Change-Id: Ie892fbc1f5eebc33328a5cb506c8fe9b24d310be
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
63a8424848966c0e94a78c4200bb091366dca3b8 23-Jul-2013 Santos Cordon <santoscordon@google.com> Adds class to translate telephony Connections to Calls.

Adds primitive call model (int callId) translated from telephony
layer's Connection type.
Adds onDisconnect functionality to CallHandlerService.
Makes call Id functional in callHandlerService.

Change-Id: I4d54f4c3f606e5973cc316125486cc361c96d610
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
e41661cbc5db3cbb8e60e0137fbac3f3a1f506a5 23-Jul-2013 Chiao Cheng <chiaocheng@google.com> Adding mute and speaker methods to CallCommandService.

Catching all exceptions from command service since they won't be sent over ipc.

Change-Id: Icdd11a9fe7d4041b228bf2543a8bf0b1ef7b1651
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java
345350ee0b6fa5c510e64b4b8cfb5ed1e5d70851 20-Jul-2013 Santos Cordon <santoscordon@google.com> Renaming CallMonitorService to CallHandlerService

Change-Id: Idfbbf79f706ff359f218252f74d2e8133188d93a
/packages/services/Telephony/src/com/android/phone/CallHandlerServiceProxy.java