/frameworks/ex/common/java/com/android/common/ |
D | Search.java | 64 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/ |
D | search-dialog.jd | 15 <li><a href="#DeclaringSearchableActivity">Declaring a searchable activity</a></li> 117 that you've declared to handle searches (the "searchable activity") and delivers it the intent. To 121 <li>A searchable configuration 124 <li>A searchable activity 144 <p>The rest of this document shows you how to create the searchable configuration, searchable 150 <p>The first thing you need is an XML file called the searchable configuration. It configures 152 voice search behave. This file is traditionally named {@code searchable.xml} and must be saved in 157 runtime—you must declare the searchable configuration in XML.</p> 159 <p>The searchable configuration file must include the <a 160 href="{@docRoot}guide/topics/search/searchable-config.html#searchable-element">{@code [all …]
|
D | adding-recent-query-suggestions.jd | 26 <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 …]
|
D | adding-custom-suggestions.jd | 43 <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 <searchable xmlns:android="http://schemas.android.com/apk/res/android" [all …]
|
D | searchable-config.jd | 34 <<a href="#searchable-element">searchable</a> xmlns:android="http://schemas.android.com/apk/res/… 61 </searchable> 68 <dt id="searchable-element"><code><searchable></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 …]
|
D | index.jd | 14 <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/ |
D | setup.jd | 85 <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 <searchable xmlns:android="http://schemas.android.com/apk/res/android" 102 …<code><meta-data></code></a> element that points to the <code>res/xml/searchable.xml</code> … 108 <meta-data android:name="android.app.searchable" 109 android:resource="@xml/searchable" /> 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 …]
|
D | search.jd | 200 …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/core/java/android/app/ |
D | SearchManager.java | 767 public Cursor getSuggestions(SearchableInfo searchable, String query) { in getSuggestions() argument 768 return getSuggestions(searchable, query, -1); in getSuggestions() 782 public Cursor getSuggestions(SearchableInfo searchable, String query, int limit) { in getSuggestions() argument 783 if (searchable == null) { in getSuggestions() 787 String authority = searchable.getSuggestAuthority(); in getSuggestions() 799 final String contentPath = searchable.getSuggestPath(); in getSuggestions() 808 String selection = searchable.getSuggestSelection(); in getSuggestions()
|
D | SearchableInfo.java | 533 SearchableInfo searchable = getActivityMetaData(userContext, xml, cName); in getActivityMetaData() local 537 if (searchable != null) { in getActivityMetaData() 539 + ",label=" + searchable.getLabelId() in getActivityMetaData() 540 + ",icon=" + searchable.getIconId() in getActivityMetaData() 541 + ",suggestAuthority=" + searchable.getSuggestAuthority() in getActivityMetaData() 542 + ",target=" + searchable.getSearchActivity().getClassName() in getActivityMetaData() 543 + ",global=" + searchable.shouldIncludeInGlobalSearch() in getActivityMetaData() 544 + ",settingsDescription=" + searchable.getSettingsDescriptionId() in getActivityMetaData() 545 + ",threshold=" + searchable.getSuggestThreshold()); in getActivityMetaData() 550 return searchable; in getActivityMetaData()
|
/frameworks/base/services/java/com/android/server/search/ |
D | Searchables.java | 237 SearchableInfo searchable = SearchableInfo.getActivityMetaData(mContext, ai, in buildSearchableList() local 239 if (searchable != null) { in buildSearchableList() 240 newSearchablesList.add(searchable); in buildSearchableList() 241 newSearchablesMap.put(searchable.getSearchActivity(), searchable); in buildSearchableList() local 242 if (searchable.shouldIncludeInGlobalSearch()) { in buildSearchableList() 243 newSearchablesInGlobalSearchList.add(searchable); in buildSearchableList()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | SearchView.java | 375 public void setSearchableInfo(SearchableInfo searchable) { in setSearchableInfo() argument 376 mSearchable = searchable; in setSearchableInfo() 1175 SearchableInfo searchable = mSearchable; in onVoiceClicked() local 1177 if (searchable.getVoiceSearchLaunchWebSearch()) { in onVoiceClicked() 1179 searchable); in onVoiceClicked() 1181 } else if (searchable.getVoiceSearchLaunchRecognizer()) { in onVoiceClicked() 1183 searchable); in onVoiceClicked() 1430 private Intent createVoiceWebSearchIntent(Intent baseIntent, SearchableInfo searchable) { in createVoiceWebSearchIntent() argument 1432 ComponentName searchActivity = searchable.getSearchActivity(); in createVoiceWebSearchIntent() 1445 private Intent createVoiceAppSearchIntent(Intent baseIntent, SearchableInfo searchable) { in createVoiceAppSearchIntent() argument [all …]
|
D | SuggestionsAdapter.java | 92 SearchableInfo searchable, in SuggestionsAdapter() argument 99 mSearchable = searchable; in SuggestionsAdapter() 706 Cursor getSearchManagerSuggestions(SearchableInfo searchable, String query, int limit) { in getSearchManagerSuggestions() argument 707 if (searchable == null) { in getSearchManagerSuggestions() 711 String authority = searchable.getSuggestAuthority(); in getSearchManagerSuggestions() 723 final String contentPath = searchable.getSuggestPath(); in getSearchManagerSuggestions() 732 String selection = searchable.getSuggestSelection(); in getSearchManagerSuggestions()
|
/frameworks/base/core/java/android/widget/ |
D | SearchView.java | 344 public void setSearchableInfo(SearchableInfo searchable) { in setSearchableInfo() argument 345 mSearchable = searchable; in setSearchableInfo() 1210 SearchableInfo searchable = mSearchable; in onVoiceClicked() local 1212 if (searchable.getVoiceSearchLaunchWebSearch()) { in onVoiceClicked() 1214 searchable); in onVoiceClicked() 1216 } else if (searchable.getVoiceSearchLaunchRecognizer()) { in onVoiceClicked() 1218 searchable); in onVoiceClicked() 1490 private Intent createVoiceWebSearchIntent(Intent baseIntent, SearchableInfo searchable) { in createVoiceWebSearchIntent() argument 1492 ComponentName searchActivity = searchable.getSearchActivity(); in createVoiceWebSearchIntent() 1505 private Intent createVoiceAppSearchIntent(Intent baseIntent, SearchableInfo searchable) { in createVoiceAppSearchIntent() argument [all …]
|
D | SuggestionsAdapter.java | 98 SearchableInfo searchable, in SuggestionsAdapter() argument 106 mSearchable = searchable; in SuggestionsAdapter()
|
/frameworks/base/docs/html/about/versions/ |
D | android-1.6-highlights.jd | 149 To do this, developers will need to make their app "searchable" and provide
|
D | android-1.6.jd | 249 attributes to the searchable metadata file. For complete information, see the
|
/frameworks/base/docs/html/design/patterns/ |
D | app-structure.jd | 85 … <li>If your content is searchable, include the Search action in the action bar so people can cut
|
/frameworks/base/docs/html/guide/topics/resources/ |
D | providing-resources.jd | 179 href="{@docRoot}guide/topics/search/searchable-config.html">searchable configuration</a>.
|
/frameworks/base/docs/html/samples/ |
D | samples_toc.cs | 16 …ples/BasicContactables/res/xml/searchable.html" title="searchable.xml">searchable.xml</a></li></ul…
|
/frameworks/base/docs/html/ |
D | sitemap.txt | 269 http://developer.android.com/guide/topics/search/searchable-config.html
|