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

* commit 'f75eb1ac9c28f1777ac375666b731d08630dbf1d':
Rename PROPERTY_WORK_CALL to PROPERTY_ENTERPRISE_CALL based on API review

Change-Id: I5ad7d6c4ea3eeac5b829beb1c984d25abdb059c2
f75eb1ac9c28f1777ac375666b731d08630dbf1d 19-May-2016 Tony Mak <tonymak@google.com> Rename PROPERTY_WORK_CALL to PROPERTY_ENTERPRISE_CALL based on API review

Bug: 28842878
Change-Id: I52684f898137d7b07c4b9a7ac34081b3d5ec79da
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
b9d447c6d1088134354d5bacaa9f95bd8ab9af53 09-Apr-2016 Garik Badalyan <garikb@codeaurora.org> IMS-VT: Show upgrade to video notification.

Upgrade to video notification is not shown
when UE's screen is on and InCallUI is not
visible, e.g. pushed to backgroud by pressing
the Home button.

CL: 121482384
BUG=28093622
Change-Id: Ia141886b7a085164b3294a682f14b60b7a2a83b4
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
3dc68df0b856eace41aaca6bd0266da023c18835 11-Mar-2016 Tony Mak <tonymak@google.com> Query lookup uri with work lookup key directly is not allowed

Query lookup uri with work lookup key directly is not allowed, app crashes
if doing so. And actually, all APIs do not support work lookup key
except those explicitly say it does.

This Cls changed two places:
1. Do not pass lookup uri with work lookup to NotificationManager to avoid
NotificationManager using the uri to query.
2. Dialer perform query for alternative display name using lookup key.
But if it is a work contact, do not do so.

Bug: 27146678

Change-Id: Ie59c37ff43b6f953a96564c446d79d8812f5ada1
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
5558f89b14af81d38364afe9e51a56f8557fd282 11-Mar-2016 Brandon Maxwell <maxwelb@google.com> Removing unneed bluetooth code

+ By playing through AudioManager.STREAM_VOICE_CALL, routing audio to
bluetooth is handled properly for us.
+ This change removes the code that was preparing to manually play
the call waiting tone through bluetooth.
+ Small fix ups for javadoc

Bug: 26932998
Change-Id: Ib5f872c72cdfa44ab0bc2ff5d7e41645aba813ff
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
e924ffb4ed7ed294d94d681b126cecaf50cae5b3 02-Mar-2016 Brandon Maxwell <maxwelb@google.com> Added public notification for calls

+ Previously we didn't have a notification for ongoing/incoming calls
to show users when they're on the lock screen and have their
notification settings set to 'hide sensitive notification content'.
This change adds that notification, to disambiguate between
notifications for calls and other notifications such as those for
missed calls.
+ This notification matches the version shown when the device is
unlocked except that we choose to not show work call information as
that is related to contact info.

See http://screen/zYZseSS1d54

Bug: 13387034

Change-Id: I02290e585a9b46eb9207adf8258a67d29882518b
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
ffa70124c4a0516d1d7225a52180e0182276e252 26-Feb-2016 Brandon Maxwell <maxwelb@google.com> Respect setting for incoming call to vibrate

+ Previously the Dialer would always play a vibration pattern for
incoming calls, regardless of whether the user toggled the vibrate
setting off. This change causes the Dialer to respect that setting.

Bug=27353237

Change-Id: I65987cea0c13dd50fba5e0edacfba88b3e3ecbd7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
68d86c656e5522dec1b04e85ebc0e0f78e436c3d 21-Feb-2016 Sailesh Nepal <sail@google.com> [Gradle] Allow dialer to be compiled as a library

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

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

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

Bug: 26676586
Change-Id: I07fbee4d33cc683539e4f8b3953c93f1427af9d7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
054559b6c279a0149ac6473d1897f6db817c5a57 12-Feb-2016 Brandon Maxwell <maxwelb@google.com> Integrating DialerRingtoneManager and InCallTonePlayer

This change makes the Call Waiting tone actually play during the
Call Waiting use case.

+ Plugging InCallTonePlayer into the DialerRingtoneManager in the
StatusBarNotifier
+ Test fixes
+ Added tests for when Dialer ringing is disabled
+ Added tests for DialerRingtoneManager#playCallWaitingTone
- Removed unneeded @NeededForTesting annotations from InCallTonePlayer
since they won't be stipped out by proguard.
Change-Id: I49a83d2a7fe6edf5f9ec88db973a5f37e307f23a
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
9cc21097e06859c8e3b36b9f18e5bad7c739c5f8 05-Feb-2016 Brandon Maxwell <maxwelb@google.com> Updating uses of ContactDisplayUtils and FBE fix

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

Bug=26822105

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

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

Bug=26822105

Change-Id: I5df93526e70b7350885c7261982945c32b7e86a0
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
249c755441938ead47c01d27c168c4096e0d9769 30-Jan-2016 Brandon Maxwell <maxwelb@google.com> Adding method to check if call waiting tone should be played

+ This method will be used in StatusBarNotifier to determine when
call waiting tones should be played instead of the standard ringtone

Change-Id: I4ad55f3870de5e63d03f4a5e8534680fa24556bd
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
cc7e5a7a71ecd3037802668be19935270f9c0216 30-Jan-2016 Brandon Maxwell <maxwelb@google.com> Refactored dialer Ringtone code in prep for call waiting

+ Created class that is responsible for determining if a ringtone should
be played.
+ This class will also have the code to play call waiting tones

Change-Id: Ie8fb633c8a233cc6b54beeb09b3fd6b62c9cb76c
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
56bba2008833c136e7c584782f3b3169f2f9f91e 29-Jan-2016 Brandon Maxwell <maxwelb@google.com> Adding flag to enable/disable Dialer ringing

Bug=26864105

Change-Id: Ifc565320dd9fd8845c45551454e59020806d985c
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
c3d71f89a4b577ef3681b7fc68d39d0a95c80eb1 28-Jan-2016 Brandon Maxwell <maxwelb@google.com> Play the ringtone for incoming calls in Dialer

+ Initial CL to make the Dialer play a ringtone for incoming calls.
- Not included in this CL:
- Playing call waiting tone
- Silencing ringer when volume key is pressed (power button works
properly)
- Bug fix for ringtone not playing when lockscreen is set
- Bug fix for contact look up taking too long - when do we play the
default ringtone
Change-Id: Ie8bd042b9ec142c78cb4d2de66475c96a18b8273
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
6a8cd0381df990473c8362e6478f4f89e0c9c9d7 13-Jan-2016 Tony Mak <tonymak@google.com> Indicate the call is work call in notification

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

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

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

BUG=26082618

Change-Id: I182b48a34d3d87ee3093e8433ae33939705d59d7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
45e7d5c95e656953508b567555db464aede3bdb1 09-Nov-2015 Tyler Gunn <tgunn@google.com> DO NOT MERGE Show child number in incoming call notification.

Where a child number is present in the call extras, show it using the
text "via 650-555-1212" in the second line of the incoming call
notification.

Bug: 24585039
Change-Id: Ic9827f8518778bf5e9c36235e2e1b6525aba4928
(cherry picked from commit 2e5cfc1a71942e2ca2c8e469042e82c1b4640476)
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
c82f0a1f9826d0002812748afa4906b8631a7b61 08-Jan-2016 Ta-wei Yen <twyen@google.com> DO NOT MERGE Handle child number changes after the call starts.

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

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


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

Bug: 24585039

(cherry picked from commit 7a2da71d22645d619e04b1704138f183a5e47724)

Change-Id: Id019dcb1fcdc7f13d738d9917bc9bbc4fe15dc02
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
1b7fe82eceb5845ec002ad7c2b8bbbf0cac98634 13-Nov-2015 Tyler Gunn <tgunn@google.com> Merge "DO NOT MERGE Ensure call subject is hidden if disabled for carrier." into ub-contactsdialer-b-dev
762ed8f1b0716eda3e9bcace78ac8beb1f2cf5c6 11-Nov-2015 Hall Liu <hallliu@google.com> Fix incorrect in-call notification

There was an issue where the in-call notification would still show
content appropriate for a ringing call. The in-call UI may be showing
before Telecom has updated the call to the active state, so it may be
the case that state can be Call.State.Incoming while notificationType is
NOTIFICATION_IN_CALL. Since the contents of the notification are mostly
dependent on state, this causes a mismatch between the contents of the
notification and notificationType.

Thus, a notification may be displayed that has the contents of a ringing
call notification, but it will store NOTIFICATION_IN_CALL into
mCurrentNotification. When the call gets updated to the active state,
the previous notification will not be cleared, resulting in the
incorrect behavior.

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

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

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

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

Bug: 19364093
Change-Id: I77ad9cb063bf439ae7e5551e40946ea29e414b7f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
256a0f4490b8a4f4734f7db2c59114a3d4698ce2 19-Oct-2015 Yorke Lee <yorkelee@google.com> DO NOT MERGE Fix bitmap leaks in InCallUI

Fix the bitmap leaks in InCallUI that were a result of
StatusBarNotifier instances being retained across calls.

Bitmap -> StatusBarNotifier -> CallUpdateListenerMap ->
CallList

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

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

Bug: 23351559

Change-Id: Ifb9197cc3abf6d865e13de10862c610e8aa15fba
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
8b4579cd14b1aa11161b4cca96c49ef2c678a067 07-Oct-2015 Yorke Lee <yorkelee@google.com> Don't cancel previous notification if none existed previously

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

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

Bug: 23164804

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

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

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

- Moved code to show HD icon into common method.

Bug: 22685114
Change-Id: I22d9dae16658490e3245cfdd9c936bb0584cd6db
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
a22cad94351f6eb4b6e052e63eb8078486df7a6b 25-Jun-2015 Yorke Lee <yorkelee@google.com> Send a new notification for non-HUN notifications

Reusing a previously HUN for a non-incoming call notification
can lead to unexpected behavior with the NotificationManager.

Instead, keep track of what kind of notification we are currently
displaying, so that we can cancel the old HUN and display a new
notification if the need arises.

Also log a little less verbosely when creating notification actions.

Bug: 21926442
Change-Id: Id888b65aeecded6b9ca22f7cf36b265af3d93327
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
0fa993bb132d2cbcda5000f7063120e5c2fc3253 20-May-2015 Yorke Lee <yorkelee@google.com> Remove unused InCallApp

Move NotificationBroadcastReceiver into its own class.

Change-Id: Ieefc840af7df596bfbb9297847ad164870e48970
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
6d4371d5df23d1b129a1a173292fad1fecdb362e 07-May-2015 Yorke Lee <yorkelee@google.com> Cache the non-rounded large bitmap instead of the rounded version

Because a new copy of a rounded bitmap is created everytime,
the check against the cached copies of information was failing to
detect identical notifications, causing multiple full-screen
notifications to be sent to the notification manager.

This causes a delay in the time it takes for the HUN to be
hidden when accepting a call.

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

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

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

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

Bug: 20160395
Change-Id: Ibc877c3d6898770bce4bd96bdcbe673061141892
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
c6cb85cfc3682a8aa3527be5dafb2a354ca1759b 27-Feb-2015 Yorke Lee <yorkelee@google.com> Simplify InCall notification logic

Always show the InCall notification iff there is a live call
(incoming, outgoing, active or held).

Change-Id: I2fc2a54c92cd0978dcf1bf49b0e8217bf2acc3ec

Bug: 20108489
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
300b3d0b7e3c335483febbf8fc5ee0ee4f059c39 26-Mar-2015 Yorke Lee <yorkelee@google.com> merge changes from m-wireless

Change-Id: Id93b2d6e840baaa0b9b42b4595bca0dc41972994
df3be1ebad0d471c5c0ef8b11db457a1c5371a50 16-Mar-2015 Vinit Deshpande <vinitd@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release'

Change-Id: I9f37386b36eeee2afffb20464265f92d5c5942d3
5894bc8a4043b6e5122581b77e91b42dbdefceca 25-Feb-2015 Matthieu Baglin <matthieu.baglin@intel.com> Video Call Upgrade/Downgrade fixes

This is fixing multiple deficiencies affecting video call upgrade or
downgrade in the L MR1 InCallUi.

Change-Id: I61bf7efa6ac23859c900dfd059faf72184987943
Signed-off-by: Matthieu Baglin <matthieu.baglin@intel.com>
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
bec041f1aa6654ff1071194bdb04ef6429109e4f 10-Mar-2015 Andrew Lee <anwlee@google.com> Indicate wifi for incoming calls.

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

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

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

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

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

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

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

Further changes will build upon and improve this.

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

Change-Id: Ic70857685680af6868d4b2153d942d73eef3ca56
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
609c0d0d02c8b45369095ae69951fa687ee25673 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/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
67ca197575874cb39e14d1acfe2140ece3e86625 03-Dec-2014 Andrew Lee <anwlee@google.com> Bidi wrap phone number in incoming notification.

The phone number should always be displayed LTR, regardless of
whether the language is LTR or RTL.

Bug: 18581329
Change-Id: I7f8e43f86d996625da781500e61c65abe507304e
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
f7f7a4f9165aa36be8b8db6597613a9f1ecbdeb6 03-Dec-2014 Yorke Lee <yorkelee@google.com> Merge "Don't cancel incall notification unnecessarily" into lmp-mr1-dev
49cfb53894fee64bc3a49fa7a4b8185302ebf530 03-Dec-2014 John Spurlock <jspurlock@google.com> Merge "Dialer: Set notification category for incoming calls." into lmp-mr1-dev
55e11a28db9470c943a84ae037fbc4a63cdc35d4 03-Dec-2014 John Spurlock <jspurlock@google.com> Dialer: Set notification category for incoming calls.

Bug: 18468085
Change-Id: I5d64f8958fe2be1952ee8a98fef77c6dd7d5e46a
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
bd4440be6e5e8ea2c01c1e3c6c1d0e3c9344a6bd 01-Dec-2014 Ihab Awad <ihab@google.com> Fix build breakage due to http://ag/587241

Change-Id: I62a93662730afb8f8a5f75417549c8bb7d50cc78
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
f4465bb279df51bea29bb09e42b3ac54d486d609 24-Nov-2014 Yorke Lee <yorkelee@google.com> Don't cancel incall notification unnecessarily

This code path happens ~8 times in the outgoing call process
and causes unnecessary binder transactions

Bug: 18373617
Change-Id: I179159df396fcbbae306c5599f59b24f3addc56f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
34db0412fce4f2ed9274524e23a9f3ad5bd5c714 22-Nov-2014 Andrew Lee <anwlee@google.com> Check for generic conference for showing notification.

Don't use conference call string / icon if it's a generic conference;
we aren't positive what the state of the call is.

Bug: 18488721
Change-Id: Ib9041b25d33f5f0baada6defca6351beb5a929d2
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
9231190be928b4941d199c6b339d5c2de97fd92f 18-Oct-2014 Yorke Lee <yorkelee@google.com> Send rounded contact photos to NotificationManager

Bug: 18021170
Change-Id: Ib618f5d244701d50faaf1070cb510b38deacd5f4
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
f0518d7304d01183ad425e06415d78a675e1f97c 15-Oct-2014 Yorke Lee <yorkelee@google.com> Create new string for notification_action_answer

Bug: 17894022
Change-Id: I021f362f261fd9053c8749361692e6f3fabb9fcf
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
08b39346781644b26cb133511808634c27d30c06 07-Oct-2014 Yorke Lee <yorkelee@google.com> Use correct assets for more notification icons

Bug: 17879740
Change-Id: I6320cb60cdcc06408b576396d187cdfc1844b1c3
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
158d484308c07121f0f8ebf9447c3b9e2f8d88a5 07-Oct-2014 Yorke Lee <yorkelee@google.com> Use correctly sized answer icon and fix char limits

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

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

Bug: 17364651
Change-Id: Ie5ae18f51baa5da2eb9793785ad0c9d83b6343d1
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
9e5e89db136a2b35aeaaf4da47fc2b8b1b47d2ff 06-Sep-2014 Jay Shrauner <shrauner@google.com> Use framework scheme definitions

Use PhoneAccount defined values for SCHEME_{TEL, SIP, VOICEMAIL}.

Bug:17398074
Change-Id: Icd841240929a7531e3c7a93021fc19f7620f2cc6
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
3a7108ae5fc630730457957629b1115dcc991454 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/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
d2fbc7479396a2e84b877ff48ec5d0e4eb69e163 23-Aug-2014 Andrew Lee <anwlee@google.com> Swap in new icon for "held" call in InCallUi.

Not directly related to bug, but cleanup I noticed along the way.

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

Bug: 17179079
Change-Id: I3b327250c181f821ec37d574ae804f8003d04603
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
d93e7715264ab7e47176860aeb9b2065e6e57f44 19-Aug-2014 Yorke Lee <yorkelee@google.com> Add theme color for notifications (4/4)

Bug: 17129072

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

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

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

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

Bug: 16396523

Change-Id: Ia4b39689b89f9dea3aafae9e63ca0bfebb730501
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
77701216b331f54d2d7ccb95b97f2cf98f2c3957 15-Jul-2014 Andrew Lee <anwlee@google.com> Add video call handling for heads up notifications.

- Add isVideo method to the InCallUI call.
- Added cases and actions for isVideo to StatusBarNotifier.
- Added cases for isVideo for processing incoming call in the
full-screen experience in AnswerPresenter.
- Did what I figured would be some cleanup, to consolidate some
helper methods only ever called once, and reorder some methods
to be more alphabetical.
- Added new intent type for video calls (and revised old one for
audio calls), which are dispatched by the StatusBarNotifier and
received by the InCallApp.
- Update icons used, and deleted unused icons.

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

Change-Id: Ic1eb6fc98e7f030885596c9c40f0ed4f0e34e28b
(cherry picked from commit c90543e6ef64b16b4c1bb240494152bc513f1e36)
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
88fd7bdcc7a8b148f9a9df4ed51902abc23d5c22 06-Jun-2014 Santos Cordon <santoscordon@google.com> Do not set a full-screen intent if incall screen is already up.

Bug: 13568999
Change-Id: Ib138621e9aaee88b9f069ebc96ef3a5a914a8f01
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
8ef5cf3987ab9f7988d0ce7b033270095e05481d 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/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
c87c30b2d64619d51bfe43d49b08c4a146c38c13 14-May-2014 Evan Charlton <evanc@google.com> resolved conflicts for merge of a4819143 to master

Change-Id: Ia724e55004733996de1fab90fb373334046fefec
73c981d5f600403b7f502b8a9bb210cf7192f51e 14-May-2014 Sailesh Nepal <sail@google.com> am 6af0c61c: InCallUI - Use String IDs

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

Change-Id: I686eff26a8172fe289866046f3b0a3f2392628c2
a6e545ccc15b4925e7b8d2a34a5acb35b03fb463 02-May-2014 Chris Wren <cwren@android.com> Add EXTRA_PEOPLE to the dialer notifications.

Bug: 14489962
Change-Id: I8e83cf04fc4acaefcb83fa2ea7c37d091c99f5c1
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
c6f4e50a4130fb8f7247f5eab6849829701ad484 06-Apr-2014 Sailesh Nepal <sail@google.com> InCallUI: Use new InCallCall object

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

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

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

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

This CL also deletes the old Telephony services.

Bug: 13643568
Change-Id: Id1860a5df9706f2a7fddd40e70f0d693af7b04bd
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
78f59304027795f8fec2c90e903d77a507cbc4f7 05-Mar-2014 Chris Wren <cwren@android.com> answer should be on the right

Bug: 13327203
Change-Id: Ie6170aa1e64b4e3f2d517f498cae9f3b8e2bd0d0
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
72aa15de5bb974c95db67f8d631f0e10007903fc 25-Feb-2014 Chris Wren <cwren@android.com> add actions to the incoming call notification

Bug: 12605720
Change-Id: Ic3593da8693e9fd51e9d3d87aa3ede770aa598cc
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
e6ad987b4270074142b4b98edd7630ee0d592442 09-Dec-2013 Chris Wren <cwren@android.com> always add full screen intent if a call is incoming

Bug: 12605720
Change-Id: Ic1527d49661d1b6dfefed2de3620f5185c42d2de
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
b48cecbe68abbecd15991b4476a5304ee8f38bcd 19-Nov-2013 Ihab Awad <ihab@google.com> Remove an extra logging call left over from development.

Change-Id: I41cda7bc38bad1acc3ad3e1270947fe77fab9416

Bug: 11748959
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
cd83c12b31b1a7df7d83edf5fd62dca4f35c89c3 14-Nov-2013 Santos Cordon <santoscordon@google.com> Add incoming-during-hold case to fullscreen Notification code.

We use fullScreen notifications to bring up the incoming call screen
when it is not already being shown. Android framework ignores
fullScreen property if the same notification ID already exists. To fix
that we cancel the notification right before setting it to full screen.

We only used to do that for the CALL_WAITING state since that when it
mattered. However, if the current call is on hold, a new call comes in
as INCOMING instead of CALL_WAITING so this change adds that condition
as well.

Also fixed two other minor pieces of code which only checked INCOMING
and not CALL_WAITING. One for an icon, the other used to acquiring
location as part of the contact info (we only do so for incoming calls).

bug:11578080
Change-Id: Id010a6848cd1ca06d68e8405041565bc008a781e
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
1668142a22eda0c55540ef0da68172b3c23305b4 08-Nov-2013 Ihab Awad <ihab@google.com> Show status bar notification on quick navigate from in-call UI

Add logic to force the status bar notification of an outgoing call
to be displayed after a reasonable if the user, e.g. by pressing
Home, navigates away from the in-call UI before it has a chance
to show up.

Bug: 11341599
Change-Id: I13f86b940cc82097596634c7634cb5a8726e7d12
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
09da36d4acb70189947adb2ff6d41adefda83607 15-Oct-2013 Christine Chen <christinech@google.com> Clears notification when there is no call.

Bug: 11083320
Change-Id: I05efd985114a78d87098a46b1c4c33ad5bcc5b94
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
e464115c984ed0c7415c2103d6127f17b590e579 01-Oct-2013 Christine Chen <christinech@google.com> Scales the contact photo to fit notification icon

Bug: 11007879
Change-Id: Ide32f725bedc80095edd067ea531f0c07e18ffa3
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
193fb4ff74b006f8923628c7d537630860b2d4cf 19-Sep-2013 Santos Cordon <santoscordon@google.com> Add "retrying" text for CDMA redial calls.

listening for new REDIALING state.

bug:10824223
Change-Id: I2b6f2f74713197902c93deca203f4f136732f7a2
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
91eb44029658695e655a20b06441628e6f151c11 13-Sep-2013 Makoto Onuki <omakoto@google.com> b/10699042 show dialpad when connects to voice mail.

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

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

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

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

bug:10712670
bug:10734874

Change-Id: Ic8d50b1d9ce336ffe3a5191abe1c9db32365eee6
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
2735001b0c90b9b09a0c8da3823b572b4aa01620 14-Sep-2013 Jay Shrauner <shrauner@google.com> Merge "Fix flow of local/remote lookups" into klp-dev
1c6bb983216392b5ceb36cea42a46631f68a3dd6 11-Sep-2013 Jay Shrauner <shrauner@google.com> Fix flow of local/remote lookups

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

Bug:10634005
Change-Id: I87bd987780ba744222d3adc82cf359e3c20f121f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
7dac444afe26abaec15dfbe55a1548f785ad2521 13-Sep-2013 Chiao Cheng <chiaocheng@google.com> Fix NullPointerException.

The existing null check was being overridden by check for
incoming call. Prioritize the null check first.

Bug: 10727364
Change-Id: Id0127a6f3634876126c1f13c810f1d1e54e8d203
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
db3fcfe4e527897381e8874dd7e6e08cd3355e86 11-Sep-2013 Christine Chen <christinech@google.com> Modifies status bar indicator for conference call.

- Changes the name from Unknown to Conference Call.
- Changes the avatar to the conference call avatar.

Bug: 10692003
Change-Id: I1c4750a70d1cb69d5499dba84a310a8167175460
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
1f63d2d8e8db3616c16886952813b3d0473216e7 05-Sep-2013 Santos Cordon <santoscordon@google.com> Improve lifecycle ordering for InCallUI

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

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

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

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

bug:10573125

Change-Id: I2d1af6a6e972b3b3bd93af839054e879f0b74b4f
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
7d2fb8620b808c28c49bde99dc54f6de46fdcb44 04-Sep-2013 Chiao Cheng <chiaocheng@google.com> Fix incall image for local contacts.

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

Bug: 10607629
Change-Id: I2e0754d2d7c46bc2797a1a672827bd2f8d56e5d8
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
55b990cc582b77cc7f778ee7459e750e35de2d67 30-Aug-2013 Santos Cordon <santoscordon@google.com> Merge "Allow new call waiting calls to pop up when not in foreground." into klp-dev
21017574bf99db38d739ae5dd81711a56cd1756c 29-Aug-2013 Santos Cordon <santoscordon@google.com> Allow new call waiting calls to pop up when not in foreground.

Added some additional debug logging.
Allow full-screen startup sequence to happen with any transition
to IN_CALL state, not just from a HIDDEN state.
(e.g., from IN_CALL -> INCOMING)

And for the grand finale, uncomment the code that would have made
this work from the beginning. :P

bug:10396126
Change-Id: Id34805941b75b28d4876153bb1bf0305142fc4cd
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
54f8e21d9a810e5cc38a708beb625246e07a7e77 29-Aug-2013 Santos Cordon <santoscordon@google.com> Ensure that OUTGOING calls bring up the notification dialog.

Change-Id: I32b3ed77dae7f839036ea24ae09b9a9d0e87b746
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
42373eb59cbef15ec61ebb5c919031f293291a53 23-Aug-2013 Chiao Cheng <chiaocheng@google.com> Major fixes for in call to work with reverse number lookup.

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

Bug: 10413515
Bug: 10390984

Change-Id: I9fc4f2f35e8f5aad33c301b3c5c93132634cb63c
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
a4bd83ad639b349fa16dbd07225017fcbf6ed550 21-Aug-2013 Chiao Cheng <chiaocheng@google.com> Protect all logging statements.

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

Bug: 10411948
Change-Id: I377625263b16c4f9408c79d5c533a1810fa6cde7
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
8cd746f0342f8c5def42f64b08cf6df741bb61bb 14-Aug-2013 Santos Cordon <santoscordon@google.com> Adding duration time to calls

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

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

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

Change-Id: I6e0a7c48aa7a35a0f1a52b399eb127d69f41a879
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
490f7d817f10d87865d66650276772aa6e2f79a2 10-Aug-2013 Santos Cordon <santoscordon@google.com> Add basic call information to the notification.

Change-Id: I33bc1445e9fc515b68205a12d7297a8f3013fecd
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
250f3792c16e15968b96fde2e52c434013b44d35 10-Aug-2013 Santos Cordon <santoscordon@google.com> Adding suppression behavior for in-call notification.

This suppresses the notificaiton if the call isn't active of outgoing.
We also suppress the notification if the user is currently in the
in-call screen.

...except during incoming (ringing) calls...we always show it for ringing calls.

Change-Id: Ib75545339376c62c975c390298ef9567d733b8e3
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
7030437c3ff5ec76aa4f7dd44cde1fdf71434527 09-Aug-2013 Santos Cordon <santoscordon@google.com> Adding hangup capability to in-call notification.

Change-Id: I7ba4dd0824f41d9989e36bff10fbfca68596134e
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java
f78a80ef8d521e12d59dfe10997477b5ae874281 09-Aug-2013 Christine Chen <christinech@google.com> Remove STARTED and START_UP states

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

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

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

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

Change-Id: I3324503e0d7bb1de00d8e7fab72d4b40519491dd
/packages/apps/Dialer/InCallUI/src/com/android/incallui/StatusBarNotifier.java