Home
last modified time | relevance | path

Searched refs:mSuggestions (Results 1 – 11 of 11) sorted by relevance

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DListSuggestionCursor.java37 private final ArrayList<Entry> mSuggestions; field in ListSuggestionCursor
57 mSuggestions = new ArrayList<Entry>(capacity); in ListSuggestionCursor()
66 mSuggestions.add(new Entry(suggestion)); in add()
71 mSuggestions.clear(); in close()
83 int size = mSuggestions.size(); in moveToNext()
93 mSuggestions.remove(mPos); in removeRow()
97 mSuggestions.set(mPos, new Entry(suggestion)); in replaceRow()
101 return mSuggestions.size(); in getCount()
106 return mSuggestions.get(mPos).get(); in current()
111 return getClass().getSimpleName() + "{[" + getUserQuery() + "] " + mSuggestions + "}"; in toString()
[all …]
DSuggestionsProviderImpl.java93 private final Suggestions mSuggestions; field in SuggestionsProviderImpl.SuggestionCursorReceiver
96 mSuggestions = suggestions; in SuggestionCursorReceiver()
107 mSuggestions.addResults(cursor); in consume()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DSuggestionsAdapterBase.java45 private Suggestions mSuggestions; field in SuggestionsAdapterBase
86 if (mSuggestions == suggestions) { in setSuggestions()
99 if (mSuggestions != null) { in setSuggestions()
100 mSuggestions.unregisterDataSetObserver(mDataSetObserver); in setSuggestions()
101 mSuggestions.release(); in setSuggestions()
103 mSuggestions = suggestions; in setSuggestions()
104 if (mSuggestions != null) { in setSuggestions()
105 mSuggestions.registerDataSetObserver(mDataSetObserver); in setSuggestions()
112 return mSuggestions; in getSuggestions()
169 if (DBG) Log.d(TAG, "onSuggestionsChanged(" + mSuggestions + ")"); in onSuggestionsChanged()
[all …]
/packages/inputmethods/LeanbackIME/src/com/android/inputmethod/leanback/
DLeanbackSuggestionsFactory.java47 private final ArrayList<String> mSuggestions = new ArrayList<String>(); field in LeanbackSuggestionsFactory
83 for (int i = 0; i < totalCompletions && mSuggestions.size() < mNumSuggestions; i++) { in onDisplayCompletions()
87 mSuggestions.add(i, completions[i].getText().toString()); in onDisplayCompletions()
91 for (int i = 0; i < mSuggestions.size(); i++) { in onDisplayCompletions()
92 Log.d(TAG, "completion " + i + ": " + mSuggestions.get(i)); in onDisplayCompletions()
102 return mSuggestions; in getSuggestions()
106 mSuggestions.clear(); in clearSuggestions()
116 mSuggestions.add(domain); in createSuggestions()
DLeanbackKeyboardContainer.java396 private LinearLayout mSuggestions; field in LeanbackKeyboardContainer
575 mSuggestions = (LinearLayout) mSuggestionsContainer.findViewById(R.id.suggestions); in LeanbackKeyboardContainer()
972 final int count = mSuggestions.getChildCount(); in getBestFocus()
975 View suggestView = mSuggestions.getChildAt(i); in getBestFocus()
1247 if(index >= 0 && index < mSuggestions.getChildCount()){ in getSuggestionText()
1249 (Button) mSuggestions.getChildAt(index).findViewById(R.id.text); in getSuggestionText()
1281 offsetRect(mRect, mSuggestions); in getNextFocusInDirection()
1309 View suggestView = mSuggestions.getChildAt(index); in getNextFocusInDirection()
1380 mSuggestions.removeAllViews(); in clearSuggestions()
1388 final int oldCount = mSuggestions.getChildCount(); in updateSuggestions()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java65 public final String[] mSuggestions; field in AndroidWordLevelSpellCheckerSession.SuggestionsParams
68 mSuggestions = suggestions; in SuggestionsParams()
294 if (result.mSuggestions != null && result.mSuggestions.length > 0) { in onGetSuggestionsInternal()
296 for (String suggestion : result.mSuggestions) { in onGetSuggestionsInternal()
318 final SuggestionsInfo retval = new SuggestionsInfo(flags, result.mSuggestions); in onGetSuggestionsInternal()
319 mSuggestionsCache.putSuggestionsToCache(text, result.mSuggestions, flags); in onGetSuggestionsInternal()
330 public final String[] mSuggestions; field in AndroidWordLevelSpellCheckerSession.Result
333 mSuggestions = gatheredSuggestions; in Result()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardController.java50 final List<ContextualCard> mSuggestions; field in LegacySuggestionContextualCardController
61 mSuggestions = new ArrayList<>(); in LegacySuggestionContextualCardController()
97 mSuggestions.remove(card); in onDismissed()
164 mSuggestions.clear(); in loadSuggestions()
165 mSuggestions.addAll(cards); in loadSuggestions()
172 suggestionCards.put(ContextualCard.CardType.LEGACY_SUGGESTION, mSuggestions); in updateAdapter()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardControllerTest.java114 mController.mSuggestions.add(buildContextualCard("test1")); in onDismiss_shouldRemoveSuggestionFromList()
116 mController.mSuggestions.add(card2); in onDismiss_shouldRemoveSuggestionFromList()
117 assertThat(mController.mSuggestions).hasSize(2); in onDismiss_shouldRemoveSuggestionFromList()
121 assertThat(mController.mSuggestions).hasSize(1); in onDismiss_shouldRemoveSuggestionFromList()
128 mController.mSuggestions.add(card); in onDismiss_shouldCallUpdateAdapter()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/model/
DSuggestionListBuilder.java30 private Map<SuggestionCategory, List<Suggestion>> mSuggestions; field in SuggestionListBuilder
34 mSuggestions = new HashMap<>(); in SuggestionListBuilder()
41 mSuggestions.put(category, suggestions); in addSuggestions()
55 for (List<Suggestion> suggestionsInCategory : mSuggestions.values()) { in dedupeSuggestions()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSuggestClient.java164 private final JSONArray mSuggestions; field in GoogleSuggestClient.GoogleSuggestCursor
174 mSuggestions = suggestions; in GoogleSuggestCursor()
180 return mSuggestions.length(); in getCount()
186 return mSuggestions.getString(getPosition()); in getSuggestionQuery()
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorFragment.java280 private final List<AggregationSuggestionEngine.Suggestion> mSuggestions; field in ContactEditorFragment.AggregationSuggestionAdapter
286 mSuggestions = suggestions; in AggregationSuggestionAdapter()
307 return mSuggestions.get(position); in getItem()
312 return mSuggestions.size(); in getCount()