History log of /packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
fd76bfcd5bd3ee6cc1eb53019a23738192972180 02-Oct-2013 Yorke Lee <yorkelee@google.com> Send view notification for viewed contact in IncallUI

This triggers a download of the hi-res photo for the contact so the
next time a call is made, the hi-res photo is displayed.

Bug: 11006082
Change-Id: I8243dc0a6899c787807425226f2cfcd4a46e0ec1
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
672b16d0620d033e10fab30ccd70f5dd23e823b7 19-Sep-2013 Santos Cordon <santoscordon@google.com> Add "retrying" text for CDMA redial calls.

listening for new REDIALING state.

bug:10824223
Change-Id: I2b6f2f74713197902c93deca203f4f136732f7a2
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
ecabb6923e6587e0f0ca98cc895be7d99e694015 19-Sep-2013 Christine Chen <christinech@google.com> Adds DISCONNECTING state support.

When user ends a call locally, we first set the call state to
DISCONNECTING and show "Hanging up" as the status. We then show the
"Call ended" status when the telephony layer comes back with the
DISCONNECTED state for the call.

Bug: 10808537
Change-Id: Iad5eda6ee34e2f04a861977ac1a2453a52081d27
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
625ac576cb403744ef0baeba8e8993da963461ee 16-Sep-2013 Santos Cordon <santoscordon@google.com> Outgoing/Conference UI changes for Cdma support

Changes:
- rename Cdma* to Generic* in code
- Stop showing "manage conference" for generic_conference cases
- Show simple "merge" button for generic_conference cases
- Add generic icon/name label for generic conference calls
- Do not submit a contact info request for any conference call
sincle they always display generic information (this also fixed
some jank of the image flipping back and forth between generic
and normal conference call).o

bug:10769004
Change-Id: I379895612614483f7f3ea6fef493796ea855743b
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
59549cae7f511708cd375dd405ad1136e4bdfdf3 16-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Add internet call type label" into klp-dev
c59f3c672a0494cfba564ff117eafc1ab5e17641 16-Sep-2013 Yorke Lee <yorkelee@google.com> Add internet call type label

Bug: 10764487

Change-Id: I87e48063b14629c19a58b9ddb2acb736af6f37e0
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
1ee82fcea79556c90eec0f55ea2e2ab5c6dfadda 16-Sep-2013 Santos Cordon <santoscordon@google.com> CallCardPresenter should listen for Call Waiting

Regression from recent change to only update UI with incoming calls
using the onIncomingCall callback. The CallCardPresenter wasn't
listening for that specific change so call-waiting calls were not
displaying "incoming call" label.

Change-Id: I6a732585509c1e27e7ecf5805cb17ea8e7f043ed
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
14dbc3f0ca3a7998c9c5d28aba637487724f529f 14-Sep-2013 Santos Cordon <santoscordon@google.com> Fix UI lag when calling a contact with a photo.

Related fixes unrelated to latency problem:
a. Update StatusBarNotifier with new changes to CallerInfoCache.
b. Outgoing JANK fix in notifier needed to know if the activity
was previously started, not just if it was finished. (b/10734874)
c. Consolidate places where we use the Intent.

Several improvements to speed up startUp time from most egregious to
least:
1. In InCallPresenter, statusBarNotifier wasn't unlistening to
incoming call changes which kept orphaned instances still listening and
calling into contactInfoCache. ContactInfoCache was subsequently calling
into many notifiers which did heavy image parcelling work.
- Clear incomingCallListeners on tear down.
2. StatusBarNotifier was getting called directly from InCallPresenter &
onIncomingCall() callbacks. onIncomingCall callback was unnecessary and
caused extra work.
- Fix is to stop listening to incoming calls. Status bar notifier gets
called directly by InCallPresenter in startAndFinish() so listening
to incoming was redundant.
3. Make ContactInfoCache listeners list a Set to avoid duplicate
entries and reduce callback execution.

bug:10712670
bug:10734874

Change-Id: Ic8d50b1d9ce336ffe3a5191abe1c9db32365eee6
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
89aacfe1e61d605bfe9aad54e9acb1c3a78024c0 14-Sep-2013 Christine Chen <christinech@google.com> Merge "Always checks for conference call in CallCard." into klp-dev
6d93245c0c9067d7a6ff30fd6fb79431da124946 14-Sep-2013 Christine Chen <christinech@google.com> Always checks for conference call in CallCard.

Bug: 10746228
Change-Id: I23d901381b1a65e481d835d88f5ba46c291e724e
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
0b87230c2ebe1c842313d8c159513caa5092830b 14-Sep-2013 Jay Shrauner <shrauner@google.com> Merge "Fix flow of local/remote lookups" into klp-dev
101bed44998ff35c3a56f431345fac5c8229ec0e 11-Sep-2013 Jay Shrauner <shrauner@google.com> Fix flow of local/remote lookups

Redo logic for looking up numbers. Push all logic into ContactInfoCache
findInfo routine.

Bug:10634005
Change-Id: I87bd987780ba744222d3adc82cf359e3c20f121f
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
abec664bf7c7338f9e44ff4752413cf42932d38d 13-Sep-2013 Christine Chen <christinech@google.com> Adds null check for getUi()

Bug: 10677816
Change-Id: I31236f9a7b9bdd17145878f8df6f83c30c667b1c
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
5c1830662d8daca84aae65c2eddf88c19c7772f1 12-Sep-2013 Makoto Onuki <omakoto@google.com> Show "Calling via google voice" only in the DIALING state.

Also fix the call state label color.

Bug 10696646

Change-Id: I83c2dd5b3db77ebf72410d1a573cd517e5e1eb6e
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
85af3a353b07d74d2d26b132b9297cee476b7b7d 11-Sep-2013 Chiao Cheng <chiaocheng@google.com> Do not do reverse lookup if presentation does not allow it.

Bug: 10527622
Change-Id: I90a2d54e8e7d4687a24e3a2ac5a9930c0d8c244c
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
c5991d5b374cec8e0fd07329711226d33bcc9a50 09-Sep-2013 Santos Cordon <santoscordon@google.com> Merge "Improve lifecycle ordering for InCallUI" into klp-dev
b0d08a16da088e01f416f52a7b74ee9630c1493a 05-Sep-2013 Santos Cordon <santoscordon@google.com> Improve lifecycle ordering for InCallUI

This CL rearranges startup and teardown of InCallUI to reduce the number
of race conditions resulting in runtime exceptions and app crashes.

At a high level this CL fixes the following:
- TeleService should be able to unbind and rebind at any time without
causing problems in the UI. (Fixes to InCallPresenter)
- On weird occasions we were seeing secondary UIs pop up if we
rebound while the older UI was still up and one of the UIs would be
orphaned on the foreground.
- call notifications can be sent during (1) activity startup, (2)
activity lifetime, (3) activity destruction, (4) no activity...and
nothing should crash.
- Lots of crashes when notifications came during destruction and
startup. (Fixed setup in InCallActivity + presenters, and
startup/teardown ordering in InCallPresenter)

Details:
(1) InCallPresenter handed out instances of member classes to the UI
classes, but upon unbinding and rebinding, the classes were
recreated. This meant that the activity which was potentially still up
had stale versions of AudioModeProvider and ProximitySensor.
- Classes created/used by CallHandlerService are now singletons so that
they do not change from one bind to the other. If the service tries
to initialize InCallPresenter while the activity is still up (and so
we haven't yet torn down) we reuse the reuse the previous
initialization since there is no need to recreate them, and classes
in the Activity dont ever become stale.
(2) We were recreating new copies of InCallActivity on updates that
occur while tearing down the previous activity. This caused weird
errors where second emptier activities were up after all calls ended.
- Solution to this was to ignore all updates while we are finishing the
activity. When the activity is finally finished, we check if we
should bring up a new activity in case some update came while we were
finishing.
(3) We set listeners on presenters from a parent class that wasn't aware
of UI transitions.
- All Presenters are not responsible for setting and unsetting their
listeners. This allows them to unset them before their UI goes away.

+ renamed HIDDEN to NO_CALLS as hidden was confusing to developers
which associated the term with foreground/backgroundness of the app.
+ Improved some logging

bug:10573125

Change-Id: I2d1af6a6e972b3b3bd93af839054e879f0b74b4f
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
b7f61237d6057baeff343b2728454d40705dd387 07-Sep-2013 Christine Chen <christinech@google.com> Fixes bug where photo is only set to primary call.

Bug: 10653476
Change-Id: Icc2e31215c6e3fa59266e3c6b1e3ac2935770e49
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
fb45d1c9d044916f3449592fca500a9ec0da116c 07-Sep-2013 Jay Shrauner <shrauner@google.com> Merge "Improve fields displayed for reverse phone lookup" into klp-dev
0f09a02be361d5bb36fac6981649204f5d6987fa 05-Sep-2013 Christine Chen <christinech@google.com> Adds manage conference call UI

Bug: 10334739
Change-Id: I46a52ec967a1c496dd4b797f2064d9099670711f
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
9cb64cb16258358d2abdcd5dd405344e259644f2 05-Sep-2013 Jay Shrauner <shrauner@google.com> Improve fields displayed for reverse phone lookup

Add the user formatted version of the phone number and phone label string
support for cache/reverse phone number lookup contacts. Use standard UI
update call so Google Voice information is also displayed correctly.

Bug:10609551
Change-Id: I2d1231e0b46cbfc3ec4b4ad84fb24a292562b8ce
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
345ddcb47f33a2a0cea517aed0809758ed1616c8 04-Sep-2013 Santos Cordon <santoscordon@google.com> Allows PhoneNumberService to be null for AOSP incallui.

bug:10573211
Change-Id: I57ea456b286845fd1c9cf65833c32d4bfb227fc3
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
4be1bdd9ee8e9d3afa1aaa765e86b963fb6c7b3d 04-Sep-2013 Yorke Lee <yorkelee@google.com> Fix secondary call card in rtl

Bug: 10541171
Change-Id: Ia63b6c5f1ce12ffe0a253d10a92470bbd1e7539e
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
af2589a6aa68d9906fe46b31ffaf214010632c02 04-Sep-2013 Chiao Cheng <chiaocheng@google.com> Fix incall image for local contacts.

The contact info callback was being called back at a minimum of two times. Once
for the name and text data and a second time for the photo. The results of the
first call triggers reverse lookups and was causing it to trigger twice. To fix
it for both cases, break out the callback into two separate calls to the client
can properly handle the cases differently.

Bug: 10607629
Change-Id: I2e0754d2d7c46bc2797a1a672827bd2f8d56e5d8
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
41457dce3ca531178ca07946868afb0cc1579a6b 30-Aug-2013 Chiao Cheng <chiaocheng@google.com> Fix contact blinking for incoming calls.

Bug: 10565896
Change-Id: Ibd2da0b77c6fb338699085effac8f5d648359c6e
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
2b47d36616b848c9004c910f7ca0d751e1ef4f77 30-Aug-2013 Chiao Cheng <chiaocheng@google.com> Merge "Fix errors during reverse number lookup." into klp-dev
e26903ab134858173e441c0960f841e59bb4dc57 30-Aug-2013 Chiao Cheng <chiaocheng@google.com> Fix errors during reverse number lookup.

- GoogleAuthUtil.getToken() is not multi-thread safe and causes bind errors
when called at the same time by multiple threads. Switched to process
getToken() serially. Also save token to be re-used instead of fetching new
token for each request.
- Safe guard json parsing by adding explicit JSONException check when looking
for json arrays by name.
- Added thread pool instead of starting a new async task for each people and
image lookup.

Bug: 10462306
Bug: 10492891
Change-Id: I832a9f6657d1b5747d75cd93ea49a6df73c889db
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
9240895e9df2fcae8f0baea707eb4d24c6e50997 30-Aug-2013 Yorke Lee <yorkelee@google.com> Allow swapping calls by clicking on secondary call card

Bug: 9679473
Change-Id: I9e25a247c59530d257ece27e62c88329eb5f4f61
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
ef4e344e8b35ebf5e35ffecf65e375cfc3225077 30-Aug-2013 Chiao Cheng <chiaocheng@google.com> Merge "Fix null precondition check." into klp-dev
94b623c10189b6d739104da488f1ecda237ab5b7 30-Aug-2013 Santos Cordon <santoscordon@google.com> Merge "Support visual indication of mute from headset" into klp-dev
bf62e69f8f029b616726577df7aa100c0900d6e5 29-Aug-2013 Chiao Cheng <chiaocheng@google.com> Fix null precondition check.

Precondition was making sure call was not null. But the call could be null in
cases where the call disconnected before the UI comes up. In this case, we can
simply skip processing.

Bug: 10538437
Change-Id: Ia4ff093f38cdc32bdaf6325d9dc770b302d0060b
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
3e69e4fe0e6dbce738cc6b3f9a71fc177e9fe1b6 29-Aug-2013 Santos Cordon <santoscordon@google.com> Support visual indication of mute from headset

This change uses new binder api changes to bring down mute status from
TeleService. mute state routed through AudioModeProvider.

bug:10395427
Change-Id: Ie15efcc780e99072363188de2a954a1888eec9dd
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
fde33a6d2bb0ca2feebac181f473d04bc4152283 29-Aug-2013 Chiao Cheng <chiaocheng@google.com> Switch to label for local contact detection.

Change-Id: Iade59b62865f33376d61a197ad289bc03164b0f3
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
8b6c8d0dbfba6eabe3d835f8cdcec8a13e253d0c 23-Aug-2013 Chiao Cheng <chiaocheng@google.com> Major fixes for in call to work with reverse number lookup.

- Separated caller info data into CallIdentification and switch callbacks to use
it where call state is un-necessary.
- Changed mCallList.update() method to be onIncoming().
- Catch all exceptions from service methods so errors do not vanish.
- Fixed bind failure cases which led to DeadObjectException.
- Changed local contact lookup to only occur for incoming calls.
- Fixed CallCardPresenter to start contact search upon isntantiation instead of
waiting for next call update.
- Convert ContactInfoCache to singleton to avoid race condition where it's not
initialized.
- Handle cases where primary call may be null when we find a contact.
- Fixed race conditions in CallButtonPresenter where audio mode is being set
before ui is ready.
- Fixed race condition in AnswerPresenter where state change was being called
before ui is ready.
- Changes to CallCardPresenter to support lookup for conference calls.

Bug: 10413515
Bug: 10390984

Change-Id: I9fc4f2f35e8f5aad33c301b3c5c93132634cb63c
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
6217732b89946e69451506474d89387167eb2210 23-Aug-2013 Santos Cordon <santoscordon@google.com> Merge "Show gateway UI when dialing via a gateway" into klp-dev
3d9e39bef65a67b9b04a2584b12f8b655fcc2e7c 23-Aug-2013 Santos Cordon <santoscordon@google.com> Show gateway UI when dialing via a gateway

Gateway information is not available in the Call object. Inside
CallCardPresenter, we use this to show the user dialing information when
dialing out through a gateway. This includes a "Calling via..." notice
above the call state label and the gateway number.

bug: 10393622
Change-Id: Iff1247cd592b0730bb7cfc6d16bd8f60b47f3737
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
2f21162c5eb1dbb11f892601574d4de7170b4960 21-Aug-2013 Chiao Cheng <chiaocheng@google.com> Removing explicit dependency on http calls.

Bug: 10413514
Change-Id: Id4db77f4417827ce4ecc140ea09f3228154f50de
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
1a7f2bcab2d2023f2ee4cfb0bc57bc265b5aab87 21-Aug-2013 Chiao Cheng <chiaocheng@google.com> Protect all logging statements.

- Rename global logger so it can be a drop in replacement for framework log
class.
- Remove imports of android.util.Log

Bug: 10411948
Change-Id: I377625263b16c4f9408c79d5c533a1810fa6cde7
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
1fa0782281ef7774ddcdfdf8efb7d8f65cf589e7 17-Aug-2013 Chiao Cheng <chiaocheng@google.com> Adding interfaces for phone number service.

- Fetch image url if present.

Bug: 10359919
Change-Id: Idf2ff5405255f1e90a383902762585ae68249dbe
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
1df52df7a0248814fbd4575103059a8b427f5d9a 15-Aug-2013 Santos Cordon <santoscordon@google.com> Add logic support for manage conference screen. (Part 2 of 4)

Changes:
- Add conference call resource photo
- Move logic to determine the name/numbers to show in the Call card
from CallCardFragment to CallCardPresenter.
- CallCardPresenter now tells CallCardFragment if the primary call is
a conference call.
- Updated the primary/secondary call order do that Active Calls are
primary instead of Disconnected calls when both exist.
- Cleaned up some excessive logging.
- The CallCard code uses a whitelist to know which callcard to show.
The change in services/Telephony to add CONFERENCED state is what
causes the new child calls to now show since that is not added to
the whitelist in this CL (by design).

bug: 10334739
Change-Id: Iaeab3f8bc9bda7693fa4a27bb8d3fe5de4dc9dfc
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
0b77eb307c0a99bfb6aca0e38990c2d03a879bfc 14-Aug-2013 Santos Cordon <santoscordon@google.com> Fix NullPointerException in InCallUI with CallTimer.

bug: 10325158
Change-Id: Ie7e89c2e1e3038df89387e99de6849ed12203824
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
88dbc6b3dbf35b322fe09c1a289c7e884e8fba22 14-Aug-2013 Santos Cordon <santoscordon@google.com> Adding duration time to calls

Adding chromometer support in the notification.
More manual update process for in-call UI (Call card).

Change-Id: I9a1598969d92296dc38b7485bd9fb872ad501e7b
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
0e27ca6253114be60b85f912a1af62dbf35c1b9e 13-Aug-2013 Santos Cordon <santoscordon@google.com> Use shared contact info cache to get data for the notification.

Move around where ContactInfoCache is created so that StatusBarNotifier
and CallCardPresenter will use the same shared instance.

Change-Id: I6e0a7c48aa7a35a0f1a52b399eb127d69f41a879
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
4bbe4c6900dfe3584f674161dbe15e248d5adbe7 13-Aug-2013 Santos Cordon <santoscordon@google.com> Add Simplifying layer between Contact Info search and CallCardProvider.

I will be getting contact info on notifications for the next CL so this
creates a simpler layer for interacting with the contact data async
requester.

CHANGES:
- Moved the code which does the requesting from CallCardPresenter to
ContactInfoCache.
- ContactInfo Cache defines new listening interface and new simpler
object for transmitting the return data: ContactInfoEntry.
- Updated CallCardPresenter to use the new simpler interface.
- Updated some logging entries.
- Simplified Ui interface inside for CallCardPresenter.

Change-Id: Ic802c4e53cdf17fcd37c70deb6da61a78b9d8993
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
9de3d7c5188c02cabf03799f87d494ee7dc702cb 09-Aug-2013 Santos Cordon <santoscordon@google.com> Singletons are hard, lets go chopping...them out of the code.

After this change, there remains only one singleton (InCallPresenter).
The whole system needs to be reworked in a better manner in terms of
build up and tear down.

Change-Id: I393ec648526bc28a3ae709004aed6d4627670549
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
b70af18a174fa334d15b28a2cdaa617f9ba2a4b7 08-Aug-2013 Santos Cordon <santoscordon@google.com> Add support for more call state labels.

Add remaining call-state UI for the callstate label.
Include some bluetooth logic to show an icon for incoming calls.

Change-Id: Iecd9b06fb58baf38f665e70e34014c8026d80f68
(cherry picked from commit 946291cb1bb0ec3b4b7f2939fd93dff15627403d)
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
b6ec8a55702f69c1bcb7b3eb1646c363ad9b4d10 08-Aug-2013 Santos Cordon <santoscordon@google.com> Improve outgoing call sequence

Changes:
- When we get a new outgoing call, fire up the UI (without the
notification) by sending it an ACTION_MAIN intent.
- Fix up the InCallState-setting code in InCallPresenter to be a
little cleaner and accomodate new OUTGOING code.
- Add missing call to set HOLD Ui button
- Fix an occassional NullPointerException in CallCardPresenter.java

Change-Id: I557a777287d9ab25ef1447be63b5da080f1b2532
(cherry picked from commit 4d5c29af103c13e78568dc772d26eb56a3e6d3e1)
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
a12f2589f424e26c63c8ee5b6fad89e30b69d7fb 07-Aug-2013 Santos Cordon <santoscordon@google.com> Add UI to show when the Call disconnects.

When the call disconnects, we need to show UI for a short time before
existing the UI.

Change-Id: Iee648b8c54ee4b5ea09cfaec508e1bf8fb8f1643
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
e7be13fb0556e62b07bc271b130412d82d7f7521 07-Aug-2013 Santos Cordon <santoscordon@google.com> Supports for outgoing calls starting up the UI.

- Added the OUTGOING InCallState
- Added support for OUTGOING into InCallState, InCallPresenter, and
StatusBarNotifier.

Change-Id: I49d5a56a4394d05e948b16a82f23e3eb925fd0a0
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
988d06b64b99a13f4f060dc82594edcb738d9113 08-Aug-2013 Yorke Lee <yorkelee@google.com> Add image to caller info

* Add various image setting method sto CallCardFragment
* Added AnimationUtils and ContactsAsyncHelper, copied unchanged from Phone

Change-Id: I6175ccc2433a5d0ad8a9bffac678a263ee65622c
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
7ef707319c0e3563ff92a772ba53cb5dca0e3ae1 07-Aug-2013 Yorke Lee <yorkelee@google.com> Display primary call info in call card

* CallerInfo, CallerInfoAsyncQuery are copied verbatim from existing
Phone code.
* Added logging methods to Logger to support logging via TAG in static methods
* Only primary caller information (name, phone number and label) are displayed
for now. Secondary caller information and photos are not displayed.

Change-Id: Id4cfdef78f10f7b32255f4892cd51161f37c8be5
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
5b9034b5b1b48a4339dd2f893a851cc64d6279df 03-Aug-2013 Christine Chen <christinech@google.com> Dialpad Ui elements for InCallUi

Change-Id: I7b230cc46993493459923c436a643910026cf6a6
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
efd4282ec4221ec5eefd4155a4ad915adcedca70 05-Aug-2013 Santos Cordon <santoscordon@google.com> Notifications in Phone (part 1)

- Added StatusBarNotification class to handle notifications
- StatusBarNotification has tons of copied comments from
NotificationMgr.java. Also has minimal code to make the notification
pop up (without call-specific data).
- Moved the UI start-up code from InCallPresenter to
StatusBarNotification. Incoming phone calls need to display an alert
above immersive (fullscreen) foreground activities and the way to do
that is through notifications. The old phone app did the same
thing...finally bringing over that functionality.

Change-Id: I3324503e0d7bb1de00d8e7fab72d4b40519491dd
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
9f22c7496af167f2eada26aa998364d4cf03a619 05-Aug-2013 Santos Cordon <santoscordon@google.com> Adding a central logging class.

Change-Id: I24f68d5ebcfed2740f9645736c35edf17efb4769
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
671b221ccadea34fb9327ef5342b26419eb5ca99 05-Aug-2013 Santos Cordon <santoscordon@google.com> Improve InCall State management

CL Contains the following changes:
- InCallPresenter now manages an overall in-call state
- Other presenters now listen to in-call state changes instead of
getting updates from CallList directly.
- Changes AnswerPresenter to a static fragment instead of dynamically
loading it. It makes code easier and more aligned with other fragments
used in the class.
- Presenters now save the appropriate call and use callId() for commands
sent to the telephony layer.
- Extra logging in CallList
- cleaned up the startup sequence in InCallActivity and moved everything
to onCreate instead of onCreate & onResume

Change-Id: I4ce4182eefcc134bfa16c33be8fe4aefc041f563
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
150a5c58c67f230c8fd7293b180bbf50aa761480 01-Aug-2013 Santos Cordon <santoscordon@google.com> Adding multi-call support.

Before this change, the UI came up when we were notified that a new call
came in, but we did not actually look at the call state, etc. This
seemingly worked while we only supported single calls but did not scale.

This change does two main things:
a) Plugs in CallList into the presenters so that they can perform their
logic based on the actual state of the calls (necessary for multi-call
support)
b) Adds Secondary CallInfo UI to the Call Card so that we can display
information foreground and background calls.

As a result of (a) from above, a lot of changes you see will be to
Presenters, which now take their cues from CallList and update their
Ui's accordingly. A problem with this approach is that the presenters
(callcard/buttons/answer-widget) perform their changes independently.
A subsequent change will consolidate interactions with CallList to a
Presenter-Manager class and away from the presenters.

Change-Id: I89d1926fa1eef6f10d897d2ce360f666c8f341f8
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java
a012c22dfbfedffe2e751f9b1ab776baa325a26f 31-Jul-2013 Santos Cordon <santoscordon@google.com> Adding simple number data to callcard

This CL allows the number to be displayed in the CallCard.

Previous interaction:
CallHandlerService->CallList CallCardFragment (isolated, no data)

New interaction:
CallHandlerService->MainHandler->CallList->CallCardPresenter->CallCardFragment

1) CallHandlerService.MainHandler: executes remote method calls on the
main thread.
2) CallList: Added support for listeners.
3) CallCardPresenter: Presenter layer for fragment. Listens to CallList
4) CallCardFragment: Gets real data from presenter, displays phone #.

Change-Id: I6de3a9da15b69d44826c3226701eed6a1b86239c
/packages/apps/InCallUI/src/com/android/incallui/CallCardPresenter.java