History log of /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.java
b83882b9efa37ec0f20a0f1c85cf5ccc93194aee 19-Aug-2010 Bjorn Bringert <bringert@android.com> Move Promoter to SuggestionsAdapter to have a single Suggestions object

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

Change-Id: I3bd5444bdcf4ac62a921c8c921306cc17aa440dc
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.java
46dfa30d57af775e1baa8c0a211ac6614b4f6261 28-May-2010 Bjorn Bringert <bringert@android.com> Fix broken unit test

Change-Id: I65f2784dfc6643ee22e7e6679b36f08e50d44766
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.java
a4cd9e7cdd5bdc6198ce73eed55696554a146514 19-Feb-2010 Bryan Mawhinney <bryanmawhinney@google.com> Consider corpora rankings when choosing results to promote.
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/RankAwarePromoterTest.java