History log of /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
38eb02e676db9e5a633e3c88a90beb8a477b1ca1 17-Sep-2010 Bjorn Bringert <bringert@android.com> Allow per-suggestion Intent components

Bug: 2972252

Change-Id: I221f6d2be3a29374ef080bc66594f1740a25e8dd
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
9038d65a5a8ebcfada1ec3067f81a26f05622088 11-Aug-2010 Mathew Inwood <mathewi@google.com> Only refresh shortcuts that are displayed in the UI.

Change I6413d82f9051bb64487c65817bfbcdea0f0c3097 introduced a problem whereby
*all* the shortcuts were updated, as the shortcut repository did not filter them,
and it refreshed all the shortcuts it returned. Now, the refreshing is started
after the suggestion promotion stage, so that only shortcuts that are actually
displayed in the suggestions list will be refreshed. This results in far fewer
refreshes and database updates (which can be time consuming).

Change-Id: I4b4cac522d12a4e304ddebfca7466f670cc3811b
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
93bd2e70b8b08da1ec37fd0e990dac05551d2e90 29-Jun-2010 Bjorn Bringert <bringert@android.com> Another big QSB refactoring

- Change GoogleSource to return a suggestion cursor backed directly
by the JSON returned by the server, to avoid unecessary conversions
when showing web suggestions in QSB and improve laziness.

- Add SuggestionCursorBackedCursor to keep the web suggestion
ContentProvider working after the above.

- Extract Suggestion interface from SuggestionCursor, and use it to
replace DataSuggestionCursor use with ListSuggestionCursor.

- Add GoogleClient.isLocationAware(). GoogleSource previously
always returned true.

Change-Id: Ibe5ab2839267546b15488fa0a31e8535c014232a
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
08961a4a0bfc0302f134e54a48d72355ede27706 28-May-2010 Bjorn Bringert <bringert@android.com> Only show query refinement button on web suggestions

Bug: http://b/issue?id=2723969
Change-Id: I7f0d30d2d96fcedd0c417ccf63a9bdad5e4697bb
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
b4141cf7b4b2c77b2abaf35c8508763f10220f2d 17-Mar-2010 Bryan Mawhinney <bryanmawhinney@google.com> Perform simple url normalization when doing duplicate detection.

Fixes http://b/2500216

Change-Id: I4700e00381a82477c16dcaf36ca09e26b31aa0ba
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
bf61e445cbe423cc2554b722b6dd38675015c36d 03-Mar-2010 Bjorn Bringert <bringert@android.com> Only consider enabled corpora for promotion (doh!)

Before, all corpora, not just enabled ones, where considered
for promotion in RankAwarePromoter. This had the effect that web
was the only promoted source ever to be queried.

Also adds a lot of debug printing that helped track this down.

Fixed in http://b/issue?id=2486251

Change-Id: Ia739111b2ab1bf2c5aba8dd1eca29614ca20c407
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
87e947cbd9f279a83337900ff8bbd5ab0a8dc455 02-Mar-2010 Bjorn Bringert <bringert@android.com> Fix moveToPosition() error in RankAwarePromoter

Fixes http://b/issue?id=2479716

Change-Id: I1c8ac3a0037d130b47edbf7b9ac5c818aa0cf804
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
3673ad4f2b3893f15675820ab2240ec0a64b7970 03-Mar-2010 Bjorn Bringert <bringert@android.com> Don't close cursors in finalize()

This can cause lock-ups, see
https://sites.google.com/a/google.com/db_in_android/

Change-Id: I293021d3bdc7a549147afa80593fa162b135ac00
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
965d98377ddfdc52b772c2444d840000b665e000 01-Mar-2010 Bjorn Bringert <bringert@android.com> Support SUGGEST_COLUMN_TEXT_2_URL

Part of the fix for http://b/issue?id=2380681

Change-Id: Ifd03bdc9a466e8159724ffeba6642ee260d58920
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
883c1bf364e38c5b133afb55f8493a14b65f4dd4 19-Feb-2010 Bjorn Bringert <bringert@android.com> Add a suggestions footer view

Also, refactor source and corpus creation. This turned out not
to be needed to fix the bug, but I think it was a good thing anyway.

Also, include a suggestion type in the qsb_click log.
This is only set for Genie suggestions at the moment.

Fixes http://b/issue?id=2445622

Change-Id: I332c0566fedecccaae194304310c1f13d7201e2d
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
7a1f40b4189a7435fe7177e759fde9fd2d032574 16-Feb-2010 Bjorn Bringert <bringert@android.com> Handle exceptions in CursorBackedSuggestionCursor

All operations on the Cursor in CursorBackedSuggestionCursor have to
catch RuntimeException, to keep buggy suggestion providers from
crashing QSB.

Fixes http://b/issue?id=2444662

Change-Id: I03951c2912e0a238412f676c9243012718577401
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
04a180b52fb4100a2f3747e795fb5d26e3207a4a 16-Feb-2010 Bjorn Bringert <bringert@android.com> Add unit tests for ShortcutRefresher

I copied the tests from Eclair GlobalSearch, but had to modify
them heavily for the current API. I removed all source impression
testing, since we don't track impressions any more.

This change also includes some refactoring to make the
code testable.

Fixes http://b/issue?id=2444660

Change-Id: I64b43149cf2614d61890550f11eb3eb0c24b3dbd
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
fde948e69f59589cf0d217ea414af7947de600bb 11-Feb-2010 Bjorn Bringert <bringert@android.com> Merge Google and Browser sources and call them Web

This required a gigantic refactoring of QuickSearchBox to work nicely.

This change also reduces the number of promoted source to 3,
since Web is now one source instead of two.

As a side effect of the recatoring, VoiceSearch now searches
the selected corpus (fixes http://b/issue?id=2438309)

Fixes http://b/issue?id=2365770

Change-Id: Ife8d40ef62ea004e8d0f20a60e9196fc589f01fc
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
1e938ea2f5edefab446b9562b316bc5dc72adebb 24-Jan-2010 Bryan Mawhinney <bryanmawhinney@google.com> Show contact suggestions using QuickContactBadge.

Removes the idea of "secondary intents" previously used to achieve the same thing.
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
94e8a2be78530170f50e7895a558bf8011bbf8e8 18-Jan-2010 Bryan Mawhinney <bryanmawhinney@google.com> Implement refreshing of shortcuts in QSB.
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
cef2c4c9d54f513babd74801dbed5cbf709b9b79 19-Jan-2010 Bjorn Bringert <bringert@android.com> Disable some QSB logspam

Change-Id: I6d75009c3273a88d80c7e3b661e70afcb3f49175
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
782dd228e78e9294692d639597f96c26283968bb 16-Dec-2009 Bjorn Bringert <bringert@android.com> Fix suggestion key, click and selection handling.

Typing on the suggestions list and pressing action keys
still doesn't work.

I also made SuggestionData mutable and got rid of the builder.
This this is only for tests anyway, it was annoying to have to
add every field in 6+ places in this class.

Change-Id: I17c287b217fc1a03567123ddbd48638657b2f5cf
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
185bb2e3881452c084fde44d9bee657f65881b0e 04-Dec-2009 Bjorn Bringert <bringert@android.com> Make tab order stable

- Overhauls suggestions handling to make tab order stable.

- Refactors SuggestionsView to split it into some
general tab components (TabView, TabAdapter), and
QSB-specific parts (SuggestionsView, SuggestionsAdapter,
SuggestionCursorAdapter).

- Moves UI code to .ui subpackage.

- Converts some error and warning logs to exceptions to make
them easier to find during development and dogfooding.

- Recycles suggestion views.

This code is currently pretty slow.

TODO: Don't populate views that aren't visible.
TODO: Delay update until the currently visible source reports.
TODO: Batch updates.

Change-Id: If42889d20499c34d94e1dc0acdc12a3ae53a23b0
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java
3e44ff1f2a204db3f479698cf0b3eab3d451dec2 03-Dec-2009 Bjorn Bringert <bringert@android.com> Import QuickSearchBox package from perforce.

This moves code from
//depot/google3/java/com/google/android/apps/quicksearchbox/...
The only changes done in the move are the package names
and the license headers.

The code does not yet build, since there is no Android.mk.

Change-Id: I768b06d211f5ee6ecd6f9777ba2839c09744fbf1
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/CursorBackedSuggestionCursor.java