History log of /packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
63e8d56846f0082b667ddfb55cdf5bb5e59983c0 10-Jul-2015 Yorke Lee <yorkelee@google.com> Disable LayoutTransition.CHANGING

It is not really useful and is distracting when a lot of
information changes happen at once.

Other animations (like fading in of elapsed call time) will
still continue to work.

Bug: 22274741
Change-Id: I303f776a6873dab3d07569a2518fda039d64becf
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
b3dc60c0eac9856dee6e51f319b84063d97718a1 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/InCallUI/src/com/android/incallui/CallCardFragment.java
732d90425ae73e9a6a634e7eea2a753df307ff65 15-Jun-2015 Sailesh Nepal <sail@google.com> Switch hanodff broadcast from click to long press

Nova Wi-Fi calling allows you to switch between Wi-Fi and
cell by clicking on the status label.

Unfortunately many users are accidentally triggering this
with their face.

As a work around I'm switching the trigger from click to
long press.

Change-Id: I68d7c597cf4d74a3f6b5bfee06e470b4ddcfc1ee
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
f66b7ca229eccd343bdffa8591aaa4ab6395488e 03-Jun-2015 Tyler Gunn <tgunn@google.com> API Cleanup: Remove references to VideoState.

Replace method references from VideoState to VideoProfile equivalents.

Bug: 21573551
Change-Id: I3c5c55652e0dd12df97eac42f1791f8b67dbac5c
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
d2bbd604f4aa86e8f0d008b9a44713a461524ea3 03-Jun-2015 Brian Attwell <brianattwell@google.com> Merge "Rename PhoneNumberUtils APIs" into mnc-dev
867abc05df88949d953e0130d340909bfd4d78c7 02-Jun-2015 Brian Attwell <brianattwell@google.com> Rename PhoneNumberUtils APIs

In response to more API review.

Bug: 21571895
Change-Id: Ia1fa69da07a3427997919ba61c77fcbad7e79f2a
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
4e8c8bcbe67a9d2fc9f57ee9c7366d4da3c1e886 27-May-2015 Andrew Lee <anwlee@google.com> Fix call duration talkback verbalization.

+ Uncomment code which generates content description.
+ Pass in local context, rather than System context, for getting
the plurals resource strings. This fixes a crash happening in
languages even if correctly translations existed.
+ Catch Resource.NotFoundExceptions in the utility which generates
this human-readable string so that for locales missing the
translation we don't crash the whole Dialer.

Bug: 20813003
Change-Id: I861078a116d2d31f3ac361757a14581726a78f1c
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
14b0add249fd1cfe2bbf7df8f6c272daea6db4c2 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/InCallUI/src/com/android/incallui/CallCardFragment.java
4749dfda9630623fbb1e8f712d0f159b7e178223 06-May-2015 Etan Cohen <etancohen@google.com> Fix NPE for video card when VT not active

Change-Id: I5a88be1a3d463fd2570b98144f9caa626c8dc3bb
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
1a723f1586c812510bd0791a4ef8420d36f83cf9 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/InCallUI/src/com/android/incallui/CallCardFragment.java
35512f95430a2d425c01739d6924c6e23fa29f0e 24-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit 'a099cac' into merge2
01b7903598343e876ce5ed066e5e31c40a68e31c 21-Apr-2015 Yorke Lee <yorkelee@google.com> Temporarily disable code that uses plurals

Using plurals currently causes a ResourceNotFoundException because
the translated counterparts for all languages must be submitted first.
Temporarily disable this codepath.

Bug: 20427882
Change-Id: I3a8c565bc704443fe1766e9311952481a25a2295
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
27cd0429d22675543567efc684995a5262df80ff 20-Apr-2015 Yorke Lee <yorkelee@google.com> Merge "Remove use of VideoProfile.VideoState.isVideo"
6be28ac626298e1c4f3219cd40768d8cf4efd3e5 18-Apr-2015 Yorke Lee <yorkelee@google.com> Remove use of VideoProfile.VideoState.isVideo

Don't further increase API surface, make this a utility method
in our own package instead.

Change-Id: Ib7036b20980afcb5d0fdb1c03c6d943ab9d7ece7
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
45f2a7014de8102479a50886300fecbd704779a4 17-Apr-2015 Andrew Lee <anwlee@google.com> Make createPresenter() and getUi() public.

... and update the visibility of their overriden instances.

This allows us to create fragments with the BaseFragment/Presenter
fragment which do not live in the incallui root directory.

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

* commit '1838e77845e2ba822bc7f510515b50cf00ddc2a4':
Show IMS Conference StatusHints in InCall.
fc2432144753225115f7603adfc06ef898b5a2a4 16-Apr-2015 Yorke Lee <yorkelee@google.com> Add Trace.endSection back

Lost in bad mwd-master merge

Change-Id: I3556ae854b664c5254d62a00b156f14f35e52f3d
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
1838e77845e2ba822bc7f510515b50cf00ddc2a4 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/InCallUI/src/com/android/incallui/CallCardFragment.java
a3f7b82b805296703d4ea6254f4b6b84f8566aa0 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.
a77ad8ddb8c1688c1290773467ba454c9a225249 31-Mar-2015 Yorke Lee <yorkelee@google.com> Video calling landscape changes to match specs

* Call card has 4dp corners, and is 90% visible
* Margins for call card
* Call buttons are center aligned with end call button
* Remote surface is always center aligned, tapping call card slides
it in and out
* Status bar is black

Bug: 19668216
Change-Id: Ifea27faa5f8ff32f6be13e777ca70aa4d0c7727e
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
5468d9beac7c4e9efe3dfe25a74c87ff94a0f9ef 10-Apr-2015 Prerepa Viswanadham <dham@google.com> Merge commit '8bef461' into merge_work

Change-Id: I4cfea114e24c0b0671e99118316ad839dafbe400
bec5807b74a13e43a59b5a8b4a0b23c497315458 09-Apr-2015 Yorke Lee <yorkelee@google.com> Standardize fragment layout names

Change-Id: I76814eb5b90130227eea8e2f8576c472b80d1435
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
bc65cbc7557f8a1a147d37db005ca8bcac25b6b3 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/InCallUI/src/com/android/incallui/CallCardFragment.java
58cc33a304830aeba435d1c343f3641e7ed69270 27-Mar-2015 Yorke Lee <yorkelee@google.com> Merge "Fix some jank during shrink animation"
237af200f18b30ec229f02680ba54c7d0b25b829 27-Mar-2015 Yorke Lee <yorkelee@google.com> Fix some jank during shrink animation

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

Change-Id: I21a8a9096f36adc4688597f7469a2f05a1b5234c
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
8bef461247ec597f4fbbc604ee6e37fbdbc27d1e 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/InCallUI/src/com/android/incallui/CallCardFragment.java
87445345ce0312abdce4114fd5c2b10f3e26ccb6 26-Mar-2015 Yorke Lee <yorkelee@google.com> merge changes from m-wireless

Change-Id: Id93b2d6e840baaa0b9b42b4595bca0dc41972994
a26a21d227598f350a6d545bf046ea805d4dca34 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.
3b0ab5241128ffc5488110a139e75b73a6a643d5 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/InCallUI/src/com/android/incallui/CallCardFragment.java
1a3d05dc126773f0e0d32135f9b1018f1a4c8b5e 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/InCallUI/src/com/android/incallui/CallCardFragment.java
68f31bc259798c6fd646a01183767138e2e9a60f 23-Mar-2015 Yorke Lee <yorkelee@google.com> Fix for misaligned video view surface

* Stash the true height of mPrimaryCallCardContainer in a view tag
so that its height is not misreported during the outgoing call animation

* Move the onGlobalLayoutListener so that the callbacks occur after
the surfaces have been inflated, to ensure the views are non-null.

Bug: 19773495
Change-Id: Ib762285c595ec826c6da15296db66d830d9fe24e
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
b0c9a47fa7bdd5b087608333b45ca97b6a985ceb 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/InCallUI/src/com/android/incallui/CallCardFragment.java
68f0331706796b08f65a6b2f90be96ac1e31fadd 17-Mar-2015 Yorke Lee <yorkelee@google.com> Don't hide caller photo for video call

Bug: 19728020
Change-Id: I6e5259c63553de9e5060621bcc749d1039b67ea1
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
eca1bf5627b6b411df12276e59516fb7d3d80101 16-Mar-2015 Yorke Lee <yorkelee@google.com> Merge "Dynamically add AnswerFragment"
e823347fb41b75a9bf0713b7ad2f008e7226ffb0 16-Mar-2015 Vinit Deshpande <vinitd@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release'

Change-Id: I9f37386b36eeee2afffb20464265f92d5c5942d3
189e1efe04d1073a2abd100eb33b267435951ff3 09-Mar-2015 Yorke Lee <yorkelee@google.com> Dynamically add AnswerFragment

AnswerPresenter is a little tricky because it is in charge of
responding to incoming calls, so we want it to be alive and getting
onIncomingCall callbacks, but we don't want to create an instance
of AnswerFragment, which it is dependent on.

Move some dependencies around so that AnswerPresenter is created
by InCallPresenter instead. It registers for callbacks via InCallPresenter
instead of directly to CallList, and shows/hides the AnswerFragment via
InCallActivity.

Change-Id: I7026150988bf3cda762dda8a319f48e1af132361
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
d56fe0889e08343662f31fed332a8de72326140a 09-Mar-2015 Yorke Lee <yorkelee@google.com> Standardize naming of methods and fix a typo

Change-Id: I9b294ab9f483bb5e7af149ff6054cd8cd667adca
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
38f8e6cd8352355539a6feaa6c2246239bdaafcd 07-Mar-2015 Yorke Lee <yorkelee@google.com> Improve InCallUI fragment management

* Load some fragments on demand
* ConferenceManagerFragment
* DialpadFragment
* Remove ConferenceManagerFragment from incall_screen.xml so that
it is no longer loaded statically
* Add helper methods to InCallActivity to facilitate dynamically
loading fragments
* Fix some bugs with fragment visibility and activity recreation

Change-Id: I475e2302fae415817f06da209dd6484c89467480
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
1e05f313eb939168116af054df2666c247ffb450 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/InCallUI/src/com/android/incallui/CallCardFragment.java
dba578998849708b1c3eeb8234812c1d167d924b 21-Feb-2015 Yorke Lee <yorkelee@google.com> Remove use of ttsSpanAsPhoneNumber

This API is deprecated (and hidden)

Change-Id: Ie1fe6ed8c2aff4288c41b15a95da45090009df4b
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
cae963fe5c73495a7ddf49cf69955df61d50241c 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/InCallUI/src/com/android/incallui/CallCardFragment.java
25c3e808b91061e71d4cb1d1eccb0bc6beeb93a7 09-Jan-2015 Tyler Gunn <tgunn@google.com> Merge "Fixing Null Pointer exception due to uninitialized view reference." into lmp-mr1-dev
fec0d0b784d3b93ae91577d00ba411d26916875a 08-Jan-2015 Tyler Gunn <tgunn@google.com> Fixing Null Pointer exception due to uninitialized view reference.

Bug indicates a crash occurred when trying to separate a call from a
conference call. The exception thrown was due to calling "setText" on
mSecondaryCallProviderLabel when it was null.

Although I was not able to reproduce this situation, it appears it would
be possible for showAndInitializeSecondaryCallInfo to not set the
mSecondaryCallProviderLabel reference when then mSecondaryCallName is
initially set if the hasProvider flag is false at the time. If
hasProvider becomes true in the future since mSecondaryCallName is already
initialized, the code to initialize mSecondaryCallProviderLabel would not
run, causing the NPE.

I have restructured the code to ensure that this type of scenario is
handled appropriately.

Bug: 18917883
Change-Id: I837d96aad7ed98729490d95beb897b08e1b08365
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
7dca62f400d10983a7d5f7aa26b18235018585d0 07-Jan-2015 Ihab Awad <ihab@google.com> Merge "Announce incoming calls in all cases" into lmp-mr1-dev
49ca77978e6d48a47d4c74afb1c2768f86e5d265 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/InCallUI/src/com/android/incallui/CallCardFragment.java
eed7e2db0a6795aabc99753daa4a8a9f328553e4 19-Dec-2014 Ihab Awad <ihab@google.com> Announce incoming calls in all cases

Bug: 18797453
Change-Id: I81d75a145db9303cd77cb0bc14abaed788f0c5b8
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
85e0b443d11f1a6bbac0110d4b139bc62e5a01c0 17-Dec-2014 Evan Charlton <evanc@google.com> Always animate drawables when given animations

When given an animated drawable, always animate it, rather than only
when the call isn't connected.

Bug: 18695179
Change-Id: Ia9b320e2f5f47ee7fdfb489b91c736912dcdfd16
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
c10b11df44e918fb26329159175dfe6fb6642437 17-Dec-2014 Ihab Awad <ihab@google.com> Merge "Add phone number annotations for TalkBack" into lmp-mr1-dev
9939a07593e79192f2eafaf5791b308088fb2330 16-Dec-2014 Ihab Awad <ihab@google.com> Add phone number annotations for TalkBack

Bug: 18759212
Change-Id: I2850941e0f007320aa06c34f5c8e550e672e15dd
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
2396cf49da58acc397d450be1db78ad7d3640e9c 14-Dec-2014 Evan Charlton <evanc@google.com> Animate drawables if possible

If the ConnectionService provides an animated drawable for the call
state icon, animate it.

Bug: 18745128
Change-Id: I2e688549e7f34445db49726c4eb986d5dd60efdc
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
1edf38212b4c29eeb46a81a9b58c8b80628e6d50 12-Dec-2014 Andrew Lee <anwlee@google.com> Merge "Support RTL in InCall call card." into lmp-mr1-dev
c296217682c185a33cbecf7a4c5376941d8b573f 12-Dec-2014 Andrew Lee <anwlee@google.com> Support RTL in InCall call card.

+ Specify "START" text alignment for call state label and the
name.
+ Specify "END" text alignment for the elapsed time.
+ Make the elapsed time view expand to take the parent's width,
instead of the number and location label's parent view.
+ Switch elapsed time text alignment to START if the number and
label view is hidden.

Bug: 18716511
Change-Id: I6d2ef5fe8a4364d42fb0438541e00ecce3daeaab
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
467cf770237c13d291a8fea59817d469909d5e60 10-Dec-2014 Tyler Gunn <tgunn@google.com> No InCall UI visible after hiding conference manager.

- The hide of the conference manager fragment and subsequent show of the
call card was being done inconsistently in a few places.
- Added a new method to hide/show the conference manager fragment and
the call card at the same time and replaced all references with this new
unified method.

Bug: 18699503
Change-Id: Ia6b80bdc29198627b1c46de72da432dc9523dc5e
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
c670713ab39f3490c90e9651d9e09bca695edd5c 24-Nov-2014 Yorke Lee <yorkelee@google.com> Improve outgoing call UI responsiveness

* Start InCallUI immediately once Telecom binds

* This CL is a bandaid for improving outgoing call responsiveness
in the MR1 timeframe. Refactoring InCallActivity into dynamically
added fragments and modifying its lifecycle with respect to
the call list is too risky.

* Add a lightweight activity (CircularRevealAnimationActivity)
that is used to display the circular reveal animation while
the significantly heavier InCallActivity is starting up

* Inside InCallServiceImpl.bind, start the reveal animation once
bind is called to avoid being blocked by any synchronous work in
Telecom.

* Refactor CallCardFragment.animateForNewOutgoingCall to
conditionally display the reveal animation, depending on
whether or not it was already displayed by the
CircularRevealAnimationActivity.

* Refactor the calculation of theme colors in InCallPresenter so that
the CircularRevealAnimationActivity can use those colors as well.

* Remove PENDING_OUTGOING from the list of call states that bring up
InCallUI.

Bug: 18373617
Bug: 18611753

Change-Id: I44c593373864ffc0ba9edebb88887177112d8b27
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
3212262d2c776f70a6320e80ec1fb4cd627bd21e 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/InCallUI/src/com/android/incallui/CallCardFragment.java
7bf9d3e640da7d3a45e5795a7e5ecbd96edf9743 20-Nov-2014 Yorke Lee <yorkelee@google.com> Merge "Disable cross-fade in InCallUI" into lmp-mr1-dev
e4f10f30062ad5ce4cf3dc0e090fce4ce67c26f0 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/InCallUI/src/com/android/incallui/CallCardFragment.java
eda9b7b91b75a0da4a4273740bc4090b7fbbfedf 19-Nov-2014 Yorke Lee <yorkelee@google.com> Disable cross-fade in InCallUI

Bug: 18373617
Change-Id: Ice934a4defbcb0a2c7c618230e00e352322ec95f
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
6d68ba11cc687b2f8b20b37fd8185b9eca8a6814 19-Nov-2014 Yorke Lee <yorkelee@google.com> Improve setting of contact photos in InCallUI

Add drawable caching in CallCardFragment so that we don't set
the same drawable multiple times.

Save and reuse the default contact photo and default conference
photo to avoid possibly decoding them multiple times.

Bug: 18373617
Change-Id: I54b925e6fc6f136f3d3ef27609fcdaf4c39a73dd
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
1ffa381cf74f1ad30cb22de8d6100599e1854d64 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/InCallUI/src/com/android/incallui/CallCardFragment.java
cda598aa37582d00f393bcb0a8e3074a89ab4c8f 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/InCallUI/src/com/android/incallui/CallCardFragment.java
6c1e0d8809bc084bd081a23b48d09e095a615348 25-Oct-2014 Nancy Chen <nancychen@google.com> In Multi-SIM cases use the color of the SIM icon for InCallUI.

Set the color of the InCallUI to be the color of the SIM icon. In the
single SIM case, the background should be the default background.
* Added id to all call button backgrounds for color change
* Initialize color onResume for InCallActivity
* CallCardFragment/CallButtonFragment/DialpadFragment update their colors
* Added InCallUIMaterialColorMapUtils to extract color

Bug: 17971273
Change-Id: Ia247b153b57ffc8a5277d521c433ab0be6696cf6
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
610a186b12f95c3b94789c4afa1e019f4e46684f 27-Sep-2014 Andrew Lee <anwlee@google.com> Fix FAB positioning for incoming calls.

We aren't setting the screen width in onResume, which means that
repositions would fail for incoming calls, or resumes. Now, set the
screen width when resuming the app.

I also cleaned up some of the method naming to be more precise; there
shouldn't be a change in behavior resulting from it.

The OnGlobalLayout listener wasn't triggering if the observer wasn't
alive, so address this by checking for a new observer.

Bug: 17673299
Change-Id: I1d454f4a5d1561bc73c12a6c74edbc075e1f1a18
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
fb59dfc480d7f4518e071019cd292ecee7f495b9 20-Sep-2014 Andrew Lee <anwlee@google.com> Update InCallUI for "generic" conference calls.

+ Use the newer "phone" asset (same as emergency calls).
+ Add xxxhdpi phone asset.
- Remove unused assets.
+ Tint the subscription icon properly in secondary call info.
+ Reorganize listeners in CallCardFragment to be less
redundant, and so FAB is properly positioned above the secondary
call info.

Bug: 17581379
Change-Id: Id4f1c1659ab8c17313cdd0393be51954b5cd449a
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
833b300b59ec8f77e998ccefcf34d4d004522be1 16-Sep-2014 Andrew Lee <anwlee@google.com> Merge "Update InCallUi to use telecomm DisconnectCause." into lmp-dev
017f23c5f9ee2585454b43ae15c14c98e48e8f17 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/InCallUI/src/com/android/incallui/CallCardFragment.java
a68979572758753dbb2c020a28ca2e45297a055a 16-Sep-2014 Evan Charlton <evanc@google.com> Merge "Send a broadcast on call state button touch" into lmp-dev
167e9a39a16ae1a701dfea86e973df821bf12091 15-Sep-2014 Sailesh Nepal <sail@google.com> Merge "Fix call state icon not showing for incoming calls" into lmp-dev
4824dea734f6c6e8585cffaa0cdb55ad0612295d 14-Sep-2014 Sailesh Nepal <sail@google.com> Fix call state icon not showing for incoming calls

The call state icon was not visible for incoming calls.
The problem was that the pulse animation was operating on the
icon's view alpha but we were changing the icon's image alpha.

Fix was to always operate on the view alpha.

Bug: 17491687
Change-Id: I1e277472cd906e49fd42ad362dbabb5c8bfcbd7a
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
6cddf46812634fadc194830774110780f14e9462 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/InCallUI/src/com/android/incallui/CallCardFragment.java
f2b1401b9680fa4344cec18a01b11fc9e100ae17 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/InCallUI/src/com/android/incallui/CallCardFragment.java
cc4f1449363207ec6a56dc8d413475aa972eba88 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/InCallUI/src/com/android/incallui/CallCardFragment.java
749b6360e7daa7d7476f1a46499c6bbf1e78901a 08-Sep-2014 Yorke Lee <yorkelee@google.com> Fix animation for call state label

Enable the CHANGING layout transition, when the shrink animator isn't
running.

Bug: 17411260
Change-Id: Iabc30657fc636ee44e3c9842cc2b8f53a0b504e7
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
52c30ebe11e132c5b00a15aabdf4a411355bf0f4 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/InCallUI/src/com/android/incallui/CallCardFragment.java
9e4d8b1640eeedad3def56dc9303ea3f1d13bc67 30-Aug-2014 Andrew Lee <anwlee@google.com> No delay for InCallUi scaleIn.

Bug: 16399233
Change-Id: I30482322fd9216b7e1555436b4fa35afda6b9013
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
00f1764215e6bb44f2cde2f46f9e7d2a39e53893 29-Aug-2014 Andrew Lee <anwlee@google.com> Merge "Add conference call icon to secondary call info." into lmp-dev
0a0a01d28553ca2d18a26d9ccc77ebdfd1736a9f 28-Aug-2014 Andrew Lee <anwlee@google.com> Add conference call icon to secondary call info.

Bug: 17304107
Change-Id: Icdc1de17f00d9b373c619675566de9d455c10066
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
6edde7bc64b805d2d1d3a23e135d32c99e0aec4d 28-Aug-2014 Yorke Lee <yorkelee@google.com> Merge "Fix for blue screen of death" into lmp-dev
6dcb6dfafb35b989ff4ecd7aac32d5ca73d282a5 28-Aug-2014 Andrew Lee <anwlee@google.com> Merge "InCallUi image resource updates (mostly deletions)." into lmp-dev
cebde87b5928c481fdf0e8819b5cbd4bc36e5ca3 26-Aug-2014 Yorke Lee <yorkelee@google.com> Fix for blue screen of death

The AnimatorSet can get interrupted and stop running if the activity
is paused. Make sure to cancel it to reset the views to their correct
state in onResume

Bug: 17260258

Change-Id: I7067892fe85db5d137554614c3092e6bb7787abd
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
57f4fbaa494f9bc49f40c8119292d68dc7795e3d 27-Aug-2014 Andrew Lee <anwlee@google.com> InCallUi image resource updates (mostly deletions).

- Deleted a ton of assets which were no longer used.
+ Automirrored some assets so their rtl copies could be removed.

Bug: 15862303
Change-Id: I8aa832eead1768c82741fbe97268ea44ba0fc9ff
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
6dbbfd52ff0a25bcbe03da4ca3976b9a1e42ec46 25-Aug-2014 Andrew Lee <anwlee@google.com> Restyle conference call manager screen.

+ Swap out/in new assets for end/split icons in the manager screen,
and the splash screen in the InCall screen.
- Removed unused conference call manager code, including things like
chronometer and the "done" button.
+ Replaced custom action bar in conferece call manager with standard
action bar.
+ Added contact image (does not open quick contact) in the list of
calls in the conference call manager. This is done with a lookup
using the contact photo manager, and required adding the lookup key
to the ContactCacheEntry.
+ Handled a missing Call.State case in CallCardFragment for calls
with state CONFERENCED which caused crashes.
+ Misc style changes on conference call manager: colors, sizes,
paddings.
+ Adjusted elevations so dialpad covers manager/secondary buttons.
+ Added ripple to manager/secondary buttons.

Bug: 15862303
Change-Id: Iab9b6421d5a1ea69cd951a459d46c065f9456a8f
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
cb6f599ecb7c30e00ed8b07c5c10505322aae89c 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/InCallUI/src/com/android/incallui/CallCardFragment.java
054afe5e59b291d9ef15492df5e0478641cb17c8 21-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Adjust SIM icon tint and fix InCallUI glitches for call state icon." into lmp-dev
42e65be3a7c1658acf6d000b3fc1a7bb75cac3ad 21-Aug-2014 Nancy Chen <nancychen@google.com> Adjust SIM icon tint and fix InCallUI glitches for call state icon.

Default SIM icon tint should be the same as the color of the call state
label. Fixed animation for call state icon.

Bug: 16685783
Change-Id: Ie170027e0a14096442fb78c8e6d8b469aa03b51d
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
b8249f3727e4d233215f4cfbecdd7ed175ce5231 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/InCallUI/src/com/android/incallui/CallCardFragment.java
d33f525aa93abbd9919528679a641291f3599944 20-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Ensure the InCallUI does not reanimate when it already is shown." into lmp-dev
026b7c4db27f13e31bc6d98e99df27679bbffb05 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/InCallUI/src/com/android/incallui/CallCardFragment.java
d5a1a07c3e389690df5ae9df0b98732cf674c630 19-Aug-2014 Yorke Lee <yorkelee@google.com> Merge "Fix for overlapping call state label" into lmp-dev
94b0c423ac3fbac2bc8af2bf51cb7b24331a6040 18-Aug-2014 Yorke Lee <yorkelee@google.com> Fix for overlapping call state label

Canceling the animation is not enough to force a redraw of the call state label.
Set the text to null instead.

Bug: 17073203
Change-Id: Ib731e18a0d2311c0cf9f41953fadfa4ec019310c
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
b13f2ebe92209585e79ccad217d8af3d11a06d96 18-Aug-2014 Andrew Lee <anwlee@google.com> Merge "Position/size adjustments to the floating action button." into lmp-dev
fc01172e93dfbab2a95118ea7545c31c42a438c3 15-Aug-2014 Andrew Lee <anwlee@google.com> Position/size adjustments to the floating action button.

+ Use new theme color for dialpad tints.
+ Translate FAB higher and make it 128% scaled in InCallUI.
+ Add methods so that dialpad is shown/hidden, FAB transitions
to/from its normal position and normal scale.
+ Translate button in/out when enabled/disabled.

Bug: 16399233
Change-Id: Ia8f56f494a89927c25657a75cfcca147c34c6c98
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
0f884d94a7fd19a7bee87acf45a983d4190337b1 15-Aug-2014 Yorke Lee <yorkelee@google.com> Fix NPE in InCallUI

If there is no call for some reason, just ignore the touch point.

Bug: 17065151
Change-Id: Ib208e08465cf8247d3fded6df323c66ccf7778d8
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
e8ff1b5549d15b7892740687ed204e6a723894b6 08-Aug-2014 Nancy Chen <nancychen@google.com> Reveal InCallUI starting from the user's touch point

InCallUI expanding circle should start where the UI made the call.

Bug: 16396523

Change-Id: I1c7775fcbe684a51376f5a1b744bdd06f26e7bbf
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
43f3e6e0760ea774e479935733d8a30b724457cd 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/InCallUI/src/com/android/incallui/CallCardFragment.java
8c19738ab9bce11faaf9e3e0f8f3a1927f1dc2b6 12-Aug-2014 Tyler Gunn <tgunn@google.com> Merge "Improvements to InCall UI view inflation performance." into lmp-dev
cb28896062ba4b6bd25f720e2c278ef91d209d83 12-Aug-2014 Tyler Gunn <tgunn@google.com> Improvements to InCall UI view inflation performance.

1. Flattened the view hierarchy to remove a few layers of nested frames.
Removed call_card.xml since it was essentially just nested frames.
2. Deferring inflation of the dialpad until it is actually needed.

Bug: 16594582
Change-Id: I34a03dc3d95431bd0ba1d784a64ae3929f240d46
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
96aaf8b4ff9eebf1ad1c3fb8fbf20f2d877dfb82 12-Aug-2014 Sailesh Nepal <sail@google.com> Merge "Hookup StatusHints to call state label" into lmp-dev
16cadfad5458d6a1095fd23bcd6bf5120de43c98 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/InCallUI/src/com/android/incallui/CallCardFragment.java
0d78ed0724c329eb44379ef281c2b1c6ba779614 12-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Reduce latency for InCallUI by adding an intermediate state" into lmp-dev
f3d0654f2b6d77b7eef8bdcb4c39ee59e55017de 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/InCallUI/src/com/android/incallui/CallCardFragment.java
2f1ce6d393d5896cf4a79aa35052ae338a998185 10-Aug-2014 Yorke Lee <yorkelee@google.com> Talkback should read call state when receiving incoming call

Bug: 16355803
Change-Id: I31b1065a2d7fb13a9e34244143fbe89d921937bd
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
aed98fccfc2af12f8c24f93242fecdab23758c8d 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/InCallUI/src/com/android/incallui/CallCardFragment.java
15a8e3cb2c01b59b5328a74e6c46144843103205 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/InCallUI/src/com/android/incallui/CallCardFragment.java
ee44afa111ef48acbfa22b9ecb381c5d2e05acce 23-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Make ViewPagerTabs and FABController RTL aware" into lmp-dev
9184aa66a23be4fe9a8ab476cc671c3f0d410ab9 22-Jul-2014 Yorke Lee <yorkelee@google.com> Make ViewPagerTabs and FABController RTL aware

* Underline in ViewPagerTabStrips is correctly drawn in RTL mode
* Clicking on ViewPagerTabs propogates correct onPageSelected position
to ViewPager
* FAB is now end aligned instead of right aligned
* ViewPager in Dialer is correctly reversed and behaves correctly
* Call Log groups headers in call log are now correctly aligned in RTL
Bug: 16162264
Bug: 16464471
Change-Id: I2db6b9147a628a68fba5bbbdb7276855d483bad5
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
4940f9ff450d1054ed4ad0e61179196007ad5531 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/InCallUI/src/com/android/incallui/CallCardFragment.java
48bd176760c36474ba47aac1d629cdde3c666977 21-Jul-2014 Tyler Gunn <tgunn@google.com> Merge "Video call surfaces and changing to video UI on videoState change." into lmp-dev
e59cd0f067d5630742ffe4724f18720c94053194 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/InCallUI/src/com/android/incallui/CallCardFragment.java
d73f66fcfdad420b138565f38050af153edab6e8 19-Jul-2014 John Reck <jreck@google.com> Fix for API change

Change-Id: I81201bebc51d2203d7853c6e73f9a9d665c8c36e
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
3f4f33bc27ee1c9a12c9e55856b29079301c8a08 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/InCallUI/src/com/android/incallui/CallCardFragment.java
239a67cae9d56bc37b4e2a93c49036c885d77d55 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/InCallUI/src/com/android/incallui/CallCardFragment.java
6d0f6679a1afb1afa3053bd9511aea8f5945a5d7 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/InCallUI/src/com/android/incallui/CallCardFragment.java
3d2abe4e8f5b45c501fee0dde147d74242aa5bb1 01-Jul-2014 Ihab Awad <ihab@google.com> Rename Telecomm "Subscription" to "Account" (4/7)

Change-Id: Ibefa8bedc4996014fc0a62b3deaa0aed0eec2b10
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
6d0ace011dfb4ccfbf87f5e48361767fa6825b75 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/InCallUI/src/com/android/incallui/CallCardFragment.java
062dd164b103fb5333689cab06544a1338916248 19-Jun-2014 Sai Cheemalapati <saicheems@google.com> Update Emergency Dialer to match Dialer (4/7).

Emergency dialer style updated to match style in Dialer and
InCallUI.
Moved all dialpad resources to PhoneCommon.

Change-Id: I14a56573d8b3e69b2a4fe3675540e58bf4418df0
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
722a822053b1229cf1af92c4753cf03813d11f2b 20-Jun-2014 Yorke Lee <yorkelee@google.com> Revert "Update Emergency Dialer to match Dialer (4/5)."

This reverts commit 68600983bd397729ded98d701c080d617f39813d.

Change-Id: I2143fa849b02644624d09e75aafae7346ec20f36
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
68600983bd397729ded98d701c080d617f39813d 19-Jun-2014 Sai Cheemalapati <saicheems@google.com> Update Emergency Dialer to match Dialer (4/5).

Emergency dialer style updated to match style in Dialer and
InCallUI.
Moved all dialpad resources to PhoneCommon.

Change-Id: I2034949eeacd56c01b7babf921fb980a52fe9e93
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
81bcf2a2e1c197655cf4a3aaf7d9af8088cf102e 07-Jun-2014 Sai Cheemalapati <saicheems@google.com> Updating Dialpad animation in InCallUI.

Dialpad now saves orientation state.
Animation now matches duration and direction in Dialtacts.

Bug: 15386162

Change-Id: I6b8f23147c9be956d16c758a6a51a9fa3bb47ec6
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
23dc1825ccd186918b45e441b1618cd06acf4eb1 05-Jun-2014 Sai Cheemalapati <saicheems@google.com> Moving FAB logic to ContactsCommon.

Moved FAB to ContactsCommon.
Cleaned up FAB Controller.
Replaced implementation of FAB in InCallUI with controller.
Prevented animations from happening again in InCallUI on
orientaton change. FAB also repositions correctly on
orientation change in InCallUI.

Bug: 15386162

Change-Id: I8ea4ef8acb49a83dabe5c18223ce5bac28260824
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
8a9f1fb878bd5d95e50ccac2646051274be863f9 06-Jun-2014 Andrew Lee <anwlee@google.com> am 00764eb9: Merge "Fix NPE because of null animation in CallCardFragment." into lmp-preview-dev

* commit '00764eb981c568d08083c7cfc1b72b7bdc4d4fd2':
Fix NPE because of null animation in CallCardFragment.
00764eb981c568d08083c7cfc1b72b7bdc4d4fd2 06-Jun-2014 Andrew Lee <anwlee@google.com> Merge "Fix NPE because of null animation in CallCardFragment." into lmp-preview-dev
a2694eb9f05b8fc1f954c35a0bfd1acd1e9376fa 06-Jun-2014 ztenghui <ztenghui@google.com> am 61c0d644: Merge "API Review: move createRevealAnimator to ViewAnimationUtils" into lmp-preview-dev

* commit '61c0d6446b8228fcd68a9d1795eed4eb0d977f08':
API Review: move createRevealAnimator to ViewAnimationUtils
61c0d6446b8228fcd68a9d1795eed4eb0d977f08 06-Jun-2014 ztenghui <ztenghui@google.com> Merge "API Review: move createRevealAnimator to ViewAnimationUtils" into lmp-preview-dev
89a32de08d7165dd5f62f017a0cec98ccf3eb145 05-Jun-2014 ztenghui <ztenghui@google.com> API Review: move createRevealAnimator to ViewAnimationUtils

b/15451650

Change-Id: Iff584304251262391ac8ebe9c884db28a5de6119
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
fdd299ad8da06dbab0ecf7c430ca8397b8a4fb5e 05-Jun-2014 Andrew Lee <anwlee@google.com> Fix NPE because of null animation in CallCardFragment.

Bug: 15448134
Change-Id: Iaf61864720b2398ca2cd883fd8058dd71f7b7334
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
9caa86ca92afe5242be9f71ec29904f2981199a9 05-Jun-2014 Andrew Lee <anwlee@google.com> am 382b39d1: Update InCallUi styles to redline.

* commit '382b39d1b21c878fdeda387571ad6d9e784c9a73':
Update InCallUi styles to redline.
382b39d1b21c878fdeda387571ad6d9e784c9a73 04-Jun-2014 Andrew Lee <anwlee@google.com> Update InCallUi styles to redline.

- Add pulse animation for the call status.
- Rename AnimationUtils to InCallAnimationUtils to avoid name conflict.
- Adjust sizes/positions of fields in the call card. Condensed a
RelativeLayout and LinearLayout in the primary call info into a
LinearLayout, which is all that's needed.
- Styled color of status bar.

Bug: 15389408
Change-Id: I46f26e2a1bfaebde82f68f054ed68fcbe3eff3bb
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
53f6e365762467f61e1407aeef5ff99b7029a933 29-May-2014 Yorke Lee <yorkelee@google.com> am a41dafb1: Tweak InCallUI animation times

* commit 'a41dafb18040a056ede2b49a00da436df407fb78':
Tweak InCallUI animation times
a41dafb18040a056ede2b49a00da436df407fb78 28-May-2014 Yorke Lee <yorkelee@google.com> Tweak InCallUI animation times

Bug: 14820894

Change-Id: Ib2d5278cb07d019c8d512db58fddd4f06cf53736
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
6de0a817129e2271a98813a0199d5cd10f41df71 28-May-2014 Andrew Lee <anwlee@google.com> am 8802442d: Merge "Show elapsed time in InCallUI." into lmp-preview-dev

* commit '8802442d48d265bfb5a6b91ae99877731fea0eeb':
Show elapsed time in InCallUI.
d9e9c76c4828a56c31ee2dcc3164f5c760395b47 27-May-2014 Andrew Lee <anwlee@google.com> Show elapsed time in InCallUI.

Before, this was getting owned at the end of animation, for some
reason (perhaps the visibility was being set improperly?). In any
case, the newer AnimUtils in contacts common handles this properly,
so here we delete the hide/show helpers in AnimationUtils which
are now no longer needed and use these more common utilities instead.

Bug: 15281475
Change-Id: I86558d51b14605fff70945c3a97df05ddc45f1ca
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
22c025e95f70ebce64ed60ef779c3c98ecae7480 23-May-2014 Evan Charlton <evanc@google.com> Fix indicator visibility

Show the indicator if it's a WiFi call, or Handoff-capable. This
will prevent the indicator from showing up on normal PSTN calls.

Change-Id: I1b893f6b6bb2276783d40a59f3521349a38070d8
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
2632f0a8586fb13bd2adcdb8ece048e98dfd254d 22-May-2014 Yorke Lee <yorkelee@google.com> Merge "Tweak InCallUI animation times"
a2186e0e92f130c7f6c77014042cde193fe42d18 22-May-2014 Yorke Lee <yorkelee@google.com> Tweak InCallUI animation times

Change-Id: Iffb8fd6613390f3b48c94372dd98062d1fcbada1
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
86b5ab56f1b25e79804fe7961a9ad20d6d349428 21-May-2014 Andrew Lee <anwlee@google.com> Adjust dimensions of InCallUI styling.

Also, toggle visibility of the number and label container depending
on if there is no number and label.

Change-Id: I22e132b0fd3c201dfe68098c3e284c119080bb16
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
8e303d6ad3f2a0e99b1d0674b9cf91565511f066 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/InCallUI/src/com/android/incallui/CallCardFragment.java
a0e7a22d35cc80a9ff2832476f02ca1e64e8006a 19-May-2014 Yorke Lee <yorkelee@google.com> Reposition SIP call label

Bug: 14981389
Change-Id: I63b39643cee84634581b9122752d16b472f7d7e9
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
62c67fa648b7aa49f65bf645a01abc4272882eea 16-May-2014 Yorke Lee <yorkelee@google.com> Further improvements to InCall transition animation

* Remove unneeded parent layouts in call_card.xml
* Individual child views in the call card container now translate
upwards

Bug: 14820894

Change-Id: I04411b76f99b4d519d4ef30400f134e8b9191aa6
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
7742de746b7745d27be7a0f49e499cc677eea35e 16-May-2014 Yorke Lee <yorkelee@google.com> Simplify and optimize InCall animation

* Remove the scrim and directly animate the call card container

* ResizeAnimation is no longer needed, instead we animate the height
of the card by using an ObjectAnimator and prevent any layout changes
from happening during the duration of that animation

* Change together Animators to remove some boilerplate

* Remove now redundant outer FrameLayout in call_card.xml

Bug: 14820894
Change-Id: Ifc847a47e6e03deed902c81740272a08e09a318b
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
776d937b539b9e9b3672a1d860adec309f65d0ad 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
e306b703259683799ade122458f6b05a03949800 15-May-2014 Yorke Lee <yorkelee@google.com> First pass at Dialer to InCall transition

* Modify InCallActivity to perform an animation only on a new outgoing
call
* Add an animated scrim to call_card.xml that serves as the backdrop
of the full screen animated reveal
* Add resize animation
* Add circular reveal animation

Bug: 14820894

Change-Id: Iaa7e87e8a96dcd269e444a40eadac9d912625c01
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
391bafb1527260cb67ca50327e7443c5d86fed6d 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/InCallUI/src/com/android/incallui/CallCardFragment.java
453db1e41f556a680117fdc7718114b20c6c118d 14-May-2014 Evan Charlton <evanc@google.com> resolved conflicts for merge of 08235996 to master

Change-Id: I846f0b0801fa66a1b9117daf9014729695f54e4b
e4920eb21ecd4a142fcd9c713ca4520d39fb8032 14-May-2014 Evan Charlton <evanc@google.com> resolved conflicts for merge of 8abea101 to master

Change-Id: Id21435a4d92864c8395846a82a7d8d1643d0125a
7833bceed03e9c04bb57551ba79fedbff126e1ee 14-May-2014 Evan Charlton <evanc@google.com> resolved conflicts for merge of 500e399c to master

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

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

Change-Id: Ica8afe1eb165d69042b356fbf9833efb5c6dbb24
4b90ae859d37ae7030069bc14749de19031cd76d 09-May-2014 Evan Charlton <evanc@google.com> Merge "Re-add network indicator/handoff button" into master-nova
efe3a4567bb5fe75fd56b44d9f3c01e330c95bc5 09-May-2014 Evan Charlton <evanc@google.com> Re-add network indicator/handoff button

Add a handoff button (and network indicator) back into InCallUI. This
has not be vetted by UX or anything, but it will hopefully not cause
merge conflicts.

Change-Id: I6d0a8e7cd865df70b13fc69ec96cdc98e0e3f203
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
8971791fb0626d0e94643a79f12259fe4cac33ce 09-May-2014 Andrew Lee <anwlee@google.com> am a6b8624c: Merge "Move glowpad to call card fragment."

* commit 'a6b8624c4986bc48cdfb527f950e1e080133f51d':
Move glowpad to call card fragment.
95e7fa4ec0eb71eeb1bd38b419e6e6be9cea0191 09-May-2014 Andrew Lee <anwlee@google.com> am 99782844: Touch up InCallUI call card positioning.

* commit '99782844e859fe1390f718e64d525156c532747b':
Touch up InCallUI call card positioning.
a6b8624c4986bc48cdfb527f950e1e080133f51d 09-May-2014 Andrew Lee <anwlee@google.com> Merge "Move glowpad to call card fragment."
bf0a6b48bf775beafbb8b44b57d1c936339a630f 09-May-2014 Andrew Lee <anwlee@google.com> Move glowpad to call card fragment.

- Move the answer fragment into the call card so that it lays out
correctly over the contact photo.
- Update glowpad color so it is partially transparent.
- Instead of disabling end call button, hide it if it is not enabled.

Bug: 14658215
Change-Id: Ibaaf0b1b0d3afc4c9e3e8e9f5c322fccd0ffc321
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
99782844e859fe1390f718e64d525156c532747b 09-May-2014 Andrew Lee <anwlee@google.com> Touch up InCallUI call card positioning.

- Position the sizes, layout, and transitions of text better.
- Correct the sizing of the buttons.

Bug: 14622411, 14617751, 14618551
Change-Id: Idbc5f9b97447d6b40e4702ea70db2196dfdab979
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
a81f411886922b08320c7bbaaa398a4506added0 08-May-2014 Evan Charlton <evanc@google.com> resolved conflicts for merge of d4a1d2e5 to master-nova

Change-Id: I0b78644dfee1ee9d6cc8627bd480858361cfae43
3d167951524ad9b2b735cca8f259726084b20613 01-May-2014 Evan Charlton <evanc@google.com> Fix the build

Somewhere along the line, we dropped a resource (and a variable name
was changed). Fix these errors.

Change-Id: I06ce956961e8bf0e08f03d51651bf48262055703
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
eea5fcd0636955af8c4dbf687b23642ba4025037 01-May-2014 Andrew Lee <anwlee@google.com> resolved conflicts for merge of d733dba7 to master-nova

Change-Id: I5b90095c8eac169f059f40402b44e192d408a817
3536a530eafa8c49f33f890d3a39407dc059b4fc 29-Apr-2014 Andrew Lee <anwlee@google.com> Always show the call state text view.

Before this was flashing in and out because of the change in
visibility, which was causing some shifting and UI jank. Now
the call state label will always take up space in the layout.

Also, moved where the elapsed time view is so that it is
properly aligned to mesh with new changes.

Change-Id: Id8b395b18ebc1038310721d878622c6b0c15c295
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
3306c8648fab5dfca386ca8a3c2d7f2e3fb01239 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/InCallUI/src/com/android/incallui/CallCardFragment.java
6820682a33ca0734e8363e980fc136b9ab228678 25-Apr-2014 Evan Charlton <evanc@google.com> resolved conflicts for merge of 121e8dc0 to master-nova

Change-Id: I8cfd2d26ddd4ea96e76758e4e3485a10fcaedd50
121e8dc03af910bbb8433ee46119bd623031b4d4 25-Apr-2014 Andrew Lee <anwlee@google.com> Make EndCallButton circular.

- Added FrameLayout around end call button.
- Reconfigured size and clipping of the end call button.
- Retyped some colors from drawables to colors.
- Removed unused styles and dimensions.

Bug: 13956531
Change-Id: I9a5bc5b0307521f4ef3d7a9ae61b586e4e32a76a
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
29d0f456df81bab9ad14c556fc81d790f8b6e518 24-Apr-2014 Andrew Lee <anwlee@google.com> Merge "Restyle text in primary call info."
a01b607e2a3d59c15209f44dbb1244b8fc67704c 24-Apr-2014 Andrew Lee <anwlee@google.com> Restyle text in primary call info.

- Update positioning, color, and sizing of primary call info text.
- In particular, moving the call state to above the "name".
- Delete the supplementary info container; it's no longer needed.
- Remove programmatic updating of gravity on call state; it is now
always left aligned.

Bug: 13956531
Change-Id: Ib165a2afd13444f70e3bfe0ae23ae6c6bb77bb84
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
3cd3509db5afd65c2ad3f5f7ac95f9dbdf5244b9 24-Apr-2014 Andrew Lee <anwlee@google.com> am 4c3e9e8e: Properly enable/disable end call button.

* commit '4c3e9e8e45ecafcb9aaf0da9901a5e9cebc59bc4':
Properly enable/disable end call button.
4e018fd61111ed2e3f9d69f83cc588ba772566cb 24-Apr-2014 Andrew Lee <anwlee@google.com> resolved conflicts for merge of 7b4cfe59 to master-nova

Change-Id: I42b453f23db08952cdbcb17b1bdb199d504e92ef
4c3e9e8e45ecafcb9aaf0da9901a5e9cebc59bc4 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/InCallUI/src/com/android/incallui/CallCardFragment.java
7b4cfe59218ff0876587933f5f22845881fdbe40 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/InCallUI/src/com/android/incallui/CallCardFragment.java
082359968b330e88b0d8b105ea52fcf5f855380e 23-Apr-2014 Yorke Lee <yorkelee@google.com> resolved conflicts for merge of faa97b36 to master-nova

Change-Id: Ief63a53f6873b25b4be810acb1c7ee4ffbe4b80f
d9fa8d2e167fc9e011d9a7fa43889cb84811a166 09-Apr-2014 Ihab Awad <ihab@google.com> Fix layout issues with Wi-Fi in-call status.

b/13890032

Change-Id: I6d34993acd2f608d808a786025ec9b07aff6dc09
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
1771e5a1295eac5ad0d59fe2ff750ab450eab90e 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/InCallUI/src/com/android/incallui/CallCardFragment.java
8abea101a87b055e38f3ce492540d155f885f02e 02-Apr-2014 Sailesh Nepal <sail@google.com> Handoff: Hookup handoff button to InCallUI

Bug: 13643568
Change-Id: I94c28b10c0e0a253450f14d31ecdc416d5b44ca4
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
fc22ba88566ef70e202128335231c367de6c52af 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/InCallUI/src/com/android/incallui/CallCardFragment.java
9d031ca4cf14d2330a9491b24d13ba16b2ae958c 29-Mar-2014 Colin Cross <ccross@android.com> resolved conflicts for merge of 063fa2d9 to master-nova

Change-Id: Iaa921a78fb59185404d24b6a4245ae2cb691ea5f
063fa2d92b1624680dfca88494afafb44f566b9f 28-Mar-2014 Colin Cross <ccross@android.com> manually merge 9b4962cb into master
a81667248196be225849f7739f64752dc578f6bb 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/InCallUI/src/com/android/incallui/CallCardFragment.java
500e399cca3685c2f39e52603ed33f97b7a9786f 19-Feb-2014 Sailesh Nepal <sail@google.com> Revert "Add handoff buttons"

This reverts commit 36b5e5f96678bafc325491d5294b2d97e0a0e499.
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
36b5e5f96678bafc325491d5294b2d97e0a0e499 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/InCallUI/src/com/android/incallui/CallCardFragment.java
71ed171246a6bb7048b73430d1f6de7da897a433 15-Dec-2013 Sailesh Nepal <sail@google.com> DO NOT MERGE Tweak InCall UI for Wifi calls

This CL makes the following changes:
- changes the background color to better match mocks
- replace the bluetooth icon with a wifi icon (stolen from ag/392042)

Change-Id: I512b719eeea710dfe8bd1e840caca3a70781206c
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
7547df61d141e4cca3c73360e9633b917e5a9004 23-Nov-2013 Jay Shrauner <shrauner@google.com> am 40ce41bf: Remove Google Voice gateway number

* commit '40ce41bf43c1f84fd2f51339b79e9a32cf076349':
Remove Google Voice gateway number
40ce41bf43c1f84fd2f51339b79e9a32cf076349 21-Nov-2013 Jay Shrauner <shrauner@google.com> Remove Google Voice gateway number

Remove gateway number from call card when making a call.

Bug:11591481
Change-Id: Ib96cdd223c4e61c8a55536df2bd1ecf59a0339c4
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
0be676b7151d87f4d4d5244a859b14cb12621bf3 22-Nov-2013 Chiao Cheng <chiaocheng@google.com> Ui mock for wifi connected state.

Change-Id: I7a44bce4427ea955ee3e44a4ee63bfcc84057ca5
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
083c494c07681cdb826a1f2958d2143cf694de82 27-Sep-2013 Santos Cordon <santoscordon@google.com> Add deadzone to end call button.

inside perimeter previously had a deadzone around the inside perimeter
of the end call button to avoid unintentional hits.

This change reintroduces the SmallerHitTargetTouchListener in order
to add back the deadzone. Also added deadzone to the secondary call hit
target since that previously also implemented the deadzone.

SmallerHitTargetTouchListener.java copied from existing apps/Phone code.

bug:10884607
Change-Id: I7445b6a2e364878aabf6fcb2f7a3e4b1dee87578
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
442721af112b39d5f85cc3c1ecd341855a300555 21-Sep-2013 Yorke Lee <yorkelee@google.com> Read back contact information in in-call screen

This changes talkback behavior so that it behaves the same way
as in 4.3, other than reading the unnecessary description of the
contact's photo

Bug: 10844641

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

listening for new REDIALING state.

bug:10824223
Change-Id: I2b6f2f74713197902c93deca203f4f136732f7a2
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
eaf5e4bc87797eeb5098982803af33e4a66d13d8 19-Sep-2013 Christine Chen <christinech@google.com> Fixes CallCardFragment lifecycle issue.

Bug: 10840705
Change-Id: Ibefe57b7e79546a777f20e43b52793d7ff41a4e1
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
ecabb6923e6587e0f0ca98cc895be7d99e694015 19-Sep-2013 Christine Chen <christinech@google.com> Adds DISCONNECTING state support.

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

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

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

bug:10769004
Change-Id: I379895612614483f7f3ea6fef493796ea855743b
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
c59f3c672a0494cfba564ff117eafc1ab5e17641 16-Sep-2013 Yorke Lee <yorkelee@google.com> Add internet call type label

Bug: 10764487

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

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

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

bug:10712670
bug:10734874

Change-Id: Ic8d50b1d9ce336ffe3a5191abe1c9db32365eee6
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
101bed44998ff35c3a56f431345fac5c8229ec0e 11-Sep-2013 Jay Shrauner <shrauner@google.com> Fix flow of local/remote lookups

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

Bug:10634005
Change-Id: I87bd987780ba744222d3adc82cf359e3c20f121f
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
a8ab8121c980779526e1fe7ee825c25c948a34a3 13-Sep-2013 Christine Chen <christinech@google.com> Merge "Addes xxhdpi assets for InCallUi" into klp-dev
5c1830662d8daca84aae65c2eddf88c19c7772f1 12-Sep-2013 Makoto Onuki <omakoto@google.com> Show "Calling via google voice" only in the DIALING state.

Also fix the call state label color.

Bug 10696646

Change-Id: I83c2dd5b3db77ebf72410d1a573cd517e5e1eb6e
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
cff70d5848ce3dcd13e41e5b156602ff2a3ff785 11-Sep-2013 Christine Chen <christinech@google.com> Addes xxhdpi assets for InCallUi

- Changes how End Call button looks.

Bug: 10491107
Change-Id: I02271ba346a8879b4642f4a642513211d2a328fc
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
0f09a02be361d5bb36fac6981649204f5d6987fa 05-Sep-2013 Christine Chen <christinech@google.com> Adds manage conference call UI

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

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

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

Bug: 10607629
Change-Id: I2e0754d2d7c46bc2797a1a672827bd2f8d56e5d8
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
aacc909ce248a08f84e90c4c84cef10f60154455 30-Aug-2013 Chiao Cheng <chiaocheng@google.com> Automating calls to onUiUnready() in parent fragment.

The code was duplicated un-necessarily in each child fragment.

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

Bug: 9679473
Change-Id: I9e25a247c59530d257ece27e62c88329eb5f4f61
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
7791690df4406bd51e3d3b0c256a4d6664951141 28-Aug-2013 Chiao Cheng <chiaocheng@google.com> Merge "Major fixes for in call to work with reverse number lookup." into klp-dev
8b6c8d0dbfba6eabe3d835f8cdcec8a13e253d0c 23-Aug-2013 Chiao Cheng <chiaocheng@google.com> Major fixes for in call to work with reverse number lookup.

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

Bug: 10413515
Bug: 10390984

Change-Id: I9fc4f2f35e8f5aad33c301b3c5c93132634cb63c
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
ea83891eb10811d5020cc5fdaf34b711012dab32 28-Aug-2013 Santos Cordon <santoscordon@google.com> Adding different timeouts for CALL_ENDED screen.

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

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

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

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

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

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

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

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

- Fetch image url if present.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Change-Id: Iee648b8c54ee4b5ea09cfaec508e1bf8fb8f1643
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
dab149c9b2185be82cbca63cc3980e41444900c0 07-Aug-2013 Santos Cordon <santoscordon@google.com> Audio Routing support in UI

Changes:
- AudioModeProvider - receives audio mode changes from
CallHandlerService
- CallButtonPresenter listens to AudioModeProvider so that it can use
those changes in the UI.
- CallButtonFragment uses the audio mode from Presenter() to display:
- The correct layers for the supported modes
- The popup menu when bluetooth is enabled

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Change-Id: I6de3a9da15b69d44826c3226701eed6a1b86239c
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java
e331d604d5ab345b06976c0ff7a930930f6b9e41 20-Jul-2013 Chiao Cheng <chiaocheng@google.com> Adding call card and buttons to UI.

- Created a fragment for call card and a fragment for UI.
- Adding corresponding button images.

Change-Id: I5facacd3a4346ab9d9ec2a67a2742dc27dbf5583
/packages/apps/InCallUI/src/com/android/incallui/CallCardFragment.java