/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidSpellCheckerService.java | 216 public final String[] mSuggestions; field in AndroidSpellCheckerService.SuggestionsGatherer.Result 220 mSuggestions = gatheredSuggestions; in Result() 225 private final ArrayList<String> mSuggestions; field in AndroidSpellCheckerService.SuggestionsGatherer 242 mSuggestions = CollectionUtils.newArrayList(maxLength + 1); in SuggestionsGatherer() 281 mSuggestions.add(insertIndex, wordString); in addWord() 284 mSuggestions.add(insertIndex, wordString); in addWord() 285 mSuggestions.remove(0); in addWord() 312 if (mLength != mSuggestions.size()) { in getResults() 316 Log.i(TAG, "" + mScores[i] + " " + mSuggestions.get(i)); in getResults() 319 Collections.reverse(mSuggestions); in getResults() [all …]
|
D | AndroidWordLevelSpellCheckerSession.java | 57 public final String[] mSuggestions; field in AndroidWordLevelSpellCheckerSession.SuggestionsParams 60 mSuggestions = suggestions; in SuggestionsParams() 256 cachedSuggestionsParams.mFlags, cachedSuggestionsParams.mSuggestions); in onGetSuggestionsInternal() 329 if (null != result.mSuggestions) { in onGetSuggestionsInternal() 330 for (String suggestion : result.mSuggestions) { in onGetSuggestionsInternal() 343 final SuggestionsInfo retval = new SuggestionsInfo(flags, result.mSuggestions); in onGetSuggestionsInternal() 344 mSuggestionsCache.putSuggestionsToCache(text, prevWord, result.mSuggestions, flags); in onGetSuggestionsInternal()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | SuggestionsTest.java | 36 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 …]
|
D | WebPromoterTest.java | 51 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/ |
D | ListSuggestionCursor.java | 37 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 …]
|
D | SuggestionsProviderImpl.java | 169 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/ |
D | words_priority_queue.h | 47 : mSuggestions(), MAX_WORDS(maxWords), in WordsPriorityQueue() 62 sw = mSuggestions.top(); in push() 68 mSuggestions.pop(); in push() 83 mSuggestions.push(sw); in push() 90 if (mSuggestions.empty()) return 0; in top() 91 SuggestedWord *sw = mSuggestions.top(); in top() 96 return static_cast<int>(mSuggestions.size()); in size() 101 while (!mSuggestions.empty()) { in clear() 102 SuggestedWord *sw = mSuggestions.top(); in clear() 108 mSuggestions.pop(); in clear() [all …]
|
D | words_priority_queue.cpp | 24 const int size = min(MAX_WORDS, static_cast<int>(mSuggestions.size())); in outputSuggestions() 27 while (!mSuggestions.empty() && index >= 0) { in outputSuggestions() 28 SuggestedWord *sw = mSuggestions.top(); in outputSuggestions() 34 mSuggestions.pop(); in outputSuggestions()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | SuggestionsAdapterBase.java | 50 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/ |
D | GoogleSuggestClient.java | 165 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/ |
D | OpenSearchSearchEngine.java | 214 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/apps/Contacts/src/com/android/contacts/editor/ |
D | ContactEditorFragment.java | 271 private final List<Suggestion> mSuggestions; field in ContactEditorFragment.AggregationSuggestionAdapter 278 mSuggestions = suggestions; in AggregationSuggestionAdapter() 301 return mSuggestions.get(position); in getItem() 306 return mSuggestions.size(); in getCount()
|