38210445730ee04c351c7cc1b3800cfe23e34325 |
|
27-Jun-2012 |
Makoto Onuki <omakoto@google.com> |
Reorganize import in contacts provider Change-Id: If3afb134ea36bd93859efcd114885526e1592b91
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/PhotoLoadingTestCase.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/PhotoLoadingTestCase.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/tests/src/com/android/providers/contacts/PhotoLoadingTestCase.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/PhotoLoadingTestCase.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/PhotoLoadingTestCase.java
|