Home
last modified time | relevance | path

Searched refs:searchable (Results 1 – 25 of 35) sorted by relevance

12

/frameworks/ex/common/java/com/android/common/
DSearch.java64 public static Cursor getSuggestions(Context context, SearchableInfo searchable, String query) { in getSuggestions() argument
65 return getSuggestions(context, searchable, query, -1); in getSuggestions()
77 public static Cursor getSuggestions(Context context, SearchableInfo searchable, in getSuggestions() argument
79 if (searchable == null) { in getSuggestions()
83 String authority = searchable.getSuggestAuthority(); in getSuggestions()
95 final String contentPath = searchable.getSuggestPath(); in getSuggestions()
104 String selection = searchable.getSuggestSelection(); in getSuggestions()
/frameworks/base/docs/html/guide/topics/search/
Dsearch-dialog.jd15 <li><a href="#DeclaringSearchableActivity">Declaring a searchable activity</a></li>
116 that you've declared to handle searches (the "searchable activity") and delivers it the intent. To
120 <li>A searchable configuration
123 <li>A searchable activity
142 <p>The rest of this document shows you how to create the searchable configuration, searchable
148 <p>The first thing you need is an XML file called the searchable configuration. It configures
150 voice search behave. This file is traditionally named {@code searchable.xml} and must be saved in
155 runtime&mdash;you must declare the searchable configuration in XML.</p>
157 <p>The searchable configuration file must include the <a
158 href="{@docRoot}guide/topics/search/searchable-config.html#searchable-element">{@code
[all …]
Dadding-recent-query-suggestions.jd26 <li><a href="searchable-config.html">Searchable Configuration</a></li>
52 the suggestions, your searchable activity receives a {@link
54 searchable activity already handles (as described in <a href="search-dialog.html">Creating a Search
60 <li>Implement a searchable activity, as described in <a
64 <li>Modify the searchable configuration with information about the content provider that
73 <p>When the system identifies that your activity is searchable and provides search
90 to your searchable activity using the normal {@link android.content.Intent#ACTION_SEARCH}
93 {@link android.content.Intent#ACTION_SEARCH} intent is delivered to your searchable activity using
141 searchable configuration). For example:</p>
157 the {@code <searchable>} element in your searchable configuration file. For example:</p>
[all …]
Dadding-custom-suggestions.jd43 <li><a href="searchable-config.html">Searchable Configuration</a></li>
74 your searchable activity. Whereas a normal search query sends an intent with the {@link
84 <li>Implement a basic searchable activity, as described in <a
86 <li>Modify the searchable configuration with information about the content provider that
103 <p>When the system identifies that your activity is searchable and provides search
120 to your searchable activity using the normal {@link android.content.Intent#ACTION_SEARCH}
122 <li>If the user selects a suggestion, an intent is sent to your searchable activity, carrying a
128 <h2 id="CustomSearchableConfiguration">Modifying the searchable configuration</h2>
131 to the {@code <searchable>} element in your searchable configuration file. For example:</p>
135 &lt;searchable xmlns:android="http://schemas.android.com/apk/res/android"
[all …]
Dsearchable-config.jd34 &lt;<a href="#searchable-element">searchable</a> xmlns:android="http://schemas.android.com/apk/res/…
61 &lt;/searchable&gt;
68 <dt id="searchable-element"><code>&lt;searchable&gt;</code></dt>
79 your application as a searchable item in the system's search settings.</dd>
84 content is searchable. For consistency with other Android applications, you should format the
139 {@code <searchable>} attributes:</p><br/>
192 following {@code <searchable>} attributes:</p><br/>
199 still enable your application as a searchable item in the system search settings before
204 to Quick Search Box, which is displayed in the searchable items entry for your application.
205 Your description should concisely describe the content that is searchable. For example, "Artists,
[all …]
Dindex.jd14 <li><a href="searchable-config.html">Searchable Configuration</a></li>
74 <dt><strong><a href="searchable-config.html">Searchable Configuration</a></strong></dt>
75 <dd>A reference document for the searchable configuration file (though the other
/frameworks/base/docs/html/training/search/
Dsetup.jd85 <p>A <a href="http://developer.android.com/guide/topics/search/searchable-config.html">searchable
87 <code>res/xml/searchable.xml</code> file. At a minimum, a searchable configuration must contain
96 &lt;searchable xmlns:android="http://schemas.android.com/apk/res/android"
102 …<code>&lt;meta-data&gt;</code></a> element that points to the <code>res/xml/searchable.xml</code> …
108 &lt;meta-data android:name="android.app.searchable"
109 android:resource="@xml/searchable" /&gt;
115 created before, associate the searchable configuration with the {@link android.widget.SearchView}
123 // Associate searchable configuration with the SearchView
136 {@link android.app.SearchableInfo} object that is created from the searchable configuration XML
137 file. When the searchable configuration is correctly associated with your {@link
[all …]
Dsearch.jd200 …ple calls <code>getWordMatches()</code> in the <code>handleIntent()</code> method of the searchable
201 activity. Remember that the searchable activity receives the query inside of the {@link
/frameworks/base/docs/html/training/tv/discovery/
Dsearchable.jd2 page.tags="search","searchable"
38 up the suggestions along with a <a href="{@docRoot}guide/topics/search/searchable-config.html">
39 {@code searchable.xml}</a> configuration file that describes the content
46 searchable in Android TV. Be sure you are familiar with the concepts explained in the
172 <a href="{@docRoot}guide/topics/search/searchable-config.html"> {@code searchable.xml}</a> file as …
173 <a href="{@docRoot}guide/topics/search/searchable-config.html#searchSuggestIntentData">
254 <p>Your app must include a <a href="{@docRoot}guide/topics/search/searchable-config.html">
255 {@code res/xml/searchable.xml}</a> file to configure the search suggestions settings. It inlcudes
256 the <a href="{@docRoot}guide/topics/search/searchable-config.html#searchSuggestAuthority">
263 The <a href="{@docRoot}guide/topics/search/searchable-config.html">{@code searchable.xml}</a> file
[all …]
Dindex.jd47 <dt><b><a href="searchable.html">Making TV Apps Searchable</a></b></dt>
48 <dd>Learn how to make your content searchable from the Android TV home screen.</dd>
/frameworks/base/core/java/android/app/
DSearchManager.java863 public Cursor getSuggestions(SearchableInfo searchable, String query) { in getSuggestions() argument
864 return getSuggestions(searchable, query, -1); in getSuggestions()
878 public Cursor getSuggestions(SearchableInfo searchable, String query, int limit) { in getSuggestions() argument
879 if (searchable == null) { in getSuggestions()
883 String authority = searchable.getSuggestAuthority(); in getSuggestions()
895 final String contentPath = searchable.getSuggestPath(); in getSuggestions()
904 String selection = searchable.getSuggestSelection(); in getSuggestions()
DSearchableInfo.java535 SearchableInfo searchable = getActivityMetaData(userContext, xml, cName); in getActivityMetaData() local
539 if (searchable != null) { in getActivityMetaData()
541 + ",label=" + searchable.getLabelId() in getActivityMetaData()
542 + ",icon=" + searchable.getIconId() in getActivityMetaData()
543 + ",suggestAuthority=" + searchable.getSuggestAuthority() in getActivityMetaData()
544 + ",target=" + searchable.getSearchActivity().getClassName() in getActivityMetaData()
545 + ",global=" + searchable.shouldIncludeInGlobalSearch() in getActivityMetaData()
546 + ",settingsDescription=" + searchable.getSettingsDescriptionId() in getActivityMetaData()
547 + ",threshold=" + searchable.getSuggestThreshold()); in getActivityMetaData()
552 return searchable; in getActivityMetaData()
/frameworks/base/services/core/java/com/android/server/search/
DSearchables.java239 SearchableInfo searchable = SearchableInfo.getActivityMetaData(mContext, ai, in updateSearchableList() local
241 if (searchable != null) { in updateSearchableList()
242 newSearchablesList.add(searchable); in updateSearchableList()
243 newSearchablesMap.put(searchable.getSearchActivity(), searchable); in updateSearchableList() local
244 if (searchable.shouldIncludeInGlobalSearch()) { in updateSearchableList()
245 newSearchablesInGlobalSearchList.add(searchable); in updateSearchableList()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSearchView.java440 public void setSearchableInfo(SearchableInfo searchable) { in setSearchableInfo() argument
441 mSearchable = searchable; in setSearchableInfo()
1291 SearchableInfo searchable = mSearchable; in onVoiceClicked() local
1293 if (searchable.getVoiceSearchLaunchWebSearch()) { in onVoiceClicked()
1295 searchable); in onVoiceClicked()
1297 } else if (searchable.getVoiceSearchLaunchRecognizer()) { in onVoiceClicked()
1299 searchable); in onVoiceClicked()
1614 private Intent createVoiceWebSearchIntent(Intent baseIntent, SearchableInfo searchable) { in createVoiceWebSearchIntent() argument
1616 ComponentName searchActivity = searchable.getSearchActivity(); in createVoiceWebSearchIntent()
1630 private Intent createVoiceAppSearchIntent(Intent baseIntent, SearchableInfo searchable) { in createVoiceAppSearchIntent() argument
[all …]
DSuggestionsAdapter.java93 public SuggestionsAdapter(Context context, SearchView searchView, SearchableInfo searchable, in SuggestionsAdapter() argument
99 mSearchable = searchable; in SuggestionsAdapter()
712 Cursor getSearchManagerSuggestions(SearchableInfo searchable, String query, int limit) { in getSearchManagerSuggestions() argument
713 if (searchable == null) { in getSearchManagerSuggestions()
717 String authority = searchable.getSuggestAuthority(); in getSearchManagerSuggestions()
729 final String contentPath = searchable.getSuggestPath(); in getSearchManagerSuggestions()
738 String selection = searchable.getSuggestSelection(); in getSearchManagerSuggestions()
/frameworks/base/core/java/android/widget/
DSearchView.java406 public void setSearchableInfo(SearchableInfo searchable) { in setSearchableInfo() argument
407 mSearchable = searchable; in setSearchableInfo()
1331 SearchableInfo searchable = mSearchable; in onVoiceClicked() local
1333 if (searchable.getVoiceSearchLaunchWebSearch()) { in onVoiceClicked()
1335 searchable); in onVoiceClicked()
1337 } else if (searchable.getVoiceSearchLaunchRecognizer()) { in onVoiceClicked()
1339 searchable); in onVoiceClicked()
1652 private Intent createVoiceWebSearchIntent(Intent baseIntent, SearchableInfo searchable) { in createVoiceWebSearchIntent() argument
1654 ComponentName searchActivity = searchable.getSearchActivity(); in createVoiceWebSearchIntent()
1667 private Intent createVoiceAppSearchIntent(Intent baseIntent, SearchableInfo searchable) { in createVoiceAppSearchIntent() argument
[all …]
DSuggestionsAdapter.java99 public SuggestionsAdapter(Context context, SearchView searchView, SearchableInfo searchable, in SuggestionsAdapter() argument
106 mSearchable = searchable; in SuggestionsAdapter()
/frameworks/base/docs/html/training/tv/publishing/
Dchecklist.jd156 <p>See <a href="{@docRoot}training/tv/discovery/searchable.html#provide">Provide Data</a>.</p>
161 <p>See <a href="{@docRoot}training/tv/discovery/searchable.html#columns">Identify Columns</a>.</p>
167 <p>See <a href="{@docRoot}training/tv/discovery/searchable.html#details">Display Your App in the
/frameworks/base/docs/html/about/versions/
Dandroid-1.6-highlights.jd149 To do this, developers will need to make their app "searchable" and provide
Dandroid-1.6.jd242 attributes to the searchable metadata file. For complete information, see the
/frameworks/base/docs/html/design/patterns/
Dapp-structure.jd94 … <li>If your content is searchable, include the Search action in the action bar so people can cut
/frameworks/base/docs/html/training/
Dtraining_toc.cs1326 "How to properly add a search interface to your app and create a searchable database."
/frameworks/base/docs/html-intl/intl/zh-cn/guide/topics/resources/
Dproviding-resources.jd188 配置文件(如<a href="{@docRoot}guide/topics/search/searchable-config.html">可搜索配置</a>)都必须保存在此处。
/frameworks/base/docs/html-intl/intl/ru/guide/topics/resources/
Dproviding-resources.jd188 например, <a href="{@docRoot}guide/topics/search/searchable-config.html">конфигурация с возможность…
/frameworks/base/docs/html-intl/intl/ja/guide/topics/resources/
Dproviding-resources.jd187 …実行時に読み込むことができる任意の XML ファイル。ここには、<a href="{@docRoot}guide/topics/search/searchable-config.html">検索可…

12