Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DSuggestedWordsTests.java26 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
45 private static SuggestedWordInfo createTypedWordInfo(final String word) { in createTypedWordInfo()
48 return new SuggestedWordInfo(word, "" /* prevWordsContext */, 100 /* score */, in createTypedWordInfo()
49 SuggestedWordInfo.KIND_TYPED, in createTypedWordInfo()
51 SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */, in createTypedWordInfo()
62 private static SuggestedWordInfo createCorrectionWordInfo(final String word) { in createCorrectionWordInfo()
63 return new SuggestedWordInfo(word, "" /* prevWordsContext */, 1 /* score */, in createCorrectionWordInfo()
64 SuggestedWordInfo.KIND_CORRECTION, in createCorrectionWordInfo()
66 SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */, in createCorrectionWordInfo()
67 SuggestedWordInfo.NOT_A_CONFIDENCE /* autoCommitFirstWordConfidence */); in createCorrectionWordInfo()
[all …]
DInputTestsBase.java44 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
414 mLatinIME.pickSuggestionManually(new SuggestedWordInfo(suggestion, in pickSuggestionManually()
416 SuggestedWordInfo.KIND_CORRECTION, DICTIONARY_TEST, in pickSuggestionManually()
417 SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */, in pickSuggestionManually()
418 SuggestedWordInfo.NOT_A_CONFIDENCE /* autoCommitFirstWordConfidence */)); in pickSuggestionManually()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSuggestedWords.java50 private static final ArrayList<SuggestedWordInfo> EMPTY_WORD_INFO_LIST = new ArrayList<>(0);
58 public final SuggestedWordInfo mTypedWordInfo;
70 protected final ArrayList<SuggestedWordInfo> mSuggestedWordInfoList;
72 public final ArrayList<SuggestedWordInfo> mRawSuggestions;
74 public SuggestedWords(@Nonnull final ArrayList<SuggestedWordInfo> suggestedWordInfoList, in SuggestedWords()
75 @Nullable final ArrayList<SuggestedWordInfo> rawSuggestions, in SuggestedWords()
76 @Nullable final SuggestedWordInfo typedWordInfo, in SuggestedWords()
117 public SuggestedWordInfo getTypedWordInfo() { in getTypedWordInfo()
147 public SuggestedWordInfo getInfo(final int index) { in getInfo()
156 public int indexOf(SuggestedWordInfo suggestedWordInfo) { in indexOf()
[all …]
DSuggest.java25 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
113 private static ArrayList<SuggestedWordInfo> getTransformedSuggestedWordInfoList( in getTransformedSuggestedWordInfoList()
121 final ArrayList<SuggestedWordInfo> suggestionsContainer = new ArrayList<>(results); in getTransformedSuggestedWordInfoList()
126 final SuggestedWordInfo wordInfo = suggestionsContainer.get(i); in getTransformedSuggestedWordInfoList()
128 final SuggestedWordInfo transformedWordInfo = getTransformedSuggestedWordInfo( in getTransformedSuggestedWordInfoList()
138 private static SuggestedWordInfo getWhitelistedWordInfoOrNull( in getWhitelistedWordInfoOrNull()
139 @Nonnull final ArrayList<SuggestedWordInfo> suggestions) { in getWhitelistedWordInfoOrNull()
143 final SuggestedWordInfo firstSuggestedWordInfo = suggestions.get(0); in getWhitelistedWordInfoOrNull()
144 if (!firstSuggestedWordInfo.isKindOf(SuggestedWordInfo.KIND_WHITELIST)) { in getWhitelistedWordInfoOrNull()
168 final ArrayList<SuggestedWordInfo> suggestionsContainer = in getSuggestedWordsForNonBatchInput()
[all …]
DPunctuationSuggestions.java35 private PunctuationSuggestions(final ArrayList<SuggestedWordInfo> punctuationsList) { in PunctuationSuggestions()
56 return new PunctuationSuggestions(new ArrayList<SuggestedWordInfo>(0)); in newPunctuationSuggestions()
58 final ArrayList<SuggestedWordInfo> punctuationList = in newPunctuationSuggestions()
97 public SuggestedWordInfo getInfo(final int index) { in getInfo()
116 private static SuggestedWordInfo newHardCodedWordInfo(final String keySpec) { in newHardCodedWordInfo()
117 return new SuggestedWordInfo(keySpec, "" /* prevWordsContext */, in newHardCodedWordInfo()
118 SuggestedWordInfo.MAX_SCORE, in newHardCodedWordInfo()
119 SuggestedWordInfo.KIND_HARDCODED, in newHardCodedWordInfo()
121 SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */, in newHardCodedWordInfo()
122 SuggestedWordInfo.NOT_A_CONFIDENCE /* autoCommitFirstWordConfidence */); in newHardCodedWordInfo()
DDictionary.java20 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
99 abstract public ArrayList<SuggestedWordInfo> getSuggestions(final ComposedData composedData, in getSuggestions()
176 public boolean shouldAutoCommit(final SuggestedWordInfo candidate) { in shouldAutoCommit()
203 public ArrayList<SuggestedWordInfo> getSuggestions(final ComposedData composedData, in getSuggestions()
DDictionaryCollection.java21 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
62 public ArrayList<SuggestedWordInfo> getSuggestions(final ComposedData composedData, in getSuggestions()
71 ArrayList<SuggestedWordInfo> suggestions = dictionaries.get(0).getSuggestions(composedData, in getSuggestions()
77 final ArrayList<SuggestedWordInfo> sugg = dictionaries.get(i).getSuggestions( in getSuggestions()
DReadOnlyBinaryDictionary.java19 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
53 public ArrayList<SuggestedWordInfo> getSuggestions(final ComposedData composedData, in getSuggestions()
83 public boolean shouldAutoCommit(final SuggestedWordInfo candidate) { in shouldAutoCommit()
DWordComposer.java22 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
57 private SuggestedWordInfo mAutoCorrection;
398 public void setAutoCorrection(final SuggestedWordInfo autoCorrection) { in setAutoCorrection()
405 public SuggestedWordInfo getAutoCorrectionOrNull() { in getAutoCorrectionOrNull()
DBinaryDictionary.java24 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
268 public ArrayList<SuggestedWordInfo> getSuggestions(final ComposedData composedData, in getSuggestions()
321 final ArrayList<SuggestedWordInfo> suggestions = new ArrayList<>(); in getSuggestions()
330 suggestions.add(new SuggestedWordInfo( in getSuggestions()
634 public boolean shouldAutoCommit(final SuggestedWordInfo candidate) { in shouldAutoCommit()
DExpandableBinaryDictionary.java23 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
429 public ArrayList<SuggestedWordInfo> getSuggestions(final ComposedData composedData, in getSuggestions()
442 final ArrayList<SuggestedWordInfo> suggestions = in getSuggestions()
DDictionaryFacilitatorImpl.java28 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
632 final ArrayList<SuggestedWordInfo> dictionarySuggestions = in getSuggestionResults()
DLatinIME.java78 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
1197 final ArrayList<SuggestedWords.SuggestedWordInfo> applicationSuggestedWords = in onDisplayCompletions()
1628 public void pickSuggestionManually(final SuggestedWordInfo suggestionInfo) { in pickSuggestionManually()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/
DSuggestionSpanUtilsTest.java34 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
60 private static SuggestedWordInfo createWordInfo(final String word, final int kindAndFlags) { in createWordInfo()
61 return new SuggestedWordInfo(word, "" /* prevWordsContext */, 1 /* score */, kindAndFlags, in createWordInfo()
63 SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */, in createWordInfo()
64 SuggestedWordInfo.NOT_A_CONFIDENCE /* autoCommitFirstWordConfidence */); in createWordInfo()
142 final SuggestedWordInfo prediction1 = in testGetTextWithSuggestionSpan()
143 createWordInfo("Quality", SuggestedWordInfo.KIND_PREDICTION); in testGetTextWithSuggestionSpan()
144 final SuggestedWordInfo prediction2 = in testGetTextWithSuggestionSpan()
145 createWordInfo("Speed", SuggestedWordInfo.KIND_PREDICTION); in testGetTextWithSuggestionSpan()
146 final SuggestedWordInfo prediction3 = in testGetTextWithSuggestionSpan()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSuggestionResults.java19 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
31 public final class SuggestionResults extends TreeSet<SuggestedWordInfo> {
32 public final ArrayList<SuggestedWordInfo> mRawSuggestions;
45 private SuggestionResults(final Comparator<SuggestedWordInfo> comparator, final int capacity, in SuggestionResults()
60 public boolean add(final SuggestedWordInfo e) { in add()
69 public boolean addAll(final Collection<? extends SuggestedWordInfo> e) { in addAll()
74 static final class SuggestedWordInfoComparator implements Comparator<SuggestedWordInfo> {
78 public int compare(final SuggestedWordInfo o1, final SuggestedWordInfo o2) { in compare()
DAutoCorrectionUtils.java21 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
32 public static boolean suggestionExceedsThreshold(final SuggestedWordInfo suggestion, in suggestionExceedsThreshold()
36 if (suggestion.isKindOf(SuggestedWordInfo.KIND_WHITELIST)) { in suggestionExceedsThreshold()
DStatsUtils.java40 final SuggestedWords.SuggestedWordInfo suggestionInfo, in onPickSuggestionManually()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
DInputLogic.java46 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
274 final SuggestedWordInfo suggestionInfo, final int keyboardShiftState, in onPickSuggestionManually()
312 if (suggestionInfo.isKindOf(SuggestedWordInfo.KIND_APP_DEFINED)) { in onPickSuggestionManually()
580 final SuggestedWordInfo suggestedWordInfo; in setSuggestedWords()
1475 final SuggestedWordInfo typedWordInfo = new SuggestedWordInfo( in performUpdateSuggestionStripSync()
1477 SuggestedWordInfo.MAX_SCORE, in performUpdateSuggestionStripSync()
1478 SuggestedWordInfo.KIND_TYPED, Dictionary.DICTIONARY_USER_TYPED, in performUpdateSuggestionStripSync()
1479 SuggestedWordInfo.NOT_AN_INDEX /* indexOfTouchPointOfSecondWord */, in performUpdateSuggestionStripSync()
1480 SuggestedWordInfo.NOT_A_CONFIDENCE); in performUpdateSuggestionStripSync()
1562 final ArrayList<SuggestedWordInfo> suggestions = new ArrayList<>(); in restartSuggestionsOnWordTouchedByCursor()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/
DEvent.java20 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
108 final public SuggestedWordInfo mSuggestedWordInfo;
115 final int x, final int y, final SuggestedWordInfo suggestedWordInfo, final int flags, in Event()
202 public static Event createSuggestionPickedEvent(final SuggestedWordInfo suggestedWordInfo) { in createSuggestionPickedEvent()
230 final SuggestedWordInfo suggestedWordInfo) { in createPunctuationSuggestionPickedEvent()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/
DSuggestionSpanUtils.java28 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
86 final SuggestedWordInfo info = suggestedWords.getInfo(i); in getTextWithSuggestionSpan()
87 if (info.isKindOf(SuggestedWordInfo.KIND_PREDICTION)) { in getTextWithSuggestionSpan()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DSuggestionStripView.java48 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
62 public void pickSuggestionManually(SuggestedWordInfo word); in pickSuggestionManually()
256 public void onSuggestionSelected(final SuggestedWordInfo wordInfo) {
469 final SuggestedWordInfo wordInfo = mSuggestedWords.getInfo(index); in onClick()
DMoreSuggestionsView.java29 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
40 public abstract void onSuggestionSelected(final SuggestedWordInfo info); in onSuggestionSelected()
DSuggestionStripLayoutHelper.java51 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
307 SuggestedWordInfo.KIND_TYPED); in getSuggestionTextColor()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java33 import com.android.inputmethod.latin.SuggestedWords.SuggestedWordInfo;
346 for (final SuggestedWordInfo suggestedWordInfo : suggestionResults) { in getResult()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DAccessibilityUtils.java159 final SuggestedWords.SuggestedWordInfo typedWordInfo = suggestedWords.mTypedWordInfo; in setAutoCorrection()