History log of /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/PhotoStoreTest.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/tests/src/com/android/providers/contacts/PhotoStoreTest.java
87426833d4c2c626e032f5d0b84a08b58024daf6 17-Apr-2012 Makoto Onuki <omakoto@google.com> Fix the last failing photo test

Also add some nice features to the asserts for complex data.
- assertImageRawData() now writes the expected and actual images to the
cache dir when failing.

- assertStoredValues() and its siblings now dump the cursor to logcat
when failing.

Bug 6280711

Change-Id: I77aff61b0494580d0b2ba24b35eb045a18cd48c8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/PhotoStoreTest.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/tests/src/com/android/providers/contacts/PhotoStoreTest.java
583b1364980fd46a5012825886af3160752ff19c 29-Mar-2012 Makoto Onuki <omakoto@google.com> Make unit tests not crash

Workaround for "Cursor window allocation of 2048 kb failed" during
ContactAggregatorTest.

This should be some kind of OOM because if I run only ContactAggregatorTest
it passes without a crash.

Couldn't figure out the root cause. Instead of spending too much time on it,
decided to mark move all large tests except for ContactsProvider2Test to
medium.

Also did some cleanup for SynchronousContactsProvider2 and
SynchronousProfileProvider.

Bug 6249848

Change-Id: I51d80db1e4025ff20642bc3abf8074f882da47d8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/PhotoStoreTest.java
2b3fc5a7984d3d698a44640b18800ba788cbd704 27-Mar-2012 Daniel Lehmann <lehmannd@google.com> Merge "Don't upsize non-square pictures, even when cropping"
4311d471a6666c20809f740331f146957c61af48 27-Mar-2012 Makoto Onuki <omakoto@google.com> Merge "Add new package aggregation.util"
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/tests/src/com/android/providers/contacts/PhotoStoreTest.java
81567f4a0f7c9c338506bd82f4d33e83c2ccf159 23-Mar-2012 Makoto Onuki <omakoto@google.com> Add new package aggregation.util

Move aggregator related classes into it.

Change-Id: I712fe07ad2bab1e532e3822e3e2797a199329865
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/PhotoStoreTest.java
645d517ecec398862b33a5ae1bfa0766467eb4c2 21-Mar-2012 Daniel Lehmann <lehmannd@google.com> Don't upscale photos if they are too small

Change-Id: I4b0f6d7eaef47bc18fc94ec58e45b07066b33d35
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/PhotoStoreTest.java
49ed71913609193a00059df944f6259e9397b0bd 05-Mar-2012 Makoto Onuki <omakoto@google.com> Move aggregator to its own package

... so that methods used only by ProfileAggregator don't have to be public.

And fix some method visibilities that don't make sense.

Needed to change the bogus ID in PhotoStoreTest; otherwise moving the
aggregator test will make this test fail for some unclear reason.

Bug 6118852

Change-Id: Ic0c022cbf50128f40c70559c1a7cf8e2a6c06fc8
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/PhotoStoreTest.java
9d84fd3de4464d8d19a8aa419682f75d0089c752 10-Jan-2012 Makoto Onuki <omakoto@google.com> Add missing size annotations to provider tests

Change-Id: I6673bbd55fbb4cd5aec419d8684765366d5e3161
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/PhotoStoreTest.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/tests/src/com/android/providers/contacts/PhotoStoreTest.java