• Home
  • History
  • Annotate
  • only in /packages/apps/QuickSearchBox/tests/src/com/android/
History log of /packages/apps/QuickSearchBox/tests/src/com/android/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8f65daa6e6df644d6cc6a9a2e100c01feb33bbd2 16-Dec-2010 Narayan Kamath <narayan@google.com> Account for language/locale changes in base urls.

If the user changes his locale / language, the base
search url should be changed as well (the hl= param).

bug:3287871

Change-Id: If460e1f6395bb0fcb009b5d8504cd13630ae4de3
uicksearchbox/MockSearchSettings.java
3109221113ff01d16dfa7d0844f93dccb7dd643b 07-Dec-2010 Bjorn Bringert <bringert@android.com> Don't shortcut typed searches

Typed searches are now always web searches, and we shouldn't
use shortcuts for any web searches, to simplify the history
experience.

Bug: 3261145
Change-Id: I2d050a4de535af07ee8d16a77177c4dbd503618e
uicksearchbox/MockCorpus.java
uicksearchbox/MockSource.java
uicksearchbox/MultiSourceCorpusTest.java
c953ef06f0fc1fb4157fe67aa145cf702ee204d0 02-Dec-2010 Narayan Kamath <narayan@google.com> Introduce the SearchBaseUrlHelper class.

Issues requests to /searchdomaincheck to retrive the
users search domain based on IP. Following this, I will
submit another change to turn it on and add the settings
UI.

Change-Id: I91e37b3a4b853b088216df81f4a2fb6122cb54c4
uicksearchbox/MockSearchSettings.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
uicksearchbox/MockSource.java
74c4910fd4ff4ac7b3e7cf3fd7fa81d4939c039b 17-Nov-2010 Bjorn Bringert <bringert@android.com> Merge "Allow hiding disabled menu items in two-pane popup menu"
73a375928e0b8f0b2bfa09e4b252cfcbdad4ef84 17-Nov-2010 Bjorn Bringert <bringert@android.com> Allow hiding disabled menu items in two-pane popup menu

Bug: 3154500
Change-Id: I5c702ce349b40508027b0b399e6a6297167c15c9
uicksearchbox/MockSearchSettings.java
27691bfcdcf3d2918b45bfadd57b08547c317ce5 17-Nov-2010 Mathew Inwood <mathewi@google.com> Some refactoring and tidyig up.

Improvements to AbstractPromoter and AbstractSuggestionExtras
to support changes in GoogleQSB.

Change-Id: I2c266e5239c914203b973bce15877d56d01729e5
uicksearchbox/BlendingPromoterTest.java
uicksearchbox/MockSuggestionExtras.java
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/ResultPromoterTest.java
24f58f73a41f943eea6066d6b381810753aef4b5 16-Nov-2010 Mathew Inwood <mathewi@google.com> Fix some spelling mistakes.

Change-Id: Idffb50a4697611518f4bdd3762f01a83608eb76f
uicksearchbox/SuggestionUtilsTest.java
40736d6090ddc45af9c44a436dfcdaef93e5d025 16-Nov-2010 Mathew Inwood <mathewi@google.com> Tidy up SuggestionUtils.normalizeUrl() and add some tests.

Change-Id: Iad5e256dd960b5521eaf4379321f95267f4a7ee6
uicksearchbox/SuggestionUtilsTest.java
af1ca2cc65a2c2fdf6f396126e235d64e4da0936 16-Nov-2010 Mathew Inwood <mathewi@google.com> Only show shortcuts in the first cluster.

Now, the top 3 shortcuts are displayed in the first cluster
in the right hand pane. If there are less than 3 shortcuts
in the DB, the first cluster will have less than 3 items in
it.

Bug: 3162608
Change-Id: I833cc99d75742b6260c3f770d2c061f39b67d644
uicksearchbox/BlendingPromoterTest.java
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/ResultPromoterTest.java
9a8c6b416ac7ab00998d3496226712f1d442838f 12-Nov-2010 Peter Visontay <pvisontay@google.com> Fixed a bug that caused RankAwarePromoter return fewer results
when it promoted something that had already been promoted due
to a shortcut to it. Added test case testing this scenario.

Also refactored RankAwarePromoter to make it easier to
understand its ranking logic.

Change-Id: I8f7baabf233b35162871dc0f589f7b6c4db72d20
uicksearchbox/BlendingPromoterTest.java
uicksearchbox/RankAwarePromoterTest.java
7a0c3a7c6fdabce949b59e0a2c6ec1d44a140c24 12-Nov-2010 Mathew Inwood <mathewi@google.com> Cluster results by suggestion type.

This uses a ExpandableListView for results, with the first
group showing promoted suggestions, and the remaining groups
showing all suggestions by corpus type.

Bug: 3162608
Dependant on change: I579339ca208a83ecb9813175da7b8afbb3aa3c9f
Change-Id: I20fbc3945a8b89e8d94287856874cdee561542e6
uicksearchbox/MockLogger.java
98cbee7f6266509a0805b3fef060f01caaef69e3 29-Oct-2010 Mathew Inwood <mathewi@google.com> Improve startup latency logging.

Now, the amount of time spent inside onCreate() is measured in
addition to the total amount of time to start QSB.

Dependant on change: Ia8430e8634138e3db6fc16e48d3025b27cfad24d

Change-Id: Ief63af918fb209b45bef2b915c125e9e18063d93
uicksearchbox/MockLogger.java
fb8ce18922dae59db424fce906b5c113797fe81e 21-Oct-2010 Bjorn Bringert <bringert@android.com> Allow removing individual history items.

Bug: 2864750
Change-Id: Ib7266f91e512a116e6cc14152462714242b4740a
uicksearchbox/MockShortcutRepository.java
uicksearchbox/ShortcutRepositoryTest.java
8749e77dddec9e7984ee86a7be6f5ba4fce44362 26-Oct-2010 Bjorn Bringert <bringert@android.com> Add mechanism for hiding web search shortcuts

Bug: 3086361
Change-Id: I05bcc0eb3a10a2a5747fe41246e889f7d38a3ccb
uicksearchbox/MockSearchSettings.java
uicksearchbox/MockShortcutRepository.java
uicksearchbox/ShortcutRepositoryTest.java
uicksearchbox/SuggestionCursorUtil.java
7f5ff91319a8433abd92f3e3179158e38391e159 26-Oct-2010 Bjorn Bringert <bringert@android.com> Fix creating state bug in CachedLater

Before, mCreating was not cleared in store(), so the call sequence
getLater(), clear(), getLater() would result in the consumer in the
second getLater() never getting called.

The only real change here is adding "mCreating = false;" in store().
The rest is clean-up, debugging statements and unit tests.

Bug: 3131012
Change-Id: I0fc805eb70965cb85d31ab2142b41d709bdb8e22
uicksearchbox/util/CachedLaterTest.java
dfc1772caf35942837d83331d787eb10734c37cb 20-Oct-2010 Bjorn Bringert <bringert@android.com> Get corpora excluded from All to work in the single pane UI

Bug: 3054864
Change-Id: Ie312ffe89b173a1a8d5eff7b5eb1136957971d6c
uicksearchbox/SuggestionsTest.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
uicksearchbox/PackageIconLoaderTest.java
fdb80c2962c88ac62dcd7ee7f2fab1857b61506b 18-Oct-2010 Mathew Inwood <mathewi@google.com> Add option to limit suggestions displayed by space available.

This effectively makes the suggestions list non-scrollable, by
limiting the number of suggestions to the number that can fit in the
available space.

Also fixed an issue in RankAwarePromoted whereby it would promote too
many suggestions if the promoted list was non-empty before hand.

Bug: 3086387

Change-Id: Iae5740fbd32b104c73b1b7dbf446c7e61a3e2e6a
uicksearchbox/RankAwarePromoterTest.java
e15fe38f0142174d223bfda0cd87d1a749a85fac 15-Oct-2010 Mathew Inwood <mathewi@google.com> Optionally don't show zero-query suggestions & shortcuts.

This change disables zero-qeury shortcuts for x-large devices only.

Bug: 3086273
Change-Id: I8c47af3f5696bf26482690e11ac046a21ac40150
uicksearchbox/ShouldQueryStrategyTest.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
uicksearchbox/IconLoaderTest.java
uicksearchbox/MockIconLoader.java
uicksearchbox/MockSource.java
uicksearchbox/PackageIconLoaderTest.java
uicksearchbox/tests/CrashingIconProvider.java
8b2936607176720172aee068abc5631bdf77e843 12-Oct-2010 Bjorn Bringert <bringert@android.com> Added strawman tablet corpus selection UI

Bug: 3053103
Change-Id: Iaca9605fe88c53581ef20a79d07724fc4bfd5e8b
uicksearchbox/SingleCorpusPromoterTest.java
uicksearchbox/SuggestionsProviderImplTest.java
53aab8c4459f45664d04ec882d67094c52b78695 06-Oct-2010 Bjorn Bringert <bringert@android.com> Replace Source.isWebSuggestionSource() with getMaxShortcuts()

Change-Id: I7986d291f0608b231a9708caf691a97694cc011d
uicksearchbox/MockCorpus.java
uicksearchbox/MockSource.java
uicksearchbox/ResultPromoterTest.java
uicksearchbox/WebPromoterTest.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
uicksearchbox/MockSource.java
uicksearchbox/MockSuggestionExtras.java
uicksearchbox/MockSuggestionProviderCursor.java
uicksearchbox/ShortcutRepositoryTest.java
uicksearchbox/SuggestionCursorUtil.java
uicksearchbox/SuggestionCursorWithExtrasTest.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
uicksearchbox/DefaultCorpusRankerTest.java
uicksearchbox/MockCorpora.java
uicksearchbox/MockCorpus.java
uicksearchbox/MockCorpusFactory.java
uicksearchbox/MockSource.java
uicksearchbox/MultiSourceCorpusTest.java
uicksearchbox/SearchableCorporaTest.java
22da5e41bec9a5d36388c1e6f99bca392c3ac63e 02-Oct-2010 Bjorn Bringert <bringert@android.com> Sort corpora alphabetically in corpus selector

The corpus selection dialog (and the homescreen widget config corpus selector)
now show the corpora alphabetically (except for All and Web which are always
first).

Bug: 3056465
Change-Id: I95a8182f6fbe4024eb9774779aee064bc3b1f137
uicksearchbox/DefaultCorpusRankerTest.java
96fec862c3d494aebcb4e1d93589a241385a2ba7 21-Sep-2010 Bjorn Bringert <bringert@android.com> QSB settings overhaul

- Put Google and Phone search settings on the same screen.

- Use a local preference for SHOW_WEB_SUGGESTIONS instead
of the soon deprecated Settings.System.SHOW_WEB_SUGGESTIONS,
see http://b/issue?id=3021480

- Refactor settings code to get rid of un-mockable static methods.

- Define options menus in XML.

- Use DialogPreference for "Clear shortcuts" dialog.

Bug: 3017828
Change-Id: I198d19f8df809adfb91cc0df1f2b11998451cd6b
uicksearchbox/MockSearchSettings.java
uicksearchbox/SearchableCorporaTest.java
09552c760ad82eb90795e98de96c65005d6ebafc 03-Sep-2010 Mathew Inwood <mathewi@google.com> Change to make defaulting of Contacts corpora more reliable.

The package that provided contacts results is looked up at run-time now,
rather than being hardcoded. This should allow it to work on devices
where the default contacts provider is replaced.

Bug: 2970922

Change-Id: I598e8083cc12b4f6f447d5d48f5f83281d700cb3
uicksearchbox/MockSource.java
6859aead3af0680b2c9dc326244aa89835c2c852 24-Aug-2010 Bjorn Bringert <bringert@android.com> Get rid of the last shortcut DB reads on the UI thread

Bug: 2706190
Bug: 2892691
Change-Id: Idabcf673873f5c1c694ce343d61ef43bfac98589
uicksearchbox/ConsumerTrap.java
uicksearchbox/DefaultCorpusRankerTest.java
uicksearchbox/LexicographicalCorpusRanker.java
uicksearchbox/MockShortcutRepository.java
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/ShortcutRepositoryTest.java
f165f2d6c6f8173b94937ae3202f0b638348dffd 23-Aug-2010 Bjorn Bringert <bringert@android.com> Don't limit shortut count in single-corpus mode.

Bug: 2936385

Change-Id: Ia16a327d7e9d762a9d62795fca9c3c8c5b25e03b
uicksearchbox/ConcatPromoter.java
uicksearchbox/SuggestionsProviderImplTest.java
b42184f1e6a1b7bb22797ff92cae696753aca770 20-Aug-2010 Bjorn Bringert <bringert@android.com> Get shortcuts asynchronously.

Other shortcut repository queries are still done on the main thread.
I'll fix that in spearate changes.

Bug: http://b/issue?id=2706190
Bug: http://b/issue?id=2892691
Change-Id: I7a6429afa876364a8609f80b448a1df0b5a65e3c
uicksearchbox/MockShortcutRepository.java
uicksearchbox/ShortcutRepositoryTest.java
uicksearchbox/SuggestionsProviderImplTest.java
b83882b9efa37ec0f20a0f1c85cf5ccc93194aee 19-Aug-2010 Bjorn Bringert <bringert@android.com> Move Promoter to SuggestionsAdapter to have a single Suggestions object

Change-Id: Ie0521f7a8427015d394c442a4b6d31b96d91d85b
uicksearchbox/BlendingPromoterTest.java
uicksearchbox/BlendingSuggestionsProviderTest.java
uicksearchbox/ConcatPromoter.java
uicksearchbox/MockCorpora.java
uicksearchbox/MockCorpus.java
uicksearchbox/MockSource.java
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/ResultPromoterTest.java
uicksearchbox/ShortcutLimitingPromoterTest.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/ShortcutRepositoryTest.java
uicksearchbox/SuggestionCursorUtil.java
uicksearchbox/SuggestionsProviderImplTest.java
uicksearchbox/SuggestionsTest.java
uicksearchbox/WebPromoterTest.java
e25e3e3c67916e4fcee431ad0eec3161c855b126 17-Aug-2010 Mathew Inwood <mathewi@google.com> Delete unused code, string and resources.

Depends on change: I5f56890beaae70945e004cb7bc6f5fa85c032a4c

Change-Id: I9c202c991a72ba010222a2017a23f8a73b1aeb01
uicksearchbox/BlendingSuggestionsProviderTest.java
uicksearchbox/MockLogger.java
4572856ac85bb53ea06e65d00beebdf336af9b27 16-Aug-2010 Mathew Inwood <mathewi@google.com> Filter shortcuts between the two panes, and other fixes.

Shortcuts are now split between the two panes in the same way as other
suggestions. Some problems with suggestions filtering have also been fixed,
which sometimes resulted in crashes. Other stuff:
- renames some classes for clarity
- renames some test code
- other tidying up and removal of dead code.

Change-Id: I75e22fe09340d3f31d79dfa29dc00fcf42b877ca
uicksearchbox/BlendingSuggestionsProviderTest.java
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/ShortcutLimitingPromoterTest.java
uicksearchbox/SuggestionsProviderImplTest.java
120040ef31d79c1d69138b13ca7f256841f3298e 12-Aug-2010 Mathew Inwood <mathewi@google.com> Fix the tests.

Most of the failures were caused by proguard being more aggressive by the look
of it. Added some @VisibleForTesting's fixes those.

Also some failured caused by the move to a 2-pane UI breaking assumptions made
in the tests.

Depends on change: I595127d00d4800e244ede57bfc475ddfc8521389

Change-Id: I335c637ab6818e173c1efe60cfd6d23bee7b1589
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/ShortcutRepositoryTest.java
3f38435f152ab0a1164b85ffa43d024a2d05f000 12-Aug-2010 Mathew Inwood <mathewi@google.com> Merge commit '09208161' into manualmerge

Conflicts:
src/com/android/quicksearchbox/Suggestions.java

Change-Id: I3fbc3dcbd0962fda61a762889f6bfae95af4a875
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
uicksearchbox/MockShortcutRefresher.java
uicksearchbox/MockShortcutRepository.java
b1d058c5fb5dca0d5f0df5bf3433feaad65478bb 09-Aug-2010 Mathew Inwood <mathewi@google.com> Delay shortcut DB updates to avoid priority inversion.

When working with a large clicklog, updating the shortcuts in the database
after a refresh can be timeconsuming. The update is done on a low priority
background thread, but blocks DB reads which are done on the UI thread. This
can cause priority inversion. By delaying when the updates are performed, we
can reduce how often this priority inversion occurs, which reduces the user
visible latency in the UI.

Change-Id: I58ea6dbd6d1f75bcb477851b49c621d50cd61eb4
uicksearchbox/ShortcutRepositoryTest.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
uicksearchbox/MockSource.java
uicksearchbox/SuggestionsProviderImplTest.java
uicksearchbox/SuggestionsTest.java
93ba3b9bf77395f7a148d384bac9a80ba8ce6ced 29-Jul-2010 Mathew Inwood <mathewi@google.com> Fix for bug 2879253.

The shortcut limiting has been removed from ShortcutRepository, as it is done later
by ShortcutPromoter anyway. Limiting the shortcuts in ShortcutRepository means that
(for example) if have have loads of voice search shortcuts in the log, we only
return these from ShortcutRepository evenm though there may be other shortcuts too.
Then when we filter the shortcuts, all but 2 shortcuts get removed by
ShortcutPromoter, leaving just 2 shortcuts left.

Change-Id: I6413d82f9051bb64487c65817bfbcdea0f0c3097
uicksearchbox/MockShortcutRepository.java
uicksearchbox/MockSource.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/ShortcutRepositoryTest.java
uicksearchbox/SuggestionCursorUtil.java
f881fbea9e0fab9b6af20c3690d0416d1ccc30b2 22-Jul-2010 Bjorn Bringert <bringert@android.com> Change shortcut ordering algorithm to preserve click order

This preserves the click order between shortcuts with the same number of clicks.
Before, there was a 30 days / 1000 = 43.2 minute granularity. Clicks in the same bucket
had an undefined ordering.

Bug: 2861317
Change-Id: If90e216c7efba3ea606205bd89e5aac9d89ffac9
uicksearchbox/ShortcutRepositoryTest.java
f16bea9765ee9838d316655d38cb51b72a3b4acb 14-Jul-2010 Bjorn Bringert <bringert@android.com> More edit distance optimization

Reduces CPU time for formatSuggestion() in LevenshteinFormatterTest from 44 ms
to 30 ms (32% reduction). This is on top of mathewi's recent optimization. The
total reduction is now from 72 ms to 30 ms (58% reduction).

Also adds @SmallTest annotations to the edit distance tests so that
they will be included in the continuous test suite.

Bug: 2836498
Change-Id: I7cc4156df4f9e993ce72cd35001d1abaa7c239e3
uicksearchbox/LevenshteinFormatterTest.java
uicksearchbox/util/LevenshteinDistanceTest.java
fbbf9be564b7675b2986dea38babfcbe55e5694b 14-Jul-2010 Mathew Inwood <mathewi@google.com> Performance improvement for suggestion bolding.

The amount of time spend inside LevenshteinSuggestionFormatter.formatSuggestion is reduced from 72ms to 44ms when runnig the tests. The number of memory allocations is also reduced.

Bug: 2836498

Change-Id: I97826e2499b4647812c58e762336a807f034f1ee
uicksearchbox/LevenshteinFormatterTest.java
uicksearchbox/util/LevenshteinDistanceTest.java
132a8afcb4970d1b783a6dba7944dc0dd5063101 30-Jun-2010 Mathew Inwood <mathewi@google.com> Allow suggested & query text style to be defined in XML.

Also refactored the creation of the formatting objects, for more flexibility and better testability.

Change-Id: I059a57ce9c4206e90a8e46492efd89a55694fed3
uicksearchbox/LevenshteinFormatterTest.java
uicksearchbox/MockTextAppearanceFactory.java
08ff0a7cb6b99db79508fa3124730eb81411bc56 30-Jun-2010 Bjorn Bringert <bringert@android.com> Limit the number of shortcuts per corpus in All mode

Bug: 2796586
Change-Id: I38f20930d4d9d819b6b1876c4c8af3b80dff69bc
uicksearchbox/ConcatPromoter.java
uicksearchbox/MockShortcutRepository.java
uicksearchbox/MockSource.java
uicksearchbox/ShortcutLimitingPromoterTest.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/SuggestionCursorUtil.java
uicksearchbox/SuggestionsProviderImplTest.java
2fb3a129925a42e72944b836e85a1a2d55a0d950 29-Jun-2010 Mathew Inwood <mathewi@google.com> Implemented suggestion bolding.

The part of the query that the user did not type is highlighed, currently in bold.

Bug: 2806529.

Change-Id: I087c4cd80faf878a54e1fa8d4c2833eef4329a62
uicksearchbox/LevenshteinFormatterTest.java
uicksearchbox/util/LevenshteinDistanceTest.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
uicksearchbox/MockShortcutRepository.java
uicksearchbox/MockSource.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/ShortcutRepositoryTest.java
uicksearchbox/SourceShortcutRefresherTest.java
49fd8e0994577badc6194c2c3b5f771f2b793fe4 28-Jun-2010 Bjorn Bringert <bringert@android.com> Refactoring to make QSB more modular

Change-Id: I3bd5444bdcf4ac62a921c8c921306cc17aa440dc
uicksearchbox/MockCorpus.java
uicksearchbox/MockLogger.java
uicksearchbox/MockSource.java
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/SearchActivityTest.java
uicksearchbox/SuggestionsProviderImplTest.java
ced9f76b761536341d739e9a243c98a4bf90638c 25-Jun-2010 Bjorn Bringert <bringert@android.com> Delay suggestion updates 200 ms and group them

New corpus results are now delayed for 200 ms, unless it is the
last set of results. If a new result comes in before the timeout,
the timeout is reset.

Bug: 2796507
Change-Id: I545c3bdddba9e0d94fed781660577d80d918727e
uicksearchbox/ConcatPromoter.java
uicksearchbox/LexicographicalCorpusRanker.java
uicksearchbox/MockLogger.java
uicksearchbox/MockSource.java
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/SuggestionsProviderImplTest.java
uicksearchbox/SuggestionsTest.java
uicksearchbox/util/MockDataSetObserver.java
uicksearchbox/util/MockExecutor.java
uicksearchbox/util/MockNamedTaskExecutor.java
cd1e3ba5f7c3f5242345ff6f674281e3d6366e24 22-Jun-2010 Mathew Inwood <mathewi@google.com> Allow corpora to differ results when only 1 is selected.

Corpus and Source now know when they're the only corpus/source being queried so can tailor the results returned accordingly.

Change-Id: I586dfa4226bbbad83d4f2ed70c9935a638f6caf5
uicksearchbox/MockCorpus.java
uicksearchbox/MockSource.java
uicksearchbox/MultiSourceCorpusTest.java
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/SourceShortcutRefresherTest.java
uicksearchbox/SuggestionsTest.java
839a9fd2828f37c9dc8345f93aefa5b8ad2f857f 17-Jun-2010 Bjorn Bringert <bringert@android.com> Drop "query jamming" feature from QSB

Before, QSB put the text of web suggestions in the query field when
selecting a suggestion with the DPAD or trackball. The code for this
was complex and error-prone (see for example http://b/issue?id=2515755
and http://b/issue?id=2748984). Now there is an on-screen button to
put the suggestion text in the query field. Thus we should remove this
feature.

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

Change-Id: Iebafc24cffca0c7cf113e426564ad22bb93da738
uicksearchbox/MockSource.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/SuggestionCursorUtil.java
3cb8178193a41f6c74ee396c318385a50dd624e1 15-Jun-2010 Mathew Inwood <mathewi@google.com> Minor logging improvement & bugfixing.

Changed startup logging to include time takent to get the list of shortcuts. Also, changes to support bug 2758788.

Change-Id: Idd0c28910893619b9dc6e176b94f11daaba26caf
uicksearchbox/SuggestionsTest.java
1e53e72fbfc32995a97bbd25ae44bfea7b8781de 07-Jun-2010 Mathew Inwood <mathewi@google.com> Changes to support bug 2601034.

Change-Id: I597808a9fb5174e5a0829ff476288e2afee3a070
uicksearchbox/MockSources.java
46dfa30d57af775e1baa8c0a211ac6614b4f6261 28-May-2010 Bjorn Bringert <bringert@android.com> Fix broken unit test

Change-Id: I65f2784dfc6643ee22e7e6679b36f08e50d44766
uicksearchbox/MockCorpus.java
uicksearchbox/RankAwarePromoterTest.java
96c7058210699c82445169048b7c0fdfb16f59ee 28-May-2010 Bjorn Bringert <bringert@android.com> Add config resource for hiding corpora from corpus selector

This is required to support sources that add shortcuts, but
aren't really searchable, like Voice Search.

Change-Id: I9bc1c244848f970ac698b722257000d0f937d025
Bugs: http://b/issue?id=2678486 and http://b/issue?id=2678067
uicksearchbox/MockCorpus.java
uicksearchbox/MultiSourceCorpusTest.java
uicksearchbox/SearchableCorporaTest.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
uicksearchbox/MockCorpora.java
uicksearchbox/MockSources.java
uicksearchbox/SearchableCorporaTest.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
uicksearchbox/MockShortcutRepository.java
uicksearchbox/MockSource.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/ShortcutRepositoryTest.java
7a9b12c46680a5b88b5d9fcbcc553d0d5b74cb63 29-Mar-2010 Bjorn Bringert <bringert@android.com> Remove unused action key methods

The action key interface will not be exposed in Froyo,
and we weren't using these methods anyway.

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

Change-Id: I326e6784e232b303166b315314bb463ecae09941
uicksearchbox/MockSource.java
148154b406d3e483018e98f8f0296b59302020a3 26-Mar-2010 Bjorn Bringert <bringert@android.com> Write to click log asynchronously

This moves all write operations (except table creation)
to asynchronous transactions. This inclueds:
- Click logging
- Storing refreshed shortcuts
- Clearing history

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

Change-Id: Ia134ada5afc23310f6557ff7a34e5f03348c3935
uicksearchbox/QueryThreadFactoryTest.java
uicksearchbox/ShortcutRepositoryTest.java
uicksearchbox/util/MockExecutor.java
uicksearchbox/util/MockNamedTaskExecutor.java
uicksearchbox/util/PriorityThreadFactoryTest.java
uicksearchbox/util/SingleThreadNamedTaskExecutorTest.java
87331ef11a1ac6c907c008354e3aab5eb6f87404 25-Mar-2010 Bjorn Bringert <bringert@android.com> Click logging performance improvements

- Logs clicks asynchronously.

- Gets rid of SourceLog, and adds a corpus field to ClickLog that
is used instead. This should reduce the amount of work done
when logging clicks.

- Uses the 30 day threshold for both source ranking and shortcuts.

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

Change-Id: I70cf6031b667fcc41bc23cc8d61351607a1058fd
uicksearchbox/ShortcutRepositoryTest.java
39bbcdc1a485ded93059de4a3f70bfda85e9f304 17-Mar-2010 Bryan Mawhinney <bryanmawhinney@google.com> Various changes to shorcut promotion logic.

- Default services are always shown before non-default
- All default sources must respond before non default are called
- The top slots above the keyboard are shared by any default source results.

Change-Id: I59c9dad0fac1f9664b5f40cc32cc38fb42507fb2
uicksearchbox/ConcatPromoter.java
uicksearchbox/MockCorpora.java
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/SuggestionsTest.java
2353e9c002c45c0adc8a979a49ff317cae5838b8 15-Mar-2010 Bjorn Bringert <bringert@android.com> Use resource names in stored shortcut icons URIs

This makes the URIs in shortcuts for suggestions produced
by QSB stable across upgrades (as long as the resource names
don't change).

http://b/issue?id=2513568

Change-Id: I17a8c06fcbc36f439c0751bb4dd0cb8789cb5e6b
uicksearchbox/ShortcutRepositoryTest.java
6d5cbd67f7a5f824babb5c892b0f30bfd9f4ff23 12-Mar-2010 Bjorn Bringert <bringert@android.com> Don't show shortcuts for upgraded apps

This required moving the limit on the number of shortcuts
returned from the SQL query to the ShortcutCursor constructor.

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

Change-Id: Icd2c71c31433429c005926497c1767ccc713beb4
uicksearchbox/MockCorpora.java
uicksearchbox/MockCorpus.java
uicksearchbox/MockShortcutRepository.java
uicksearchbox/MockSource.java
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/ShortcutRepositoryTest.java
uicksearchbox/SourceShortcutRefresherTest.java
uicksearchbox/SuggestionCursorUtil.java
a65408ff321345557f93effa41395174640870eb 12-Mar-2010 Bjorn Bringert <bringert@android.com> Fix ShouldQueryStrategy.shouldQuery

updateQuery() didn't store the last query for widening or different
queries.

Also adds regression tests for this bug.

Also checks queryAfterNoResults before storing the empty corpus.

Also adds some missing test size annotations and removes
unneccessary "synchronized" from ShouldQueryStrategy
(after some recent changes it's only used from the main
thread.).

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

Change-Id: I9f3ca6962ec5fe7a1de2baef1ffab2db4add0756
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/ShouldQueryStrategyTest.java
f95ce100dcbc77794b79b0187c566bb58b5978d3 11-Mar-2010 Bjorn Bringert <bringert@android.com> Logging improvements and better corpus selector handling

- Log latency for a fraction of corpus suggestion requests.

- Don't log qsb_start when choosing a corpus in the corpus
selector.

- Log qsb_exit when leaving QSB without doing a search, voice search
or clicking a suggestion.

- Create corpus selector dialog directly, instead of it being a
a managed dialog.

Change-Id: I2db3b4fa7b20cef339aff5715c72c9846103c9f8
Bugs: http://b/issue?id=2415859 and http://b/issue?id=2506462
uicksearchbox/MockCorpus.java
9a3f0f73437fad172a510e85064fc300523476ec 11-Mar-2010 Bjorn Bringert <bringert@android.com> Make MultiSourceCorpusTest:testGetSuggestions deterministic

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

Change-Id: I124f334d99f2125c419ee0b63005e4e22ef2ae4b
uicksearchbox/MultiSourceCorpusTest.java
72cad65b75d16dccc314057795f871ab3a9705d9 10-Mar-2010 Bjorn Bringert <bringert@android.com> Merge "Fix shortcut refreshes that delete shortcuts"
72f9b08ce84d0e13daf2d1c112d4e6d1d3ada045 09-Mar-2010 Bjorn Bringert <bringert@android.com> Use a separate thread pool for Web corpus, to avoid deadlock

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

Change-Id: I228d77a3ead794c7922d42fd51ff068f57dab40e
uicksearchbox/MultiSourceCorpusTest.java
uicksearchbox/ShortcutRepositoryTest.java
uicksearchbox/SuggestionCursorUtil.java
6855d589830271a191c1220bf3cb8bf35ae0ec58 10-Mar-2010 Bjorn Bringert <bringert@android.com> Fix shortcut refreshes that delete shortcuts

Fixes http://b/issue?id=2499859 (I hope)

Change-Id: Ibe3ef5b81072b839c4aebe75e58c7ccae8603ff8
uicksearchbox/MockShortcutRefresher.java
uicksearchbox/SourceShortcutRefresherTest.java
47d02f7285794bb39b2a2d828d32b5329dd8ecb0 06-Mar-2010 Bjorn Bringert <bringert@android.com> Always use the same SuggestionsProvider

This fixes a problem where a new SuggestionsProvider was created
for every keystroke when in single-corpus mode. That resulted
in old pending query tasks not being cancelled. This increased
suggestion latency a lot when typing quickly.

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

Change-Id: I75d2a86349cdec8735a26c48c1fb737fac772f78
uicksearchbox/MockShortcutRepository.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/ShortcutRepositoryTest.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
uicksearchbox/MockCorpora.java
uicksearchbox/MockSources.java
ce4cdcf739b57563ddcdbed6944128b8c1f7522a 04-Mar-2010 Bjorn Bringert <bringert@android.com> Boost ranking of default enabled corpora

This includes a refactoring to have the CorpusRanker
wrap a Corpora object and cache the ranked corpus list.

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

Change-Id: If3eb02426cfc4dcc00d932d21e2541181f076dc5
uicksearchbox/RankAwarePromoterTest.java
e06b7cbf55301a24cfd7525a91107e3cd2c9f48e 04-Mar-2010 Bjorn Bringert <bringert@android.com> Only included queried corpora in qsb_click log event

Change-Id: I4ce89b02f7957a427508e58226c5b9867e819b32
uicksearchbox/SuggestionsTest.java
82bcf002f2f736afcd6cb548c19aa4e8ac12b421 04-Mar-2010 Bjorn Bringert <bringert@android.com> Use actual set of promoted corpora in suggestion promoter

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

Change-Id: I9de5b09eadf168377e7c7b2f11ce9ae247129f70
uicksearchbox/ConcatPromoter.java
uicksearchbox/RankAwarePromoterTest.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/SuggestionsTest.java
f252dc7a25ba08b973ecc1cfbbce58eb78d42167 26-Feb-2010 Bjorn Bringert <bringert@android.com> Refactoring to make it easier to add the apps+market corpus

I created an abstract MultiSourceCorpus implementation
of Corpus, and changed WebCorpus to use that as its base class.
Once we have Market suggestions, I will use the same bas class for
the Apps corpus. This is part of the fix for http://b/issue?id=2312744

Change-Id: I804555a95ace92eeafd4922e27f86a90dda7889e
uicksearchbox/MockCorpus.java
uicksearchbox/MockSource.java
dbce1abe91200e83a41bcd95aaf5ea89496e5e48 02-Mar-2010 Bjorn Bringert <bringert@android.com> Store suggestion log type in shortcut repository

Change-Id: I24436d41e4de8f63c5b9e5a4edab5146ac5678ae
Fixes: http://b/issue?id=2480280
uicksearchbox/ShortcutRepositoryTest.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
uicksearchbox/ShortcutRepositoryTest.java
5691f9062b2a558ba39c700d65bc522d397ebc75 25-Feb-2010 Bjorn Bringert <bringert@android.com> Show "Google" hint for Web and All, source hint for others

Also, show cursor when query text field is empty.

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

Change-Id: I521f684e3c7487cd6003ca309b684c221b96e619
uicksearchbox/MockCorpus.java
uicksearchbox/MockSource.java
c29c9f854db8fa0c85f17cc32bae33dc17c6b127 23-Feb-2010 Bjorn Bringert <bringert@android.com> Create shortcuts from web searches

Web searches and URLs entered in the All and Web corpora
now create shortcuts that show up in All.

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

Change-Id: I269fcf93590d2335e10d43255b8989ffd4103f5b
uicksearchbox/DataSuggestionCursor.java
uicksearchbox/MockCorpora.java
uicksearchbox/MockCorpus.java
uicksearchbox/MockSource.java
uicksearchbox/SuggestionData.java
26d85260316193a1aeff5d407d4f32f5297be012 23-Feb-2010 Bjorn Bringert <bringert@android.com> Show menu in corpus selector, update corpus list dynamically

Fixes http://b/issue?id=2444698
"Corpus selection dialog should show QSB menu (search settings) on MENU press"

Change-Id: I7ffe3c646eb5dfbb716f9e69d6ae081859d37909
uicksearchbox/MockCorpora.java
dbdffd8316e75bc2813dbbcbef13d357970e8c84 23-Feb-2010 Bjorn Bringert <bringert@android.com> Add missing pieces for suggestions footer change.

This should have been part of I332c0566fedecccaae194304310c1f13d7201e2d
but I missed a git commit

Change-Id: Id670c164aeb89814b700e3f0e93206686704efb6
uicksearchbox/MockCorpora.java
uicksearchbox/SearchableCorporaTest.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
uicksearchbox/CorporaTest.java
uicksearchbox/DataSuggestionCursor.java
uicksearchbox/MockCorpora.java
uicksearchbox/MockCorpus.java
uicksearchbox/MockCorpusFactory.java
uicksearchbox/MockSource.java
uicksearchbox/MockSources.java
uicksearchbox/SearchableCorporaTest.java
a4cd9e7cdd5bdc6198ce73eed55696554a146514 19-Feb-2010 Bryan Mawhinney <bryanmawhinney@google.com> Consider corpora rankings when choosing results to promote.
uicksearchbox/RankAwarePromoterTest.java
a48af083ff81555261f334a1e050eae3b02a746c 17-Feb-2010 Bjorn Bringert <bringert@android.com> Use one thread pool per corpus / source

This gets rid of the scary DelayingSourceTaskExecutor,
and adds PerNameExecutor instead.

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

Change-Id: I0e76e393d13d36fbb6762d2cf983e9fbdf9cfac8
uicksearchbox/CorporaTest.java
uicksearchbox/MockHandler.java
uicksearchbox/ShortcutRepositoryTest.java
uicksearchbox/util/MockNamedTaskExecutor.java
uicksearchbox/util/MockNamedTaskExecutorFactory.java
uicksearchbox/util/MockTask.java
uicksearchbox/util/PerNameExecutorTest.java
uicksearchbox/util/SingleThreadNamedTaskExecutorTest.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
uicksearchbox/CachingIconLoaderTest.java
uicksearchbox/DataSuggestionCursor.java
uicksearchbox/MockCorpora.java
uicksearchbox/MockCorpus.java
uicksearchbox/MockShortcutRefresher.java
uicksearchbox/MockShortcutRepository.java
uicksearchbox/MockSource.java
uicksearchbox/ShortcutRepositoryTest.java
uicksearchbox/ShouldQueryStrategyTest.java
uicksearchbox/SuggestionData.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
uicksearchbox/ConcatPromoter.java
uicksearchbox/CorporaTest.java
uicksearchbox/DataSuggestionCursor.java
uicksearchbox/MockCorpus.java
uicksearchbox/MockShortcutRepository.java
uicksearchbox/MockSource.java
uicksearchbox/MockSourceFactory.java
uicksearchbox/PackageIconLoaderTest.java
uicksearchbox/QueryThreadFactoryTest.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/ShouldQueryStrategyTest.java
uicksearchbox/SourcesTest.java
uicksearchbox/SuggestionData.java
3e6381e417d5aff74a37c22a7300b1e30f2b1a86 15-Feb-2010 Bryan Mawhinney <bryanmawhinney@google.com> Remove hard-coded package from ActivityInstrumentationTestCase2 constructor.
uicksearchbox/MockSource.java
uicksearchbox/SearchActivityTest.java
uicksearchbox/TestUtil.java
53bf1409474f26ab0f3754ee9b4d2de901a6be00 04-Feb-2010 Bryan Mawhinney <bryanmawhinney@google.com> Respect the queryAfterZeroResults flag.

Bug: 2380814
uicksearchbox/ShouldQueryStrategyTest.java
ca78085bb2127559e6f55276a307bfa857018eca 25-Jan-2010 Bjorn Bringert <bringert@android.com> Log QSB events to EventLog

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

Change-Id: I1522539e9038d5062522c17d38b61069a90fd7cc
uicksearchbox/MockSource.java
2755e76030fb5ffdf937a8b3c73fd3f76e2950c6 26-Jan-2010 Bryan Mawhinney <bryanmawhinney@google.com> Fix build by adding missing getSuggestionIntentDataString
uicksearchbox/DataSuggestionCursor.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.
uicksearchbox/DataSuggestionCursor.java
uicksearchbox/SuggestionData.java
94e8a2be78530170f50e7895a558bf8011bbf8e8 18-Jan-2010 Bryan Mawhinney <bryanmawhinney@google.com> Implement refreshing of shortcuts in QSB.
uicksearchbox/DataSuggestionCursor.java
uicksearchbox/MockShortcutRepository.java
uicksearchbox/MockSource.java
uicksearchbox/SuggestionData.java
cec07f6776a01e811573653acb65f23a764fa55c 14-Jan-2010 Bjorn Bringert <bringert@android.com> Remove duplicate method Source.getSearchActivity().

It was the same as Source.getComponentName().

Change-Id: I60759517c3405cf3158cff55543eb23377bd36d4
uicksearchbox/MockSource.java
cf2b895b5491c481575d122225a32e95c47abea1 14-Jan-2010 Bjorn Bringert <bringert@android.com> Test clean-up

- Fix failing SourcesTest.testEnabledSuggestionSources() by making
MockSourceFactory() less of a mockery.

- Put the name of the targetted package in a central place, to make
it easier to change the package name.

Change-Id: I360903aa7ea0445e139af05fbbd15a2fb389e797
uicksearchbox/MockSource.java
uicksearchbox/MockSourceFactory.java
uicksearchbox/SearchActivityTest.java
uicksearchbox/SourcesTest.java
uicksearchbox/TestUtil.java
e1fc4581ebab65220a82bcdb3272b4eb85453837 13-Jan-2010 Bjorn Bringert <bringert@android.com> Fix some uses of hidden stuff in QuickSearchBox

This is needed to allow compiling against the SDK. We can't quite compile
against the SDK yet, since there is some more hidden stuff to sort
out.

- Use android-common library to get AndroidHttpClient.

- Stop using SearchableInfo.getActivityContext() and
SearchableInfo.getProviderContext().

- Copy android.provider.Settings.Secure.isLocationProviderEnabled()
convenience method into the app.

- Stop using Resources.getCompatibilityInfo().

Change-Id: I92b08a4801798f305d04ea629a1f432ecf3ea833
uicksearchbox/IconLoaderTest.java
uicksearchbox/PackageIconLoaderTest.java
e72a6418e84a89d2bfd4e9d22282eca95357e0da 12-Jan-2010 Bjorn Bringert <bringert@android.com> Move GoogleSearch into QuickSearchBox

Copies the code from packages/apps/GoogleSearch, renaming
resources to avoid clashes.

GoogleSearch seems to have bitrotted, I had to change HttpPost
to HttpGet to avoid getting "405 Method Not Allowed".

This makes the existing packages/apps/GoogleSearch obsolete.

Change-Id: I01d416de40b7ba277e2a4192af8437b3840a19f6
uicksearchbox/MockSourceFactory.java
uicksearchbox/SourcesTest.java
d32d6753347e872aa5d9d6e9015ed7f24db3e362 08-Jan-2010 Bjorn Bringert <bringert@android.com> Remember last selected source, and show it in Launcher search widget

Change-Id: I775a1a3a757d5628ccc7c6fe8af6015ddd03e081
uicksearchbox/MockSource.java
uicksearchbox/SuggestionData.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
uicksearchbox/DataSuggestionCursor.java
uicksearchbox/MockShortcutRepository.java
uicksearchbox/MockSource.java
uicksearchbox/SuggestionData.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
uicksearchbox/SourcesTest.java
uicksearchbox/SuggestionsTest.java
d7a95801d20a9405b4ab9c9b4beecd106e880166 11-Dec-2009 Bryan Mawhinney <bryanmawhinney@google.com> Delay before updating the view when we have no suggestions.

This reduces flicker a little, and moving the delay here allows us to simplify Suggestions.
Also fixes a small bug where the spinner could keep spinning indefinitely.
uicksearchbox/SuggestionsTest.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
uicksearchbox/CachingIconLoaderTest.java
uicksearchbox/ConcatPromoter.java
uicksearchbox/DataSuggestionCursor.java
uicksearchbox/IconLoaderTest.java
uicksearchbox/MockIconLoader.java
uicksearchbox/MockShortcutRepository.java
uicksearchbox/MockSource.java
uicksearchbox/PackageIconLoaderTest.java
uicksearchbox/QueryThreadFactoryTest.java
uicksearchbox/SearchActivityTest.java
uicksearchbox/ShortcutPromoterTest.java
uicksearchbox/SourcesTest.java
uicksearchbox/SuggestionData.java
uicksearchbox/SuggestionsTest.java