summaryrefslogtreecommitdiffstats
path: root/tests/AndroidTests/src/com/android/unit_tests/SearchablesTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Phase 2 of test cleanup: moving test files from AndroidTests closer to their ↵Neal Nguyen2010-01-291-477/+0
| | | | | | | | | sources. Most of these are file moves; a couple notable exceptions are the changes due to the move, and fixing up test code: - database/DatabaseCursorTest.java - database/DatabaseStatementTest.java - net/UriTest.java
* Move android.server.search.SearchableInfo to android.appBjorn Bringert2009-12-041-2/+2
| | | | | | | | | | | | | | | We need to expose SearchableInfo in the SDK in order to unbundle Quick Search Box. Since the android.server.search package is hidden, I'm moving SearchableInfo to android.app, where SearchManager lives. This change doesn't actually expose SearchableInfo. I'll do that in a separate change to keep the change that api-council needs to review small. This is part of the fix for: http://b/issue?id=2270838 Change-Id: I9589f9c2c11d36c958beedff8245fe0c3319c6ba
* Update Searchables test with new GlobalSearch nameBjorn Bringert2009-07-151-2/+2
| | | | Fixes http://b/issue?id=1981558
* In SearchablesTest, use the always available globalsearch.Satish Sampath2009-06-101-6/+6
| | | | The earlier used googlesearch package may not be available in some devices so switching to globalsearch which has searchable info relevant for this unit test.
* Fix broken Searchables unit tests.Satish Sampath2009-06-051-1/+34
| | | | The newly added code was using methods which were not overridden by the unit test, fixed now.
* Include web search providers in Searchables.Satish Sampath2009-06-051-1/+2
| | | | | | - Along with ACTION_SEARCH we now enumate ACTION_WEB_SEARCH as well so web search providers are covered in the searchables list. This fixes a broken unit test. - Moved get/setPreferredWebSearchActivity and get-all-web-search-providers implementation to this module when the searchables list gets updated, so that it happens on boot and on package add/remove events and remains up to date. The duplicate code in WebSearchProvider will be removed in a separate change. - Also made Searchables broadcast an intent when the searchables list got rebuilt, so components such as GlobalSearch/SuggestionSources no longer need to do this on their own.
* Refactor SearchableInfo.Bjorn Bringert2009-05-061-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Removes the mSearchable field which was only for communication between the constructor and getActivityMetaData(). - Removes the badge and query rewriting fields, since their values can be efficiently computed on the fly. - Makes all the other public fields private and adds getters for them. - Makes all fields final, except mActionKeys. - Removes the DBG_INHIBIT_SUGGESTIONS_CONSTANT. I don't see why we would every want that, and it complicated making the fields final. - Makes all fields in ActionKeyInfo final. - Makes all fields in ActionKeyInfo private and adds getters. - Removes the use of ActioKeyInfo.mKeyCode for failure signalling. Uses IllegalArgumentException instead. - Replaces the ad hoc linked list for looking up action keys by a HashMap. This is needed to make the fields in ActionkeyInfo final, and also avoids O(N) lookup in the (unlikely) case that an activity has lots of action keys. - Don't throw exceptions when reading searchable meta-data, since that could crash SearchManagerService. - Adds debug logging.
* Add 'includeInGlobalSearch' attribute to searchable meta-data.Bjorn Bringert2009-04-291-4/+6
| | | | | | | The attribute is not yet public. Also adds a SearchManager method for listing all searchables that can be included in global search. This is the framework part of http://b/issue?id=1819651
* Split testSearchablesMocked into two tests.Bjorn Bringert2009-04-291-14/+15
|
* Add GLOBAL_SEARCH intent for finding global search provider.Bjorn Bringert2009-04-281-53/+84
|
* AI 147564: Merge back from search branch to donut. Notes:Karl Rosaen2009-04-231-0/+411
- all public apis and framework changes have been reviewed by relevant folks in our branch (e.g romainguy) - all new public apis are @hidden; they will still get reviewed by api council once we're in git - other than that, it's mostly GlobalSearch and search dialog stuff, a new apps provider, and some tweaks to the contacts provider that was reviewed by jham Automated import of CL 147564