57a0e98eed836b72dd3dc3540b9cac029266ed7c |
|
25-Mar-2017 |
Wenyi Wang <wenyiw@google.com> |
Add isLoggable checks to all verbose and debug log outputs (1/2) Bug: 6813854 Test: built apk and verified log is seen in logcat Change-Id: Ib17cac0d2d9553276c4271221110305ab2d70a46
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
0a49afa2ad697307cc04ef4cb86570574fa720f2 |
|
06-Dec-2016 |
Gary Mai <garymai@google.com> |
Collapse common package (2/2) Ran optimize imports on the project as well to re-order everything which would have changed because of removing common. Test: Built GoogleContacts, GoogleContactsTests, Contacts, ContactsTests and ran unit tests. Bug: 33252370 Change-Id: I881f0ba8b8fef002b6eeefa9a16b34f15b2fd2a9
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
79a6b5d3a885bc508b4b98c92a946fe12643c444 |
|
16-Oct-2012 |
Chiao Cheng <chiaocheng@google.com> |
Sharing ContactPhotoManager between dialer and people. Move ContactPhotoManager and dependent classes to ContactsCommon so it can be shared by dialer and people. Bug: 6993891 Change-Id: Ib37af58718850d6d5515bbf3e46aca9fb95f9ee8
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
e0b2f1e2d01d1ac52ba207dc7ce76971d853298e |
|
12-Jun-2012 |
Chiao Cheng <chiaocheng@google.com> |
Global import order fix. Changed import order to be in accordance with style guide: http://source.android.com/source/code-style.html#order-import-statements Static imports will be placed at the top since most existing files used that convention. It is also a style that can be handled by both eclipse and intellij. Change-Id: Ia7013c7a2d88e5fefb8f4975d121f7fcd3fcc462
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
3e435f0e724cb3e88efce15f760e59b9bc08f0d3 |
|
12-Jun-2012 |
Chiao Cheng <chiaocheng@google.com> |
Change usages of com.google.android to com.google.common. The people app contains usages of both com.google.android and com.google.common. Changing code to use the later guava library since it will be needed to unbundle the app in the future. Change-Id: I2700126e020166ea1bbbd87c40e77428efde41f3
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
e7696de1dd8d587b652c500ef4a03f20f0afefba |
|
06-Apr-2012 |
Daniel Lehmann <lehmannd@google.com> |
Only cache small images so that they are not kicked out by big images Bug:6202229 Change-Id: I593a575a2f65cebd3cc126d5b734887e02dacc50
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
f8494db8cffbb27ef6dbf147d5f1d44ec96f64c1 |
|
02-Apr-2012 |
Daniel Lehmann <lehmannd@google.com> |
Decode JPEG on background thread Bug:6202229 Change-Id: I5cb52943ed8db6b22cd5fe784f692ab00ab323ae
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
2f77c85543e6c497e63cd0e216b70e58c1d13ec3 |
|
31-Mar-2012 |
Daniel Lehmann <lehmannd@google.com> |
Various refactorings to prepare proper big picture loading - Added a function to load a picture with ideal sampleSize - Renamed xmls/java files for tiles - ContactTileView is now abstract and has subclasses for each use-case - Added mechanism to estimate the image-size in a tile before layout - Changed the cross-fade in ContactPhotoManager to apply the fade to the current picture instead of the default avatar. Reduces flickering Bug:6202229 Change-Id: Ic8636d1b3349473163fb2424b5f74476fd435fb5
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
1f0239e78efd358e2babd59610843d8eee86efb7 |
|
28-Feb-2012 |
Makoto Onuki <omakoto@google.com> |
Optimize photo cache invalidation a bit Bug 5623200 Change-Id: I098429b192c6ec25043fa92170ce5f5b53563cff
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
2d73de04f64eb37e8812e19e2a9484e9b58c9ed4 |
|
22-Feb-2012 |
Daniel Lehmann <lehmannd@google.com> |
Fixed a typo Change-Id: I4a0e4e52f08582db3cc619b39c913f288e5cc52c
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
7a46cde8e9aa225e0da7b066f4a418d088ea1ffc |
|
02-Feb-2012 |
Daniel Lehmann <lehmannd@google.com> |
Fade avatar images in instead of making them pop Bug:5921986 Change-Id: If5e003dafc4e13f85c885d440e9e8d3fa73f89f9
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
14d2083c4c4c52b0d8b600a93c294af32cd6a826 |
|
03-Dec-2011 |
Dave Santoro <dsantoro@google.com> |
Fix issues with photo selection on Prime. 1. Per Marco's request, we no longer expand the photo in landscape on phone. 2. Passing the full bitmap through the intent appears to be a no-no, which was exposed in the "black-screen" behavior when clicking on a default avatar photo on Prime. To handle that, we now retrieve the photo from the default avatar resource if no URI is specified, and we retrieve the bitmap for real photos through the photo manager cache. To ensure performance, I've added a method to the cache to force caching a given bitmap/byte[] for a photo URI. Bug 5703659 Bug 5703700 Change-Id: I316f27c7ded575dd1bb00c0bb2e2c75917df1e19
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
8f8bd6dd334155c4fb953ca2735328d5a5b0c737 |
|
08-Nov-2011 |
Makoto Onuki <omakoto@google.com> |
Make photo loader low-memory device friendly - Now the L2 bitmap cache counts the actual bitmap size in bytes, instead if just the number of bitmaps. We started to deal with various different dimensions of bitmaps, so it's more appropriate. - Half the cache on low-memory devices. - Clear the caches on onTrimMemory() with TRIM_MEMORY_MODERATE. - Moved cache size values from resources to contacts. - Added a bunch of debug logs. Bug 5587258 Change-Id: Ib86512293be3af06b5dac58aae13f9596f56334a
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
bf9b213e047da2f39d2b7fd237aad1e08e46e813 |
|
12-Oct-2011 |
Daisuke Miyakawa <dmiyakawa@google.com> |
Fix possible NPE in ContactPhotoManager. It may put null to LRUCache when input has some problem. Reported via public issue tracker (issue 18369) Bug: 5447001 Change-Id: Icee410d2a999af3aae828b5a0eb61fb9b5c7db99
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
3d3a15c465b0c4105148458307a7b50e9b267fd0 |
|
22-Sep-2011 |
Makoto Onuki <omakoto@google.com> |
Don't use avater as stream photo placeholder Bug 5230226 Change-Id: I084676f2322c4071b938f3925471f3128cb6f10d
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
ecfc26c3f9495f1a4efed69a1582ff2b0deb2c71 |
|
13-Sep-2011 |
Daniel Lehmann <lehmannd@google.com> |
New avatars Bug:5074147 Change-Id: I583d22c63a7b617567c523efeed292ae1e2be7e4
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
173f281431ef33a80ec7b26ca2eae019bff2a2f7 |
|
06-Sep-2011 |
Makoto Onuki <omakoto@google.com> |
Photoloader tweak - Increase preload delay to 1000ms - Decreased number of prelaod photos to 100 Bug 5245656 Change-Id: I4360696f9ef01d600b2daae38f054a24c1f8eecf
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
84cac440813d6c151bf330998451ca1e3f6804b1 |
|
25-Aug-2011 |
Dave Santoro <dsantoro@google.com> |
App changes for handling profile DB split. - Added a custom loader to load in the profile and contact list. - Made the CursorLoader for ContactEntryListFragment and its subclasses pluggable, so the default one could substitute in the combined profile-and-contact list loader. - The photo manager needs some awareness of the profile ID-space, since it's doing bulk photo queries using a custom selection. - Adapted Isaac's change to the section indexer to handle the profile being out of consideration when doing the address book index query. - Removed uses of the ALLOW_PROFILE param, since it no longer exists. Bug 5204577 Bug 5136432 Bug 5140891 Change-Id: I676b4cdeabe87b1b585c6c8df2cde51605777106
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
f5be9baf49891a2c81b2ca9bef80d86f7e20d8cd |
|
05-Aug-2011 |
Daisuke Miyakawa <dmiyakawa@google.com> |
Stop showing default thumbnail in photo manager Bug: 5126085 Change-Id: Ie90814fc353a70524049aa892e228d72c9dafb01
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
d33b18c0eb6c310037fb5d9e000ac4f273a99644 |
|
17-Jul-2011 |
Flavio Lerda <flerda@google.com> |
Fix for loading the same contact photo twice. Currently, the code in the ContactPhotoManager which loads the pictures from the database assumes that each picture is requested only once. However, as in the case of the call log, the same picture might be needed more than once. This commit changes the code to create a set of photos to load instead of a list, so that each id or URI appears in the least at most once. This fixes the problem with the previous code which would end up resetting each picture loaded more than once in the same request to the default contact picture just after loading it. Bug: 5020196 Change-Id: I82169e9cf9048a31e2382fbfa962df5cfdd0971f
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
82e4a562b164911e045dd10f023501a9d84f127a |
|
08-Jul-2011 |
Flavio Lerda <flerda@google.com> |
Fetch the contact manager from the application. Currently, the ContactsApplication provides a singleton ContactPhotoManager to whoever requests one. However, if one uses something other then the application context to fetch the ContactPhotoManager, nothing will be returned, which means that there will be multiple ContactPhotoManagers, one per activity. Change-Id: Ic6f6e5f592e8707862cb39c1dce9c0db8cbf4686
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
11a9df755a4cfbe81b2488b1d588126166cdaeb8 |
|
30-Jun-2011 |
Dave Santoro <dsantoro@google.com> |
Fix issue with loading profile photo. The photo preloader was not requesting that profile data be included in the query. Bug 4981384 Change-Id: I9fa1a0ee0a1e9fe3a12fe5d906631ef3365de4dc
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
23b1b54d9e7cf9e597d2c1616a7224299a163b29 |
|
11-Jun-2011 |
Daniel Lehmann <lehmannd@google.com> |
Properly pass in preloading (its meaning was inverted) Change-Id: Ie09d4dd71f8f57ad71e8af97fb3ec5452dc50132
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
4ccae5617bbf9295364015e2ef7e716f65d2a18f |
|
03-May-2011 |
Daniel Lehmann <lehmannd@google.com> |
Don't do the LIMIT as part of SORT_BY, but pass it into its own parameter This is a prerequisite for Bug:4368912 Change-Id: Ic855ccd768cbce19a3947aff14857907ec2caf93
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
ab79a268ad8f113f0bc76ee410e6b804cdaa44ef |
|
10-Feb-2011 |
Jesse Wilson <jessewilson@google.com> |
Handle null byte array in contacts cache. http://b/3438334 Change-Id: Id391bcd4564ac10dc4970609eb9382c7500a3778
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
fb231aa77da10a939559f9b0b267ab3b94e8d35c |
|
08-Feb-2011 |
Jesse Wilson <jessewilson@google.com> |
Use android.util.LruCache instead of LinkedHashMap. Change-Id: Ibfa1550ae303069ecfc17c7a4958d64d36fbccc9 http://b/3184897
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
7edf238cb6e051bb53d327d9b435bbf5b4aa11c4 |
|
01-Feb-2011 |
Dmitri Plotnikov <dplotnikov@google.com> |
Improving photo cache Now we have a fixed size LRU cache of compressed images and on top of that a soft cache of inflated bitmaps. Change-Id: I0ea37be41d8f5c6e361bdf160e3e518b014f3615
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|
34b24ef363e2bcca072c34371144a845186d625e |
|
28-Jan-2011 |
Dmitri Plotnikov <dplotnikov@google.com> |
Turning contact photo loader into an application-wide service. It will no longer need to reload everything on orientation change and other similar events. Change-Id: Ibd4c823673d6b380df96a91a2829d24f910bcfbd
/packages/apps/Contacts/src/com/android/contacts/ContactPhotoManager.java
|