Home
last modified time | relevance | path

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

12345

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DNetworkSuggestionNominatorTest.java116 ExtendedWifiNetworkSuggestion[] suggestions = buildNetworkSuggestions(suggestionSsids, in testSelectNetworkSuggestionForNoMatch() local
120 linkScanDetailsWithNetworkSuggestions(scanDetails, suggestions); in testSelectNetworkSuggestionForNoMatch()
157 ExtendedWifiNetworkSuggestion[] suggestions = buildNetworkSuggestions(suggestionSsids, in testSelectNetworkSuggestionForOneMatch() local
161 linkScanDetailsWithNetworkSuggestions(scanDetails, suggestions); in testSelectNetworkSuggestionForOneMatch()
163 setupAddToWifiConfigManager(suggestions[0]); in testSelectNetworkSuggestionForOneMatch()
197 ExtendedWifiNetworkSuggestion[] suggestions = buildNetworkSuggestions(suggestionSsids, in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion() local
200 WifiConfiguration config = suggestions[0].wns.wifiConfiguration; in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion()
203 linkScanDetailsWithNetworkSuggestions(scanDetails, suggestions); in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion()
205 setupAddToWifiConfigManager(suggestions[0]); in testSelectNetworkSuggestionForOneMatchWithInsecureEnterpriseSuggestion()
244 ExtendedWifiNetworkSuggestion[] suggestions = buildNetworkSuggestions(suggestionSsids, in testSelectNetworkSuggestionForMultipleMatch() local
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DDelayingSuggestionsAdapter.java52 public void setSuggestions(Suggestions suggestions) { in setSuggestions() argument
53 if (suggestions == null) { in setSuggestions()
58 if (shouldPublish(suggestions)) { in setSuggestions()
59 if (DBG) Log.d(TAG, "Publishing suggestions immediately: " + suggestions); in setSuggestions()
60 mDelayedAdapter.setSuggestions(suggestions); in setSuggestions()
64 if (DBG) Log.d(TAG, "Delaying suggestions publishing: " + suggestions); in setSuggestions()
65 setPendingSuggestions(suggestions); in setSuggestions()
72 private boolean shouldPublish(Suggestions suggestions) { in shouldPublish() argument
73 if (suggestions.isDone()) return true; in shouldPublish()
74 SuggestionCursor cursor = suggestions.getResult(); in shouldPublish()
[all …]
DSuggestionsAdapterBase.java85 public void setSuggestions(Suggestions suggestions) { in setSuggestions() argument
86 if (mSuggestions == suggestions) { in setSuggestions()
90 if (suggestions != null) { in setSuggestions()
91 suggestions.release(); in setSuggestions()
103 mSuggestions = suggestions; in setSuggestions()
151 protected View getView(SuggestionCursor suggestions, int position, long suggestionId, in getView() argument
153 suggestions.moveTo(position); in getView()
154 View v = mViewFactory.getView(suggestions, suggestions.getUserQuery(), convertView, parent); in getView()
DSearchActivityView.java95 mSuggestionsView = (SuggestionsView) findViewById(R.id.suggestions); in onFinishInflate()
201 public void setSuggestions(Suggestions suggestions) { in setSuggestions() argument
202 suggestions.acquire(); in setSuggestions()
203 mSuggestionsAdapter.setSuggestions(suggestions); in setSuggestions()
342 Suggestions suggestions = mSuggestionsAdapter.getSuggestions(); in updateInputMethodSuggestions()
343 if (suggestions == null) return; in updateInputMethodSuggestions()
344 CompletionInfo[] completions = webSuggestionsToCompletions(suggestions); in updateInputMethodSuggestions()
349 private CompletionInfo[] webSuggestionsToCompletions(Suggestions suggestions) { in webSuggestionsToCompletions() argument
350 SourceResult cursor = suggestions.getWebResult(); in webSuggestionsToCompletions()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/
DSuggestionParser.java17 package com.android.settings.intelligence.suggestions;
19 import static com.android.settings.intelligence.suggestions.model.SuggestionCategoryRegistry
27 import android.service.settings.suggestions.Suggestion;
34 import com.android.settings.intelligence.suggestions.eligibility.CandidateSuggestionFilter;
35 import com.android.settings.intelligence.suggestions.model.CandidateSuggestion;
36 import com.android.settings.intelligence.suggestions.model.SuggestionCategory;
37 import com.android.settings.intelligence.suggestions.model.SuggestionListBuilder;
87 final List<Suggestion> suggestions = in getSuggestions() local
89 suggestionBuilder.addSuggestions(category, suggestions); in getSuggestions()
97 final List<Suggestion> suggestions = new ArrayList<>(); in readSuggestions() local
[all …]
DSuggestionFeatureProvider.java17 package com.android.settings.intelligence.suggestions;
21 import android.service.settings.suggestions.Suggestion;
23 import com.android.settings.intelligence.suggestions.ranking.SuggestionEventStore;
24 import com.android.settings.intelligence.suggestions.ranking.SuggestionFeaturizer;
25 import com.android.settings.intelligence.suggestions.ranking.SuggestionRanker;
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/model/
DSuggestionListBuilder.java17 package com.android.settings.intelligence.suggestions.model;
19 import android.service.settings.suggestions.Suggestion;
37 public void addSuggestions(SuggestionCategory category, List<Suggestion> suggestions) { in addSuggestions() argument
41 mSuggestions.put(category, suggestions); in addSuggestions()
54 final List<Suggestion> suggestions = new ArrayList<>(); in dedupeSuggestions() local
56 suggestions.addAll(suggestionsInCategory); in dedupeSuggestions()
58 for (int i = suggestions.size() - 1; i >= 0; i--) { in dedupeSuggestions()
59 final Suggestion suggestion = suggestions.get(i); in dedupeSuggestions()
62 suggestions.remove(i); in dedupeSuggestions()
67 return suggestions; in dedupeSuggestions()
DCandidateSuggestion.java17 package com.android.settings.intelligence.suggestions.model;
29 import android.service.settings.suggestions.Suggestion;
34 import com.android.settings.intelligence.suggestions.eligibility.AccountEligibilityChecker;
35 import com.android.settings.intelligence.suggestions.eligibility.AutomotiveEligibilityChecker;
36 import com.android.settings.intelligence.suggestions.eligibility.ConnectivityEligibilityChecker;
37 import com.android.settings.intelligence.suggestions.eligibility.DismissedChecker;
38 import com.android.settings.intelligence.suggestions.eligibility.FeatureEligibilityChecker;
39 import com.android.settings.intelligence.suggestions.eligibility.ProviderEligibilityChecker;
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSearchActivity.java370 Suggestions suggestions = mSearchActivityView.getSuggestions(); in getCurrentSuggestions() local
371 if (suggestions == null) { in getCurrentSuggestions()
374 return suggestions.getResult(); in getCurrentSuggestions()
382 SuggestionCursor suggestions = pos.getCursor(); in getCurrentSuggestions() local
384 if (suggestions == null) { in getCurrentSuggestions()
387 int count = suggestions.getCount(); in getCurrentSuggestions()
392 suggestions.moveTo(position); in getCurrentSuggestions()
427 protected void launchSuggestion(SuggestionCursor suggestions, int position) { in launchSuggestion() argument
428 suggestions.moveTo(position); in launchSuggestion()
429 Intent intent = SuggestionUtils.getSuggestionIntent(suggestions, mAppSearchData); in launchSuggestion()
[all …]
DSuggestionsProviderImpl.java63 final Suggestions suggestions = new Suggestions(query, sourceToQuery); in getSuggestions() local
68 receiver = new SuggestionCursorReceiver(suggestions); in getSuggestions()
71 suggestions.done(); in getSuggestions()
78 return suggestions; in getSuggestions()
95 public SuggestionCursorReceiver(Suggestions suggestions) { in SuggestionCursorReceiver() argument
96 mSuggestions = suggestions; in SuggestionCursorReceiver()
DEventLogTags.logtags32 # the list of suggestions shown.
40 71002 qsb_click (id|2),(suggestions|3),(queried_sources|3),(num_chars|1),(click_type|1)
55 # @param suggestions The suggestions shown when the user left QSB. See qsb_click above.
57 71005 qsb_exit (suggestions|3),(num_chars|1)
DEventLogLogger.java70 String suggestions = getSuggestions(suggestionCursor); in logSuggestionClick() local
72 EventLogTags.writeQsbClick(id, suggestions, null, numChars, in logSuggestionClick()
88 String suggestions = getSuggestions(suggestionCursor); in logExit() local
89 EventLogTags.writeQsbExit(suggestions, numChars); in logExit()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionAndTextRangeTests.java319 SuggestionSpan[] suggestions; in helpTestGetSuggestionSpansAtWord() local
322 suggestions = r.getSuggestionSpansAtWord(); in helpTestGetSuggestionSpansAtWord()
323 assertEquals(suggestions.length, 1); in helpTestGetSuggestionSpansAtWord()
324 assertEquals(suggestions[0].getSuggestions(), SUGGESTIONS1); in helpTestGetSuggestionSpansAtWord()
334 suggestions = r.getSuggestionSpansAtWord(); in helpTestGetSuggestionSpansAtWord()
335 assertEquals(suggestions.length, 2); in helpTestGetSuggestionSpansAtWord()
336 assertEquals(suggestions[0].getSuggestions(), SUGGESTIONS1); in helpTestGetSuggestionSpansAtWord()
337 assertEquals(suggestions[1].getSuggestions(), SUGGESTIONS2); in helpTestGetSuggestionSpansAtWord()
347 suggestions = r.getSuggestionSpansAtWord(); in helpTestGetSuggestionSpansAtWord()
348 assertEquals(suggestions.length, 1); in helpTestGetSuggestionSpansAtWord()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/suggestions/
DSuggestionsPreferenceController.java17 package com.android.car.settings.suggestions;
24 import android.service.settings.suggestions.Suggestion;
36 import com.android.settingslib.suggestions.SuggestionController;
148 List<Suggestion> suggestions) { in onLoadFinished() argument
150 if (suggestions == null) { in onLoadFinished()
155 updateSuggestionPreferences(suggestions); in onLoadFinished()
156 mSuggestionsList = new ArrayList<>(suggestions); in onLoadFinished()
159 private void updateSuggestionPreferences(List<Suggestion> suggestions) { in updateSuggestionPreferences() argument
163 for (Suggestion suggestion : suggestions) { in updateSuggestionPreferences()
176 for (Suggestion suggestion : suggestions) { in updateSuggestionPreferences()
DSettingsSuggestionsLoader.java17 package com.android.car.settings.suggestions;
20 import android.service.settings.suggestions.Suggestion;
26 import com.android.settingslib.suggestions.SuggestionController;
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardController.java22 import android.service.settings.suggestions.Suggestion;
36 import com.android.settingslib.suggestions.SuggestionController;
37 import com.android.settingslib.suggestions.SuggestionController.ServiceConnectionListener;
137 final List<Suggestion> suggestions = mSuggestionController.getSuggestions(); in loadSuggestions() local
138 final String suggestionCount = suggestions == null in loadSuggestions()
140 : String.valueOf(suggestions.size()); in loadSuggestions()
144 if (suggestions != null) { in loadSuggestions()
146 for (Suggestion suggestion : suggestions) { in loadSuggestions()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java67 public SuggestionsParams(String[] suggestions, int flags) { in SuggestionsParams() argument
68 mSuggestions = suggestions; in SuggestionsParams()
87 final String query, final String[] suggestions, final int flags) { in putSuggestionsToCache() argument
88 if (suggestions == null || TextUtils.isEmpty(query)) { in putSuggestionsToCache()
93 new SuggestionsParams(suggestions, flags)); in putSuggestionsToCache()
345 final ArrayList<String> suggestions = new ArrayList<>(); in getResult() local
356 suggestions.add(suggestion); in getResult()
358 StringUtils.removeDupes(suggestions); in getResult()
362 suggestions.subList(0, Math.min(suggestions.size(), suggestionsLimit)); in getResult()
367 final String bestSuggestion = suggestions.get(0); in getResult()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ranking/
DSuggestionRanker.java17 package com.android.settings.intelligence.suggestions.ranking;
20 import android.service.settings.suggestions.Suggestion;
76 public List<Suggestion> rankRelevantSuggestions(List<Suggestion> suggestions) { in rankRelevantSuggestions() argument
78 Map<String, Map<String, Double>> features = mSuggestionFeaturizer.featurize(suggestions); in rankRelevantSuggestions()
79 for (Suggestion suggestion : suggestions) { in rankRelevantSuggestions()
83 rankedSuggestions.addAll(suggestions); in rankRelevantSuggestions()
DSuggestionFeaturizer.java17 package com.android.settings.intelligence.suggestions.ranking;
20 import android.service.settings.suggestions.Suggestion;
63 public Map<String, Map<String, Double>> featurize(List<Suggestion> suggestions) { in featurize() argument
66 final List<String> suggestionIds = new ArrayList<>(suggestions.size()); in featurize()
67 for (Suggestion suggestion : suggestions) { in featurize()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerServiceTest.java37 final String[] suggestions = span.getSuggestions(); in testSpellchecker() local
40 assertTrue(suggestions.length >= 2); in testSpellchecker()
42 assertEquals("Test basic spell checking", "this", suggestions[0]); in testSpellchecker()
71 final String[] suggestions = span.getSuggestions(); in testSpellcheckWithPeriods() local
74 suggestions[0]); in testSpellcheckWithPeriods()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionaryCollection.java71 ArrayList<SuggestedWordInfo> suggestions = dictionaries.get(0).getSuggestions(composedData, in getSuggestions()
74 if (null == suggestions) suggestions = new ArrayList<>(); in getSuggestions()
80 if (null != sugg) suggestions.addAll(sugg); in getSuggestions()
82 return suggestions; in getSuggestions()
DSuggest.java139 @Nonnull final ArrayList<SuggestedWordInfo> suggestions) { in getWhitelistedWordInfoOrNull()
140 if (suggestions.isEmpty()) { in getWhitelistedWordInfoOrNull()
143 final SuggestedWordInfo firstSuggestedWordInfo = suggestions.get(0); in getWhitelistedWordInfoOrNull()
349 final String typedWord, final ArrayList<SuggestedWordInfo> suggestions) { in getSuggestionsInfoListWithDebugInfo() argument
350 final SuggestedWordInfo typedWordInfo = suggestions.get(0); in getSuggestionsInfoListWithDebugInfo()
352 final int suggestionsSize = suggestions.size(); in getSuggestionsInfoListWithDebugInfo()
358 final SuggestedWordInfo cur = suggestions.get(i + 1); in getSuggestionsInfoListWithDebugInfo()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DSuggestionQuickSettingPrefsContainer.java8 import android.service.settings.suggestions.Suggestion;
17 import com.android.settingslib.suggestions.SuggestionControllerMixinCompat;
22 import com.android.tv.settings.suggestions.SuggestionPreference;
107 void updateSuggestionList(List<Suggestion> suggestions) { in updateSuggestionList() argument
112 for (Suggestion suggestion : suggestions) { in updateSuggestionList()
124 for (Suggestion suggestion : suggestions) { in updateSuggestionList()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSuggestClient.java125 JSONArray suggestions = results.getJSONArray(1); in query() local
127 if (DBG) Log.d(LOG_TAG, "Got " + suggestions.length() + " results"); in query()
128 return new GoogleSuggestCursor(this, query, suggestions, popularity); in query()
172 JSONArray suggestions, JSONArray popularity) { in GoogleSuggestCursor() argument
174 mSuggestions = suggestions; in GoogleSuggestCursor()
/packages/modules/ExtServices/java/src/android/ext/services/notification/
DAssistant.java109 SmartSuggestions suggestions = mSmartSuggestionsHelper.onNotificationEnqueued(sbn); in onNotificationEnqueued() local
114 suggestions.getActions().size(), in onNotificationEnqueued()
115 suggestions.getReplies().size())); in onNotificationEnqueued()
119 new ArrayList<Notification.Action>(suggestions.getActions()), in onNotificationEnqueued()
120 new ArrayList<>(suggestions.getReplies())); in onNotificationEnqueued()

12345