Home
last modified time | relevance | path

Searched refs:suggestions (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DSuggestionParser.java90 List<Tile> suggestions = new ArrayList<>(); in getSuggestions() local
93 readSuggestions(mSuggestionList.get(i), suggestions); in getSuggestions() local
95 return suggestions; in getSuggestions()
115 private void readSuggestions(SuggestionCategory category, List<Tile> suggestions) { in readSuggestions() argument
116 int countBefore = suggestions.size(); in readSuggestions()
123 addCache, null, suggestions, true, false); in readSuggestions()
124 for (int i = countBefore; i < suggestions.size(); i++) { in readSuggestions()
125 if (!isAvailable(suggestions.get(i)) || in readSuggestions()
126 !isSupported(suggestions.get(i)) || in readSuggestions()
127 !satisfiesRequiredAccount(suggestions.get(i)) || in readSuggestions()
[all …]
/frameworks/base/docs/html/guide/topics/search/
Dadding-recent-query-suggestions.jd31 <p>When using the Android search dialog or search widget, you can provide search suggestions based
35 with recent query suggestions.</p>
48 suggestions.</p>
51 <p>Recent query suggestions are simply saved searches. When the user selects one of
52 the suggestions, your searchable activity receives a {@link
57 <p>To provide recent queries suggestions, you need to:</p>
65 provides search suggestions.</li>
70 search suggestions below the dialog or search widget. All you need to do is provide a source from
71 which the system can retrieve suggestions.</p>
74 suggestions, the following procedure takes place as soon as the user begins typing a query:</p>
[all …]
Dadding-custom-suggestions.jd49 <p>When using the Android search dialog or search widget, you can provide custom search suggestions
52 dictionary that match the text entered so far. These are the most valuable suggestions, because you
54 an example of a search dialog with custom suggestions.</p>
56 <p>Once you provide custom suggestions, you can also make them available to the system-wide Quick
59 <p>Before you begin with this guide to add custom suggestions, you need to have implemented the
69 search suggestions.</p>
75 android.content.Intent#ACTION_SEARCH} action, you can instead define your custom suggestions to use
81 <p>To provide custom suggestions, do the following:</p>
87 provides custom suggestions.</li>
89 suggestions and format the table with required columns.</li>
[all …]
Dindex.jd9 <li><a href="adding-recent-query-suggestions.html">Adding Recent Query Suggestions</a></li>
10 <li><a href="adding-custom-suggestions.html">Adding Custom Suggestions</a></li>
33 search suggestions.</p>
40 the search dialog or widget to provide search suggestions as the user types. Figure 1 shows an
41 example of the search dialog with optional search suggestions.</p>
47 <li>Provide search suggestions based on recent user queries</li>
48 <li>Provide custom search suggestions that match actual results in your application data</li>
49 <li>Offer your application's search suggestions in the system-wide Quick Search Box</li>
68 <dt><strong><a href="adding-recent-query-suggestions.html">Adding Recent Query
70 <dd>How to provide suggestions based on queries previously used.</dd>
[all …]
Dsearchable-config.jd10 <li><a href="adding-recent-query-suggestions.html">Adding Recent Query Suggestions</a></li>
11 <li><a href="adding-custom-suggestions.html">Adding Custom Suggestions</a></li>
17 to an activity and provide search suggestions), your application must provide a search configuration
109 href="adding-custom-suggestions.html#RewritingQueryText">Adding Custom Suggestions</a>.</p>
136 <p>If you have defined a content provider to generate search suggestions, you need to
138 provider. When providing search suggestions, you need some of the following
143 <dd><em>String</em>. (Required to provide search suggestions.)
148 <dd><em>String</em>. This path is used as a portion of the suggestions
150 the standard suggestions path.
152 of suggestions (such as for different data types) and you need
[all …]
Dsearch-dialog.jd73 <li>Search suggestions based on recent queries</li>
74 <li>Search suggestions that match actual results in your application data</li>
99 handle searches. The dialog can also provide search suggestions while the user types.</p></li>
105 search suggestions (just like the search dialog).
149 certain UI aspects of the search dialog or widget and defines how features such as suggestions and
172 user until you enable search suggestions for Quick Search Box. At that point, this label is visible
188 most attributes until you add features such as <a href="#SearchSuggestions">search suggestions</a>
380 icon on the left. The search dialog can provide search suggestions as the user types and, when
669 activity when the user executes a search, and it can provide search suggestions and perform voice
714 suggestions</a> for the search widget.</p>
[all …]
/frameworks/base/core/java/android/view/textservice/
DSuggestionsInfo.java59 public SuggestionsInfo(int suggestionsAttributes, String[] suggestions) { in SuggestionsInfo() argument
60 this(suggestionsAttributes, suggestions, 0, 0); in SuggestionsInfo()
71 int suggestionsAttributes, String[] suggestions, int cookie, int sequence) { in SuggestionsInfo() argument
72 if (suggestions == null) { in SuggestionsInfo()
76 mSuggestions = suggestions; in SuggestionsInfo()
/frameworks/base/core/java/android/text/style/
DSuggestionSpan.java116 public SuggestionSpan(Context context, String[] suggestions, int flags) { in SuggestionSpan() argument
117 this(context, null, suggestions, flags, null); in SuggestionSpan()
125 public SuggestionSpan(Locale locale, String[] suggestions, int flags) { in SuggestionSpan() argument
126 this(null, locale, suggestions, flags, null); in SuggestionSpan()
138 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, in SuggestionSpan() argument
140 final int N = Math.min(SUGGESTIONS_MAX_SIZE, suggestions.length); in SuggestionSpan()
141 mSuggestions = Arrays.copyOf(suggestions, N); in SuggestionSpan()
329 private static int hashCodeInternal(String[] suggestions, @NonNull String languageTag, in hashCodeInternal() argument
331 return Arrays.hashCode(new Object[] {Long.valueOf(SystemClock.uptimeMillis()), suggestions, in hashCodeInternal()
/frameworks/base/docs/html/training/tv/discovery/
Dsearchable.jd14 <li><a href="#suggestions">Handle Search Suggestions</a></li>
38 up the suggestions along with a <a href="{@docRoot}guide/topics/search/searchable-config.html">
42 more detail in <a href="{@docRoot}guide/topics/search/adding-custom-suggestions.html">Adding Custom
60 <a href="{@docRoot}guide/topics/search/adding-custom-suggestions.html#SuggestionTable">
175 <a href="#suggestions">Handle Search Suggestions</a>, below.
187 to return search term suggestions to the Android TV search dialog. The system queries your content
188 provider for suggestions by calling the {@link android.content.ContentProvider#query(android.net.Ur…
193 the rows you have designated for suggestions.</p>
252 <h2 id="suggestions">Handle Search Suggestions</h2>
255 {@code res/xml/searchable.xml}</a> file to configure the search suggestions settings. It inlcudes
[all …]
/frameworks/base/docs/html/guide/topics/ui/controls/
Dtext.jd104 capitalize all new words or use features like auto-complete and spelling suggestions.</p>
127 address, capitalize each word, and disable text suggestions:</p>
264 <p>If you want to provide suggestions to users as they type, you can use a subclass of {@link
267 suggestions. There are several kinds of adapters available, depending on where the data is coming
272 android.widget.AutoCompleteTextView} with text suggestions.</p>
275 that provides suggestions from an array, using {@link android.widget.ArrayAdapter}:
289 <li>Define the array that contains all text suggestions. For example, here's an array of country
310 code to specify the adapter that supplies the suggestions:
/frameworks/base/core/java/android/widget/
DSpellChecker.java471 String[] suggestions; in createMisspelledSuggestionSpan() local
473 suggestions = new String[suggestionsCount]; in createMisspelledSuggestionSpan()
475 suggestions[i] = suggestionsInfo.getSuggestionAt(i); in createMisspelledSuggestionSpan()
478 suggestions = ArrayUtils.emptyArray(String.class); in createMisspelledSuggestionSpan()
481 SuggestionSpan suggestionSpan = new SuggestionSpan(mTextView.getContext(), suggestions, in createMisspelledSuggestionSpan()
/frameworks/base/docs/html/guide/topics/text/
Dspell-checker-framework.jd40 the session object returns spelling suggestions generated by the spelling checker.
54 spelling checker session from the service, then use the session to get suggestions for text.
96 the spelling checker and receive suggestions. Within this class, you must implement the
116 suggestions for the sentences passed to it.
Dcreating-input-method.jd192 suggestions for the user to select. In the IME lifecycle, the system calls
195 shows word suggestions, or return null if you don’t want to show anything. A null response is
196 the default behavior, so you don’t have to implement this if you don’t provide suggestions.</p>
198 For an example implementation that provides user suggestions, see the
/frameworks/base/docs/html/about/versions/
Dandroid-1.6-highlights.jd150 suggestions in response to user queries.
151 To enable application search suggestions, users simply select each application from which
152 they'd like to receive suggestions, under Searchable items in the Search settings.</p>
Dandroid-4.0.3.jd139 <li>For spell-checker services, a new suggestions flag,
141 lets the services distinguish higher-confidence suggestions from
143 input word is not in the user dictionary but has likely suggestions, or not set
144 the flag if an input word is not in the dictionary and has suggestions that are
152 determine whether to mark input words as typos and offer suggestions.</p></li>
Dandroid-2.3-highlights.jd74 The keyboard also displays the current character and dictionary suggestions in a
77 <p>The keyboard adds the capability to correct entered words from suggestions in
79 displays suggestions that the user can choose from, to replace the selection.
81 suggestions let the user accept a suggestion and then return to correct it
82 later, if needed, from the original set of suggestions.</p>
Dandroid-2.0-highlights.jd146 contact names as suggestions.</li>
/frameworks/base/docs/html/distribute/engage/
Ddeep-linking.jd61 you can use the App Indexing API to have deep links appear in search suggestions.</li>
/frameworks/base/docs/html/guide/topics/providers/
Dcontent-providers.jd68 suggestions in your own application. You also need your own provider if you want to copy and
/frameworks/base/docs/html/design/tv/
Dindex.jd60 notification, activity, or piece of actionable media. Your app can provide suggestions for the
/frameworks/base/docs/html/guide/topics/ui/
Dcontrols.jd63 …teTextView</code> widget to create a text entry widget that provides auto-complete suggestions</td>
/frameworks/base/docs/html/design/wear/
Dcontext.jd103 <p>Provides suggestions for the healthiest items on the menu when in a restaurant.
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dicon_design_list.jd51 for suggestions on how to work with multiple sets of icons.</p>
Dicon_design_dialog.jd49 for suggestions on how to work with multiple sets of icons.</p>
/frameworks/base/docs/html/training/keyboard-input/
Dstyle.jd32 behaviors such as whether the input method provides spelling suggestions,

123