History log of /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/GoogleSuggestClient.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ecf356c15143ab0583c64682de16d94a57f7dd1c 20-Sep-2013 Mathew Inwood <mathewi@google.com> Remove content provider querying from the search app.

The global search API that is used for this is being deprecated, since it
has long been beset by performance problems. Remove all related code from
the search app.

Bug: 10487397

Change-Id: Ifa91b50d784cb469cb39d6008284aa44ff54e62b
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/GoogleSuggestClient.java
9ddfa44af5b4211cd3a88b1d8a08f1afd0a9be56 11-Feb-2011 Bjorn Bringert <bringert@android.com> Use AndroidHttpClient instead of DefaultHttpClient

This fixes a crash on concurrent suggest requests.

Bug: 3438124
Change-Id: I6771ab20119dc556b52608e3cf09b79871be4794
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/GoogleSuggestClient.java
09bfc59959dc7bab36edb66a41cb93c354e74626 06-Jan-2011 Mathew Inwood <mathewi@google.com> Add client=android parameter to Google suggest client.

This is to be compliant with the suggest CGI API. Also updated user-agent
to include real Android version, instead of just '1.0'.

Bug: 3327779
Change-Id: I65fcac04bc513a9a197b0d95dbdd76a1d50a6b46
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/GoogleSuggestClient.java
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/google/GoogleSuggestClient.java
e427814cd26a18ccb8ea958bfa821dd2a83e4f1f 22-Nov-2010 Jean-Baptiste Queru <jbq@google.com> am 49ecac0f: resolved conflicts for merge of baccf388 to gingerbread-plus-aosp

* commit '49ecac0f60307c1b8c6a29f4f9aca8ee07728869':
QuickSearch: Fix the network connection timeout constant
49ecac0f60307c1b8c6a29f4f9aca8ee07728869 22-Nov-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of baccf388 to gingerbread-plus-aosp

Change-Id: I97b3563fff96d5e0fddb814bec902b1edd175992
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/google/GoogleSuggestClient.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/google/GoogleSuggestClient.java
c4e96e6c09422ab54984144ad618b2ecefb4b891 07-Oct-2010 Mathew Inwood <mathewi@google.com> Remove gl paramater from suggest & SRP URLs.

The country is now determined server side based on IP address. This resolves
problems for (e.g.) German speakers in Switzerland (previously, we set gl=de
which is incorrect).

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

Change-Id: I06c8d7328220f7c7c679ab2913b8d693479a2a3b
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/GoogleSuggestClient.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/google/GoogleSuggestClient.java
13b4f2dc4b339790c2b9b0220be47c8e77fd61ea 22-Sep-2010 Mathew Inwood <mathewi@google.com> Some tidying up and extra debug.

Change-Id: Ida60e25f7b3cb4a53c9f3c1bd4f0914b6f320dbf
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/GoogleSuggestClient.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/google/GoogleSuggestClient.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/google/GoogleSuggestClient.java
69494b842a3f907164a457852c385f86dbe71d15 22-Jul-2010 Bjorn Bringert <bringert@android.com> Distinguish internal and external web suggestion queries

Bug: 2858489
Change-Id: I57f31ffcd92c45d35fb6af5000dada11472e7a01
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/GoogleSuggestClient.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/google/GoogleSuggestClient.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/google/GoogleSuggestClient.java