History log of /packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f75eb1ac9c28f1777ac375666b731d08630dbf1d 19-May-2016 Tony Mak <tonymak@google.com> Rename PROPERTY_WORK_CALL to PROPERTY_ENTERPRISE_CALL based on API review

Bug: 28842878
Change-Id: I52684f898137d7b07c4b9a7ac34081b3d5ec79da
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
435f5f690dfa576d08539a5987c52d0d23540327 05-Feb-2016 Nancy Chen <nancychen@google.com> [DO NOT MERGE] Fix NPE caused by misplaced parenthesis.

In onStateChange, this branch of logic should be not be followed if mPrimary
is null.

Bug: 27045730

Change-Id: Ia948313d4886475dd5966b209c19696cb594ed59
(cherry picked from commit 89fa1dbb7e73766647a9de92da1b8164aa71471e)
(cherry picked from commit 6e01a29e201837a6084e156aee7edcd21e46c8bc)
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
84a1becf7d9a7055f16fc5b0e503e0512dcdfcf1 05-Apr-2016 Tyler Gunn <tgunn@google.com> Show "manage conference" for video calls.

The existing VT implementation assumed that video conference calling is
not supported, and hence that the "manage conference" option could not
be shown for a video call. This was based on early requirements, but since
the video conference calling has become a requirement for some carriers.

Removed the video call check in "shouldShowManageConference" and replaced
with a check for fullscreen mode. This ensures that when a video call is
in fullscreen immersive mode, the "manage conference" banner is hidden
along with the call card.

Also added code in "onFullscreenModeChanged" which hides or shows the
manage conference option as the user enters and exists full screen mode.

Bug: 27616422
Change-Id: Ie23ebe2a0aed2e46166468fa3e833072c0e7a34a
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
008c82f409bc9b12cc1752e6e24168e8a0121af6 01-Mar-2016 Qi Wang <wangqi@google.com> Merge "Fix bug of secondary call info disappear after switching calls." into nyc-dev
e1c196e04154815e2fb55801af73beb9fb2aa324 29-Feb-2016 Qi Wang <wangqi@google.com> Accessibility: announce the active call after switching calls.

Bug: 24200862
Change-Id: I102a9c8406984a9dd4cfd8b91ec77254aa984dd5
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
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/CallCardPresenter.java
68d86c656e5522dec1b04e85ebc0e0f78e436c3d 21-Feb-2016 Sailesh Nepal <sail@google.com> [Gradle] Allow dialer to be compiled as a library

This CL adds a new build-library.gradle file for AOSP dialer.
This allows the dialer to be built as a library that can be
included from GoogleDialer.

Switching to a library project meant making two other changes:
- changed all switch statements that used resources to if statements.
This was required because resource IDs are not final in library
projects.
- changed InCalUI code to import com.android.dialer.R instead of
com.android.incallui.R. See http://b.android.com/82743 for more info
on why this is required.

src-N isn't supported yet. Also, this isn't the ideal project layout.
In the future we should consider switching to the following layout:
- dialer/incallui/ <- incall UI as an independent library project
- dialer/dialerlib/ <- dialer code as an independent library project
- dialer/app <- skelent app that builds a standalone dialer AOSP app

Bug: 26676586
Change-Id: I07fbee4d33cc683539e4f8b3953c93f1427af9d7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
6a4e9d87031f1f803ce9b64844f71c73e9502a7e 21-Feb-2016 Sailesh Nepal <sail@google.com> Remove Lollipop support for InCallUI

This CL removes support for running dialer on Android L MR1.
The change allows us to switch from the system SDK to the public SDK.

This is useful for the following reasons:
- makes it easier to switch to gradle
- makes it easier to migrate GoogleDialer to google3
- reduces maintenance overhead for unused code

Currently there's no plan to release Dialer on Lollipop. If or when
we decide to support Lollipop we can consider switching back to the
system SDK and restoring the comapatiblity code.

Bug: 26676586
Change-Id: Idac9e6e19f1d21c9261c1b0d0ff3e3ca4aab980b
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
207029be4c95b6d66ef4bd3c2277a9ba9e0c62a1 18-Feb-2016 Tyler Gunn <tgunn@google.com> IMS-VT: Moving upgradeVideoRequest handling to InCallPresenter

When user pressed back key InCallActviity will be destroyed and
corresponding listeners in VideoCallPresenter will be removed.
Due to this we are unable to process the upgrade request.

Moving handling of upgrade Video Call request handling from
VideoCallPresenter to InCallPresenter as InCallPresenter will be
available even InCallActivity is destroyed.

Bug: 27130345
Change-Id: Idbd3348cea9d712c8391319d091642d1fd60964f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
14c3e88a486cb5cfb9ef5fee107118266d305edf 09-Feb-2016 Tyler Gunn <tgunn@google.com> IMS-VT: Clear progress spinner when primary call changes

This is a cherry-pick of partner CL in mm-wireless-dev.

In use-cases wherein UE receives waiting call or user tries to add call
soon after initiating a modify request, progress spinner is not hidden.
Fix this by clearing the progress spinner when primary call changes.

Change-Id: I3a5b28e36af3c73e797924cdf1b3cb87815296f1
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
9cc21097e06859c8e3b36b9f18e5bad7c739c5f8 05-Feb-2016 Brandon Maxwell <maxwelb@google.com> Updating uses of ContactDisplayUtils and FBE fix

+ ContactDisplayUtils's preferredName methods now accept the
ContactsPreferences object rather than just an int. This was done to
abstract out the null checks that were previously necessary when using
the utility.
+ Conference calls were crashing because the ContactsPreferences
object was attempting to access shared preferences while File based
encryption locked. This change makes use of the
ContactsPreferencesFactory to handle returning the proper instance
when in this locked case.

Bug=26822105

Change-Id: Ie382c0c615cf27f69682774fc9538828cc429e69
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
9cd03e1e3c319f7633638615074da3028eb45c2b 03-Feb-2016 Brandon Maxwell <maxwelb@google.com> Fixes for FBE behavior changes

+ This change ensures that the Dialer doesn't try to use the
ContactsPreferences object (which uses information in unavailable
storage) while in File based encryption locked mode. Without these
checks, the Dialer crashes on receiving an incoming call while FBE
locked.
+ Added Factory method to create ContactsPreferences for tests/while
FBE locked/while FBE unlocked
+ Added tests for CallCardPresenter and StatusBarNotifier FBE related
code

Bug=26822105

Change-Id: I5df93526e70b7350885c7261982945c32b7e86a0
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7f07f9f6f1e209359cf069b1fa4b0dfc0b371f64 14-Jan-2016 Victor Chang <vichang@google.com> Add work description into call state in InCallUI

Only description of incoming call and call ended are affected

BUG=26082618

Change-Id: Ic511aac339b02db4453e695bfc92ccad47a97c83
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
f9aea95a921900b552bc808513f7c42c15e16f6c 14-Jan-2016 Tony Mak <tonymak@google.com> Showing badge icon in incall ui if it is a work call

Work call means the call is placed through work phone account
or it is an outgoing call initiated from work dialer.
Please notice that both personal and work call is handled by personal
in-call UI, that's why we need to add a badge to indicate it.

There is another scenario we need to add badge, ie. having a work
contact caller, and it will be handled in ag/836110.


BUG=26022174

Change-Id: I96e72068f70674dbeabfbbf7bfffc6c15c3203bf
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7b2b43c0589ec79ba74359f7d9d6e0450fc322ab 17-Dec-2015 Victor Chang <vichang@google.com> Show work badge icon/description in InCallUI/Dialer

Add work badge icon into IncallUI
Add work description into incoming call notification

To see this feature
1. Receive/Make a call from work contact
(a contact in work profile has the phone number)
2. See work description in incoming call notification
and work badge icon in IncallUI

BUG=26082618

Change-Id: I182b48a34d3d87ee3093e8433ae33939705d59d7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
c82f0a1f9826d0002812748afa4906b8631a7b61 08-Jan-2016 Ta-wei Yen <twyen@google.com> DO NOT MERGE Handle child number changes after the call starts.

This CL is in master branch, but not in dialer branch, which causes a
merge conflict in master for ag/841237

Reverting ag/841237, cherry-picking this and will reapply ag/841237
later.


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

(cherry picked from commit 7a2da71d22645d619e04b1704138f183a5e47724)

Change-Id: Id019dcb1fcdc7f13d738d9917bc9bbc4fe15dc02
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
29c01f36e9381b7bad135a9701aa3dffaf495b2f 22-Dec-2015 Nancy Chen <nancychen@google.com> Make TelecomManager APIs compatible with Lollipop (3/3).

Convert TelecomManager direct usages to using TelecomManagerCompat
instead.

Bug: 25776171
Change-Id: I534eb9ff72968f4351aaa0a3856769226c2f1941
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7952f0a140d290f45f76917a3005e56bcb9b52c2 29-Dec-2015 Nancy Chen <nancychen@google.com> Move TelecomManagerCompat to ContactsCommon (3/3).

Bug: 25776171
Change-Id: I540df6effc01c7c677a874129938b390a446f751
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
9b70c293ad0a2bf343a93701a37a5f152c6a4214 16-Dec-2015 Brandon Maxwell <maxwelb@google.com> Backporting InCallUI so to allow calls on nonOEM devices

VideoProfile#videoStateToString, TelecomManager#getLine1Number, and
TelecomManager#isVoiceMailNumber don't exist in the L sdk, so Compat
classes were added which duplicated the needed logic.

Bug=25776171
Change-Id: Ib546b8fbd802aa6f8f5c712e59b99716db4c6a7b
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7a4d2c05103bbf9aa693be1ee7de1286bf7a8256 12-Dec-2015 Brandon Maxwell <maxwelb@google.com> Backporting InCallServiceImpl

In L, InCallService callbacks were implemented through the listener from
android.telecom.Phone. To backport, this Listener calls through to the
InCallService methods that are overridden in the implementing class

Also includes miscellaneous backporting fixes that were missed
previously.

Change-Id: If8896c72454496459b0e6ea575574161184fba40
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
41c304dae70a534f0e9b345e905f30ec76b9ea73 09-Dec-2015 Brandon Maxwell <maxwelb@google.com> Backporting references to android.telecom.Call.Details

In L, Call.Details.CAPABILITY_* constants were found in
android.telecom.PhoneCapabilities, it has been verified that the
constant values match as needed.

In L, Call.Details.getExtras had all the information that was moved to
Call.Details.getIntentExtras in M

Added android.telecom.Call.Details compat class

Change-Id: I16d25173382575f351762e0e5b71775f1046fdd0
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
a860052619d1c3d13a33629e97a8e05509fa0e1b 14-May-2015 Tyler Gunn <tgunn@google.com> Fix issue where secondary call info overlaps video preview.

Other issues:
- Secondary caller info should not be shown when in fullscreen mode.

Solution:
- Added onSecondaryCallerInfoVisibilityChanged to InCallEventListener (
which is documented as a place for events between fragments).
- In CallCard fragment, call notify listeners of this callback of the
state change.
- In VideoCallPresenter/Fragment, handle changes to the visibility of the
secondary caller info box to shift the preview surface up or down.
- Added hide/show animation for the secondary caller info when entering
and exiting fullscreen mode.

Bug: 20914754
Change-Id: I44ae0e94e214892776487bff4cc09be8c5640db1
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
0642dfeadfc31b2c84b62bbddfd00c53fccda4b6 16-Nov-2015 Nancy Chen <nancychen@google.com> Merge "Move secondary call information to the bottom, clear call context." into ub-contactsdialer-a-dev
am: a9304a57fd

* commit 'a9304a57fda8781fa951cc4da7d788b627fb8d84':
Move secondary call information to the bottom, clear call context.
107c7da5da4e689b38433756244971d7543f7272 13-Nov-2015 Nancy Chen <nancychen@google.com> Move secondary call information to the bottom, clear call context.

The secondary call information was obscuring the call context info
because it was incorrectly being placed right under the primary call
info. This is a bug because it should placed under the FAB at the bottom
of the screen.
Also hide the call context info when a new call comes in that does not
have caller contex.

Bug: 25222360
Change-Id: I7601ce7e7e2609ac046ea104651ac50d863a86bc
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
edf496040d42e16909ffdbf4810dc9b1e5b026f8 09-Nov-2015 Tyler Gunn <tgunn@google.com> DO NOT MERGE Ensure call subject is hidden if disabled for carrier.

Even if the carrier config is set to disable call subjects for a carrier,
the RIL will still send any incoming call subjects to the InCall UI.
We cannot suppress this lower down as the RIL is using the same extra
to report caller id presentation reasons.

Bug: 22779583
Change-Id: Ic349408014a47e25d62100886ea59b73e4f76709
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
8c03464c2c348af3bcd3bdfb911cd1bf17a760d0 31-Oct-2015 Brandon Maxwell <maxwelb@google.com> Updating InCallUI to respect name display and sort preferences

+ CallCardPresenter, StatusBarNotifier, ConferenceParticipantListAdapter
respect display name preferences
+ ConferenceParticipantListAdapter sorts names in conference call based
on sort order preference
~ Still need to populate data objects with real data, currently it's
just stubbed

Bug: 19364093
Change-Id: I77ad9cb063bf439ae7e5551e40946ea29e414b7f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
d2fda4ab69205fc672c02141f9b62c1958f73ace 21-Oct-2015 Nancy Chen <nancychen@google.com> Add hours of operation info to incall business context.

Display hours of operation information if it is available. If hours of
operation are available, also determine whether it is currently open or
closed. Display in the InCallUI when making a business call.
Also add tests to make sure that the business context object is
constructed correctly.

Bug: 23351559

Change-Id: Ic2846e54e15ade37ccf0b916651cc3388da3cc23
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
687390732d6253903141d89d734113373d0e3c13 13-Oct-2015 Nancy Chen <nancychen@google.com> New layout for business call context.

Add smaller photo in primary call content so that the photo that is
obscured by the context information is visible somewhere.
Update the "business info" header to be in line with the new mocks.

Bug: 23351559

Change-Id: I98fc2b192bc1fa9452a4d7b5299c98162af232a9
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
959f64ca92f343f5d86db2c7233da47e6c4b55b7 12-Oct-2015 Nancy Chen <nancychen@google.com> Merge "Add location information with business caller ID." into ub-contactsdialer-a-dev
e838ba2b69cf85b0d938467477e47cce4af2bfb6 02-Oct-2015 Nancy Chen <nancychen@google.com> Add location information with business caller ID.

Display business address and distance when available when calling
businesses. This information is only displayed during outgoing calls and
while in the call.

Bug: 23351559

Change-Id: Ifb9197cc3abf6d865e13de10862c610e8aa15fba
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
a0eeeaa20c895d4ac15d7dd7045c816c81cedaf5 02-Oct-2015 Yorke Lee <yorkelee@google.com> DO NOT MERGE Fix potential mismatched caller information

This fixes a bug where caller information returned for a call
waiting would be mistakenedly applied to an existing call by
ensuring that the returned contact information is only assigned
to the call that initiated the lookup.

1) Active call A is in progress
2) Incoming call B (call waiting)
3) Contact info lookup is initiated for call B
4) Call B is rejected
5) Contact info is returned
6) UI for call A is updated with the returned info

Bug: 24591055
Change-Id: I41e0741d8bc01a2fe98d77cb080d1df455b1e5df
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
de3ab88fa732564be6fd803de5f92af5d554e5f4 26-Sep-2015 Nancy Chen <nancychen@google.com> Adapter logic for adding call context to call card fragment.

+ Adapter for call context list view
+ Method in CallCardFragment that handles properly displaying the call
context information
+ Strings for the call context title
Note: the setCallContext method is currently not being called anywhere.
It is anticipated to be called in CallCardPresenter after the
appropriate data is loaded.

Bug: 23351559
Change-Id: Id72390fc9d2a8794b88ab72661381eb96596d619
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.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/CallCardPresenter.java
3b2d7670f417c2db44538ff485963abd2796758b 12-Aug-2015 Tyler Gunn <tgunn@google.com> am 650a2204: am 0d3ed05e: am 53e1c9d2: am 6ccbf8fd: Merge "Minimize the number of calls to PhoneNumberUtils.isLocalEmergencyNumber." into mnc-dr-dev

* commit '650a2204373ea1c48e2e08e5308ac34844495a2c':
Minimize the number of calls to PhoneNumberUtils.isLocalEmergencyNumber.
93a6fd8d4a6f3ff4732cb4fb3b9df7c522b92823 12-Aug-2015 Tyler Gunn <tgunn@google.com> Minimize the number of calls to PhoneNumberUtils.isLocalEmergencyNumber.

On a standard outgoing call, isLocalEmergencyNumber was being called
from 30-40 times. Each of these calls requires a system service
invocation.

A large number of these invocations were coming from InCall UI.

To fix this:
1. Added an isEmergencyCall property to the InCall Call object.
isLocalEmergencyNumber is recalculated any time the mTelecomCall's
handle changes.
2. Replaced calls to isLocalEmergencyNumber in CallCardPresenter with
calls to the InCall call cached version; this easily cuts out around 15
calls to isLocalEmergencyNumber.
3. Replaced code in InCallPresenter; this accounted for 2-3 calls to
isLocalEmergencyNumber.

Bug: 22985202
Change-Id: Ia61204bb0ed6171b24c116e8c681b3924ce54f1d

# Conflicts:
# src/com/android/incallui/Call.java
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
42f5797134b67e2475e3b4af11013beefecfa642 07-Aug-2015 Tyler Gunn <tgunn@google.com> am ecd03f67: am ff12cb26: am c3f68285: am af99da31: Merge "Show "Note sent" toast when starting outgoing call with a note." into mnc-dr-dev

* commit 'ecd03f678fa150b67c882aeb14178c0ada5af42c':
Show "Note sent" toast when starting outgoing call with a note.
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/CallCardPresenter.java
2322b25fee517decd13e42ea2b13663ec60f4a06 05-Aug-2015 Tyler Gunn <tgunn@google.com> resolved conflicts for merge of f6832a9e to master

Change-Id: Ifcbde3917781b9a7f5b9b23497bdbb707cf65f83
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/CallCardPresenter.java
b0e1b80981ef84062aec48ce2362b727b5149769 28-Jul-2015 Tyler Gunn <tgunn@google.com> am 0be02352: am 57b6c31f: am 4db859b7: am e182bb44: Merge "Add support for showing child number in incall ui." into mnc-dr-dev

* commit '0be0235249131b564482bc52c6017dd0699e9418':
Add support for showing child number in incall ui.
460ac2da6d15bd94fe31c1a30d12418d01d8976a 24-Jul-2015 Tyler Gunn <tgunn@google.com> Add support for showing child number in incall ui.

Bug: 22685113
Change-Id: I4cf8f92820fcc028d26b5edcbf9bbc02a4d7a6d5
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
fc81c940e44bcc642a49eb2c3e25e4e67f5183f1 30-Jun-2015 Yorke Lee <yorkelee@google.com> am 95478ee7: am 1550aa97: am 73728797: Merge "Correctly handle accessibility for incoming/outgoing calls" into mnc-dev

* commit '95478ee7a7bd2f906a86bd05af47c894f0998dc7':
Correctly handle accessibility for incoming/outgoing calls
0dbdccd2aa0e6828e1332adf83e630a74527a248 27-Jun-2015 Yorke Lee <yorkelee@google.com> Correctly handle accessibility for incoming/outgoing calls

The previous behavior relied on WINDOW_STATE_CHANGED events to
announce outgoing/incoming calls, at which point in time
the CallCardFragment was not guaranteed to be non-null.

Bug: 20172391
Change-Id: I65bf86bc1a5edf5430ae5aabcb3535f42d1ccb08
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
4f9c40aaac38a30395f81f3e768aa04b2a075c30 20-Jun-2015 Yorke Lee <yorkelee@google.com> am 6a14c295: am d6828206: am f4a06ae3: Merge "Make sure to remove CallCardPresenter from CallUpdateListeners map" into mnc-dev

* commit '6a14c29554d89502c48709bd14685df6ed3f43aa':
Make sure to remove CallCardPresenter from CallUpdateListeners map
52714642784baa08d463ae225fec74c98dddf087 20-Jun-2015 Yorke Lee <yorkelee@google.com> Merge "Make sure to remove CallCardPresenter from CallUpdateListeners map" into mnc-dev
2d7bf90875bea954ceacdacd9e52c840200bde37 20-Jun-2015 Yorke Lee <yorkelee@google.com> Make sure to remove CallCardPresenter from CallUpdateListeners map

Bug: 21959749
Change-Id: I6662d96b9caaf3c5c94cfc0453cdd226ab850cec
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
e11396335c08f91e01e1adc983f1f2688debea7d 15-Jun-2015 Roshan Pius <rpius@google.com> am 0f940d95: am 0b54348c: am 0455f5f5: Merge "Check if numbers have changed to update the contact cache." into mnc-dev

* commit '0f940d956dd5aafba26bec4c86d1e3d30c497b0b':
Check if numbers have changed to update the contact cache.
fb008c2423a510a57be251d16bc963f64e98c2da 11-Jun-2015 Roshan Pius <rpius@google.com> Check if numbers have changed to update the contact cache.

Along with checking if the call ID's are the same, add a check to see if
the 2 phone call numbers are still the same to correctly update the
contact info cache used to present the UI to the user.

Bug: 20032056
Change-Id: I81bcc6b31df9fa12c3a399ce6a2897662a1be74b
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
6e52b6f67d1e7c8893ede07d6d26c971ed4c8424 22-May-2015 Etan Cohen <etancohen@google.com> Merge "Revert "Merge commit '55fede4' into merge""
c59f080516998219356ecda39efa7b1c7539ccae 22-May-2015 Etan Cohen <etancohen@google.com> Revert "Merge commit '55fede4' into merge"

This reverts commit b319b6f6ca8c7752d2070db7ccfad25bb8e4c22c.

Change-Id: I9228568f0554eccf2367bb802bd65eb30ad282be
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
75618722a6a796dc0650a534e0bac8cc728618c5 22-May-2015 Etan Cohen <etancohen@google.com> Merge commit 'f28f4a3' into merge
a4d01f700648cce804215b36ee8223770b84610f 22-May-2015 Etan Cohen <etancohen@google.com> Merge commit '55fede4' into merge
fd640ab7b1efe30574c96a12b06627f365d0432a 15-May-2015 Tyler Gunn <tgunn@google.com> VT UX Cleanup

Fixing two issues:
1. Contact photo shows behind video surface. Refactored logic in
VideoCallPresenter to determine if video surfaces are showing/hidden and
call this from CallCardPresenter in order to determine if the contact
photo should be visible.
2. With contact photo hidden, background activities show through instead.
Added a black background color to the incall_screen to solve this.

Bug: 21192340
Change-Id: I45a88ba47ffa80f25bcee5b8d4f8e9b0de04f602
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
6e21e8acf98b6b7a82eb1b328eb1cdca365962a7 14-May-2015 Tyler Gunn <tgunn@google.com> Fix issue where secondary call info overlaps video preview.

Other issues:
- Secondary caller info should not be shown when in fullscreen mode.

Solution:
- Added onSecondaryCallerInfoVisibilityChanged to InCallEventListener (
which is documented as a place for events between fragments).
- In CallCard fragment, call notify listeners of this callback of the
state change.
- In VideoCallPresenter/Fragment, handle changes to the visibility of the
secondary caller info box to shift the preview surface up or down.
- Added hide/show animation for the secondary caller info when entering
and exiting fullscreen mode.

Bug: 20914754
Change-Id: I32ccccd6d881c494688de6d9a965f80c43d50e79
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
374e9ff6201cc212278aa43ea2eaafeaffb7be4a 13-May-2015 Yorke Lee <yorkelee@google.com> DO NOT MERGE More video related API fixes

android.telecom.Connection.VideoProvider
* onSetPauseImage takes Uri instead of String
* changeCallDataUsage -> setCallDataUsage
* add quality constants to changeVideoQuality() docs

android.telecom.InCallService.VideoCall
* setPauseImage takes Uri instea dof String

android.telecom.VideoProfile.VideoState
* Move constants to VideoProfile, prefix with STATE_

Bug: 21040387
Bug: 21066505
Change-Id: I764e72aced9d1e2d30d6d0cf0862100860d47c79
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
18aaec1d250a5c5239ec5f06363f6fbb2519c55e 13-May-2015 Ihab Awad <ihab@google.com> Refactor StatusHints (3/3)

Refactor StatusHints to use the new Icon class.

Bug: 21040387
Change-Id: If5f92bfc83ddad37370832e457be65ab2440a1cf
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
678775006531155eec0da47ae6889bf03ad9a710 13-May-2015 Yorke Lee <yorkelee@google.com> More video related API fixes

android.telecom.Connection.VideoProvider
* onSetPauseImage takes Uri instead of String
* changeCallDataUsage -> setCallDataUsage
* add quality constants to changeVideoQuality() docs

android.telecom.InCallService.VideoCall
* setPauseImage takes Uri instea dof String

android.telecom.VideoProfile.VideoState
* Move constants to VideoProfile, prefix with STATE_

Bug: 21040387
Bug: 21066505
Change-Id: I764e72aced9d1e2d30d6d0cf0862100860d47c79
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
4309a7d0dd1c08d48e703849001cc109be0e95d1 12-May-2015 Yorke Lee <yorkelee@google.com> Merge "Save CNAP in call history" into mnc-dev
848e15821b95718f54a95259d239ff799d2b7449 12-May-2015 Tyler Gunn <tgunn@google.com> Merge "Handle fullscreen mode toggle when tapping contact photo." into mnc-dev
3326f42f13f6f8cd8934aec615078a8890212402 12-May-2015 Tyler Gunn <tgunn@google.com> Handle fullscreen mode toggle when tapping contact photo.

1. Moved the fullscreen mode state tracking and logic from
VideoCallPresenter to InCallPresenter (since it is more to do with the
entire InCall UI rather than just the video presenter).
2. Added click handler for the contact card to toggle fullscreen video
mode.

Bug: 20912417
Change-Id: If1656365f7fcfcee5a902c7f5d5d2862edee1661
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
5795518d822b644c4e0c9efdba512ff1f7c04aed 11-May-2015 Yorke Lee <yorkelee@google.com> Save CNAP in call history

If the call contains necessary CNAP information, try to save
it into the CachedNumberLookupService.

Bug: 10121624
Change-Id: I2e842b3145e00618b1afd3ed661d7c40764d0536
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
63ce9a33a06df1ebc5c338afcae625b19bf6c40f 11-May-2015 Tyler Gunn <tgunn@google.com> Handle fullscreen mode toggle when tapping contact photo.

1. Moved the fullscreen mode state tracking and logic from
VideoCallPresenter to InCallPresenter (since it is more to do with the
entire InCall UI rather than just the video presenter).
2. Added click handler for the contact card to toggle fullscreen video
mode.

Bug: 20912417
Change-Id: If1656365f7fcfcee5a902c7f5d5d2862edee1661
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7db97b190a4192a6b0a7305b6c055c0f546845d6 11-May-2015 Yorke Lee <yorkelee@google.com> Merge "Show end call button for disconnecting calls" into mnc-dev
4c058612097eba72b33d83f5612012a90167957a 11-May-2015 Yorke Lee <yorkelee@google.com> Show end call button for disconnecting calls

Bug: 21017840
Change-Id: I05a239db26b7c47a744b96549fb1b7e5440a824c
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
df3ef3fc3d10573507c6451bffd1f55dfcb475dd 11-May-2015 Andrew Lee <anwlee@google.com> Don't use static instance of EmergencyCallListener.

There's a couple ways to fix this, but this seemed to be the most
straightforward one. Basically, we want the values for the emergency
call listener (ie. the cached isEmergency value) to reset across
different displays of the InCall UI.

Bug: 21027909
Change-Id: I0b42873e3fa52ee2fc8ee98ee876caf31ec98883
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.java
2814d5b00bed0dda6152e749a552e9951ad22480 29-Apr-2015 Andrew Lee <anwlee@google.com> DO NOT MERGE Use new Call.Details.PROPERTY_* values.

Bug: 20160395
Change-Id: Ibc877c3d6898770bce4bd96bdcbe673061141892
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
59585f80dce30e53ea30f08f11089f6cdd6e41fb 29-Apr-2015 Andrew Lee <anwlee@google.com> Use new Call.Details.PROPERTY_* values.

Bug: 20160395
Change-Id: Ibc877c3d6898770bce4bd96bdcbe673061141892
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
ec3a0803d99d202fc4bc9085e185b11300eade00 30-Apr-2015 Tyler Gunn <tgunn@google.com> 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/CallCardPresenter.java
c92dfda472a5a68b462d12ae459040dc3d41640f 24-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit 'a099cac' into merge2
89aad4adce9cc66294f15391fa3e10f3123d3d92 10-Apr-2015 Andrew Lee <anwlee@google.com> Add EmergencyCallListener.

+ Add EmergencyCallListener, which fires when the call card
is updated to indicate whether the call is an emergency call or not.

Bug: 20300758
Change-Id: Ie9ad6ddecb278b56226804f5009504b4cc8b4cd5
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
bf637f2988d67332e56e39578738d6e4cd86df00 16-Apr-2015 Andrew Lee <anwlee@google.com> Show IMS Conference StatusHints in InCall.
automerge: 1838e77

* commit '1838e77845e2ba822bc7f510515b50cf00ddc2a4':
Show IMS Conference StatusHints in InCall.
2be016ffdd6e28cfa190971c4a0897457d2e216b 16-Apr-2015 Vinit Deshpande <vinitd@google.com> Merge changes from topic 'mwd-merge-041515'

* changes:
Fix build issues after the merge
am b04d61a..697f674 from mirror-m-wireless-internal-release
dc3122e9d7bc0c6f5fef00bed36bb300c40afadf 15-Apr-2015 Andrew Lee <anwlee@google.com> Show IMS Conference StatusHints in InCall.

A lot of this logic for figuring out what label should be shown seems
like it should be determined in the presenter, rather than passing
through all this information to the fragment, but it can be cleaned up
at another time.

+ minor layout tweak.

Bug: 20181703
Change-Id: I392ce7cffc8c05eb94859892e899ce7c693895aa
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
01ad85125dd7cbe1107c679dcc362b9487700b9a 15-Apr-2015 Vinit Deshpande <vinitd@google.com> am b04d61a..697f674 from mirror-m-wireless-internal-release

697f674 Fix orientation of preview surface when device rotated.
17de502 Merge "Always allow landscape mode if video call is the primary call" into m-wireless-dev
3692e77 Always allow landscape mode if video call is the primary call
a77ad8d Video calling landscape changes to match specs
cb74fc0 Merge "Simplify and rewire in-call buttons" into m-wireless-dev
ed0775d Simplify and rewire in-call buttons
80a1aad Hide incoming video until call is connected.
4f2a70b Merge "Cleanup AnswerFragment glowpad UI" into m-wireless-dev
6591f05 Merge "Initial refactoring for call buttons" into m-wireless-dev
c70a63c Initial refactoring for call buttons
4a63afd Hide end call button when video upgrade glowpad is showing
7ba13e9 Cleanup AnswerFragment glowpad UI
6b2b8df Show progress spinner when upgrading to video
c02794b Merge "Cleanup of Video Call pause functionality." into m-wireless-dev
bec5807 Standardize fragment layout names
bc65cbc Adding video call icon in secondary call info.
73d0f07ecabe3dee9252435a87de27020eafc0e2 14-Apr-2015 Yorke Lee <yorkelee@google.com> DO NOT MERGE Follow TelecomManager API changes

Bug: 20160799

Change-Id: I47d4f5e511b59ecf5357f62a36144763c90d1246
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
5b592ce22da61660c21752122d8172f7dbc0c796 14-Apr-2015 Yorke Lee <yorkelee@google.com> Follow TelecomManager API changes

Bug: 20160799

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

Change-Id: I4cfea114e24c0b0671e99118316ad839dafbe400
fdf53779ba6d68e28e005e3645378aea7bd76ec0 10-Apr-2015 Yorke Lee <yorkelee@google.com> Hide end call button when video upgrade glowpad is showing

Bug: 20090411
Change-Id: I25bca70e2e2a40bbd88b55ba386d39cd796cb414
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
55576e529a3fa7183a698669374b9c2dd28ad5c5 09-Apr-2015 Yorke Lee <yorkelee@google.com> Show progress spinner when upgrading to video

Show spinner when waiting for remote consent.
Also correctly propagate sessionModification state when
downgrading to audio.

Bug: 20090442
Change-Id: If733ce99683436c751a26a6511e6a41bac637c30
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
e96c83ad0a8f52a060d0ba7eac2290eb95b3b1c5 08-Apr-2015 Tyler Gunn <tgunn@google.com> Adding video call icon in secondary call info.

- Icon indicates that a call is a video call. Per mocks.

Bug: 20119995
Change-Id: Ibccfccaa3f2762659282bbde433796fe20da361c
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
98c3b09822844ce61685f794da36c74490a7046c 01-Apr-2015 Yorke Lee <yorkelee@google.com> am ff538092: am 2f583c60: am cf2da3d6: Don\'t hide end call button until call is disconnected

* commit 'ff538092b15f379019876c6c4440d225eafd18f4':
Don't hide end call button until call is disconnected
f778d96f3d8ead00ed1708aa12b7d2702948c95c 30-Mar-2015 Yorke Lee <yorkelee@google.com> Don't hide end call button until call is disconnected

Currently, the end call button is hidden the moment the user
initates a hangup. In the event that the call is not actually
disconnected, the UI is stuck in a "Hanging up" state that is
unresponsive

For the majority of calls that disconnect correctly, there should
be no user-perceptible difference in behavior. For calls that are
not disconnected correctly, the end call button will remain showing
so that hangup commands can continue to be sent that will eventually
disconnect the call correctly.

Bug: 19933863
Change-Id: I2ff2018d7d229615f5f57c599f74954ec7492f6b
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.java
300b3d0b7e3c335483febbf8fc5ee0ee4f059c39 26-Mar-2015 Yorke Lee <yorkelee@google.com> merge changes from m-wireless

Change-Id: Id93b2d6e840baaa0b9b42b4595bca0dc41972994
d274e92414988c72708af270e3799b83b4e3b40c 24-Mar-2015 Jay Shrauner <shrauner@google.com> Fix NPE in endCallClicked

Save the call id before setting disconnect state in case a state change
callback causes the primary call object to be cleared.

Bug:19893538
Change-Id: Ib6583bfb25023bf514ee073e4970b18844d8561b
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
22875bb1d3fa4f023e6ca127a77159ab42bbbabc 25-Mar-2015 Andrew Lee <anwlee@google.com> Don\'t show SSID for Wi-Fi calls.
automerge: 1a3d05d

* commit '1a3d05dc126773f0e0d32135f9b1018f1a4c8b5e':
Don't show SSID for Wi-Fi calls.
fd0b577edffa5413adfda1503038a3bff3247106 20-Mar-2015 Yorke Lee <yorkelee@google.com> Dynamically add/remove CallCardFragment

Only show the CallCardFragment when it is needed:

1) Incoming calls
2) After completion of circular reveal

Also make Calls class public so that it can be mocked with
Mockito

Change-Id: Ife7ed38bde25daf5a9fd0329ade5e794fa1bff65
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
82332c921b8dcef213700822e2404b005adab00c 20-Mar-2015 Andrew Lee <anwlee@google.com> Don't show SSID for Wi-Fi calls.

- Delete wifi icon and method to get SSID.
+ Use labels provided by StatusHints instead.

I'm not very happy with the additional "isWifi" cases I ended up
adding in call card fragment.

I felt this was necessary because of assumptions in some cases
that if a label is provided, it should be formatted as a phone
account source. While this was true before, it's becoming less so.
I feel like the fragment shouldn't have to worry about formatting
or choosing the label based on the call and conditions. It should
just display the label if it thinks it is appropriate to show a
label given the call state.

To fix that, it seems like logic should be moved to the presenter
instead, and possibly to Telephony. But, I'm hesitant to do that
until these WFC changes back merge to master because of potential
merge conflicts and its slightly more risky for this branch,
because it starts dealing with logic/flows outside of WFC..

Bug: 19866988
Change-Id: Iacd5a09259c84ea7be28b0170ae603eb9561f7ca
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
a42005350c1dd0aa956fe5f911f59e704b58c1c7 17-Mar-2015 Yorke Lee <yorkelee@google.com> DO NOT MERGE Don't hide caller photo for video call

Bug: 19728020
Change-Id: I6e5259c63553de9e5060621bcc749d1039b67ea1
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
19b4298121d5fcf6b69e972a37c5ddaad4dafa55 17-Mar-2015 Yorke Lee <yorkelee@google.com> Don't hide caller photo for video call

Bug: 19728020
Change-Id: I6e5259c63553de9e5060621bcc749d1039b67ea1
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
df3be1ebad0d471c5c0ef8b11db457a1c5371a50 16-Mar-2015 Vinit Deshpande <vinitd@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release'

Change-Id: I9f37386b36eeee2afffb20464265f92d5c5942d3
c4fac46c65d20da815b37f3d1dbe2ff748fa1f00 11-Mar-2015 Tyler Gunn <tgunn@google.com> Fix emergency callback number not shown for incoming calls.

- In CallCardPresenter#setCallbackNumber() check for the case where a call
has CAPABILITY_SHOW_CALLBACK_NUMBER. Use this to trigger showing the
Emergency Callback Number (the ECM is only shown on outgoing calls if the
user has a dark number).

Bug: 18689292
Change-Id: I94391e3be3360982742ce961272b680d0eaa32a5
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
bec041f1aa6654ff1071194bdb04ef6429109e4f 10-Mar-2015 Andrew Lee <anwlee@google.com> Indicate wifi for incoming calls.

This is done in the call card by showing the wifi icon.

This is done in the notification, by change the subtext.

For international calls in particular, this helps users understand
how accepting a phone call will affect the cost of their call.

Change-Id: Ifebd9f9cc8598b7fe5b693673b27a485f7ecdf0f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
6596e1be9d3e15e2cbe4a5e9c3824ee47a0e2744 20-Feb-2015 Yorke Lee <yorkelee@google.com> Remove CircularRevealActivity

Replace CircularRevealActivity with a fragment that is tied to
the lifecycle of InCallActivity so that InCallActivity is the
only activity that is involved in the outgoing call process.

Simplify some of the intent creation logic that is used to launch
InCallActivity since we no longer need some of the flags that were
currently provided via various method overloads in
InCallPresenter.getAnimationIntent and getInCallIntent.

To further simplify this CL, a very rudimentary approach is taken to
track the state where we are starting up the UI but haven't received
a call from Telecom yet. This is done by a boolean flag set on the
InCallPresenter: mBoundAndWaitingForOutgoingCall.

Further changes will build upon and improve this.

Also set most elements inside primary_call_info.xml to
visibility: GONE by default to fix some animation jank where a
empty but not GONE view would continue to take up space.

Change-Id: Ic70857685680af6868d4b2153d942d73eef3ca56
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
8cdac35f2aa80d1732dfc5fdaee1a21035a1bfcb 03-Feb-2015 Andrew Lee <anwlee@google.com> Show icon and network label when using Wifi.

+ Add Wifi icon and network label, to be shown when CAPABILITY_WIFI
is present on the primary call. Assume we can infer the network label
from the connection info returned by the WifiManager, supposing that
the phone can only be connected to one wifi network.
+ Add helper to strip quotation marks from wifi network name.
+ Reposition HD audio icon beneath the name, and to the left of the
number/location information.
+ Adjust assets and layout of call state and hd audio icons, to
center them in a more visually pleasing way in the view.

Bug: 19151850
Change-Id: Ic23d1e744960e80b65bc34a8e709266af508fe21
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
6dfd1963ecc89ecb2c76793ab40af26e35654285 25-Jan-2015 Nancy Chen <nancychen@google.com> Hide emergency callback number when slot2 SIM is default.

Because emergency calls are always made from the SIM in slot1, when
slot2 has the SIM set for default outgoing call, the InCallUI currently
thinks the emergency callback number is different from the number being
called from (the code only uses the default number). The fix is to check
the line 1 number of the phone account being used instead of the default
phone account.

Bug: 19087382
Change-Id: I90a096f63493affea979689c7ad188eec7109c08
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
f0dfbe2e89df0d58efde8b290662072c081e146a 20-Dec-2014 Nancy Chen <nancychen@google.com> Call duration should be verbalized as hours, minutes, seconds.

Currently the call duration in the InCallUI is read as a time. It should
be read in terms of hours, minutes, seconds. Updated contentDescription
to match this specification.

Bug: 18761699
Change-Id: I5b6eded63471c905638e05a5b5336403568f77e9
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
56688065dd74cc6a254d3dff7769dd59b541432c 03-Dec-2014 Andrew Lee <anwlee@google.com> Merge "Show HD audio icon." into lmp-mr1-dev
10f63a9e5ee4e53eee6d050e53b9c52a328a7c1a 03-Dec-2014 Nancy Chen <nancychen@google.com> Merge "Change Log.wtf to Log.w to prevent rare crash." into lmp-mr1-dev
6c3061091e59e9ab06b620c2615b897e2eca233c 02-Dec-2014 Andrew Lee <anwlee@google.com> Show HD audio icon.

Leveraging the same mechanism we use for indicating subscriptions.
I don't think we have any cases where we need to show more than one
icon for the moment; we can add functionality to show more if its
necessary later.

Bug: 18103173
Change-Id: I1134f6114e17d4492276dc4e19c4746fc38a3ab7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
8b514c9571c587b2e87edfffa38afde4f0458579 02-Dec-2014 Nancy Chen <nancychen@google.com> Change Log.wtf to Log.w to prevent rare crash.

Occasionally the message "Secondary info clicked but no secondary call."
will cause a crash because it is logging wtf. It's not quite clear why
this happens but is not causing any behavioral problems. Also no defined
repo steps, but it's low-risk to turn Log.wtf to Log.w which will just
log a warning instead of crash.

Bug: 18465594

Change-Id: Ied23e5b52162cf68089bd5248fbdbf9e05eefdf8
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
dabb63ef13c9ab30c54adfbbd736f76723f337c1 02-Dec-2014 Nancy Chen <nancychen@google.com> Merge "Stop ringer when selecting "respond via text"." into lmp-mr1-dev
91c8043c43dc2fe2655717c5a4c2ec660e33b96f 13-Nov-2014 Ihab Awad <ihab@google.com> Telecom API updates (3/6)

Bug: 18292176
Change-Id: I5bcb1838a8423f15ebdf87c945ca91da460506f4
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
170e405691a237b74fbecbf41208cbaa5bd36442 26-Nov-2014 Nancy Chen <nancychen@google.com> Stop ringer when selecting "respond via text".

Ringer should stop while user is selecting response from "respond via
text" dialog.

Bug: 14656360
Change-Id: Ib73e6f10f1bda8363b65391a53e61dc5eb5d8d8d
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
15b3fb7207bc356b2ee6ce1e8264d8242bb092ec 25-Nov-2014 Jay Shrauner <shrauner@google.com> Fix NPE in getCallProviderLabel

Bug:18506544
Change-Id: I720e090bdda87904f61fa6fd0f1aa95844a4fe71
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
017ebaba75180c0a8deb9de3f819cbae92d45e72 15-Nov-2014 Andrew Lee <anwlee@google.com> Use conference call label for IMS calls.

- Use GENERIC_CONFERENCE capability to show CDMA-scenario string
and image asset.
- Since mPrimary/mSecondary and others are class variables, don't
pass them around all the time through functions if we don't need to.
- Split out the isConference logic for setting the call cards into
its own block.
- Move logic for specifying conference string / icon into the
CallCardPresenter. This makes more sense here, and means that we
don't need to pass around a bunch of call paraemters to the fragment.

Not all these changes are strictly necessary for the change I need to
do, but I had made them originally because I had been thinking of
using the VoLTE capability. Even though now I use GENERIC capability,
I think the changes are still an improvement in terms of organization
though.

Bug: 18284408
Change-Id: I41d7825611456e9ea524db9dd2ef19c9646ab7e2
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
0cff18feff43a6915919ac8e32fa44502aa6c320 10-Nov-2014 Tyler Gunn <tgunn@google.com> Add support for >5 participants to InCall manage conference UI.

- Previous UI had space in the layout for 5 participants only.
- Replaced the 5 static participant slots with a ListView.
- Created a new Adapter to populate the list.
- Added logic in the adapter to request contact info and photo from the
contact info cache -- this is required for conference event package
participants as they may not have had that information loaded yet.

Bug: 18201339
Change-Id: Ieb8038922d2cb4cb1dfce392cf5889e966ff2895
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
ab86f04c5ed385eafcd9099fa4ca50fd2f4c5c33 04-Nov-2014 Nancy Chen <nancychen@google.com> Remove provider icon from InCallUI.

Because we are now using the SIM color to designate which SIM is being
used in the InCallUI, we are removing the icon from the primary and
secondary call info fields.

Bug: 18204058
Change-Id: Ibc0b74ce2a104e7aa506a2d200c0e1b9997df7d5
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
e0ec202ff354be3cd3bded7af8fca678dea7fb61 17-Oct-2014 Andrew Lee <anwlee@google.com> Update UI based on MANAGE_CONFERENCE capability.

- Remove the manage conference button if capability disabled.

- Close the conference call manager if the capability is removed
while the conference manager is visible.

Bug: 17429707
Change-Id: Id242d776aa7b677edd4604b7c23caee315154b1b
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
33478eae2d380adfcc7ef3f51816ff391a42ebb7 26-Sep-2014 Ihab Awad <ihab@google.com> Preemptively update In-Call UI upon hangup

Updates the In-Call UI right away after hangup, to give the user
immediate feedback despite any disconnect delays that may exist in
the underlying layers.

Bug: 17480900
Change-Id: Iccd6a3d5bae9159284883df116822670557080f7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
322aeef2d1b8785eeeab083d947fb4bff561c7ac 17-Sep-2014 Evan Charlton <evanc@google.com> Merge "Pass Context to InCall ObjectFactory" into lmp-dev
d6d94b8511ffc81038a2862b656f174544fd535a 17-Sep-2014 Nancy Chen <nancychen@google.com> Merge "Remove ability to enable/disable phoneaccounts (5/6)" into lmp-dev
a7a1df74458e7984e19e7254f013528028400d26 16-Sep-2014 Andrew Lee <anwlee@google.com> Merge "Update InCallUi to use telecomm DisconnectCause." into lmp-dev
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/CallCardPresenter.java
6833a93aceeefb098d095fbad59fba0ca3561b6d 16-Sep-2014 Nancy Chen <nancychen@google.com> Remove ability to enable/disable phoneaccounts (5/6)

Enabling/disabling of phone accounts was only used for SIP accounts and
is no longer necessary for the purpose it was put in.

Bug: 17510811

Change-Id: I86187298b6f71e2315144dce5aa8e0672f7bbd7f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
71afa1c7d1e1f49af56c24bdc64d30d80cf1ea68 16-Sep-2014 Evan Charlton <evanc@google.com> Pass Context to InCall ObjectFactory

When calling InCall's ObjectFactory to create Intents, pass along the
current Context.

Bug: 17523252
Change-Id: I301df3c046d6e2bd5ddf4b3501a567cd23c0471f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
83f012b78f125279d566f6428c337e588e89b6b8 16-Sep-2014 Evan Charlton <evanc@google.com> Merge "Send a broadcast on call state button touch" into lmp-dev
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/CallCardPresenter.java
f925b504266f80ec0b74212c403475f5cc790ab0 12-Sep-2014 Evan Charlton <evanc@google.com> Send a broadcast on call state button touch

When the call state button is touched, send an OEM-provided Intent
so that OEMs can customize this behavior if they choose to.

Bug: 16988478
Change-Id: Icf5a53fd6a4ad1493cba707df4e8e2468bd7eb96
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7e22b5a079452264e6d33f3ec28d6bbf9cb19db3 11-Sep-2014 Nancy Chen <nancychen@google.com> Merge "Make changes to Connection in Telecomm API (4/4)" into lmp-dev
07fd3fd3ac627faf1771ba4699fe53a0479f2293 08-Sep-2014 Nancy Chen <nancychen@google.com> API changes in GatewayInfo, Response, and PropertyPresentation (2/4)

* GatewayInfo: handle -> address, becomes SystemApi
* Response: hidden
* PropertyPresentation: class goes away, constants move to
TelecommManager

Bug: 17329632

Change-Id: I56180181a65e4b726e569aa4b8ac4cbb8dab00f9
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
ea4ffe5c3c0a22bc6ff6e995ce954eec84fad7bc 09-Sep-2014 Nancy Chen <nancychen@google.com> Make changes to Connection in Telecomm API (4/4)

* onPhoneAccountClicked removed
* onSetAudioState -> onAudioStateChanged
* onSetState -> onStateChanged

Bug: 17329632
Change-Id: Ib949b5565fea0ce7d241ed5af5619b3509c0218d
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
811ce433e517ed5cf4fd0932f2bac619a07cfc12 08-Sep-2014 Andrew Lee <anwlee@google.com> Merge "Use schema-specific part of uri to get emergency number." into lmp-dev
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/CallCardPresenter.java
9e27dca4bc1be09bcb1d283b2fe3ba3d49f0748b 05-Sep-2014 Andrew Lee <anwlee@google.com> Use schema-specific part of uri to get emergency number.

Bug: 17329632
Change-Id: Icceee211aa9c50d406b53dc1e6c2f8ea4f827644
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
8ecbbb5ec14c797fdc3834f3c7d30a0e14edcaf9 28-Aug-2014 Yorke Lee <yorkelee@google.com> Fix possible NPEs in CallCardPresenter

It is possible for mSecondaryContactInfo and mSecondaryCall to
be out of sync due to the contact cache callback happening after
a change in call state.

If such a case happens, ignore the updated contact info change since
the call has been destroyed and nulled out.

Bug: 17309877
Change-Id: I70d8f7ca77e6b4971cf9335b00170bbdb7cf7fcd
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
e16e53167b367656840df665457e71e66bc966de 26-Aug-2014 Andrew Lee <anwlee@google.com> Null protect maybeShowConferenceCallButton.

Bug: 17274805
Change-Id: Id25b325e9d59b63632eb55c514af409555707b9d
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
1da81ce59cfbebd4e53fdfd2011e859069120de7 23-Aug-2014 Andrew Lee <anwlee@google.com> Move "manage conference calls" button above photo.

- Remove it from the CallButtonFragment. This meant that related
logic was removed from CallButtonFragment/Presenter, and similar
logic was added to the CallCardFragment/Presenter.
- Delete old groups icons. (new ones added in ContactsCommon)
- Delete the extra_button_row logic.
+ Replace extra_button_row with a dedicated "manage conference
calls" button, and added to call card content layouts.
+ Style the new button to be similar to the secondary call info.

Bug: 15862303
Change-Id: I2b4e1a3a30422c7d5e9c01479f13291a785d85f3
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
cda81c2ef1ba595c35ae1d4ad72c44f3443e08fd 22-Aug-2014 Tyler Gunn <tgunn@google.com> Ensuring Video APIs are only called when video is available.

Bug: 17179079
Change-Id: I3b327250c181f821ec37d574ae804f8003d04603
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
a72a9116ae170239c5cc34dc1f46a4a165c1974b 20-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Ensure the InCallUI does not reanimate when it already is shown." into lmp-dev
c44f654b992c6ab8a4acff9cb5aa2678c58755d9 18-Aug-2014 Andrew Lee <anwlee@google.com> Move hold "bar" to the bottom of the screen.

+ Adjust FAB positioning scenarios; scale in and out instead of
translating when showing/hiding.
+ Translate FAB depending on whether secondary call info is shown.

Bug: 16399233
Bug: 15862303
Change-Id: Ibbf89f717a38f2ed6d4d995544e290da4d4d7462
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
537431d81624ea24d71df8e42251e795dcdc0d3c 09-Aug-2014 Nancy Chen <nancychen@google.com> Ensure the InCallUI does not reanimate when it already is shown.

Closely restrict the cases where the InCallUI is initialized.

Bug: 16898291
Change-Id: I78be81f140b8de24fdd4a27cdf0aa01c6a230e3a
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
3718dcb345e77e421ab18a760e48f0c3a760fcca 08-Aug-2014 Ihab Awad <ihab@google.com> Final structural tweaks to Telecomm API (3/8)

Bug: 16416927
Bug: 16494880
Change-Id: If756941a5bdd25ff8ac633a56fe90c894d4a46a4
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
86a7f5639fd0798c3b4500166f97649949237215 12-Aug-2014 Andrew Lee <anwlee@google.com> Fix build.

Change-Id: Ic0d22fe4aeebc676b77ed5d184b6b906d9798e63
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
fd678c32c19445c3bf41b36a97a6b48669b35061 12-Aug-2014 Sailesh Nepal <sail@google.com> Merge "Hookup StatusHints to call state label" into lmp-dev
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/CallCardPresenter.java
ee9ec0928055307dc5d1f5c7509c301951a444a5 10-Aug-2014 Sailesh Nepal <sail@google.com> Hookup StatusHints to call state label

This CL hooks up StatusHints to the call state label.
This is used by Hangouts to show WiFi calling and
handoff status.

This CL also fixes a bug where the callback number was
not displayed for non-emergency numbers.

Bug: 13333680
Change-Id: I012967a0ccbffe87f1a365e2e3537b2f1d832501
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.java
91a369b019b39c5335a4f5d251691c0cdb657f7d 31-Jul-2014 Andrew Lee <anwlee@google.com> Change audio to speakerphone for video call.

+ some minor cleanups with naming and listeners.

Bug: 16679238
Change-Id: Ic89b862b035ce6c99d8d7ec0fe5842b6a4b20ac4
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
9c4226952c74f024c09e0bd381048493993c974e 25-Jul-2014 Andrew Lee <anwlee@google.com> Status labels for video calls.

- Display the appropriate status labels for video calls, mostly
depending on whether one is in a video call, and whether one
has requested video and is waiting for a response, or a video
request has failed.
- Add a handler to the CallCardPresenter, so we can show an error
message in the fail case, but only show the message for a time.
- Add video icon in layout.
- Renamed CallVideoClientNotifier to reflect newer nomenclature.
- Add session modification state information on InCallUI call. This
helps us track state to know what strings to display on the card.

Bug: 16013340
Change-Id: Ib2bf84d93a05664adbf7fe838848b7d7b54a8254
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
5b3f5ed7d9ffa02c2255a68e6a4be969f0116104 31-Jul-2014 Yorke Lee <yorkelee@google.com> Fix activity leaks in InCallUI

We were holding a reference to anonymous inner classes in CallCardPresenter
in an static instance of ContactInfoCache, which was causing activity leaks.
Refactor ContactInfoCacheCallback into a static inner class so that this
fixes the problem.

Bug: 16657866
Change-Id: I4da5cecd556f80fafd27f919b0aaa7f00b2a96f5
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.java
6f8b826d05aae5f3e28b63890439f2a3b6511346 26-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Stop using private APIs in InCallUI" into lmp-dev
d5b908ee536eb33d80abc4b28110b10d18fe0a8e 25-Jul-2014 Yorke Lee <yorkelee@google.com> Stop using private APIs in InCallUI

The following APIs/packages are private and should not be used

TelephonyManager.from(context) (use getSystemService(Context.TELEPHONY_SERVICE instead)
TelecommManager.from(context) (use getSystemService(Context.TELECOMM_SERVICE instead)
com.google.android.collect (use com.google.common.collect instead)
com.android.internal.util.Preconditions (use com.google.common.base.Preconditions instead)

Bug: 6948882
Change-Id: Ib939fdf704a340a51294eca8eabfda82022f6d9f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
8a80413884d1afbd7e021d581546c2245f068619 23-Jul-2014 Nancy Chen <nancychen@google.com> Hide multiple-account information if there is only a single account

The InCallUI call state label will show "...via [account]" if multiple
accounts exist, this change will hide this if there is only a single
account.

Bug: 16483795
Change-Id: I11caea8df82058e9eb427a972ecb877ef7a73f1f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
3676fd514ce0844761df8c8098cd2e2c74cf2f1d 23-Jul-2014 Tyler Gunn <tgunn@google.com> Merge "InCall UI VT changes" into lmp-dev
434efb0c931927bb2f7d1229396208531a3b3fff 22-Jul-2014 Santos Cordon <santoscordon@google.com> Change display Strings to CharSequence (3/3)

Bug: 16416927
Change-Id: Id8b6e5029a8a1f61bbbf71661abe4d487c01002a
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
1869dcf386a96f060a16ac74f1722d816b69aa7d 22-Jul-2014 Tyler Gunn <tgunn@google.com> InCall UI VT changes

1. Adding CallVideoClientNotifier - used by InCallVideoClient to notify
interested listeners of events related to call video clients.
2. Change InCallVideoClient to use CallVideoClientNotifier to notify
listeners of incoming events.
3. Modify call details listener signature in InCallPresenter to include
the call for which the details changed.
4. Changing VideoCallPresenter to subscribe to call details changes,
so it will keep informed of changes to the video state of the call.

Bug: 16012946
Change-Id: I47aa2a8e8c852bb7e4ea2e83fa4a30b2697266e6
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
3d78d0ff165787a1e4ac4bb8d2f2dcd6879556c9 21-Jul-2014 Santos Cordon <santoscordon@google.com> Merge "Fix InCall to handle null handles." into lmp-dev
da7f422a46db4bfe5cf76312d23b44e60fa9d806 21-Jul-2014 Santos Cordon <santoscordon@google.com> Fix InCall to handle null handles.

Change-Id: I56d90d4b74b6d44d6be438a7268cc3e99ceeec04
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
b6f45c2768f5af916ee3257542a3ab03611c1f5e 20-Jul-2014 Evan Charlton <evanc@google.com> Rename PhoneAccountMetadata to PhoneAccount

Change-Id: I4597b14110c1cee7f637ec125b839852ef0f34c4
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
76e1b4bfb2e21300068f10cc94922214e62c8f86 20-Jul-2014 Evan Charlton <evanc@google.com> Rename PhoneAccount to PhoneAccountHandle

Change-Id: I2e97b348e6316a8b3ccc39fd81013e7f514a2889
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
e0d42c9be53179e60b0f8acd2964ca4428bb1239 21-Jul-2014 Tyler Gunn <tgunn@google.com> Merge "Video call surfaces and changing to video UI on videoState change." into lmp-dev
804baccc3aeed4ed00d1f0a62ecc37fb5ea6d9fd 20-Jul-2014 Tyler Gunn <tgunn@google.com> Video call surfaces and changing to video UI on videoState change.

Bug: 16012946
Change-Id: I1e86b172d46d3e67eff210d9f56e03a2e6c93853
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
21130801fcf542ac33cea4ebc4cfa7803a90cacb 20-Jul-2014 Evan Charlton <evanc@google.com> Migrate TelecommConstants to TelecommManager

Change-Id: Icdd7637ba1ae27ce7d1f13714257b4a946961037
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
0786dba0baa54fd12697b4795e7c646cfe4ae5c3 18-Jul-2014 Evan Charlton <evanc@google.com> Show callback numbers when appropriate

When a callback number is set, make the decision about when (and how)
to show it to the user. The number is shown when it's different than
the user's known line 1 number. If the call is placed to an emergency
service, then make sure the user knows that.

Bug: 13333595
Change-Id: I0d3b2cfcea08aeba760c392c116303f21beb70d3
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
c108b49ad5440fbf381c9a589d8a217da3efcb64 18-Jul-2014 Ihab Awad <ihab@google.com> Fix NPE in InCallUI

Change-Id: I22eb45d1f12a4097bd453692b5dff19c9fa179bc
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
0e84b83f23af354872b64fc1d1d77d22d825c71c 15-Jul-2014 Evan Charlton <evanc@google.com> Show message or call-back number in InCallUI

If the ConnectionService sets a call-back number or message, show
it in the in-call UI.

Bug: 13334257
Bug: 13334252

Change-Id: If7fde7c1ca6940cec8b7232469a22900c36dbb17
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
a39948564946dabae36a7201eb5c28d8941b96c3 15-Jul-2014 Sailesh Nepal <sail@google.com> Fix null PhoneAccountMeta data crash

Change-Id: Ifb9c7fea6f95aa8662cc3780ff2ee92ace8572ef
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
121213bc2768e7666454b0940f23a77621936b5f 15-Jul-2014 Santos Cordon <santoscordon@google.com> Merge "Implement multi-SIM capabilities (4/6) [DO NOT MERGE]" into lmp-dev
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/CallCardPresenter.java
4feb57b986dc6b1edc5dc026a926b4934778716d 09-Jul-2014 Ihab Awad <ihab@google.com> Implement multi-SIM capabilities (4/6) [DO NOT MERGE]

Bug:16292368
Change-Id: I24de420bcba2215b70a3faacd858fe848388a31e
(cherry picked from commit e01f3db6e2bf865790c6849b594eb0472918ca8d)
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
ffe95c5be32c9dbb93e0eae168c18960ac72503a 11-Jul-2014 Nancy Chen <nancychen@google.com> Merge "Remove bluetooth icon from call state banner and change toolbar carrot"
a548a7a758928c8c675d93454e6a5c85d8b896cb 09-Jul-2014 Nancy Chen <nancychen@google.com> Remove bluetooth icon from call state banner and change toolbar carrot

The call state banner icon will only be used for call provider/wifi
icons so the incoming bluetooth icon needs to be removed. Also the 45
degree carrot is being replaced by the downward carrot.

Bug: 15767934
Change-Id: I4ff01eba32fe65c05dcb099cb4fe8092ec2b64ef
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
76855c20de037a38b02716642cd27be674772f2d 09-Jul-2014 Makoto Onuki <omakoto@google.com> Use enterprise caller-id in incall.

- Use PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI for caller-id.

- Removed a bunch of unused code.

- Renamed fields that will have different semantics. e.g. contactId now will be
0 and lookupUri null for corp contacts.

- Simplify the sip caller-id lookup. The regular caller-id lookup can also
do SIP. The original code (http://ag/70555) was written before CP2 supported
it (http://ag/147367). This needs QAing.

- Instead of passing around a contact-id to later load a contact picture,
use the picture URI returned from the API.

Bug 15779911

Change-Id: Ia755b9079d03d9236f824c2f1102a6fa902b2097
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
f8b0677bed382046cb26e38a8442a9509d1e835c 03-Jul-2014 Sailesh Nepal <sail@google.com> Remove handoff UI

This CL removes handoff related UI and implements
phoneAccountClicked

Change-Id: Iab1595faaadcdfe428d97891d314babea21e9633
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
df22018185375d2de96673ee8f16d1520283d662 01-Jul-2014 Ihab Awad <ihab@google.com> Rename Telecomm "Subscription" to "Account" (4/7)

Change-Id: Ibefa8bedc4996014fc0a62b3deaa0aed0eec2b10
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
bd93cb5444e886266b47e504138bcc65e6f09cbe 19-Jun-2014 Nancy Chen <nancychen@google.com> InCallUI displaying Multi-SIM/Subscription/Wifi calling

Dynamic text and icon to represent information for the provider of the
call. This can be the name of the subscription, connection provider, or
wifi connection. This will show up at the banner above the name/number
of the call for incoming, outgoing, and active calls.

Change-Id: I065f12d41f5d62965d82c955aed9ee070628cadc
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
e5c0d8bdf8269f9435e0381889e4870f36a43f07 20-May-2014 Andrew Lee <anwlee@google.com> Update call waiting UI.

- Reposition secondary call info location.
- Simplify secondary call info; remove secondary photo.
- Tweak secondary photo colors and padding.

Bug: 14492083
Change-Id: I8ab37f9086b089480dec41ca0940d44d36a7b01e
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
32027ae1f52232258cc8133d383459f3b4ee57e4 16-May-2014 Yorke Lee <yorkelee@google.com> Correctly set state to call card fragment

Change-Id: Id7b83c711af58adfeebfa1d134ab8d5913934e98
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
8aac1a358f2caf6c21c603bae9c9d4bd075eb155 16-May-2014 Evan Charlton <evanc@google.com> Merge remote-tracking branch 'goog/master-nova' into merge

Conflicts:
res/layout/call_card.xml
res/values-da/strings.xml
res/values-hi/strings.xml
src/com/android/incallui/CallButtonPresenter.java
src/com/android/incallui/CallCardFragment.java
src/com/android/incallui/CallCardPresenter.java
src/com/android/incallui/DialpadFragment.java

Change-Id: I6b3a2b063a2efd76330d4833cd95be3132f01462
cb2f51bf1acf387f391ca9c8cae8a2344eb2936a 15-May-2014 Evan Charlton <evanc@google.com> Fix end-call button

Fix the end-call button wiring (was broken due to a bad merge).

Bug: 14986852
Change-Id: Ie284f1840745fb7fdd752edf7c55186c9cba3073
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
000e55e2823c44bd89b6fa832945b7daa47ccd48 14-May-2014 Evan Charlton <evanc@google.com> Fix the build

Fix the build by hacking around some errors, and scrubbing some old
ThirdPartyPhone imports.

Change-Id: I6d3c2919299c0a0b9714ffecd30da68e5c880b6a
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
c87c30b2d64619d51bfe43d49b08c4a146c38c13 14-May-2014 Evan Charlton <evanc@google.com> resolved conflicts for merge of a4819143 to master

Change-Id: Ia724e55004733996de1fab90fb373334046fefec
ece678e33aca03753b59d534e789e5f6075750a1 14-May-2014 Sailesh Nepal <sail@google.com> am b48e2280: InCallUI: Use Telecomm CallCapabilites

* commit 'b48e2280930b5ed0b04dd34d59dc5980b379a475':
InCallUI: Use Telecomm CallCapabilites
89997ad9918b9b15e7dfc022ce9230f67a1aa6e2 14-May-2014 Sailesh Nepal <sail@google.com> am 07a822b2: InCallUI: Use telecomm presentation and gateway info

* commit '07a822b2ea92dc5b68cd43139be7efe4c6640cd4':
InCallUI: Use telecomm presentation and gateway info
73c981d5f600403b7f502b8a9bb210cf7192f51e 14-May-2014 Sailesh Nepal <sail@google.com> am 6af0c61c: InCallUI - Use String IDs

* commit '6af0c61c32da6cfb400168ae3b0cf9f802abfed4':
InCallUI - Use String IDs
9a14ded169ed23223d4e7e8e5412ae4cc33a31d3 14-May-2014 Evan Charlton <evanc@google.com> resolved conflicts for merge of fc22ba88 to master

Change-Id: I686eff26a8172fe289866046f3b0a3f2392628c2
6f7c74242a050c8545f5d3e92d968cf167f604e4 14-May-2014 Evan Charlton <evanc@google.com> resolved conflicts for merge of 9d031ca4 to master

Change-Id: I122b53beb517cddd72214b15cf14f5e2083066fd
7cc137a53f1ab7ba21aa2253cc044b5a8b961e43 14-May-2014 Yorke Lee <yorkelee@google.com> am c7457fe1: Merge "Swap calls when clicking on secondary photo in InCallUI" into master-nova

* commit 'c7457fe1e11cd8ed74c02a40a38cf56e3d4fbb90':
Swap calls when clicking on secondary photo in InCallUI
bbec33053cc35ad5af0fa48d9e8f77644433be6f 14-May-2014 Evan Charlton <evanc@google.com> resolved conflicts for merge of 500e399c to master

Change-Id: I7cc16e713bb142450c7689942097110bde404b54
29d9d6b63209d273a109315b9e31a675151d4333 14-May-2014 Evan Charlton <evanc@google.com> resolved conflicts for merge of 36b5e5f9 to master

Change-Id: I66befab929f19a53e3466f55f78c99f9afda047e
0062a2494c6ea93abde2b6970e0d8d99636f8ca1 14-May-2014 Evan Charlton <evanc@google.com> resolved conflicts for merge of 0be676b7 to master

Change-Id: Ica8afe1eb165d69042b356fbf9833efb5c6dbb24
9fc169931b9904ee8eac27bacd858ab87753e33d 25-Apr-2014 Evan Charlton <evanc@google.com> Fix the build

Update the call state and getUi() breakages from an earlier merge.

Change-Id: I5b5dbbc6fca1ccdebe04dd99ad65b524b9d63686
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
31d499affdedf574e5011a1d64b5199f15f57cb3 24-Apr-2014 Andrew Lee <anwlee@google.com> am 4c3e9e8e: Properly enable/disable end call button.

* commit '4c3e9e8e45ecafcb9aaf0da9901a5e9cebc59bc4':
Properly enable/disable end call button.
a7adb0536ec09eb0989ade517c175e458fd19104 24-Apr-2014 Andrew Lee <anwlee@google.com> Fix use of TelecommAdapter.

Change-Id: Ia89b3481c7be6b31624eda8f19fd9868b95777d5
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
07de4a6c36b504b5175d9459312a5aa8db8249c6 24-Apr-2014 Andrew Lee <anwlee@google.com> resolved conflicts for merge of 7b4cfe59 to master-nova

Change-Id: I42b453f23db08952cdbcb17b1bdb199d504e92ef
e26b887e90d5e9566a5054a1ccb3ed32ae2eea2d 24-Apr-2014 Andrew Lee <anwlee@google.com> Properly enable/disable end call button.

Also, cleaning up erroneous 8-space indents to 4-space.

Bug: 14108639
Change-Id: Ic34fd9c645861533c584bfa33ab20793c509d78c
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7e5763d2b5ee7211c5d19d2b1fd2736e407a7e83 24-Apr-2014 Andrew Lee <anwlee@google.com> Relocate EndCallButton and CallButtonFragment.

This is an incremental checkin.

- Split out EndCallButton from CallButtonFragment into
CallCardFragment, and update the presenter to handle end call clicks.
- Move CallButtonFragment and EndCallButton into the container for
the primary call info.
- Rearranged the layouts of the call_card and primary_call_info to
accomodate the new locations of these buttons.
- Temporarily attached a linear layout around the InCallUI dialpad
so that it doesn't render full-screen. That is the immediate followup
work to this..

Bug: 14108639
Change-Id: Ie0e2afae109aed4bc7c75de67c70698c92962760
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
46848bb9b89cc5417afae19aaab38fe331a7b474 08-Apr-2014 Sailesh Nepal <sail@google.com> InCallUI: Handoff UI tweaks

This CL disables the handoff button when handoff is pending.
It also cleans up the handoff UI code.

Bug: 13565185, 13799169
Change-Id: Ie2831ba29d628fb5a0538defe918e3151eb5b824
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
c6f4e50a4130fb8f7247f5eab6849829701ad484 06-Apr-2014 Sailesh Nepal <sail@google.com> InCallUI: Use new InCallCall object

Change-Id: I3916e33e184f57bb6e58ed93a26b866d3ce0e7df
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
6bc8e8b3258b0397f621db266464f75945a710c5 02-Apr-2014 Sailesh Nepal <sail@google.com> Handoff: Hookup handoff button to InCallUI

Bug: 13643568
Change-Id: I94c28b10c0e0a253450f14d31ecdc416d5b44ca4
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
f27342bc5d594dfc32dc2bfafe109dcaa6b6d506 01-Apr-2014 Sailesh Nepal <sail@google.com> InCallUI: Use Telecomm CallCapabilites

Change-Id: I4236543da5648d2cf6ba525c8fc87a93000f50a7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
ae73c9aab1c716d9ef85f4f0dbc6f69e97a8f7e6 01-Apr-2014 Sailesh Nepal <sail@google.com> InCallUI: Use telecomm presentation and gateway info

Switch to use Telecomm's CallNumberPresentation and GatewayInfo.

Change-Id: I962836c5f4b36c0b1f31d0dd6852fdf8a3a12736
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.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/CallCardPresenter.java
f965ebbdfddf7070ab1807a49b203e76e58b7e4e 29-Mar-2014 Colin Cross <ccross@android.com> resolved conflicts for merge of 063fa2d9 to master-nova

Change-Id: Iaa921a78fb59185404d24b6a4245ae2cb691ea5f
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/CallCardPresenter.java
80c49a823543c9fb93420d05a6375fb1ff4ca631 26-Mar-2014 Yorke Lee <yorkelee@google.com> Swap calls when clicking on secondary photo in InCallUI

Bug: 13587520

Change-Id: I676a4c9ef7dc8b0a23d5f776b162027947ffb556
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
4d611662e17878203be2770142409829c1a2d4e4 19-Feb-2014 Sailesh Nepal <sail@google.com> Revert "Add handoff buttons"

This reverts commit 36b5e5f96678bafc325491d5294b2d97e0a0e499.
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
e14843e2ce456ffca91ae83d0ccff722ca222e5d 18-Dec-2013 Sailesh Nepal <sail@google.com> Add handoff buttons

This CL adds two buttons to the in call UI:
- video handoff - switch to video mode
- connection handoff - switch between wifi and cell

Change-Id: I42a36d22dc0a37d1ed00f1a3ab1ebcb53c35864c
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
47dbbd2cd27647360cd13d200c983f788df28c5b 22-Nov-2013 Chiao Cheng <chiaocheng@google.com> Ui mock for wifi connected state.

Change-Id: I7a44bce4427ea955ee3e44a4ee63bfcc84057ca5
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7e7fd2a0642515834a96028937f60ec955edfd91 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.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/CallCardPresenter.java
812c0e88d5d86c29e4942f9a1010a95cce789657 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
3687bb1c3d59e25d4ec0e5c5f4cafbbd8bffb00d 16-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Add internet call type label" into klp-dev
93877c24c64ceb5ad5611593227da0ff6a41a235 16-Sep-2013 Yorke Lee <yorkelee@google.com> Add internet call type label

Bug: 10764487

Change-Id: I87e48063b14629c19a58b9ddb2acb736af6f37e0
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
1c22bde38cd15919e91afb0f12c558aa66f0bc91 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.java
848c949a5789ae94ea266165fbd893b81ec4f7ce 14-Sep-2013 Christine Chen <christinech@google.com> Merge "Always checks for conference call in CallCard." into klp-dev
314b2aaa1fa1ef799270987e964f7df4d983b9ee 14-Sep-2013 Christine Chen <christinech@google.com> Always checks for conference call in CallCard.

Bug: 10746228
Change-Id: I23d901381b1a65e481d835d88f5ba46c291e724e
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
2735001b0c90b9b09a0c8da3823b572b4aa01620 14-Sep-2013 Jay Shrauner <shrauner@google.com> Merge "Fix flow of local/remote lookups" into klp-dev
1c6bb983216392b5ceb36cea42a46631f68a3dd6 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
02ade580384ccd853b6a9909aa0b4423fada84df 13-Sep-2013 Christine Chen <christinech@google.com> Adds null check for getUi()

Bug: 10677816
Change-Id: I31236f9a7b9bdd17145878f8df6f83c30c667b1c
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
ad4f3ea753b6dc43b1a82110c9fdf505966e74fb 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7b4e91971001cc149743e97ae77381ef528073a9 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
3e6e27d27d79fa027f39c46ea6333b876220bfc7 09-Sep-2013 Santos Cordon <santoscordon@google.com> Merge "Improve lifecycle ordering for InCallUI" into klp-dev
1f63d2d8e8db3616c16886952813b3d0473216e7 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7a863a056a96638c32171f721d99c694a1890df8 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
24deb0f78f1854bfc273bb888e7fd4ac123bcc22 07-Sep-2013 Jay Shrauner <shrauner@google.com> Merge "Improve fields displayed for reverse phone lookup" into klp-dev
5345442d7238c1db00dc8d55a49f7f5dd713d994 05-Sep-2013 Christine Chen <christinech@google.com> Adds manage conference call UI

Bug: 10334739
Change-Id: I46a52ec967a1c496dd4b797f2064d9099670711f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7e5c19fceb8166fa746cd8605f764ab44c3c5c21 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
c8fd833c85526f7c55e5b1d9bb951b3bf56bd621 04-Sep-2013 Santos Cordon <santoscordon@google.com> Allows PhoneNumberService to be null for AOSP incallui.

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

Bug: 10541171
Change-Id: Ia63b6c5f1ce12ffe0a253d10a92470bbd1e7539e
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7d2fb8620b808c28c49bde99dc54f6de46fdcb44 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
656dd4a0d8571b47ecf0ecf3e4c2eeacfd1099b3 30-Aug-2013 Chiao Cheng <chiaocheng@google.com> Fix contact blinking for incoming calls.

Bug: 10565896
Change-Id: Ibd2da0b77c6fb338699085effac8f5d648359c6e
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
ced3c18be61394a658a05d80b54a3853430572a8 30-Aug-2013 Chiao Cheng <chiaocheng@google.com> Merge "Fix errors during reverse number lookup." into klp-dev
b337954280f46b63c67021e791043d18d0208cfb 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
90995fcb6778a9cb6dc35be12aeb1a5d0dcbb5ae 30-Aug-2013 Yorke Lee <yorkelee@google.com> Allow swapping calls by clicking on secondary call card

Bug: 9679473
Change-Id: I9e25a247c59530d257ece27e62c88329eb5f4f61
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
7569427c703ae89003317ee3e37dfa9e171d8abe 30-Aug-2013 Chiao Cheng <chiaocheng@google.com> Merge "Fix null precondition check." into klp-dev
99728aa60960209f0bbbc5bae5880e639e10520c 30-Aug-2013 Santos Cordon <santoscordon@google.com> Merge "Support visual indication of mute from headset" into klp-dev
4a5339c4a266891ce560dfb6e348c3779a0a3ca1 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
8c478132fbc07bd075df6aba85bcfd2990bbd66a 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
e6b3841bb81e14d3ae433521b9df8638c7c0f09e 29-Aug-2013 Chiao Cheng <chiaocheng@google.com> Switch to label for local contact detection.

Change-Id: Iade59b62865f33376d61a197ad289bc03164b0f3
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
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/CallCardPresenter.java
46c1840b5964f84cc2d632d9c6a41b0eca08f356 23-Aug-2013 Santos Cordon <santoscordon@google.com> Merge "Show gateway UI when dialing via a gateway" into klp-dev
3d3d25f2bee7cf9cdb91ef35d3028a6a62317e08 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
21d56f410e15520ca2c3f77408270d5dff9dbc9b 21-Aug-2013 Chiao Cheng <chiaocheng@google.com> Removing explicit dependency on http calls.

Bug: 10413514
Change-Id: Id4db77f4417827ce4ecc140ea09f3228154f50de
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.java
033ed5926d2924d35b9c82898ab4e835da56b3af 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.java
899251968ee4ee3cb375032185653ecd888e3f8d 14-Aug-2013 Santos Cordon <santoscordon@google.com> Fix NullPointerException in InCallUI with CallTimer.

bug: 10325158
Change-Id: Ie7e89c2e1e3038df89387e99de6849ed12203824
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
8cd746f0342f8c5def42f64b08cf6df741bb61bb 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
cea8155e7532f50953353500980d655816ebc121 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.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/CallCardPresenter.java
1b3e3f1056317fca5be4e7535d722da8876b2cbf 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
e067a78c4c0817e9e81c41327460aedce7f1091d 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.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/CallCardPresenter.java
6d231f52e4f00399330d772f2a337283803f3a9d 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
be8060acf5ecbb916c161d3249813098c0611ed5 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/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.java
e7097d78980eccdc2425266db92a3e88f4f5c1a5 03-Aug-2013 Christine Chen <christinech@google.com> Dialpad Ui elements for InCallUi

Change-Id: I7b230cc46993493459923c436a643910026cf6a6
/packages/apps/Dialer/InCallUI/src/com/android/incallui/CallCardPresenter.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/CallCardPresenter.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/CallCardPresenter.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/CallCardPresenter.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/CallCardPresenter.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/CallCardPresenter.java