History log of /frameworks/base/core/java/android/app/SearchManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4a028009468a95e932fc4fcd9ccdd358e02b1b0a 14-Sep-2010 Leon Scroggins III <scroggo@google.com> Add an option to hide the Voice Search icon.

Some search engines do not support voice search, so provide a flag
to disable showing the icon in the SearchDialog.

Change-Id: I7ef4ad5d382edb86c08014260defa4af6d5eca0a
/frameworks/base/core/java/android/app/SearchManager.java
8ad6465ca4a54bf124ea65389132fd1084ac291f 17-Mar-2010 Scott Main <smain@google.com> docs: remove documenation about the search dialog from SearchManager
and point to the new developer guide. Also update the searchable config
doc with a few comments about action keys because they're not documented
anywhere else.

Change-Id: I66d43881daf03a3ffe30b3e5aa6857c8829a6d72
/frameworks/base/core/java/android/app/SearchManager.java
3c24cb77e7c2ab641b9147a02ce997f3356b7b69 16-Mar-2010 Bjorn Bringert <bringert@android.com> Set SOURCE to app package name when starting QSB (if not set)

If QSB is started by SearchManager.startSearch(globalSearch=true)
from some app that doesn't set SOURCE, it will be set to the
package name of that app.

Bug: http://b/issue?id=2315234
Change-Id: Ic07a143b27b658dea8b081b973ac24349a18b9f1
/frameworks/base/core/java/android/app/SearchManager.java
4f22a545552d308377e178d5df5557cfe15252f9 09-Mar-2010 Leon Scroggins <scroggo@google.com> When context is voice, show the microphone.

Part of fix for http://b/issue?id=2501400

Change-Id: Ibdf364942bcdc8ec837fb8bb30a33c1af2ba5b06
/frameworks/base/core/java/android/app/SearchManager.java
c37cb2469578f7d240615affb042e808b32ba5b2 25-Feb-2010 Amith Yamasani <yamasani@google.com> Feature to return an extra in the cursor that keeps the spinny going.

If a search provider returns an extra in the cursor with the key
SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS, and the value true, then
the spinny in the search dialog will not stop, but the cursor
contents will still be used to update the results. This way, partial
search results can be sent while the user is informed that the search
is still in progress.
/frameworks/base/core/java/android/app/SearchManager.java
0b49ab5cae98d5f27b490b6de35d92e7a63a2e64 02-Mar-2010 Bjorn Bringert <bringert@android.com> Add SearchManager.SUGGEST_COLUMN_TEXT_2_URL

This column overrides SUGGEST_COLUMN_TEXT_2. SearchDialog
and QuickSearchBox render the value of this column as a URL in
green.

Part of the fix for http://b/issue?id=2380681

Change-Id: I6735e0eba90e24c81f9e72520f257e5e61796d7a
/frameworks/base/core/java/android/app/SearchManager.java
6cf7a325e6e9e70d9858e21fbb438341332ed254 23-Feb-2010 Bjorn Bringert <bringert@android.com> Clean up global search and web search activity finding

This removes the '*' value for android.app.searchable and
android.app.default_searchable that was previously used by apps to say
that they want global search as their search. I think the only
activity that this will affect is the wallpaper chooser in the
launcher, which doesn't seem like it matters. It could mean that some
third party code will stop invoking global search, but all they would
need to do is call startSearch() with globalSearch=true instead.

Fixes http://b/issue?id=2377433 and http://b/issue?id=2377429

Change-Id: I0252952b44ae85dab31221b598ed79cc24e2b580
/frameworks/base/core/java/android/app/SearchManager.java
b8144a9c18f23c91b836736a2fcea30917153002 22-Feb-2010 Bjorn Bringert <bringert@android.com> Don't start global search from system dialogs

Also, set FLAG_ACTIVITY_NEW_TASK to allow launching
global search from non-activity contexts.

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

Change-Id: I833d5b851f0127fb69165fbfc7d1ee190b320401
/frameworks/base/core/java/android/app/SearchManager.java
ea125f45ebf25494ae190b2f338f359f830674df 18-Feb-2010 Bjorn Bringert <bringert@android.com> Add SearchManager.getWebSearchActivity()

The Browser needs this to know where to get web suggestions from.

Change-Id: Ia7ce75609135e7cdf3b385a29a3f47e3458fa61e
/frameworks/base/core/java/android/app/SearchManager.java
479ae0a28099eb77299fe0f44d4dfabce3115fb6 04-Feb-2010 Amith Yamasani <yamasani@google.com> Cleanup of global search references in SearchDialog and SearchManager.
/frameworks/base/core/java/android/app/SearchManager.java
e4e82f2782e61658256ecb85066e273c22a37951 10-Feb-2010 Bjorn Bringert <bringert@android.com> Unhide SearchManager.INTENT_ACTION_SEARCH_SETTINGS

This intent action is needed by Settings to start the search settings
activity which lives in QuickSearchBox / GoogleQuickSearchBox.

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

Change-Id: Iea2a7d9df0092459e5618986f4f789f9257f912a
/frameworks/base/core/java/android/app/SearchManager.java
ced72c8cf50ca67440562cc9ab05855c8bb3bad0 10-Feb-2010 Bjorn Bringert <bringert@android.com> Remove SearchManager.SOURCE

Part of http://b/issue?id=2429556

Change-Id: I08a95a844b74cb50a740c0c155c6ad79f2c9cbcc
/frameworks/base/core/java/android/app/SearchManager.java
da5c1bd4443b5b569a0d392cd53b476b4e160c47 04-Feb-2010 Bjorn Bringert <bringert@android.com> Remove source selector from SearchDialog

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

This reverts commit 32d580c360da0a0f15e7a080f4ebd0b7b514fe4c.

Change-Id: I5d8821d52badf3e0347230b86671f8ceb65a663d
/frameworks/base/core/java/android/app/SearchManager.java
e9ce3f01d42769f03f10e70c3244500e92d7eee1 25-Jan-2010 Amith Yamasani <yamasani@google.com> Move Search dialog out of system process into current activity.

SearchManager now manages the SearchDialog, in-process.
Nuked SearchDialogWrapper
SearchManagerService now just holds the Searchables information.
Hitting Search when in the local Search dialog will launch the QSB.
/frameworks/base/core/java/android/app/SearchManager.java
38015f3663dcf3765d0998f8f5398b3068dfc326 14-Jan-2010 Bjorn Bringert <bringert@android.com> Make SearchManager.getGlobalSearchActivity() public but hidden

Launcher/Launcher2 will need this to find the search appwidget
provider.

Change-Id: I2789ea5a11f168126d798a763983752442a6a80b
/frameworks/base/core/java/android/app/SearchManager.java
55f3ac5f293e78618995202274f8555f2481994d 14-Jan-2010 Bjorn Bringert <bringert@android.com> Expose SearchManager constants for global search

This change exposes some constants that are needed for
starting the global search activity (QuickSearchBox):

- SearchManager.INTENT_ACTION_GLOBAL_SEARCH
- SearchManager.EXTRA_SELECT_QUERY

Change-Id: I2f1f10070f502a8d5b644e78c03837d5d8b43486
/frameworks/base/core/java/android/app/SearchManager.java
a94e7afb28c6bd9af6f2b0142a577086399066b2 13-Jan-2010 Bjorn Bringert <bringert@android.com> Remove Intent.ACTION_GLOBAL_SEARCH

I added Intent.ACTION_GLOBAL_SEARCH a little while ago, since
I thought we needed it to be different from the old
SearchManager.INTENT_ACTION_GLOBAL_SEARCH. Since GlobalSearch is
no longer built, reusing SearchManager.INTENT_ACTION_GLOBAL_SEARCH
should be fine.

Change-Id: If3a11a77a8e1d9940cf2b20817a60888cdd9d69f
/frameworks/base/core/java/android/app/SearchManager.java
0408675d8770fc55c40631cdfa87d79fc00f0a3c 12-Jan-2010 Bjorn Bringert <bringert@android.com> Add and expose SearchManager.getSearchableInfo()

This method is needed by QuickSearchBox to get the searchability
meta-data for an activity.

Change-Id: I1b7a72d4dde1ff15410288cfdc33c043738be977
/frameworks/base/core/java/android/app/SearchManager.java
32d580c360da0a0f15e7a080f4ebd0b7b514fe4c 06-Jan-2010 Bjorn Bringert <bringert@android.com> Copy SearchSourceSelector from QuickSearchBox

The widget shows the icon for a search source, and when clicked
fires an intent that shows a search source selection activity.
That intent is handled by the QuickSearchBox app.

This change also adds the source selector to the in-app
search dialog.

An upcoming change to QuickSearchBox will add the search source
selector to the home screen search widget and to the Quick Search Box
activity.

TODO: Add assets for selected and pressed states to the search selector.
TODO: The SearchDialog hides when the soruce selection activity
appears. This will be fixed when SearchDialog is changed from a
system window to a normal app window.

Change-Id: I91eadd60682577614e274ecf5b995b927c70a48a
/frameworks/base/core/java/android/app/SearchManager.java
3c50ef6f665ab22cdb50c76bb31283e6bac47fc6 09-Dec-2009 Bjorn Bringert <bringert@android.com> Use unbundled QSB for global search

This obsoletes the following:
- The need to run SearchDialog in the system process.
- The global search mode code in SearchDialog.
- The GlobalSearch package.
- The search widget built into Launcher.

I will remove these in future changes.

Change-Id: I154386b1d6be73cfeab8376b6959a1dc5483e5f0
/frameworks/base/core/java/android/app/SearchManager.java
13107bb186d72bc80dc5609b20c71b7e77a9784d 07-Dec-2009 Bjorn Bringert <bringert@android.com> Expose SearchableInfo and getSearchablesInGlobalSearch()

This is needed for search unbundling.

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

Change-Id: Ia28d954736c9afd68da22a38da966ed780d797c2
/frameworks/base/core/java/android/app/SearchManager.java
2126aac7f992b57fc52141a8bd09fa7a45ac2509 03-Dec-2009 Bjorn Bringert <bringert@android.com> Move android.server.search.SearchableInfo to android.app

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
/frameworks/base/core/java/android/app/SearchManager.java
dbc7e27ef10349f11ac940d59ff4f812319fce51 11-Nov-2009 Scott Main <smain@google.com> docs: document the 'showSearchIconAsBadge" flag and
"icon" attribute as deprecated.
bug 2105329
/frameworks/base/core/java/android/app/SearchManager.java
6b13bc043e715b5415b701e93141daa0d49fa364 31-Oct-2009 Dirk Dougherty <ddougherty@google.com> doc change: misc doc fixes.

Bug:2160782
Change-Id: Iaf5d2cc2e3c657700469e8b7394a95bc03fc26f3
/frameworks/base/core/java/android/app/SearchManager.java
b782a2f4f0a3072f2677f6f10fb255c77468ae66 01-Oct-2009 Bjorn Bringert <bringert@android.com> Remove globalSearch argument from triggerSearch()

API council says:

"In reviewing the new triggerSearch API, we are concerned that
applications could use the option to perform a global search to spam
the user with frequent searches. We would like the global search
option to be removed for now (not just hidden, but removed from the
internal IPC API so that nobody can find this and abuse it). The rest
of the API should be fine as long as it is restricted to local
searches."

Fixes http://b/editIssue?id=2158785

Change-Id: Ie69a9c0ab6373cc4427aab50606885bdede40585
/frameworks/base/core/java/android/app/SearchManager.java
86917dbb9554e3e05be4ca8845a409b730120022 28-Sep-2009 Bjorn Bringert <bringert@android.com> Unhide SearchManager.SUGGEST_PARAMETER_LIMIT

Both GlobalSearch and the search dialog now pass
SearchManager.SUGGEST_PARAMETER_LIMIT as a query parameter to all
suggestion sources. Exposing this allows suggestion sources
to return only the number of results that the client requires.

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

Change-Id: I17f45d35e8f302b11812f4bb6fee40b31dc15707
/frameworks/base/core/java/android/app/SearchManager.java
3fc7c67de192a5baee2b4510fdb464b0fec72dca 28-Sep-2009 Bjorn Bringert <bringert@android.com> Pass limit=50 to all suggestion sources.

Should mitigate http://b/issue?id=2149158
"Bad suggestions behavior within contacts app
search for 10k contact db"

Change-Id: Ida50e9157c3ce46fc7892ef09a67da9f4008e665
/frameworks/base/core/java/android/app/SearchManager.java
be5b73c5926cbebd508d8323bdeaafa2e048a93c 22-Sep-2009 Bjorn Bringert <bringert@android.com> Add search_mode flag to intents launched by QSB suggestions

This lets recipents determine whether an intent was launched
by a global search suggestion. This will for example
be used when deciding how to log clicks on web search suggestions.

Needed for http://b/issue?id=2097469

Change-Id: Ifc25ec3477a63be8bad094951bfffa7a5e703e7c
/frameworks/base/core/java/android/app/SearchManager.java
5417f09c141713c62be697fe10fe149d6d3d0eb4 17-Sep-2009 Bjorn Bringert <bringert@android.com> Send action key and msg with GlobalSearch clicks

Needed for QSB logging, http://b/issue?id=2097469

Change-Id: I817e5b26c9739ab05bd873675854478ce601d234
/frameworks/base/core/java/android/app/SearchManager.java
2fcaf79a1856186e3823390c488e806c5955c8a6 11-Sep-2009 Bjorn Bringert <bringert@android.com> Tell GlobalSearch about searches without a suggestion

This is the framework part of http://b/issue?id=2099399
"executing a search in QSB should create a shortcut (like
when you click on a search suggestion)"

Change-Id: I2d07d9bfc808112948629ca16b24bc870fbd5fa6
/frameworks/base/core/java/android/app/SearchManager.java
f65bc1823a8c09caab8237bf96323cf05df02287 11-Sep-2009 Scott Main <smain@google.com> am d27b1083: docs only. add Searchable resource information to the Available Resources doc and update some some of the attribute documentation to indicate that the icon label is not recommended. and fixing merge issue...

Merge commit 'd27b10837525f341eee7d46013e2177b0bad3c60' into eclair

* commit 'd27b10837525f341eee7d46013e2177b0bad3c60':
docs only.
d27b10837525f341eee7d46013e2177b0bad3c60 11-Sep-2009 Scott Main <smain@google.com> docs only.
add Searchable resource information to the Available Resources doc
and update some some of the attribute documentation to indicate
that the icon label is not recommended.
and fixing merge issue...

Change-Id: I1b1a62aa9804f4a0bf2f93328dde90b9f7aec50a
/frameworks/base/core/java/android/app/SearchManager.java
cc927375cea38f44d810d9dd5ba87abb624d7e0c 29-Aug-2009 Mike LeBeau <mlebeau@android.com> am af0b780a: Merge change 23198 into donut

Merge commit 'af0b780ac6305eb6b6795cb8139ae051e13dd7ff' into eclair

* commit 'af0b780ac6305eb6b6795cb8139ae051e13dd7ff':
Update SearchManager documentation to reflect latest behavior.
05b775e0b7180e33df0303b9e132931f4895357c 29-Aug-2009 Mike LeBeau <mlebeau@android.com> Update SearchManager documentation to reflect latest behavior.
/frameworks/base/core/java/android/app/SearchManager.java
e9df3cf79c2084391d5af140680cb4a18feca2e2 28-Aug-2009 Mike LeBeau <mlebeau@android.com> resolved conflicts for merge of 1e348378 to eclair
590f63433ce786722d263c7e913a88d3101e5cbc 28-Aug-2009 Karl Rosaen <krosaen@google.com> Revert "Remove third party support for Quick Search Box (aka global search)."

This reverts commit a647b7f29d65a7792cede74284e714b591337992.
/frameworks/base/core/java/android/app/SearchManager.java
4a51c20ce607c74914f90fd897f04080121ac13b 22-Aug-2009 Dianne Hackborn <hackbod@google.com> I am getting tired of the java doc warnings, so fix them.

Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
/frameworks/base/core/java/android/app/SearchManager.java
dd03c6135f91df6d5d9e71de1487520dc3345742 21-Aug-2009 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 081a136d to eclair
081a136d259c02b2ab8ba773c38e404f7b3c3de4 21-Aug-2009 Anonymous Coward <nobody@android.com> Remove third party support for Quick Search Box (aka global search).

- @hides relevant APIs
- removes relevant javadoc
- enforces that only system apps can participate

note: general support is still there, will be easy to reenable when we are ready.
/frameworks/base/core/java/android/app/SearchManager.java
93df578638418ef2f05efdf58331d847f41b17b5 18-Aug-2009 Mike LeBeau <mlebeau@android.com> am cfa419b7: Correct comments for startSearch in Activity and SearchManager to explain Donut behavior correctly.

Merge commit 'cfa419b754332e12f8cd45244c2f3bee9d6a74bb' into eclair

* commit 'cfa419b754332e12f8cd45244c2f3bee9d6a74bb':
Correct comments for startSearch in Activity and SearchManager to explain
d2d6014f715f12f6263f61ba3eeb6f8cba6d0fa6 17-Aug-2009 krosaen <krosaen@android.com> NEW API for SearchManager and Activity to 'triggerSearch'.

This is pretty much the same thing as startSearch, except it also launches the
query. We enforce that this can only be done for the package of the app that is
associated with the search mananger (e.g you can't trigger a contacts search
from anywhere).
/frameworks/base/core/java/android/app/SearchManager.java
cfa419b754332e12f8cd45244c2f3bee9d6a74bb 17-Aug-2009 Mike LeBeau <mlebeau@android.com> Correct comments for startSearch in Activity and SearchManager to explain
Donut behavior correctly.
/frameworks/base/core/java/android/app/SearchManager.java
b5041368524045b6714081d14ff3c6b22598aab1 11-Aug-2009 Karl Rosaen <krosaen@google.com> Docs only change: finish documentation of Android Quick Search Box related information in SearchManager.

Includes:
- an overview section on including search suggestions in quick search box
- additional table of searchable metadata attributes related to quick search box
- additional column descriptions that we've added for quick search box.
- description of how to expose your content provider's search suggestions to
the search infrastructure if you have permissions guarding your content provider.
/frameworks/base/core/java/android/app/SearchManager.java
8c91dd7ec8b3d277a42bccab075241468c9f980d 11-Aug-2009 Mike LeBeau <mlebeau@android.com> First update of SearchManager docs to reflect the new Donut Quick Search Box feature.
This simply cleans up any inconsistencies or weirdnesses, we still need to add the new
info for QSB.
/frameworks/base/core/java/android/app/SearchManager.java
9377738cdbb7eb0a1267cb536443cbed700ff5e9 27-Jul-2009 Bjorn Bringert <bringert@android.com> Remove search dialog PRE_CLOSE event

This is part of the fix for http://b/issue?id=2000655
/frameworks/base/core/java/android/app/SearchManager.java
6ddaa3497ce7af2c303771365449501e2be52511 27-Jul-2009 Bjorn Bringert <bringert@android.com> Send max displayed position in search dialog click event

This is part of the fix for http://b/issue?id=2000655
/frameworks/base/core/java/android/app/SearchManager.java
ec0a12cf199659a749ff1fe7b788626eddc095eb 22-Jul-2009 Karl Rosaen <krosaen@google.com> Don't start search from a dialog if there is no activity associated with
the search manager at that point.

Still works:
- hitting search when a managed dialog of an app is showing will dismiss
the dialog and start in-app search (if it supports it), falling back
on global search
- hitting search when a dialog of an app (not managed by the activity) will
dismiss the dialog and start global search
- hitting search when a system dialog is showing will just dismiss the dialog.
/frameworks/base/core/java/android/app/SearchManager.java
d4fb7a0d90b16e360b7a7b64cb7a6fd94f084c27 21-Jul-2009 Mike LeBeau <mlebeau@android.com> Define a broadcast intent for the web search provider changing. Unhide
the broadcast intent for searchables changing.
/frameworks/base/core/java/android/app/SearchManager.java
131234c6f134c586208ec94bfe4ae021b057cf66 20-Jul-2009 Mike LeBeau <mlebeau@android.com> Unhide new SearchManager APIs for Donut.
/frameworks/base/core/java/android/app/SearchManager.java
ea52d29bc46c306f3607d121aa1ad84f0e9eb473 20-Jul-2009 Karl Rosaen <krosaen@google.com> Fix back key handling for search dialog.

Now that the search manager service handles hiding (not dismissing) and reshowing it
when the user hits back after launching a result, search manager can't cache
"mShowing". Also noticed a few other minor problems that was hosing the handling
of pause / resume to reshow the dialog, like moving some logic to onHide instead
of onDismiss.
/frameworks/base/core/java/android/app/SearchManager.java
b06ea706530e6d19eb2a1a9a7ae6c5dd77d80af0 13-Jul-2009 Dianne Hackborn <hackbod@google.com> Add reporting of activity movement for search manager.

This adds a new API with the activity manager to find out about movement between
activities. For my sanity, the old IActivityWatcher is now renamed to
IActivityController, and the new activity movement interface is named
IActivityWatcher.

This changes the search manager itself to use the new API to manage its state.
Note that there are still problems when going back to the search dialog after
it was hidden -- the suggestions window no longer appears until you explicitly
dismiss and re-show it.
/frameworks/base/core/java/android/app/SearchManager.java
0e01ea41b215941128a4ea8dee454e6b35a4e798 08-Jul-2009 Bjorn Bringert <bringert@android.com> Deprecate DialogInterface methods in SearchManager

android.app.SearchManager implements
DialogInterface.OnDismissListener and DialogInterface.OnCancelListener
and thus exposes the methods onCancel(DialogInterface dialog) and
onDismiss(DialogInterface dialog). This was used by the SearchManager
to register itself as a listener on the search dialog, but is no
longer used.

This was an implementation detail that leaked into the public
API. Removing them would change the API, so they are deprecated instead.

Fixes http://b/issue?id=1962203
/frameworks/base/core/java/android/app/SearchManager.java
444c727e0eecf83e9d0b9c4e7af5cbf5fc4135f8 06-Jul-2009 Bjorn Bringert <bringert@android.com> Run search UI on its own thread.

Details:

- Add a new SearchDialogWrapper class that makes sure
all access to the SearchDialog is run one a single thread
other than the main ServerThread.
- Don't save/restore seach dialog state in Activity.
This resulted in lots of calls to the SearchManager
throughout the life cycle of all activities, for
the questionable benefit of restoring the search dialog
in a few cases.
- Remove search UI state save/restore, and the isVisible()
method from SearchManagerService. They are no longer used,
and were tricky to implement since they return values from
the search UI thread to the service.
- Handle configuration changes in searchDialogWrapper instead
of calling through from Activity.

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

TODO:
- Activity.performPause() calls stopSearch(). This call may not happen
until the new activity has been started. If the new activity starts a
search immediately, this search could be cancelled by the old activity's
call top stopSearch().
/frameworks/base/core/java/android/app/SearchManager.java
5f80605a0b866f34c74955e190909bd6ab5d992e 24-Jun-2009 Bjorn Bringert <bringert@android.com> Include user query in search intents

This change adds a new intent extra field USER_QUERY set in intents
launched by the search dialog. It contains the query as typed by
the user, unaffected by query jamming or search suggestions.

Fixes http://b/issue?id=1939592
/frameworks/base/core/java/android/app/SearchManager.java
8d1538237847baf381787b881141f8c0478bef5b 22-Jun-2009 Bjorn Bringert <bringert@android.com> Make all static methods in SearchManager non-static.

They were only static because of a now removed restriction that
only activity contexts could instantiate SearchManager.
This only changes hidden APIs, but all users of the changed methods
must be updated to use them non-statically before this is submitted.
/frameworks/base/core/java/android/app/SearchManager.java
97325db8565ad503b86d9a0f602b2d001b5cee13 22-Jun-2009 Bjorn Bringert <bringert@android.com> Add non-static version of SearchManager.getSuggestions().
/frameworks/base/core/java/android/app/SearchManager.java
bf23fe062ab4321143717c21827d329e087cc72f 16-Jun-2009 Satish Sampath <satish@android.com> Prepare SearchManager framework for adding Genie logging.

- Instead of passing the suggest provider component name as the field
EXTRA_DATA, we now pass via the field COMPONENT_NAME
- Kept EXTRA_DATA field as is so we can use it for real extra data.
/frameworks/base/core/java/android/app/SearchManager.java
8d17f3f24bbda9a9cd7ea08c5925508dc2c011be 05-Jun-2009 Bjorn Bringert <bringert@android.com> Run search dialog in the system process.

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

This is needed to address two security issues with global search:
http://b/issue?id=1871088 (Apps can read content providers through GlobalSearch)
http://b/issue?id=1819627 (Apps can use GlobalSearch to launch arbirtrary intents)

This also fixes http://b/issue?id=1693153 (SearchManager.OnDismissListener
never gets called)

To fix the security issues, GlobalSearch also needs to require
a non-app permission to access its content provider and launch intents.
/frameworks/base/core/java/android/app/SearchManager.java
ce0959df5ca49cf8f726adddb65978da83e42544 11-Jun-2009 Mike LeBeau <mlebeau@android.com> Add SUGGEST_SPINNER_WHILE_REFRESHING column constant to the SearchManager
for use in implementing Google suggestion refreshing in global search.
/frameworks/base/core/java/android/app/SearchManager.java
d4c98c4c450a95b67fe9746675984333b7653713 09-Jun-2009 Karl Rosaen <krosaen@android.com> Track clicks that occur after pivoting into an app from global search.

(framework portion).

Global search has a write-only content provider for reporting clicks that SearchDialog
makes use of.

update: addressed code review feedback
/frameworks/base/core/java/android/app/SearchManager.java
1c5fa0f31009502c539c65de99010b63cb617aac 09-Jun-2009 Satish Sampath <satish@android.com> Adds UI support for custom search widget item backgrounds.

- A new column was added to SearchManager cursors to specify background color (optional)
- Two new colour references added to the theme for normal and search widget corpus items (we need both to be opaque for the items to render properly)
- SuggestionAdapter was updated to choose the right theme colour for each item
/frameworks/base/core/java/android/app/SearchManager.java
f9acde27486bcc6eea1092073f7b47c31749efd6 04-Jun-2009 Satish Sampath <satish@android.com> Include web search providers in Searchables.

- 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.
/frameworks/base/core/java/android/app/SearchManager.java
1c54cf0903cd81467ca41ec6733c459e10b22763 04-Jun-2009 Karl Rosaen <krosaen@android.com> Detect impressions, and cleanup the SearchDialog / SuggestionCursor communication.

(framework portion)

There are now 4 times the search dialog will check with the cursor:
- after data set changed
- when an item is clicked
- when the cursor is about to be closed
- when an item at a particular position is detected as showing

these are now the points where we can add data in either direction, which we use to accomplish:
- finding out whether there are any pending results
- find out if there is a position at which to notify when it is displayed (the "more results" triggering)
- toggling the "more results" button
- sending the max position that was displayed when the cursor is done

the new behavior (in addition to the refactoring) is improved detection of "more results" to trigger the additional sources
(it is now precise), and detection of which items were displayed to the user.
/frameworks/base/core/java/android/app/SearchManager.java
3250fa73711537d42a9711eba6315f24d89dee0f 03-Jun-2009 Bjorn Bringert <bringert@android.com> Remove support for bitmap icons in search suggestions.

This is no longer needed, since content providers can now return
AssetFileDescriptors for in-memory data.
Bitmaps in the suggestion cursor was resopnsible for lots of
unnecessary copying, since all rows are copied out of the database
regardless of how many are displayed in the UI.
/frameworks/base/core/java/android/app/SearchManager.java
3a27803b29dc739685e1e2465a0ca697e4b60d14 04-Jun-2009 Mike LeBeau <mlebeau@android.com> Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)).
/frameworks/base/core/java/android/app/SearchManager.java
a058f02b591d971a829cb1e28d48a992e46ad85e 02-Jun-2009 Karl Rosaen <krosaen@android.com> progress towards impression and click stats on all sources, plus some internal cleanup

(framework portion)

suggestionCursor has new callbacks for impressions and clicks
- impressions now used to trigger "more" UI, cleanup apis around that

search dialog reports which position was clicked on via cursor#respond
- can now detect when sources under "more results" are clicked
- also used to simplify existing stuff:
- can detect when "more results" entry is clicked and toggle base on that (no longer need INTENT_ACTION_CURSOR_RESPOND one off)
- use response from click reporting to instruct which position should be selected
/frameworks/base/core/java/android/app/SearchManager.java
21fd5f144a3e6919ff6b4e8a1a733c940d5dd6df 01-Jun-2009 Mike LeBeau <mlebeau@android.com> Change comment for SUGGEST_COLUMN_INTENT_EXTRA_DATA to clarify that
this column is for use by global search only.
/frameworks/base/core/java/android/app/SearchManager.java
b619c9198efa0108a692d352b0e7eaa534f922f3 08-May-2009 Karl Rosaen <krosaen@google.com> Define mime type for shortcut validation path.
/frameworks/base/core/java/android/app/SearchManager.java
b2a5011578d4a64df2f39bdeeedfe9f37e7aecc4 06-May-2009 Karl Rosaen <krosaen@google.com> Define the URI path, columns and constants for shortcut validation.
/frameworks/base/core/java/android/app/SearchManager.java
a92041306e4d73baa10fb711fb905b9590f06b26 05-May-2009 Bjorn Bringert <bringert@android.com> Refactor SearchableInfo.

- 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.
/frameworks/base/core/java/android/app/SearchManager.java
6d72e029cb6e5a9cf26aa3314c3dca83614fc91b 29-Apr-2009 Bjorn Bringert <bringert@android.com> Add 'includeInGlobalSearch' attribute to searchable meta-data.

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
/frameworks/base/core/java/android/app/SearchManager.java
74708bbdf8d6f172b08343bdc578a20aa4b39148 28-Apr-2009 Bjorn Bringert <bringert@android.com> Add GLOBAL_SEARCH intent for finding global search provider.
/frameworks/base/core/java/android/app/SearchManager.java
875d50a4b9294b2be33cff6493cae7acd1d07ea7 24-Apr-2009 Karl Rosaen <> AI 147564: Merge back from search branch to donut. Notes:
- 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
/frameworks/base/core/java/android/app/SearchManager.java
4c156ec6ec9adcb407189ee57e0c205039b60148 21-Apr-2009 Andy Stadler <> AI 147168: am: CL 147163 Copy documentation for the various search-by-voice flags that
were already listed in attrs.xml into SearchManager.java. Add
a (brief - no time for more) description about how to add search
by voice to apps.
JAVADOC ONLY - should be safe change for cupcake sdk.
Original author: stadler
Merged from: //branches/cupcake/...

Automated import of CL 147168
/frameworks/base/core/java/android/app/SearchManager.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/app/SearchManager.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/app/SearchManager.java
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/frameworks/base/core/java/android/app/SearchManager.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/frameworks/base/core/java/android/app/SearchManager.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/app/SearchManager.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/frameworks/base/core/java/android/app/SearchManager.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/app/SearchManager.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/app/SearchManager.java