/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | NgramContext.java | 60 public final CharSequence mWord; field in NgramContext.WordInfo 68 mWord = ""; in WordInfo() 73 mWord = word; in WordInfo() 78 return mWord != null; in isValid() 83 return Arrays.hashCode(new Object[] { mWord, mIsBeginningOfSentence } ); in hashCode() 91 if (mWord == null || wordInfo.mWord == null) { in equals() 92 return mWord == wordInfo.mWord in equals() 95 return TextUtils.equals(mWord, wordInfo.mWord) in equals() 148 final String term = wordInfo.mWord.toString(); in extractPrevWordsContext() 171 final String term = wordInfo.mWord.toString(); in extractPrevWordsContextArray() [all …]
|
D | SuggestedWords.java | 127 return mSuggestedWordInfoList.get(index).mWord; in getWord() 139 return mSuggestedWordInfoList.get(index).mWord; in getLabel() 218 alreadySeen.add(typedWordInfo.mWord); in getTypedWordAndPreviousSuggestions() 222 final String prevWord = prevWordInfo.mWord; in getTypedWordAndPreviousSuggestions() 264 public final String mWord; field in SuggestedWords.SuggestedWordInfo 298 mWord = word; in SuggestedWordInfo() 304 mCodePointCount = StringUtils.codePointCount(mWord); in SuggestedWordInfo() 315 mWord = applicationSpecifiedCompletion.getText().toString(); in SuggestedWordInfo() 321 mCodePointCount = StringUtils.codePointCount(mWord); in SuggestedWordInfo() 364 return mWord; in getWord() [all …]
|
D | Suggest.java | 177 if (!foundInDictionary && typedWordString.equals(info.mWord)) { in getSuggestedWordsForNonBatchInput() 191 ? null : whitelistedWordInfo.mWord; in getSuggestedWordsForNonBatchInput() 317 && TextUtils.equals(suggestionsContainer.get(0).mWord, in getSuggestedWordsForBatchInput() 406 return info.mWord.length() <= maximumLengthForThisLanguage in isAllowedByAutoCorrectionWithSpaceFilter() 407 || -1 == info.mWord.indexOf(Constants.CODE_SPACE); in isAllowedByAutoCorrectionWithSpaceFilter() 413 final StringBuilder sb = new StringBuilder(wordInfo.mWord.length()); in getTransformedSuggestedWordInfo() 415 sb.append(wordInfo.mWord.toUpperCase(locale)); in getTransformedSuggestedWordInfo() 417 sb.append(StringUtils.capitalizeFirstCodePoint(wordInfo.mWord, locale)); in getTransformedSuggestedWordInfo() 419 sb.append(wordInfo.mWord); in getTransformedSuggestedWordInfo() 425 - (-1 == wordInfo.mWord.indexOf(Constants.CODE_SINGLE_QUOTE) ? 0 : 1); in getTransformedSuggestedWordInfo()
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | Diff.java | 112 word0Property.mWord); in diffWords() 115 System.out.println("Deleted: " + word0Property.mWord + " " in diffWords() 121 System.out.println("Probability changed: " + word0Property.mWord + " " in diffWords() 127 System.out.println("Not a word: " + word0Property.mWord + " " in diffWords() 132 System.out.println("Possibly-offensive: " + word0Property.mWord + " " in diffWords() 137 hasDifferences |= hasAttributesDifferencesAndPrintThemIfAny(word0Property.mWord, in diffWords() 143 word1Property.mWord); in diffWords() 146 System.out.println("Added: " + word1Property.mWord + " " in diffWords() 162 System.out.println(type + " removed: " + word + " " + attribute0.mWord + " " in hasAttributesDifferencesAndPrintThemIfAny() 177 if (attribute0.mWord.equals(attribute1.mWord)) { in hasAttributesDifferencesAndPrintThemIfAny() [all …]
|
D | CombinedInputOutput.java | 111 dict.setBigram(word, s.mWord, s.mProbabilityInfo); in readDictionaryCombined() 185 dict.setBigram(word, s.mWord, s.mProbabilityInfo); in readDictionaryCombined()
|
D | Info.java | 78 " Bigram: " + bigram.mWord + " (" + bigram.getProbability() + ")"); in showWordInfo()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
D | WordProperty.java | 38 public final String mWord; field in WordProperty 54 mWord = word; in WordProperty() 60 final NgramContext ngramContext = new NgramContext(new WordInfo(mWord)); in WordProperty() 87 mWord = StringUtils.getStringFromNullTerminatedCodePointArray(codePoints); in WordProperty() 138 word.mWord, in computeHashCode() 156 return mWord.compareTo(w.mWord); in compareTo() 171 && mWord.equals(w.mWord) && equals(mNgrams, w.mNgrams) in equals()
|
D | WeightedString.java | 29 public final String mWord; field in WeightedString 37 mWord = word; in WeightedString() 52 return Arrays.hashCode(new Object[] { mWord, mProbabilityInfo}); in hashCode() 60 return mWord.equals(w.mWord) && mProbabilityInfo.equals(w.mProbabilityInfo); in equals()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | SuggestedWordsTests.java | 122 assertEquals(result.mWord, "word"); in testGetTransformedSuggestedWordInfo() 124 assertEquals(result.mWord, "word'"); in testGetTransformedSuggestedWordInfo() 126 assertEquals(result.mWord, "word'''"); in testGetTransformedSuggestedWordInfo() 128 assertEquals(result.mWord, "didn't"); in testGetTransformedSuggestedWordInfo() 130 assertEquals(result.mWord, "didn't"); in testGetTransformedSuggestedWordInfo() 132 assertEquals(result.mWord, "didn't''"); in testGetTransformedSuggestedWordInfo() 157 assertEquals(TYPED_WORD, typedWord.mWord); in testGetTypedWordInfoOrNull()
|
D | RichInputConnectionAndTextRangeTests.java | 259 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor() 266 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor() 274 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor() 282 assertTrue(TextUtils.equals("word", r.mWord)); in testGetWordRangeAtCursor() 290 assertTrue(TextUtils.equals(GREEK_WORD, r.mWord)); in testGetWordRangeAtCursor()
|
D | BinaryDictionaryTests.java | 748 assertEquals(word, wordProperty.mWord); in testGetWordProperties() 790 final String word1 = bigramTarget.mWord; in testGetWordProperties() 860 final String word0 = wordProperty.mWord; in testIterateAllWords() 868 final String word1 = bigramTarget.mWord; in testIterateAllWords()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | Ver4DictEncoder.java | 77 if (!binaryDict.addUnigramEntry(wordProperty.mWord, wordProperty.getProbability(), in writeDictionary() 80 MakedictLog.e("Cannot add unigram entry for " + wordProperty.mWord); in writeDictionary() 94 new NgramContext(new NgramContext.WordInfo(word0Property.mWord)); in writeDictionary() 95 if (!binaryDict.addNgramEntry(ngramContext, word1.mWord, in writeDictionary() 98 + ngramContext + " -> " + word1.mWord); in writeDictionary()
|
D | Ver4DictDecoder.java | 86 fusionDict.add(wordProperty.mWord, wordProperty.mProbabilityInfo, in readDictionaryBinary() 96 final String word0 = wordProperty.mWord; in readDictionaryBinary() 98 fusionDict.setBigram(word0, bigram.mWord, bigram.mProbabilityInfo); in readDictionaryBinary()
|
D | Ver2DictEncoder.java | 86 final String wordString = word.mWord; in makeCodePointTable() 256 FusionDictionary.findWordInTree(dict.mRootNodeArray, bigram.mWord); in writeBigrams() 262 offset, bigram.getProbability(), unigramFrequencyForThisWord, bigram.mWord); in writeBigrams()
|
D | BinaryDictDecoderEncoderTests.java | 504 address).mWord; 621 assertEquals(word, wordProperty.mWord); 661 final String word0 = wordProperty.mWord; 666 final String word1 = bigramTarget.mWord;
|
D | FusionDictionary.java | 191 if (bigram.mWord.equals(word)) { in getBigram() 215 final WeightedString existingBigram = getBigram(bigram.mWord); in update()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | TextRange.java | 33 public final CharSequence mWord; field in TextRange 45 return mWord.length(); in length() 54 if (!(mTextAtCursor instanceof Spanned && mWord instanceof Spanned)) { in getSuggestionSpansAtWord() 120 mWord = mTextAtCursor.subSequence(mWordAtCursorStartIndex, mWordAtCursorEndIndex); in TextRange()
|
D | SuggestionResults.java | 83 return o1.mWord.compareTo(o2.mWord); in compare()
|
D | CombinedFormatUtils.java | 59 builder.append(" " + WORD_TAG + "=" + wordProperty.mWord); in formatWordProperty() 74 builder.append(" " + NGRAM_TAG + "=" + ngramProperty.mTargetWord.mWord); in formatWordProperty()
|
D | AutoCorrectionUtils.java | 47 consideredWord, suggestion.mWord, autoCorrectionSuggestionScore); in suggestionExceedsThreshold()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
D | Event.java | 203 return new Event(EVENT_TYPE_SUGGESTION_PICKED, suggestedWordInfo.mWord, in createSuggestionPickedEvent() 231 final int primaryCode = suggestedWordInfo.mWord.charAt(0); in createPunctuationSuggestionPickedEvent() 232 return new Event(EVENT_TYPE_SUGGESTION_PICKED, suggestedWordInfo.mWord, primaryCode, in createPunctuationSuggestionPickedEvent()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/compat/ |
D | SuggestionSpanUtilsTest.java | 172 final String PICKED_WORD = prediction2.mWord; in testGetTextWithSuggestionSpan() 197 final String PICKED_WORD = pickedWord.mWord; in testGetTextWithSuggestionSpan() 208 final String suggestedWord = suggestedWordInfo.mWord; in testGetTextWithSuggestionSpan()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/ |
D | AndroidWordLevelSpellCheckerSession.java | 349 suggestion = suggestedWordInfo.mWord.toUpperCase(locale); in getResult() 352 suggestedWordInfo.mWord, locale); in getResult() 354 suggestion = suggestedWordInfo.mWord; in getResult()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
D | InputLogic.java | 277 final String suggestion = suggestionInfo.mWord; in onPickSuggestionManually() 338 suggestionInfo.mWord, mWordComposer.isBatchMode()); in onPickSuggestionManually() 1200 return range.mWord.toString(); in getWordAtCursor() 1563 final String typedWordString = range.mWord.toString(); in restartSuggestionsOnWordTouchedByCursor() 2112 ? autoCorrectionOrNull.mWord : typedWord; in commitCurrentAutoCorrection()
|
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/ |
D | FusionDictionaryTest.java | 92 System.out.println("Word " + dumpWord(wordProperty.mWord)); in dumpDict()
|