Age | Commit message (Collapse) | Author |
|
|
|
Change-Id: I39acc3a013ebbcb7f1c1c5a1ba1091d1120856d4
|
|
|
|
|
|
open-sourced.
|
|
in the open source what this package is for.
|
|
web search intents.
Fixes http://b/2020191
|
|
the browser can figure out which window to put a new search into.
|
|
Fixes http://b/issue?id=2014515 for WebSearchProvider
|
|
WebSearchProvider now has its own settings UI, with a
"Show web suggestions" preference. This is disabled
if we do not support suggestions for the selected
search engine.
This is the WebSearchProvider part of http://b/issue?id=1996992
|
|
|
|
|
|
|
|
|
|
Fixes http://b/issue?id=1920886 for WebSearchProvider.
|
|
* changes:
Make name of Web Search provider localizable.
|
|
|
|
|
|
This was done so that the browser can identify them as search requests and add location information to the request if enabled.
|
|
|
|
We are using the WebSearchProvider name now in core.mk and other mk files and due to this mistake in naming here this was not getting built/included by default.
|
|
|
|
This is a rollback of change 2908. The Searchables module of SearchManager now takes care of setting the preferred web search activity when required on boot, on package add/remove/update and other such events, so this is no longer needed.
|
|
We had a copy of en-US strings checked into the values-en-rUS directory but it
should have been under values directory.
Reinstating the '@' symbol in 2 search engine names by escaping them with a
backslash. The script used to generate these files will be submitted in a
separate review.
|
|
* changes:
Remove c++ comments and fix faulty regex.
|
|
- The regex to search for the pattern ' name =' or ' name=' was broken
and fixed in this change.
- Also added ability to look for c++ style // comments in each line and
if present remove them before parsing the rest of the data.
- Also added ability to detect '@' and '?' at the beginning of a string
and inject a backslash before them, so that the aapt tool compiles
them properly without thinking that they are references to other
resources.
|
|
|
|
* changes:
Add web search metadata for all supported locales.
|
|
The list of locales was obtained using the command
find . -name "*.mk" -exec grep -H PRODUCT_LOCALES {} \;
and for each locale we ran
tools/get_search_engines.py <locale>
|
|
|
|
On boot, typically there will be multiple activities registered to handle intent action WEB_SEARCH. We make the WebSearchProvider receive the boot completed broadcast message and in that event check our list of known web search providers ordered by priority and set the highest priority one found as the preferred activity.
|
|
The tools consist of a python script and a resource file template. The script downloads a specific source file from the public Chrome source code repository and parses it to retrieve the search engine provider data for the specified locale. It then writes out any new search engine metadata to an existing file under values/all_search_engines.xml and creates locale specific list of search engines in the file res/<values-lang-rRegion>/search_engines.xml (based on the template in this patch).
|
|
This was being done on each keystroke/query which was unnecessary, and it was also causing a crash when a search engine in the list only supported searches and not suggest.
|
|
The XML files under res/ will be automatically generated with a script in a subsequent change.
The design is documented in the 'Design' section of https://docs.google.com/a/google.com/Doc?docid=0AUpt8mrQCqRkZGdnOGtmZzJfNWRwbXJndDc1
|
|
We'll be using this as the base for adding web search suggestions from third party search engines which implement the OpenSearch standard.
|
|
|