History log of /packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
187e6ffef5fe2fdbc6954159a0e9fc79b55fbbda 10-Oct-2014 Santos Cordon <santoscordon@google.com> Dont overwrite cnap name with a failed local lookup.

Bug: 17916730
Change-Id: Iec19b5d02611b1cde23b57822157f278ae26d3ae
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.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/ContactInfoCache.java
e2814d578ed59624f3720302e8a99773d7c6a9c5 08-Sep-2014 Nancy Chen <nancychen@google.com> API changes in GatewayInfo, Response, and PropertyPresentation (2/4)

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

Bug: 17329632

Change-Id: I56180181a65e4b726e569aa4b8ac4cbb8dab00f9
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
470f82a9a7d33086c34e9f14d519307c14911761 04-Sep-2014 Yorke Lee <yorkelee@google.com> Protect phonenumbers with Log.pii

Bug: 17329799
Change-Id: Ie9fff13e887fcfa2950be047f77205d4bc5a2e66
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
6dcb6dfafb35b989ff4ecd7aac32d5ca73d282a5 28-Aug-2014 Andrew Lee <anwlee@google.com> Merge "InCallUi image resource updates (mostly deletions)." into lmp-dev
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/ContactInfoCache.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/ContactInfoCache.java
92465f830a8e7452283088b1de1b9a98626f3146 18-Aug-2014 Yorke Lee <yorkelee@google.com> Asset swap for InCallUI

Bug: 17112104
Change-Id: I85ec1fda31ce626368c722c4de95f558b0b523d7
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.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/ContactInfoCache.java
e89ee6f3c48374bfdea5450d6311763bc061885f 31-Jul-2014 Yorke Lee <yorkelee@google.com> Fix activity leaks in InCallUI

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

Bug: 16657866
Change-Id: I4da5cecd556f80fafd27f919b0aaa7f00b2a96f5
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
df06e232852a93d8238f3cacaab4d704de7e1216 12-Jul-2014 Ihab Awad <ihab@google.com> Implement new In-Call Service interface

Change-Id: Ic1eb6fc98e7f030885596c9c40f0ed4f0e34e28b
(cherry picked from commit c90543e6ef64b16b4c1bb240494152bc513f1e36)
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
5461c6a3b5090e6fab47076c5c0aeb2d1091606d 12-Jul-2014 Sailesh Nepal <sail@google.com> Misc Telecomm API changes: InCallUI

This CL hooks up the new APIs introduced in ag/501321 to the
InCallUI.

Change-Id: Iaffe0b84cea6003f2a9b9d8b30676743d2b236d4
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
8e64fce150b131468942087a59b5f6fd3c295562 09-Jul-2014 Makoto Onuki <omakoto@google.com> Use enterprise caller-id in incall.

- Use PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI for caller-id.

- Removed a bunch of unused code.

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

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

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

Bug 15779911

Change-Id: Ia755b9079d03d9236f824c2f1102a6fa902b2097
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
7c0eba373ef5c803b95a7a41c167da2e03e49ac0 14-May-2014 Sailesh Nepal <sail@google.com> am 07a822b2: InCallUI: Use telecomm presentation and gateway info

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

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

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

Bug: 14489962
Change-Id: I8e83cf04fc4acaefcb83fa2ea7c37d091c99f5c1
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
07a822b2ea92dc5b68cd43139be7efe4c6640cd4 01-Apr-2014 Sailesh Nepal <sail@google.com> InCallUI: Use telecomm presentation and gateway info

Switch to use Telecomm's CallNumberPresentation and GatewayInfo.

Change-Id: I962836c5f4b36c0b1f31d0dd6852fdf8a3a12736
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
6af0c61c32da6cfb400168ae3b0cf9f802abfed4 01-Apr-2014 Sailesh Nepal <sail@google.com> InCallUI - Use String IDs

Change-Id: Ibacb79658c146466d4f23bfcf7af0ebfb6e84dd0
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.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/ContactInfoCache.java
0b95958f23cce1931ad400910ea856a1d0efceca 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
(cherry picked from commit 96e77cd102b25ec30955d1da80be2df703eeda5a)
/packages/apps/InCallUI/src/com/android/incallui/ContactInfoCache.java
55e998472730cae27a82eed49cf7b020699b9286 19-Oct-2013 Christine Chen <christinech@google.com> Removing private dependencies in InCallUi

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

Change-Id: I18b3c52adb41c6131c1eb3c07ce32ebd56d0cc59
/packages/apps/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