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.kt29 private val mSuggestions: ArrayList<Entry> constant
53 mSuggestions.add(Entry(suggestion)) in add()
58 mSuggestions.clear() in close()
66 val size: Int = mSuggestions.size in moveToNext()
76 mSuggestions.removeAt(position) in removeRow()
80 mSuggestions.set(position, Entry(suggestion)) in replaceRow()
84 get() = mSuggestions.size
88 return mSuggestions.get(position).get() in current()
93 return this::class.simpleName.toString() + "{[" + userQuery + "] " + mSuggestions + "}" in toString()
122 get() = mSuggestions.get(position).getExtras()
[all …]
DSuggestionsProviderImpl.kt64 private inner class SuggestionCursorReceiver(private val mSuggestions: Suggestions) : constant in SuggestionCursorReceiver
81 mSuggestions.addResults(value) in consume()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DSuggestionsAdapterBase.kt37 private var mSuggestions: Suggestions? = null variable in com.android.quicksearchbox.ui.SuggestionsAdapterBase
63 get() = mSuggestions
65 if (mSuggestions === suggestions) {
76 if (mSuggestions != null) {
77 mSuggestions!!.unregisterDataSetObserver(mDataSetObserver)
78 mSuggestions!!.release()
80 mSuggestions = suggestions
81 if (mSuggestions != null) {
82 mSuggestions!!.registerDataSetObserver(mDataSetObserver)
140 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/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/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/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/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/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSuggestClient.kt158 private val mSuggestions: JSONArray constant
167 get() = mSuggestions.length()
173 mSuggestions.getString(position)
190 mSuggestions = suggestions
/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()