summaryrefslogtreecommitdiffstats
path: root/src/com/android/providers/contacts/DataRowHandlerForPhoto.java
Commit message (Collapse)AuthorAgeFilesLines
* use new setting flag to switch between current and new aggregator.Zheng Fu2015-04-151-2/+2
| | | | | | | | In order for the switch, add AbstractContactAggregator for ContactAggregator and ContactAggregator2. Bug:20055573 Change-Id: I6f27d4df8017938b226f5c6371b15ba41fd18acd
* Reorganize import in contacts providerMakoto Onuki2012-06-271-2/+2
| | | | Change-Id: If3afb134ea36bd93859efcd114885526e1592b91
* Fix the last failing photo testMakoto Onuki2012-04-161-4/+6
| | | | | | | | | | | | | 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
* Increase the photo size to 480x480 or 720x720, depending on deviceDaniel Lehmann2012-04-021-6/+2
| | | | | | Bug:6202229 Change-Id: I98b38023585d154eccad302578f796a2318fd5b2
* Move aggregator to its own packageMakoto Onuki2012-03-051-0/+2
| | | | | | | | | | | | | ... 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
* Do same photo processing for insert/update.Dave Santoro2011-09-151-15/+29
| | | | | | | | | Specifically, we want to avoid inserting photos with empty byte arrays. Bug 5319468 Change-Id: I5c7fb18d76a15eaf202d8e81add189ce053156f2
* Fix photo updates when no photo is specified.Dave Santoro2011-09-011-3/+15
| | | | | | | | | | | | | | If no photo key is present, we will not attempt to do any photo processing on the row. The existing photo and photo file, if any, will be unaffected. If a photo key is present but the value is null or an empty byte array, we will clear out the photo BLOB and photo file fields when updating. Bug 5247668 Change-Id: Ice8508060ab272bedfb42d105df55e972357e843
* Large photo storage.Dave Santoro2011-07-131-1/+77
| | | | | | | | | | | | 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
* Full text search: adding remaining built-in data typesDmitri Plotnikov2011-02-081-2/+4
| | | | | Bug: 2078420 Change-Id: Ifbd67f5ed65c44c2521a4b4d48d90aab8d0c86d1
* Extracting DataRowHandler classes to the top levelDmitri Plotnikov2010-12-011-0/+61
Change-Id: Ica84da28a01a9c1b3c19967ab8cb154d796812c2