History log of /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd4accc7899fa7b756e1c430d6b196525abd5c3c 25-Nov-2010 Mathew Inwood <mathewi@google.com> Move HTTP timeouts to Config, and increase.

This improves reliability on slow GSM connections.

Bug: 3226928
Dependant on change: I960f53941b824a358f2ab68c1e5e255b61493c3d
Change-Id: If7204f73639019e0394a1ab6983c2431c166daf9
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
77909685887bd6db7454b73cf274afc3aca2f58d 17-Nov-2010 Bjorn Bringert <bringert@android.com> Clean up suggestion layouts and fix spacing

This adds a special layout for web suggestions,
with fewer views, and moves all the web search suggestion specific
code out of DefaultSuggestionView.
It also gets rid of the per-source SuggestionViewFactories and creates
a global factory that delegates to other factories. This is to make
the choice of view dependent on the suggestion type instead of the
source.

Bug: 3202129
Bug: 3202115
Change-Id: Ie1963acd90bedda523f6c25c26b76b6a075b41af
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
516781305d7427e79928c95c6ea2b7689a4bf6ce 20-Oct-2010 Mathew Inwood <mathewi@google.com> Improve PackageIconLoader thread handing.

It now used a NamedTaskExecutor, to ensure that threads don't get
leaked when the sources are recreated.

Dependant on change: I68c047ca9d96432dcf90e79bfc2195aaab48b0b9

Change-Id: Ia92f1e8feb920f7a2a5e31c984fc11e826828eff
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
e29d52aa72c96c3147fa91d83aeb8dafc6d1f578 08-Oct-2010 Mathew Inwood <mathewi@google.com> Load icons from other processes in a seperate thread.

This protects againts the process not responding, which previously caused QSB to
lock up. We also protect against the process throwing an exception in the same
case.

This change causes some icons to load after the suggestions are displayed. For
example, contact photos are displayed shortly after the contacts show, but the
quick contact badge is visible immediately. This only happens for suggestions
with content:// URIs for the icons.

Bug: 3064103

Change-Id: I23f36a82d381ea76897d65fe2f3ec46f6642b7d5
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
5229b06f00d20aac76cd8519b37f2a579d61c54f 01-Oct-2010 Mathew Inwood <mathewi@google.com> Support for custom suggestion views.

Each Source can now define its own view factory to be used to display
suggestions from that source. Suggestions now also support extras (extra
columns in the cursor) that can be displayed in a custom suggestion layout.

Change-Id: Ie8dcedbbccfe7673804703adc8fabaae467626d9
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
f3f70e5ae88f06ff6dabdec9e7c71a19ca1e7108 04-Oct-2010 Bjorn Bringert <bringert@android.com> Allow corpora to be excluded from All but still enabled

Also removes the obsolete isLocationAware() method.

Bug: 3054864
Change-Id: I0fbf707a1a9932e0ccc886d48a6dadc500e87422
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
848fa7a19abedc372452073abaf52780c7b6d78d 26-Jul-2010 Amith Yamasani <yamasani@google.com> Two-pane UI implemented.

Show query suggestions on the left and all other results on the right.

There is one major issue with this as it stands: *all* shortcuts currently
appear in the right pane. They need to be split between the left and right
pane as web results are (presumably).

Change-Id: I4b433fb319d9911a83ccd974493de246300a1ddc
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
25cbd7d054b92df1fe857d155ccc12f8191c12cf 29-Jul-2010 Mathew Inwood <mathewi@google.com> Shortcut improvements.

- Change the name of GoogleSource so it's the same as earlier versions of QSB.
- Allow a SearchableSource to decide if it's compatible with another version
of that source.
- Allow SearchableSources.createSearchableSource to be overridden

This means that web shortcuts will persist after upgrading QSB.

Change-Id: Ia0a6a63153ba4642cf1e4cb1f9c92063014c6d01
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
c835fcfccedfe778da3296f0bf7ac21013c8b113 01-Jul-2010 Mathew Inwood <mathewi@google.com> Changes to support bug 2750953.

Change-Id: I95060b46314f33597b5deefcaec529498ff5b97e
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.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/SearchableSources.java
49fd8e0994577badc6194c2c3b5f771f2b793fe4 28-Jun-2010 Bjorn Bringert <bringert@android.com> Refactoring to make QSB more modular

Change-Id: I3bd5444bdcf4ac62a921c8c921306cc17aa440dc
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
2fd5aa82682f077660faa8ec60c04238026a8731 28-Jun-2010 Mathew Inwood <mathewi@google.com> Make logging more consistent.

Always use Log.d, never Log.v.

Change-Id: I3d32c9005f5b2798c99d1b253c99e728e40c0cc8
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
1e53e72fbfc32995a97bbd25ae44bfea7b8781de 07-Jun-2010 Mathew Inwood <mathewi@google.com> Changes to support bug 2601034.

Change-Id: I597808a9fb5174e5a0829ff476288e2afee3a070
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
21bff9bbf4286907b01d3153bff2fbd6b5ec5df8 13-May-2010 Bjorn Bringert <bringert@android.com> Clean up corpus update handling

This fixes two problems:
- makes the Voice Search button in the search widget and the QSB app
update immediately when Voice Search is installed or uninstalled.
- updates the corpus selection dialog and the currently selected
corpus correctly when corpora are installed or uninstalled.

Bug: http://b/issue?id=2522135
Change-Id: I04b212763e922cb2a9b2542b30ec4091a7dea506
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
81a0897ff9685f3313c58294bf7973700c468b2b 11-May-2010 Bjorn Bringert <bringert@android.com> Refactoring to prepare for external shortcuts

This change is meant to have no user-visible effects

Change-Id: Idf3a6d892ba84307a887785725aa072bd28c59b6
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
b46040af250f9d5cf65ea4e39595c7b88531241a 31-Mar-2010 Bjorn Bringert <bringert@android.com> Guard against null from getSearchablesInGlobalSearch()

Bug http://b/issue?id=2531294

Change-Id: Ibb813cda8de76452fe9e26a899f91aafa5014253
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
cc10dcf07c4e787abd66f4e2cfed31a09580a3b0 14-Mar-2010 Bjorn Bringert <bringert@android.com> Allow installing QuickSearchBox in data partition

Changes:

- Only use sources that the QSB process can read. This will exclude
any sources protected by the GLOBAL_SEARCH permission when
QSB is in the data partition.

- Add permission to read bookmarks, needed by Web source
when QuickSearchBox doesn't have the GLOBAL_SEARCH permission.

- Change QuickSearchBox icon to a generic magnifying glass, to make it
different from GoogleQuickSearchBox.

- Change All corpus icon to be the same as the app icon
(magnifying glass).

- Set package name in home screen search widget intents, so that
the correct search app is started.

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

Change-Id: I47892b011c06ebb000cd975bad057eeecc4d34db
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.java
62adab88055fd0ef6779242245cdc8c3ae5f999c 05-Mar-2010 Bjorn Bringert <bringert@android.com> More refactoring to enable Apps+Market source

Part of http://b/issue?id=2312744

Change-Id: I3d4bae54e55ade6901fb9d061ada226efd098549
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/SearchableSources.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/SearchableSources.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/SearchableSources.java