History log of /packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoProcessor.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1422d81607669bdc2ebd51c1b71f6640293d85cd 24-May-2012 Makoto Onuki <omakoto@google.com> Replace transparency with white for all pictures

Bug 5261517

Change-Id: I6c16bb1f9897589beec222fc63ad899cd478b923
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoProcessor.java
c23a30e0510cf56d1dafddc79d1ab99ae9297a3f 12-Apr-2012 Makoto Onuki <omakoto@google.com> Fix most of photo tests

Adjusting existing unit tests for higher res photos turned out to be tricky,
because the size of the test images were selected for 256x256.
(e.g. cropping tests)

Also we don't want the display photo size to change depending on the running
device.

So let's just keep using 256x256 for all unit tests.

Added new asserts to EvenMoreAssert to compare image raw data, which prints
actual/expected dimensions when it fails.

Even with this CL, ContactsProvider2Test.testInputStreamForPhoto() still fails
with the following assert message. The image size seems to be correct, so I'm
not sure why. This may be because we've changed the compression rate, but
I didn't dig into it.

"Different data lengths: expected=1088 actual=1578,
expected dimentions=[96 x 96] actual dimentions=[96 x 96]"

Anyway, with this CL at least PhotoStoreTest will no longer crash, so let's
merge it now and take care of the failing test later.

Change-Id: I935f76acee3c2de99030c62e14f43de07074fb8a
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoProcessor.java
65c62b9a3692410441475604e39f4957fe8a517c 03-Apr-2012 Daniel Lehmann <lehmannd@google.com> Addressed comments about previous CL

Bug:6202229
Change-Id: I8905f92bcea99848969a446b83d90c7cd077e547
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoProcessor.java
eae25ef81bfe12946f50c72be9647447bb2a16b5 03-Apr-2012 Daniel Lehmann <lehmannd@google.com> Increase the photo size to 480x480 or 720x720, depending on device

Bug:6202229

Change-Id: I98b38023585d154eccad302578f796a2318fd5b2
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoProcessor.java
b0208fcd1c296f3eb2b8dfaa55e4fb4972b3d198 27-Mar-2012 Daniel Lehmann <lehmannd@google.com> Don't upsize non-square pictures, even when cropping

Bug:6202229
Change-Id: I88a9a9bb72921f7a3ed80aebe40935656a92eb3a
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoProcessor.java
1dfa964f2e1756e27b36f99421bd403c84ea0a5f 20-Jul-2011 Dave Santoro <dsantoro@google.com> Tweak to StreamItemPhotos to include metadata.

This joins in the PhotoFiles table to get width, height, and filesize
info from that table when selecting stream item photos.

It also adds an option to the photo processor to force cropping the
image to a square centered on the original's rect - this is how the
social stream photos are to be displayed in the designs.

Change-Id: I596a4a0be94db0df39d29bc06e1a1684a057a202
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoProcessor.java
f547fd54d7933e1c03af4a8dc10560c71c38f6b8 27-Jun-2011 Dave Santoro <dsantoro@google.com> Large photo storage.

This change adds support for storing large photos for contacts in the
file system. Large photos passed to the provider will be downscaled
and re-encoded as JPEGs before being stored in the usual data BLOB
field (for the thumbnail) and in the photo store (for the display
photo).

See go/large-photo-design for details.

Change-Id: I26a69ac2ccba631962a3ac5c83edb3f45d7cfc7f
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoProcessor.java