History log of /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.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/tests/src/com/android/quicksearchbox/MockSource.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.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/tests/src/com/android/quicksearchbox/MockSource.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/tests/src/com/android/quicksearchbox/MockSource.java
53aab8c4459f45664d04ec882d67094c52b78695 06-Oct-2010 Bjorn Bringert <bringert@android.com> Replace Source.isWebSuggestionSource() with getMaxShortcuts()

Change-Id: I7986d291f0608b231a9708caf691a97694cc011d
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.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/tests/src/com/android/quicksearchbox/MockSource.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/tests/src/com/android/quicksearchbox/MockSource.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.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/MockSource.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/tests/src/com/android/quicksearchbox/MockSource.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.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/tests/src/com/android/quicksearchbox/MockSource.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/MockSource.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/MockSource.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/MockSource.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.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/tests/src/com/android/quicksearchbox/MockSource.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.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/MockSource.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.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/tests/src/com/android/quicksearchbox/MockSource.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/tests/src/com/android/quicksearchbox/MockSource.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/tests/src/com/android/quicksearchbox/MockSource.java
3e6381e417d5aff74a37c22a7300b1e30f2b1a86 15-Feb-2010 Bryan Mawhinney <bryanmawhinney@google.com> Remove hard-coded package from ActivityInstrumentationTestCase2 constructor.
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.java
ca78085bb2127559e6f55276a307bfa857018eca 25-Jan-2010 Bjorn Bringert <bringert@android.com> Log QSB events to EventLog

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

Change-Id: I1522539e9038d5062522c17d38b61069a90fd7cc
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.java
94e8a2be78530170f50e7895a558bf8011bbf8e8 18-Jan-2010 Bryan Mawhinney <bryanmawhinney@google.com> Implement refreshing of shortcuts in QSB.
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/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
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/MockSource.java
d32d6753347e872aa5d9d6e9015ed7f24db3e362 08-Jan-2010 Bjorn Bringert <bringert@android.com> Remember last selected source, and show it in Launcher search widget

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