History log of /packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8cc908aef3668de57a3991438e03c3863a4160d8 25-Feb-2016 Qi Wang <wangqi@google.com> Fix bug of secondary call info disappear after switching calls.

Bug: 27323979
Change-Id: I6f66052dee5ef3be32df4008835d0918bba54e50
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
76ff1c954cbb6e635c6cee375359ba1bfbcc3770 08-Dec-2015 Tyler Gunn <tgunn@google.com> Code cleanup.
am: 22e204b998

* commit '22e204b99806e51582c1a2982c575f86cd6306da':
Code cleanup.
0175dc9a647e1b9b013ad5c3b855a7594d7fbedb 07-Dec-2015 Tyler Gunn <tgunn@google.com> Code cleanup.

1. Renamed some Call methods and cleaned up comments.
2. Renamed Incall CallUtils to VideoUtils.
3. Fixed some improper licenses.

Bug: 20089489
Change-Id: Ia503db3b65d9aa990e562411de783f38dd08a9c2
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
bedb473d77d4fe7bc7c33bdbbfba2706141e6a9b 20-Nov-2015 Nancy Chen <nancychen@google.com> Merge "Guard against framework calls to Video call APIs for backporting." into ub-contactsdialer-b-dev
am: 9a45c0cdf2

* commit '9a45c0cdf2ad426a6849351b77738f05301219c6':
Guard against framework calls to Video call APIs for backporting.
35403e80a4976362b517ed552c965924699456df 20-Nov-2015 Nancy Chen <nancychen@google.com> Guard against framework calls to Video call APIs for backporting.

Check compatibility verson before making method calls to VideoProfile or
VideoCall. Use CallUtils for any method call that is using VideoProfile
to determine if video calling is available or not.

Bug: 25776171
Change-Id: I24fa049c0003547f9027bed8fabfb81d0fde6374
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
608ee2b09bdc04e14913104b373a0c13f94b41ff 07-Oct-2015 Tyler Gunn <tgunn@google.com> am 0de21104: am 177debf2: am 9849b290: am 070463fa: Merge "Handle child number changes after the call starts." into mnc-dr-dev

* commit '0de21104d5ca7aca9b1e3a092a706d0bffcf90b3':
Handle child number changes after the call starts.
9b3019d004f2e551e4fd69001a95883522caf523 06-Oct-2015 Tyler Gunn <tgunn@google.com> Handle child number changes after the call starts.

The child number display functionality assumed that the child number for
a call would only bet set at the start of the call. This change removes
that assumption and supports changes to the child number at any point
during the call by adding a new listener to the InCall Call List. It
appears there are some instances in reality where the child number can
come in after the start of a call (delayed only slightly, but enough to
prevent the number from showing up).

Bug: 24585039
Change-Id: I23148e8c4265f1bc16ce563f2919e9b3eb71784f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
4276408e68e70354ab4b2dfdc96f612e2a358485 04-Oct-2015 Andrew Lee <anwlee@google.com> Refactor call blocking into InCallPresenter.

This retains CallList being context-independent, and consolidates
most of the logic. This makes InCallPresenter responsible for
calling into the CallList to add/remove/cleanup calls.

This will make it easier to hook in emergency call logic which needs
a Context to store the time an outgoing emergency call is made.

Also, remove the timeout runnable if the
BlockedNumberContentObserver unregisters after successfully
updating the call log.

Bug: 24418319
Change-Id: I6a203f5a260428f51e7965c73e3eee89edb949bd
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
784f8d2b7e9ff16b05f3ead3dd3500e80419f5cd 26-Sep-2015 Andrew Lee <anwlee@google.com> PhoneStateListener & ContentObserver for blocked calls.

Add a phone state listener to attempt to silence the ringer earlier.

Add ContentObserver which watches the call log. There is an instance
created for each blocked calls. It will watch the call log for changes
pertaining to a set of blocked numbers/times it keeps track of. If
there is a call log entry which matches with that number and time,
mark it as blocked.

Bug: 24341350
Bug: 23944005
Change-Id: I5c40f722d777355140bf98f897d208bd0330e09c
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
2065da9ff433eb63b68d9520d82759dd0045985a 29-Sep-2015 Anne Rong <annerong@google.com> If call is blocked, log something.

Bug: 24414759
Change-Id: I8f263aac6164375f5b3d77411c95192aeb9bec5f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
699bd5e82c5e80b4cfc0196d3bafb90895de9447 18-Sep-2015 Anne Rong <annerong@google.com> Update time last blocked + times blocked fields on blocking a number.

Bug: 24134609
Change-Id: I99603d08c2e2f138aab49fcb984007e58deaabce
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
3e58e2ec82f42799fb8a0ff2227ac54fa45e1b03 18-Sep-2015 Anne Rong <annerong@google.com> Refactor FilteredNumberAsyncQueryHandler.isBlocked

Returns invalid status instead of throwing exception.

Bug: 24177581
Change-Id: I76083ea40136189c98ab0eba31e52f0e389f50ae
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
204f7f076ac79684484044f3c534c6b2fe71b7e4 18-Sep-2015 Anne Rong <annerong@google.com> FilteredNumberAsyncQueryHandler should not crash if number is invalid

Bug: 24176751
Change-Id: Ic019d2e6276b94e373e28412443903c6e87c2f1a
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
a749c526178aee1168cedac0194ace2add8ce6c1 15-Sep-2015 Yorke Lee <yorkelee@google.com> Populate call initiation type log state

Retrieve the provided call initiation type from the call extras
and persist it in the log state.

Bug: 23164804
Change-Id: Id1b197726d3924246a08d4711368909087f2fcb8
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
89fa8c5b9f3bcd0bdf4c3409216b7fe88a1486e4 04-Sep-2015 Yorke Lee <yorkelee@google.com> Logging changes in InCallUI

Log call metadata/non PII when a call is removed from the
call list.

Bug: 23164804

Change-Id: Id65d1fd4ab774587de3cd92fa7c71aee69cd4b84
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
4a145bad68055b403d0bd32751bb6f8bb69204b0 09-Sep-2015 Anne Rong <annerong@google.com> Block incoming calls from blocked list.

Bug: 23350723
Change-Id: I283e9a6dcfa9cd5d4488e06c21fe7dd28c887a4a
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
9124b77e489772fb7c6aac36f83d86ffdf83748f 08-Aug-2015 Jay Shrauner <shrauner@google.com> Rename Telecomm to Telecom

Bug:
Change-Id: Iaed2bbe86370bba7d896cef525086aa51e654b64
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
81ae21863de1fe836f5e62aa5e324a35a8eb7d06 06-Aug-2015 Tyler Gunn <tgunn@google.com> Show "Note sent" toast when starting outgoing call with a note.

Bug: 22685114
Change-Id: Icc84b3639d7a5d4cf4faaa2db5ed70f2d9b2e967
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
061fc22101930c3c69f454c85fbb85ff2c5c92fb 05-Aug-2015 Tyler Gunn <tgunn@google.com> Last forwarded number and incoming call subject.

Last forwarded number:
- Added assets for the "forward" icon for last forwarded number.
- Modified InCall Call to store last forwarded number; also calls
onLastForwardedNumberChange callback (the last forwarded number is
received via a supp service update, so may change after call starts).

Call subject (i.e. instant lettering):
- Added placeholder subject_bubble asset to form the chat bubble for
incoming calls with a subject.
- Modified InCall Call to store the call subject (expected to be populated
in extras at start of call.
- Added code to hide the call status (e.g. "incoming call via XYZ") line
and primary call label (e.g. a location "California", or the number type
"Mobile" for the number). This was necessary to make room for the call
subject bubble, and is in line with the UX mocks.
- Change call subject text color to background color of call card (per
UX mocks)
- Modified call notification to show call subject if it is specified.

- Moved code to show HD icon into common method.

Bug: 22685114
Change-Id: I22d9dae16658490e3245cfdd9c936bb0584cd6db
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
f3a65b2e9bcbf162aa8a715709028b2deeb2ca09 18-Jun-2015 Yorke Lee <yorkelee@google.com> Fix for InCallUI finishing too quickly to display error dialog

Increase the delay before disconnecting the call for
DisconnectCause.ERROR, so that the user has time to acknowledge
the error.

To avoid regressing on b/20956721, keep track of any calls
that are pending a disconnect. If the user has explicitly dismissed
the error dialog, disconnect the call immediately to avoid blocking
the UI any further.

Bug: 21436856
Change-Id: I339cdbf1ba99fda5b1f5c8c31f722c97b64f487f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
8495a43eb104d6794050ddf02bb135fe5c25c8d1 11-May-2015 Yorke Lee <yorkelee@google.com> Finish InCallActivity immediately for DisconnectCause.ERROR

For DisconnectCause.ERROR, finish InCallActivity immediately
instead of waiting for the 5s timeout. This is because a
dialog is always shown for error cases, so the activity should
finish as soon as the user acknowledges the dialog.

Bug: 20956721
Change-Id: I1f1b8047cac0a6c15e331086cdc0924ff3d268cf
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
d078826fc9fc20009d69ed041464209ed83e2e0f 06-May-2015 Tyler Gunn <tgunn@google.com> Fix issue where fast 180 degree landscape rotation is not detected.

- Cleaned up imports in InCallActivity.
- Added new OrientationEventListener to listen for orientation changes
to the device. This listener returns the current device rotation in
degrees. Use the windowManager to get the current display rotation (e.g.
in coarse 90 degree, 180, etc).
- This solves the problem - can now detect rotation from landscape to
landscape.

Bug: 20727115
Change-Id: Icfad2b26083bb8236e9f4fe5580e3828cdef11b8
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
b040158d7bb2f5c7d06bd2c1db5e96adafbcff3e 05-May-2015 Tyler Gunn <tgunn@google.com> DO NOT MERGE Video call upgrade/dowgrade request changes.

- fixed potential NPE in VideoCallFragment when setting preview size.
- moved photo load into the postExecute for the async task -- it is
already threaded and I was seeing intermittent concurrency issues.

- Changed CallButtonFragment to retrieve max # of buttons from config.xml.
- Added override for wider screens (e.g. N6 and wider) to show an extra
button.
- Reorganized call buttons so that the "Camera on/off" button is adjacent
to the flip camera button.
- Changed answer Glowpad to pass correct video state so that accepting a
video request uses the correct state (important for accepting requests to
turn camera back on).
- added new Session modification state REQUEST_REJECTED for when the remote
user explicitly declines the request. This is used to trigger a
"video request rejected" message when the remote party rejects the
request.

Bug: 20257400
Change-Id: Ibe25eb045ee868748f91bf411f285629d36ebcd2
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
f68c053821428405bd4fb189f55fcba647e6740f 23-Apr-2015 Santos Cordon <santoscordon@google.com> Rename PRE_DIAL_WAIT to SELECT_PHONE_ACCOUNT

Bug: 20532435
Change-Id: Iae50b2ce15232a6010eb04895193b04c423ecc00
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
870d837b3732a88907df7d78a5f6255f90d1b5b1 15-Apr-2015 Santos Cordon <santoscordon@google.com> Remove usage of Phone.java in InCallService APIs.

Start using the direct methods of InCallService instead of using the
Phone object. InCallService methods represent the public API which is
what In-Call needs to compile against.

Bug: 20160495
Change-Id: I223347e239e5d5954b6118c7ba5befdaea2932a0
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
f41a78319650da5247005954e36cac98dc165b25 10-Apr-2015 Prerepa Viswanadham <dham@google.com> Merge commit '8bef461' into merge_work

Change-Id: I4cfea114e24c0b0671e99118316ad839dafbe400
f204078965a59e2440adde040b90ef556919aeda 03-Apr-2015 Yorke Lee <yorkelee@google.com> Refactor mock CallList functionality

MockCallListWrapper provides an instance of a mock call list
and provides functionality to easily add/remove calls from
the mock call list.

Change-Id: I4f7651284d35bdac61574fd804afa33dbf43d6b0
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
7e9763e4b3806c9edaf3df4f59a3d5a6452a361c 27-Mar-2015 Yorke Lee <yorkelee@google.com> Fix some jank during shrink animation

* Prevent call updates while animation is running
* Create hardware layers for animating views before animation starts.
Alpha animations on the text elements require a hardware layer to
be built beforehand. Do this before the animation starts instead of after
the first frame is drawn.

Change-Id: I21a8a9096f36adc4688597f7469a2f05a1b5234c
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
18c0feda76fe333f3db1bf7bd307458a9e6b6005 18-Mar-2015 Rekha Kumar <rekhak@codeaurora.org> IMS-VT: Add support for video calls

IMS-VT: Upgrade downgrade and hold resume video calls
-Add support for upgrade downgrade video calls.
-Add support for hold resume and call waiting

IMS-VT: Fixed surface caching.
Fixed surface caching.

IMS-VT: Fixes InCallUI/Dialer crash when there is a VT call.
-Fixes InCallUI/Dialer crash when UE is rotated.
-Fixes InCallUI/Dialer crash when UE VoLTE call
is upgraded to VT.

Don't default to speaker phone for VT when speaker is disabled
- The adb property persist.radio.ims.audio.output indicates
whether speaker is disabled explicitly or not.
- If the above property is set to 1, don't enable speaker
phone by default in VT call.

IMS-VT: Fix CVO, surface and resource related issues.
- Send initial orientation to VT Service.
- Detect if Activity is being destroyed due to
confugration changes.
- Close the camera when InCallUI is pushed to background.
- Fix surface and VT service related issues when Fragment
and Presenter gets destroyed.

IMS-VT: Peer Resolution Feature Implementation
Change display video size based on peer resolution values
received from far end.

IMS-VT: Answering calls and upgrade requests as VT_TX and VT_RX
-Support for showing one way options for incoming upgrade request
-Fix issue where incoming video popup stays on screen even after
rejecting the request.
-Fix issue where incoming video popup stays on even after it has
been timed out by lower layers.
- Answer with different calltypes support.

Notify listeners of video quality changed event and display message on UI
- Add methods to notify listeners of type VideoEventListener
when video quality changes.
- Display a notification on the UI when video quality changes.

IMS-VT: Enable SIP based video multitasking.
Enable SIP based video multitasking.

IMS-VT: Call data usage feature
- Add support for call data usage callback
- Request for call data usage stats
- Log call data usage stats when IMS layers send update

Change-Id: I3f0dde0d82698085fa5d3f110720f10326eca768

IMS-VT: When TTY is ON, do not allow upgrade to VT call
When TTY mode is ON, the user SHOULD NOT be allowed to upgrade
a call from VOLTE to VT/VT-TX/VT-RX and an UI alert message will
be displayed explaining upgrade to VT call cannot be initiated.

IMS-VT: Add null check in call upgrade fail scenario
Crash is observed if call is ended in the interval wherein
handler is started to change state from REQUEST_FAILED to NO_REQUEST
after an interval. Added null check to change state only when call
exists

Propagate call substate message and display a notification on the UI

Ims: Reject upgrade request
1. If there is waiting call that is pending user action and
2. Before offering a waiting call

IMS-VT: Provide Player State indication to user.
Change to display "player started/stopped" toast message
whenever video starts/stops flowing

IMS-VT: Cleanup video views when not required
- Hide video views when not required.

Set display size as per current TextureView size
- Using TextureView height and width to calculate the display size.
- When ever there is change in display make sure that center the display.

IMS-VT: Exit VT call full screen mode.

If the call is no longer a VT call, then exit full screen mode

Change-Id: Ibc4ad8f9a4c38e467820028cdc2c7e68d65fd93c
CRs-Fixed: 760925

IMS-VT: Upgrade button fix
-Show upgrade/downgrade button only when call is in ACTIVE or
ONHOLD state

IMS-VT: Show correct call types during video pause
-In paused state, upgrade downgrade button does not list the
calltypes dropdown box
-Remove the paused bit to calculate call type during video paused
state.

IMS-VT: Move strings for video quality changed indication to resource files

IMS-VT: Clean up the showCallSubstateChanged API
- Make the code more readable.

IMS-VT: Set audio route to Speaker if current route is not bluetooth or headset
- We always set the audio route to speaker when we enter video mode.
- That is not correct. We should check if headset or bluetooth is
connected before defaulting to speaker.

IMS-VT: Turn speaker on/off for video calls based on call state changes
- Turn speaker on only when video call is active or dialing
- Switch back to the previous audio mode when there are no
more calls
- Make the previous audio mode static so that information
persists when the class is recreated (e.g. when UE is
rotated or multitasking happens)

IMS-VT: Use back camera instead of front camera for VT-TX
Set back camera for below cases
1) VOLTE to VT-TX
2) VT to VT-TX
3) Waiting call over Vt-TX call.

IMS-VT: Fix upgrade in call waiting scenarios
-When one VoLTE call is active and another VoLTE call is on hold
and upgrade button is hit, call ends. Fix this upgrade issue.

IMS-VT: Enter video mode when the primary video call changes
- We only enter video mode when we have any video state changes
- Enter video mode should also be called when the video call
changes. e.g. When we have a second call with the same video
state, we don't enter video mode which is incorrect. This
change fixes the issue

Add null check for InCallActivity in setInCallAllowsOrientationChange
- In some cases, this API is called when InCallActivity is null.
This causes a null pointer exception. Fix is to add a null check.

IMS-VT: Fix check for VOLTE call (AND to OR) when turning speaker on

IMS-VT: Check if call is video before enabling speaker in updateAudioMode
- Moved the video call check to the correct block where we
are enabling speaker

IMS-VT: Get call substate values correctly from the bit mask
- We were getting the call substate incorrectly as an int.
- Fixed that by getting it from the bit mask and using the
possible multiple values to display the call substate message.

IMS-VT: Keep the screen on during video calls.
UI screens times out after some time. During
video calls the screen must be kept on.

Change-Id: Icaa8662210b2dd323b29f4a472869a9ed1e01d00

IMS-VT: Open front facing camera for VT calls.
Open front facing camera for VT calls.

IMS-VT: Show manage conference button for Video Call
- We show the manage conference in a separate section for
VOLTE Calls.
- In the case of Video Call, the entire screen is occupied
by the far end video. So we display manage conference in
the overflow section of the call button fragment.

IMS-VT: Fix camera preview freeze for CONF video calls.
Fix camera preview freeze for CONF video calls.

IMS-VT: Move persist.radio.ims.audio.output to frameworks
Move persist.radio.ims.audio.output and related constants to
TelephonyProperties and PhoneConstants so that these can be accessed
from multiple git projects instead of redefining.

IMS-VT: Multiple video call fixes/optimizations.
-Current implementation clears primary call cache upon exiting
video mode. This will remove video call provider interface as
well, which will prevent further communication with the backend.
Don't clear primary call cache upon exiting video mode.
-Unregister call details listener when UI transitions into
unready state
-Send surface of incoming video to video call provider before
opening camera.

IMS: Cleanup all listener objects
Clean all stale listener objects to avoid the memory leak.

IMS: Fix speaker icon display issue in Call UI.
In few devices, InCall UI can show upto five buttons
in a row. Modify code to display at most five buttons
in a row. Show overflow menu if number of buttons is
more than five.

IMS-VT: Show glowpad view with accept/reject for most video upgrade cases
- Show the glowpad view with all options only when upgrading
from Volte to VT
- For all other cases, show the glowpad with accept/reject only

Change-Id: I41ecbda40db7c3c69428fc4272f8bfbd258e2980
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
3a6424b38ead8de2a446b5d10d65c10f61c51be7 10-Dec-2014 Yorke Lee <yorkelee@google.com> Show error dialogs in InCallUI

* Show InCallActivity for state IN_CALL as well to ensure that
error dialogs are shown
* Override pending transitions in CircularRevealActivity
to avoid animation jank when starting new call from launcher
* Don't override disconnect cause in onCallRemoved
* Track service unbinding and binding in InCallPresenter. An
unbound service means InCallActivity will not be shown.

Bug: 18675781

Change-Id: I6a34091dba13c730e5b69bfef50c2dda8224803a
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
a691bd24f96acae7849f5f84f6e5f998fa58e8c0 08-Nov-2014 Santos Cordon <santoscordon@google.com> Make add-call a global property of telecom. (4/4)

ADD_CALL didn't make sense as a property of Connection or Call.
This changes it to be a global property instead.

Bug: 18285352
Change-Id: If43b30c54a6e6438933b19b8e3e628c9c02d3960
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
d644aef567decca5d6351bb4def4b4e65517836e 03-Nov-2014 Yorke Lee <yorkelee@google.com> Send DTMF tones for dialing call

Fallback to active call only if outgoing call is not present.

Bug: 18224969
Change-Id: Ic3238bf539fe2188dce8ed4010652a6fc26a6435
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
50dbb6eeca55cf78e0fd9eb132a26787d293620a 13-Sep-2014 Andrew Lee <anwlee@google.com> Update InCallUi to use telecomm DisconnectCause.

- Remove conversion of messages for dialogs and failures. This is now
done by Telephony.
+ Replace telephony DisconnectCause with telecomm DisconnectCause.

Bug: 17329632
Id: I8677eb2cda008bd91f852c1de96174dfe42f735f

Change-Id: I9e170537845a67ff9b14a38f5f3425de82648ab5
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
d8018867dd543809840f65bbd67dbb667d114436 14-Sep-2014 Yorke Lee <yorkelee@google.com> Fix for quick response option not showing up for call waiting

Text messages for a call are loaded by an asynchronous task and are
not populated immediately for a new call.

For the first incoming call, this is not an issue because they are
usually loaded by the time Telecomm binds to InCallService, and
the first call is added to InCallService.

For the second(and subsequent calls) however, they are added to
InCallService immediately before the text messages are loaded. This
means that onIncomingCall is called in AnswerPresenter with a null
list of text messages, which causes it to hide the quick response option.

This CL refactors AnswerPresenter to also update the displayed options
when a change in call state occurs, so that it shows the quick response
option when the list of text messages are eventually loaded and sent to
InCallService.

Bug: 17426049
Change-Id: Id5209b91013b52c5ede5a5dcd4db8a981664c285
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
4b293f0f08030c97e1bb54d2f79ac2fb1a6e29ae 13-Sep-2014 Tyler Gunn <tgunn@google.com> Renaming Telecomm to Telecom.

- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: Ie5ae18f51baa5da2eb9793785ad0c9d83b6343d1
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
289d53ed1c879e983dcb021fa677212ab4566bbd 05-Sep-2014 Santos Cordon <santoscordon@google.com> Support CDMA conference calling.

Bug:17316859
Change from using GENERIC_CONFERENCE to a better MANAGE_CONFERENCE.

Change-Id: I0306aaa5cf4d35bf095d85db63b3d08395394645
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
42cbdd4a6a02d3c8cd292e8a83d24264764c5d79 03-Sep-2014 Santos Cordon <santoscordon@google.com> Do not request prox sensor ON without an ongoing call.

Bug: 17323179
Change-Id: I34afc5e42ba1d5b559626b7d52b41e96af95b4f9
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
2094b920802ef0ecf9373cc90b7969f516b44c7e 14-Aug-2014 Santos Cordon <santoscordon@google.com> Fix parentID for conference call support.

Fix and add some logging.

Bug: 17136172
Change-Id: I5ce30d09bbc82f00ac225406fa0998ce6ecd776f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
70d1235b4aec1c489468d973424ae3c1535dfffe 16-Aug-2014 Santos Cordon <santoscordon@google.com> Merge "Do not show error for a canceled call." into lmp-dev
c0d0810072f9afdffc4eb51e4d78b30879c2a6a7 16-Aug-2014 Santos Cordon <santoscordon@google.com> Do not show error for a canceled call.

Bug: 17067923
Change-Id: I89bcd3fd743da544957bc2af59126edf5a44548b
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
cbbbfcba0c68498cde93da2e9b10e748cc5e91ef 14-Aug-2014 Jay Shrauner <shrauner@google.com> Prevent ConcurrentModificationExceptions

Use sets backed by ConcurrentHashMaps instead of HashSets, and
CopyOnWriteArrayLists instead of ArrayLists, to prevent concurrent
exceptions if listeners try to remove themselves in callbacks while
iterating over the listeners.

Bug:16325026
Change-Id: Ia86f5cafa1d844aa7927df8ff9b02b5574bdde2b
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
9c98346835b8e902e0c2c11f14a35f4e91578e9f 11-Aug-2014 Andrew Lee <anwlee@google.com> Add UI/functions to handle a video upgrade request.

+ Move session modification listener into the video call presenter.
+ Add new video accept/reject notification and full-screen UI.
+ Added "handling" which sends session modification response.

Bug: 16657915
Change-Id: I35ff04e383d4938cbfb4e76677730f82557fd918
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
f003346e5f9ba29e869a881bcca2e59d6ea8e0f6 01-Aug-2014 Nancy Chen <nancychen@google.com> Reduce latency for InCallUI by adding an intermediate state

Add PENDING_OUTGOING as a state where the Telecomm information has not
yet returned but the UI has started. This allows the UI to immediately
begin initiating while Telecomm is waiting for the return of its
broadcast intent.

Bug: 16396523

Change-Id: Ia4b39689b89f9dea3aafae9e63ca0bfebb730501
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
7a74ab9639ca2d657921a72ace29d4e0a8bbc3fd 06-Aug-2014 Santos Cordon <santoscordon@google.com> Remove ldaps from AOSP code.

Bug: 16327484
Change-Id: If4678281e2da1f1c7f0bcb91d496f1fd371be536
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
350fff554bf7ed5b9e91985935488771156953ab 29-Jul-2014 Tyler Gunn <tgunn@google.com> Various changes.

1. Add InCallCameraManager to track active camera and manage camera
capabilities.
2. Use new camera manager in CallButtonPresenter instead of directly
accessing camera.
3. Implemented new camera setup flow between incall and telephony.
4. Landscape video call support (actively rotating while video is running
crashes InCall at the moment, but you can start it in portrait or
landscape fine). Includes ensuring layout works properly with RTL
locales.
5. Added progress spinner to CallCardFragment, useful to show when an
upgrade to video is pending.

Bug: 16012946
Change-Id: Iff33422eec3a92d8cbeb217f5be2f1c9c5f3e98d
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
af9eefb9174cdb7a4824fc0a8ed6e85754acd0bd 09-Jul-2014 Nancy Chen <nancychen@google.com> Bring up dialog when an account is not set for the phone call

If an account default is not set, the incall ui will display a dialog to
allow the user to select an account for that particular call.

Bug: 16243703

Change-Id: Ic97c50d1116dd11ef900c4d20c6439683ed60e06
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
8d38cf6761ae048b1a42504f1b59e872cf43df47 12-Jul-2014 Ihab Awad <ihab@google.com> Implement new In-Call Service interface

Change-Id: Ic1eb6fc98e7f030885596c9c40f0ed4f0e34e28b
(cherry picked from commit c90543e6ef64b16b4c1bb240494152bc513f1e36)
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
a3f94249afbdc46adcb9fefcbfe4ae28cfca51ee 03-Jul-2014 Sailesh Nepal <sail@google.com> Remove ICallHandlerService implementation

Change-Id: Ifbaaba0d3226d03ea364cf1df76da3abebb9f5dc
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
9ee646f17f04049ea670199560d651cedafc27e6 10-Jun-2014 Ihab Awad <ihab@google.com> DO NOT MERGE. Port "respond via SMS message" feature to new Telecomm. (4/4)

Bug: 15275904
Bug: 15196474
Change-Id: Id7125d7803a00a80728e412bba030566a838bbc2
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
7b2248bfff11c50e208908cb74b5f94b3ad7a3c0 01-Apr-2014 Sailesh Nepal <sail@google.com> InCallUI - Use String IDs

Change-Id: Ibacb79658c146466d4f23bfcf7af0ebfb6e84dd0
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
248a6687e8075e9730217be73c54ee4f95501a0e 01-Apr-2014 Sailesh Nepal <sail@google.com> InCallUI - Use custom object to track Calls

This is the first step in completely moving away from Telephony.

This CL creates a custom Call object. Currently this is just a
copy of the telephony Call object. I'll update various fields
in individual CLs.

This CL also deletes the old Telephony services.

Bug: 13643568
Change-Id: Id1860a5df9706f2a7fddd40e70f0d693af7b04bd
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
f965ebbdfddf7070ab1807a49b203e76e58b7e4e 29-Mar-2014 Colin Cross <ccross@android.com> resolved conflicts for merge of 063fa2d9 to master-nova

Change-Id: Iaa921a78fb59185404d24b6a4245ae2cb691ea5f
917bb0e20a146a3ab4f7b0cebc4465d0806d0181 28-Mar-2014 Colin Cross <ccross@android.com> manually merge 9b4962cb into master
2a4212c888f4d6f326cbea2934203307949b0f0b 28-Mar-2014 Anders Kristensen <andersk@google.com> Fix issue introduced by 5feee861: there is no longer an UNKNOWN DisconnectsCause.

Change-Id: Id1796282d1948b43d28601664750ae8a78e78234
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
f66796c5ed01ec360a689a7639b6295baa0ce3f6 28-Mar-2014 Anders Kristensen <andersk@google.com> resolved conflicts for merge of 5feee861 to klp-modular-dev-plus-aosp

Change-Id: I5e8217fbe5336ebfa91eddf11e7f46465be8f751
479c50f6d4fac0fa44210c9bad4346f64dba3f1e 27-Feb-2014 Anders Kristensen <andersk@google.com> Remove duplicate call disconnect codes.

The Android code base defines call disconnect codes in three places:
- android.telephony.DisconnectCause
- android.internal.telephony.Connection.DisconnectCause
- com.android.services.telephony.common.Call.DisconnectCause

This CL consolidates the code to use the integer codes from
android.telephony.DisconnectCause everywhere.

Change-Id: I84a3fd5182a51d07fc7d81076e4b2c15ff26c61c
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
d71ec225de3b3080ae9051048b6ef4e36c4ae7f6 19-Mar-2014 Santos Cordon <santoscordon@google.com> Support a second incoming call (call-waiting)

Change-Id: I94730e0d628b9573eec2bf69c705599509a185b7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
58ae7da7ca46af29f6daa1b821882cc4318aad6e 19-Feb-2014 Santos Cordon <santoscordon@google.com> InCall UI changes for incoming Telecomm calls.

1. Send commands back to Telecomm when user hits answer/reject
2. Appropriately map Telecomm call states to in-call call states for
call updates sent from Telecomm.
3. Use the working version of CallList.onUpdate(). The one we were using
previously wasn't running in old code and didn't do everything
necessary for supporting the incoming call screen. Added a TODO to
remove it completely later.

Change-Id: I0f1c330a5a68c4004d3102fbab6f20a51a8b029a
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
217454bafc9ccf8ebd02f74bcd7cffec7bac8a9d 19-Nov-2013 Santos Cordon <santoscordon@google.com> am 4a2cf432: am 439ddb20: am 59dc0b9d: Merge "Decrease the timeout for unknown endcall screen from 5 to 2 sec." into klp-dev

* commit '4a2cf4323afeb9127f195e6f9bc098bedfba5438':
Decrease the timeout for unknown endcall screen from 5 to 2 sec.
eb857b7f5fe3bef77dde91693f18cabd8c6d15d5 19-Nov-2013 Santos Cordon <santoscordon@google.com> Decrease the timeout for unknown endcall screen from 5 to 2 sec.

bug:11651065
Change-Id: I1ab2b3690a4bb655e94811c8831a6da0d9400edb
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
27ef1e6c1ae0a0b6b15c7ff83cbb7396d7bd976e 19-Oct-2013 Christine Chen <christinech@google.com> Removing private dependencies in InCallUi

- This CL addresses most of the private API calls in InCallUi.
- This CL removed Android.mk as we are not building InCallUi.apk
separately anymore. Changes to make an unbundled app will go into
Dialer, GoogleDialer, and Contacts apps' makefiles.
- Separated CLs will add libphonenumber, libgeocoding, and util classes
for TelephonyManager and PhoneNumberUtils.
- The only thing left for InCallUi is to unbundle ProximitySensor.
Currently PowerManager's functions to deal with the proximity sensor
are all private. It will take a rather substaintial amount of work to
implement the proximity sensor functions ourselves (read proximity
sensor event values, ask the screen to turn on, etc.). So we should
rather push to get those functions into the public API.

Change-Id: I18b3c52adb41c6131c1eb3c07ce32ebd56d0cc59
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
9ccf74a1e34b0a08b8d74cbb5a494eea879fd15e 21-Sep-2013 Santos Cordon <santoscordon@google.com> Add generic error code dialogs for failed calls.

This change listens for disconnected calls and if the disconnection
cause matches a set of predefined causes, we show a dialog to the user.

New dialog messages:
- You can\'t make outgoing calls while call barring is on.
- All calls are restricted by access control.
- Emergency calls are restricted by access control.
- Normal calls are restricted by access control.
- Outgoing calls are restricted by FDN.

Several changes were necessary to support this:
1) Dialog code (InCallActivity.java)
2) Notifications for a new disconnect (CallList.java)
- previously we sent a large update for ondisconnect, now we just
send the notice for that particular call. InCallPresenter was
written so that the same thing that used to happen still happens.
3) Check if we need to show a disconnect dialog when the UI comes up.
- I found that FDN disconnection happens so quickly that the
disconnect came before the UI was up, so this was necessary.
(InCallPresenter.setActivity())
4) CallCard should be initialized with disconnecting/disconnecting calls.
- Call Card presenter intializes itself when it starts up using live
calls, but as with the FDN case above, a disconnected call should be
used if no live calls exist. (CallList.getFirstCall())
5) If a dialog is up while an incoming call comes up, dismiss it
automatically so that users can see incoming UI.
- (InCallPresenter.startOrFinishUi())
6) Keep the UI up as long as there is a dialog for the incoming call.
- Previously, UI would come down once all calls were shut down but
in the case of present dialogs, we want it to stay up.
(InCallActivity.finish())
- When the dialog is dismissed, check if we want to tear down UI.
(InCallActivity.onDialogDismissed())
7) Only tear down UI once we are in the NO_CALL state.
- We used to tear down when the activity was null (closed) and the
service was disconnected. This is problematic because a call that
immediately disconnects (like FDN errors) would shut down the service
before the UI had a chance to come up. We added a check to the
conditional for the state NO_CALL before shutting down.
(InCallPresenter.attemptCleanup()).

bug: 10680210
Change-Id: I1fd33dd53dc0eec5a02b7a940cfd018cec3d20c0
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
193fb4ff74b006f8923628c7d537630860b2d4cf 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
6258ff60a7edc760facc3f387fc9c8ceee3fb518 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
0d4591e41a2a172381aeddc73d20a812db13a4ac 18-Sep-2013 Christine Chen <christinech@google.com> Moves some TODO(klp) to TODO

Bug: 10605909
Change-Id: I6c961494f5470e6e96dd50ccec49bbc8c5862285
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
49ff6571403695e81dbbd83e4f61790ce9c75f6d 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
2d60a067ac26c954c3f029fb247d71e2516dcd3b 10-Sep-2013 Santos Cordon <santoscordon@google.com> Make sure onDisconnect also notifies single-call listener.

onDisconnect was not notifying listeners interested in a single call.
In this case, it wasn't notifying the answer presenter.

bug: 10678095
Change-Id: I81a7205eb886e136184c5754b0caebd68ac86031
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
97a92ad531caa86a9a40d13960452a8f0cbccdec 28-Aug-2013 Chiao Cheng <chiaocheng@google.com> Merge "Major fixes for in call to work with reverse number lookup." into klp-dev
42373eb59cbef15ec61ebb5c919031f293291a53 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
152ac3957d014793d954b057e1b04859bb16a1dc 28-Aug-2013 Santos Cordon <santoscordon@google.com> Adding different timeouts for CALL_ENDED screen.

Different call disconnections require different timeouts for the call
end screen. This change adds them as they existed before the split.

0ms for incoming rejected/missed calls
200ms for locally ended calls (user hits disconnect)
2000ms for normally ended calls (terminated by other end)
5000ms for everything else (errors, etc).

bug: 10414373
Change-Id: Ie9624bd3af5f6d4f58010360701c31efafcf1fb2
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
a4bd83ad639b349fa16dbd07225017fcbf6ed550 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
cab6935f7c42b32b128150ddbde818a902f1ca38 20-Aug-2013 Santos Cordon <santoscordon@google.com> Support connecting and disconnecting from Phone app.

Phone app now connects/disconnects from the UI when there are no active
calls but UI did not previously support being disconnected. This change
adds the following functionality to support dis/reconnection:

- CallCommandClient now supports setting new ICallCommandService
instances.
- CallCommandClient now checks if mCommandService is null before
executing a method.
- CallHandlerService performs more careful ordered cleanup with
destroyed including removing pending messages and clearing any
existing calls from the call list.
- InCallActivity now performs tearDown of the presenters with onDestroy
instead of finish() to reduce NPE instances.
- InCallActivity not notifies InCallPresenter when is finishes, and not
just when it starts.
- InCallPresenter tears itself down after two things happen: the UI is
destroyed and the service is disconnected.
- InCallPresenter now issues a full-screen restart of the UI if the
UI was previously hidden (except for new outgoing calls). This allows
the UI to come back to the foreground if it was in the foreground when
the app went down.

The above changes also now protect against the phone app crashing or the
incall UI crashing.

bug: 10363682
Change-Id: I9b785f906f29015827e8e53e64cd5f5c72cd7981
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
d28fc12696fa706fed70e04698275af7be7fee82 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
d2bd93fe3929403f84367f826f07cbadc0c6366b 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
b8eedb3b9796873eaa22847205239a51092f1a43 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
81e744d0710a828f2ba52fd12f2a6a1551fb9847 08-Aug-2013 Santos Cordon <santoscordon@google.com> Reduce timeout for showing "CALL ENDED" strings

Change-Id: Iea244033f77835a395fbf639defe73aa09559026
(cherry picked from commit 5e36f26c23c400aa17470e5bb91b1d694a53b648)
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
82f5d003e675dfd56735c745744c3d968883b23c 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
950e3df8ac744daf2a890d279566bdba424710f9 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
3860ae4cd6e37e6e5438c81631b6857643691d9b 07-Aug-2013 Christine Chen <christinech@google.com> Adds support for text messages

Change-Id: Ibdb279a7dff0db710bcc1d6a313b486f6816ea65
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
1b60e8c70bdcbf07c3efab310790134ecf81d4fd 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
b585c66c5fbf485256ef8fef5b0d06f51d8d9bf5 05-Aug-2013 Santos Cordon <santoscordon@google.com> Adding a central logging class.

Change-Id: I24f68d5ebcfed2740f9645736c35edf17efb4769
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
7ac6cb331919db2a3a8985e4cb3299b309d9012a 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
9a43aba1cbbff7f7d443afa327de5c5cd602e39f 03-Aug-2013 Santos Cordon <santoscordon@google.com> Fixing incoming call sequence, adding InCallPresenter

Moved handling of AnswerWidget from AnswerPresenter and into the new
InCallPresenter class.

InCallPresenter now also manages a high-level in-call UI state to be
expanded in subsequent CLs.

Change-Id: Ia4fee84db68f7eaedea307b25329dadb8cf754e5
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java
75c86b55d45b1725c46ed2e5d77c9c43fcfd93da 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
c2b430394ac612ba4dd455fb988e29bfcc4d5c5f 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/Dialer/InCallUI/src/com/android/incallui/CallList.java
dec7e7e30e0352f08a6735e31c276a2aec2f554c 29-Jul-2013 Santos Cordon <santoscordon@google.com> Adding a CallList class to manage Calls from CallHandlerService.

Change-Id: Ic6a7c88721a881654fb8afa174291415539b586e
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallList.java