History log of /packages/apps/Phone/src/com/android/phone/ContactsAsyncHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
dba9a8971738f350a1c7af9dde1fd3727a818066 18-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Refactor ContactsAsyncHelper

It now only takes care of loading photo asynchronously.

Previously it has been responsible for modifying CallerInfo (and even
before that it had been for ImageView), while there's no feasible reason
for helper class to touch those objects. They should be managed by
UI side instead.

Also with this change, the class is not Handler anymore. It is probably not
a good idea to let other codes possibly rely on the fact this is Handler.
Instead let's just instanciate another Handler object inside the class.

Change-Id: Ic3c35f4ad0aa073e1fe29f2ecaec6ef05286bde5
/packages/apps/Phone/src/com/android/phone/ContactsAsyncHelper.java
a990977fd5f2474167ec90c1f2b78f47362bce25 17-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Fix broken part of previous change

- Ongoing notification is *not* using the new icon.
- Filter isn't applied, which will cause lower quality picture
- use more appropriate size for the notification icon

Bug: 6336293
Change-Id: Ieeb03082d0387e042749a28b64ce84c79622a71e
/packages/apps/Phone/src/com/android/phone/ContactsAsyncHelper.java
25428a6eb620a5cd4bc320352797df276cafb412 17-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Create down-scaled bitmap for notification icon

Requires I0892357498db0ee89b8f4f9630dd980aa0f744ba

Phone app may have high resolution photo for contact picture, which
is not suitable for notification's large icon because it is too big.
This change lets the phone down-scale the picture and use it when
appropriate.

TESTED:
- make a phone call to the person whose contact picture is with higher
resolution. Bail out of the in-call screen and see notification.
- miss a phone call from someone with higher resolution photo
- reboot the device before seeing missed-call notification. And check
the notification after the reboot.

Bug: 6336293
Change-Id: I0892357498db0ee89b8f4f9630dd980aa0f744ba
/packages/apps/Phone/src/com/android/phone/ContactsAsyncHelper.java
bda8f0cf8bb1f347d7e48dd03ede5c6413051891 04-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Implement new JB wonder-notifications for missed calls

- Use Builder and addAction
- Show photo for a missed notification

TESTED:
- have an incoming call and ignore it relentlesly.
-> Missed call notification should have call back button.

- have two missed calls
-> no action should be available (the user should go to call log)

- reboot the device
-> missed call notification should have contact picture on reboot.

Bug: 6289104
Change-Id: I3cb974fef48625f3c4d3a45b46f65e42ad899819
/packages/apps/Phone/src/com/android/phone/ContactsAsyncHelper.java
38667a875d1ac88e41ad1863b7e6f23bf79d88dd 22-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> Move ContactsAsyncHelper from framework to Phone package

- Copy the whole file from framework to this package
- Modify the code so that it won't touch View at all

This change is a preparation for the issue 5236130: Brief glitch of
"unknown" contact photo before real photo appears. Previously both
CallCard and ContactsAsyncHelper have touched View's visibilty, which
is found to be inconvenient for animation handling.

For simplicity, this change itself is expected to cause no UI change.
Actual UI difference (for bug 5236130) should occur later.

TESTED (expecting no difference):
- make a phone call with GSM (which will still show the problem
mentioned in the issue 5236130)
-- make another phone call during the call
-- merge those two calls, and start conference call
- make a phone call with CDMA
-- make another phone call during the call
-- merge those two calls, and try swap button.

Bug: 5236130
Change-Id: Ide31e9862a03ab82c0c5818fee0b03ced1286991
/packages/apps/Phone/src/com/android/phone/ContactsAsyncHelper.java