History log of /packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
96e77cd102b25ec30955d1da80be2df703eeda5a 14-Nov-2013 Chiao Cheng <chiaocheng@google.com> Add callState parameter to reverse lookup requests.

This will provide contextual information to the server so that reverse lookup
can be turned off for outgoing calls.
Also add Gservices parameter so that additional query parameters can be added
in the future.

Bug: 11630566
Change-Id: I2186d73712e64e242e0f953f5d77125879c83148
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
fc9a1b11eb48ca512e3dd777b8479919f948e605 10-Oct-2013 Chiao Cheng <chiaocheng@google.com> Pull login protected images for profiles.

Some GAL photos are login protected. The server supports oauth via http header.

Change the reverse lookup api to lookup images by account if the image is
identified to be login protected.

Bug: 11106770
Change-Id: I92b506d325835a74f846829b0c03eed330938952
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
94bfdf9070ab1bca6866f4c0caf971dad03446a2 01-Oct-2013 Chiao Cheng <chiaocheng@google.com> Default to business avatar for businesses without an image.

Bug: 10988291
Change-Id: If06f30fdc6d12d1abcb20cd7a10b8d80a02ab22b
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.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/ContactInfoCache.java
450a75c4731a3a84302cd309d5844c12ca29e796 18-Sep-2013 Christine Chen <christinech@google.com> Removing finished TODO(klp)

Bug: 10605909
Change-Id: Ia4bfcc385d4bf36cbc3b401521714958fd829c7e
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.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/ContactInfoCache.java
c75cd2f3e48dcd970d2864d22538babb007dc55f 14-Sep-2013 Jay Shrauner <shrauner@google.com> Merge "Pass number to fetchImage as cache key" into klp-dev
546036b51eb90a1e1428d1bffafa54e4f927e030 14-Sep-2013 Jay Shrauner <shrauner@google.com> Pass number to fetchImage as cache key

Pass phone number in on fetchImage lookups so it can be used to save
the image to the cache.

Bug:10760102
Change-Id: I3afb5e99aa4e8a4bc9148f6cfda4e5eba48ec476
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.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/ContactInfoCache.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/ContactInfoCache.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/ContactInfoCache.java
9d771ab6b50228840f499ecabdc3becb0dbc9068 30-Aug-2013 Chiao Cheng <chiaocheng@google.com> Fix provider lookup when coming back from notification.

- Provider lookups were being dropped because the cache lookup code throught
the info already existed. This was due to the cache not being cleared in
all cases.
- Also made cache thread-safe since it is being used from both the ui thread
and background lookup threads.

Bug: 10545307
Change-Id: I8f10d6cc827d8ece773c2cae443b40b5ce521ad6
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
0d9cfa48c3bf44d800e280ec6bf1d8a226fab7ca 29-Aug-2013 Santos Cordon <santoscordon@google.com> Ensure that OUTGOING calls bring up the notification dialog.

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

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

Bug: 10413515
Bug: 10390984

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