History log of /packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoStore.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
240d10d677b4acfeda5aa6e66c2cdea9ae02769b 16-Sep-2014 Zheng Fu <zhengfu@google.com> synchronize photo storage creation for race conditions.

Several exceptions were reported regarding "Unable to create photo storage
directory /data/user/0/com.android.providers.contacts/files/photos".
It might caused by the fact that File.makeDirs() is not thread safe.
So make it syncrhonized to resolve this issue.

Bug:17505392
Bug:17449819
Change-Id: I494204424c024c2166340af609423a669e741761
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoStore.java
38210445730ee04c351c7cc1b3800cfe23e34325 27-Jun-2012 Makoto Onuki <omakoto@google.com> Reorganize import in contacts provider

Change-Id: If3afb134ea36bd93859efcd114885526e1592b91
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoStore.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/PhotoStore.java
bd20dbedba706fdf2db7acb1c7d4391e57129d44 14-Sep-2011 Dave Santoro <dsantoro@google.com> Add lookup key support for photo URIs.

Bug 5235737

Change-Id: Iec2ef8ada5b70e22e35b6912ab62e6e680309dc6
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoStore.java
fa4db3db4146a26f154ef2e89352ad70a5415b8e 22-Aug-2011 Daniel Lehmann <lehmannd@google.com> Remove the java-synchronization and completely rely on DB transactions

Bug:5134056
Change-Id: Ied50a93fbcd1121ca978cbb8fdcd8556020cb28f
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoStore.java
c6eab5080340824edd2c6676c4e6b96e142f87e4 12-Aug-2011 Dave Santoro <dsantoro@google.com> Fix openAssetFile method of inserting photos.

For reference, the issue was occurring because the file descriptor
passed back to the caller is parceled immediately, which closes the
file descriptor on the provider side before it even gets to the
caller. The solution was to stop fiddling around with temp files
and just pass back a pipe instead - the provider then can simply
read the image content from the pipe and process it.

Bug 5156644

Change-Id: Ie210f65b5b8681524fed12a53df0c852fc951e5a
/packages/providers/ContactsProvider/src/com/android/providers/contacts/PhotoStore.java
6802030a777c0c3ba1dc029c534cca4784260632 16-Jul-2011 Dave Santoro <dsantoro@google.com> Forward-compatibility of old status update API.

With this change, inserts or updates to the old status update API
will be mirrored as stream item inserts or updates in the new
social stream API. This is primarily to bootstrap the new stream
data (which is what the UI will be showing) until such time as data
providers start using the new API.

This change also includes migration to using the new photo storage
system for photos from the social stream API.

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