Home
last modified time | relevance | path

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

/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DSuggestionsTest.java36 private Suggestions mSuggestions; field in SuggestionsTest
43 mSuggestions = new Suggestions("foo", mExpectedCorpora); in setUp()
45 mSuggestions.registerDataSetObserver(mObserver); in setUp()
50 mSuggestions.release(); in tearDown()
51 mSuggestions = null; in tearDown()
55 assertEquals(mExpectedCorpora.size(), mSuggestions.getExpectedResultCount()); in testGetExpectedResultCount()
59 List<Corpus> expectedCorpora = mSuggestions.getExpectedCorpora(); in testGetExpectedCorpora()
68 assertTrue(mSuggestions.expectsCorpus(mExpectedCorpora.get(i))); in testExpectsCorpus()
70 assertFalse(mSuggestions.expectsCorpus(MockCorpus.CORPUS_2)); in testExpectsCorpus()
74 assertEquals("foo", mSuggestions.getQuery()); in testGetUserQuery()
[all …]
DWebPromoterTest.java51 private Suggestions mSuggestions; field in WebPromoterTest
70 mSuggestions = new Suggestions(mQuery, in setUp()
72 mSuggestions.setShortcuts(new ShortcutCursor(mShortcuts)); in setUp()
73 mSuggestions.addCorpusResults(mCorpusResults); in setUp()
77 SuggestionCursor promoted = promote(mSuggestions, 0, 1); in testZeroShortcuts()
85 SuggestionCursor promoted = promote(mSuggestions, 1, 1); in testZeroSuggestions()
93 SuggestionCursor promoted = promote(mSuggestions, 1, 2); in testOnlyWebPromoted()
/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.java169 private final Suggestions mSuggestions; field in SuggestionsProviderImpl.SuggestionCursorReceiver
185 mSuggestions = suggestions; in SuggestionCursorReceiver()
199 && !mSuggestions.isClosed() in consume()
200 && mSuggestions.getResultCount() + mPendingResults.size() in consume()
212 if (!mSuggestions.isClosed()) { in consume()
222 mSuggestions.addCorpusResults(mPendingResults); in publishPendingResults()
227 if (mSuggestions.getResultCount() == mCountAtWhichToExecuteNextBatch) { in executeNextBatchIfNeeded()
/packages/inputmethods/LatinIME/native/jni/src/
Dwords_priority_queue.h48 : mSuggestions(), MAX_WORDS(static_cast<unsigned int>(maxWords)), in WordsPriorityQueue()
62 if (mSuggestions.size() >= MAX_WORDS) { in push()
63 sw = mSuggestions.top(); in push()
69 mSuggestions.pop(); in push()
85 mSuggestions.push(sw); in push()
92 if (mSuggestions.empty()) return 0; in top()
93 SuggestedWord *sw = mSuggestions.top(); in top()
101 MAX_WORDS, static_cast<unsigned int>(mSuggestions.size())); in outputSuggestions()
104 while (!mSuggestions.empty() && index >= 0) { in outputSuggestions()
105 SuggestedWord *sw = mSuggestions.top(); in outputSuggestions()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidSpellCheckerService.java206 public final String[] mSuggestions; field in AndroidSpellCheckerService.SuggestionsGatherer.Result
210 mSuggestions = gatheredSuggestions; in Result()
215 private final ArrayList<CharSequence> mSuggestions; field in AndroidSpellCheckerService.SuggestionsGatherer
234 mSuggestions = CollectionUtils.newArrayList(maxLength + 1); in SuggestionsGatherer()
282 mSuggestions.add(insertIndex, wordString); in addWord()
285 mSuggestions.add(insertIndex, wordString); in addWord()
286 mSuggestions.remove(0); in addWord()
311 if (mLength != mSuggestions.size()) { in getResults()
315 Log.i(TAG, "" + mScores[i] + " " + mSuggestions.get(i)); in getResults()
318 Collections.reverse(mSuggestions); in getResults()
[all …]
DAndroidWordLevelSpellCheckerSession.java54 public final String[] mSuggestions; field in AndroidWordLevelSpellCheckerSession.SuggestionsParams
57 mSuggestions = suggestions; in SuggestionsParams()
214 cachedSuggestionsParams.mFlags, cachedSuggestionsParams.mSuggestions); in onGetSuggestions()
299 if (null != result.mSuggestions) { in onGetSuggestions()
300 for (String suggestion : result.mSuggestions) { in onGetSuggestions()
313 final SuggestionsInfo retval = new SuggestionsInfo(flags, result.mSuggestions); in onGetSuggestions()
314 mSuggestionsCache.putSuggestionsToCache(text, prevWord, result.mSuggestions, flags); in onGetSuggestions()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DSuggestionsAdapterBase.java50 private Suggestions mSuggestions; field in SuggestionsAdapterBase
103 if (mSuggestions == suggestions) { in setSuggestions()
116 if (mSuggestions != null) { in setSuggestions()
117 mSuggestions.unregisterDataSetObserver(mDataSetObserver); in setSuggestions()
118 mSuggestions.release(); in setSuggestions()
120 mSuggestions = suggestions; in setSuggestions()
121 if (mSuggestions != null) { in setSuggestions()
122 mSuggestions.registerDataSetObserver(mDataSetObserver); in setSuggestions()
128 return mSuggestions; in getSuggestions()
184 if (DBG) Log.d(TAG, "onSuggestionsChanged(" + mSuggestions + ")"); in onSuggestionsChanged()
[all …]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSuggestClient.java165 private final JSONArray mSuggestions; field in GoogleSuggestClient.GoogleSuggestCursor
175 mSuggestions = suggestions; in GoogleSuggestCursor()
181 return mSuggestions.length(); in getCount()
187 return mSuggestions.getString(getPosition()); in getSuggestionQuery()
/packages/apps/Browser/src/com/android/browser/search/
DOpenSearchSearchEngine.java214 private final JSONArray mSuggestions; field in OpenSearchSearchEngine.SuggestionsCursor
219 mSuggestions = suggestions; in SuggestionsCursor()
225 return mSuggestions.length(); in getCount()
238 return mSuggestions.getString(mPos); in getString()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DMoreSuggestions.java169 private SuggestedWords mSuggestions; field in MoreSuggestions.Builder
190 mSuggestions = suggestions; in layout()
201 final String word = mSuggestions.getWord(pos).toString(); in build()
202 final String info = Utils.getDebugInfo(mSuggestions, pos); in build()
/packages/apps/Contacts/src/com/android/contacts/editor/
DContactEditorFragment.java248 private final List<Suggestion> mSuggestions; field in ContactEditorFragment.AggregationSuggestionAdapter
255 mSuggestions = suggestions; in AggregationSuggestionAdapter()
278 return mSuggestions.get(position); in getItem()
283 return mSuggestions.size(); in getCount()