History log of /packages/providers/ContactsProvider/src/com/android/providers/contacts/FastScrollingIndexCache.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6fabfd02577c9c631cd371131c3e161122329777 07-Mar-2013 Jay Shrauner <shrauner@google.com> Fix FastScrollingIndexCache test

Make sure the FastScrollingIndexCache instance used for the unit tests
was created with the correct MockSharedPreferences

Bug:
Change-Id: I612638dadab394ea3ed8abbbe6f47de5f17601fe
/packages/providers/ContactsProvider/src/com/android/providers/contacts/FastScrollingIndexCache.java
2d2e22626b698b2484026ae18eca3c2c6340f2d1 27-Feb-2013 Jay Shrauner <shrauner@google.com> Auto-update ContactsDB on ICU version change

Save current ICU version into the ContactsDB and rebuild
locale specific data whenever the version changes.

Bug:
Change-Id: Id5fd3e178558dc903b522b2655c75e6aa353f6e5
/packages/providers/ContactsProvider/src/com/android/providers/contacts/FastScrollingIndexCache.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/FastScrollingIndexCache.java
5acb3e091bc334d4e0f367a36f8d62a0add02b39 16-Feb-2012 Makoto Onuki <omakoto@google.com> Fix deadlock caused by the fast indexer cache

Also,
- Split up putAndGetBundle() into put() and buildExtraBundle().
The old design was to avoid taking a Bundle as a parameter, which
I generally don't like because it's not self-descrictive.
But splitting it up makes the structure of bundleFastScrollingIndexExtras
much cleaner -- the get() and put() calls are now in a single method,
bundleFastScrollingIndexExtras().

- Removed mFastScrollingIndexCacheLock. I don't really like synchronizing
on a non final member either, but mFastScrollingIndexCache is essentially
final, so I decided to be lazy.

Bug 6020589

Change-Id: If842e52e5334452a52cf8d19c460d52329fc81f4
/packages/providers/ContactsProvider/src/com/android/providers/contacts/FastScrollingIndexCache.java
35997f3fdee2984b6d5373326110eda26929001a 06-Feb-2012 Makoto Onuki <omakoto@google.com> Cache fast scrolling index.

The cache content is also stored in the shared preferences.

The cache is invalidated when:
- contacts (or profile), raw_contacs, or data is modifiled.
- accounts are changed. (Strictly speaking we have to do this only when
an account is being removed, but not when added. But let's just always do this
for just in case.)
- visible contacts are updated; i.e. when custom filter is udpated.
- the locale changes.

Change-Id: I70cfe7c88d3b1a0a0f820338acbe885c136b6e10
/packages/providers/ContactsProvider/src/com/android/providers/contacts/FastScrollingIndexCache.java