Home
last modified time | relevance | path

Searched refs:mWord (Results 1 – 20 of 20) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DWord.java30 public final String mWord; field in Word
43 mWord = word; in Word()
53 word.mWord, in computeHashCode()
72 return mWord.compareTo(w.mWord); in compareTo()
86 return mFrequency == w.mFrequency && mWord.equals(w.mWord) in equals()
DFusionDictionary.java63 public final String mWord; field in FusionDictionary.WeightedString
66 mWord = word; in WeightedString()
72 return Arrays.hashCode(new Object[] { mWord, mFrequency }); in hashCode()
80 return mWord.equals(w.mWord) && mFrequency == w.mFrequency; in equals()
176 if (shortcut.mWord.equals(word)) { in getShortcut()
194 if (bigram.mWord.equals(word)) { in getBigram()
220 final WeightedString existingShortcut = getShortcut(shortcut.mWord); in update()
236 final WeightedString existingBigram = getBigram(bigram.mWord); in update()
DBinaryDictInputOutput.java325 final String word = shortcut.mWord; in getShortcutSize()
556 final int addressOfBigram = findAddressOfWord(dict, bigram.mWord); in computeActualNodeSize()
972 final int shortcutShift = CharEncoding.writeString(buffer, index, target.mWord); in writePlacedNode()
989 FusionDictionary.findWordInTree(dict.mRoot, bigram.mWord); in writePlacedNode()
995 bigram.mFrequency, unigramFrequencyForThisWord, bigram.mWord); in writePlacedNode()
1639 newDict.addBlacklistEntry(w.mWord, w.mShortcutTargets, w.mIsNotAWord); in readDictionaryBinary()
1641 newDict.add(w.mWord, w.mFrequency, w.mShortcutTargets, w.mIsNotAWord); in readDictionaryBinary()
1649 newDict.setBigram(w.mWord, bigram.mWord, bigram.mFrequency); in readDictionaryBinary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSuggestedWords.java61 return mSuggestedWordInfoList.get(pos).mWord; in getWord()
110 final String prevWord = prevWordInfo.mWord.toString(); in getTypedWordAndPreviousSuggestions()
131 public final String mWord; field in SuggestedWords.SuggestedWordInfo
140 mWord = word.toString(); in SuggestedWordInfo()
144 mCodePointCount = StringUtils.codePointCount(mWord); in SuggestedWordInfo()
162 return mWord.codePointAt(i); in codePointAt()
168 return mWord; in toString()
170 return mWord + " (" + mDebugString.toString() + ")"; in toString()
184 if (cur.mWord.equals(previous.mWord)) { in removeDups()
DSuggest.java212 whitelistedWord = suggestionsSet.first().mWord; in getSuggestedWordsForTypingInput()
261 LatinImeLogger.onAddSuggestedWord(wordInfo.mWord.toString(), wordInfo.mSourceDict); in getSuggestedWordsForTypingInput()
310 LatinImeLogger.onAddSuggestedWord(wordInfo.mWord.toString(), wordInfo.mSourceDict); in getSuggestedWordsForBatchInput()
375 return o1.mWord.toString().compareTo(o2.mWord.toString()); in compare()
384 final StringBuilder sb = new StringBuilder(wordInfo.mWord.length()); in getTransformedSuggestedWordInfo()
386 sb.append(wordInfo.mWord.toString().toUpperCase(locale)); in getTransformedSuggestedWordInfo()
388 sb.append(StringUtils.toTitleCase(wordInfo.mWord.toString(), locale)); in getTransformedSuggestedWordInfo()
390 sb.append(wordInfo.mWord); in getTransformedSuggestedWordInfo()
DAutoCorrection.java92 consideredWord.toString(), suggestion.mWord.toString(), in suggestionExceedsAutoCorrectionThreshold()
104 suggestion.mWord); in suggestionExceedsAutoCorrectionThreshold()
DExpandableDictionary.java92 public final Node mWord; field in ExpandableDictionary.NextStaticWord
95 mWord = word; in NextStaticWord()
101 return mWord; in getWordNode()
121 public final Node mWord; field in ExpandableDictionary.NextHistoryWord
125 mWord = word; in NextHistoryWord()
131 return mWord; in getWordNode()
DRichInputConnection.java456 public final String mWord; field in RichInputConnection.Range
464 this.mWord = word; in Range()
512 return (r == null) ? null : r.mWord; in getWordAtCursor()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DRichInputConnectionTests.java142 assertEquals("word", r.mWord); in testGetWordRangeAtCursor()
146 assertEquals("word word", r.mWord); in testGetWordRangeAtCursor()
154 assertEquals("word\tword", r.mWord); in testGetWordRangeAtCursor()
161 assertEquals("word\tword", r.mWord); in testGetWordRangeAtCursor()
168 assertEquals("word\tword", r.mWord); in testGetWordRangeAtCursor()
175 assertEquals("one word\tword", r.mWord); in testGetWordRangeAtCursor()
184 assertEquals("word", r.mWord); in testGetWordRangeAtCursor()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/
DLogUnit.java41 private String mWord; field in LogUnit
61 mWord = word; in setWord()
65 return mWord; in getWord()
69 return mWord != null; in hasWord()
DResearchLogger.java964 word = range.mWord; in latinIME_onUpdateSelection()
/packages/inputmethods/LatinIME/tools/dicttool/src/android/inputmethod/latin/dicttool/
DXmlDictInputOutput.java76 String mWord; // the current word field in XmlDictInputOutput.UnigramHandler
87 mWord = ""; in UnigramHandler()
100 mWord = ""; in getFinalDictionary()
110 mWord = ""; in startElement()
141 mWord += String.copyValueOf(ch, start, length); in characters()
148 mDictionary.add(mWord, mFreq, mShortcutsMap.get(mWord), false /* isNotAWord */); in endElement()
299 if (!dict.hasWord(bigram.mWord)) continue; in readDictionaryXml()
300 dict.setBigram(firstWord, bigram.mWord, bigram.mFrequency); in readDictionaryXml()
348 destination.write(" <" + WORD_TAG + " " + WORD_ATTR + "=\"" + word.mWord + "\" " in writeDictionaryXml()
355 + target.mFrequency + "\">" + target.mWord + "</" + SHORTCUT_TAG in writeDictionaryXml()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/
Dwords_priority_queue.h33 unsigned short mWord[MAX_WORD_LENGTH_INTERNAL]; variable
41 memcpy(mWord, word, sizeof(unsigned short) * wordLength); in setParams()
108 DUMP_WORD(sw->mWord, sw->mWordLength); in outputSuggestions()
145 memcpy(targetAddress, sw->mWord, wordLength * sizeof(unsigned short)); in outputSuggestions()
164 DUMP_WORD(sw->mWord, sw->mWordLength); in clear()
175 DUMP_WORD(mHighestSuggestedWord->mWord, mHighestSuggestedWord->mWordLength); in dumpTopWord()
209 unsigned short *word = sw->mWord; in getNormalizedScore()
Dcorrection.cpp161 return mProximityInfoState.sameAsTyped(mWord, mOutputIndex); in sameAsTyped()
184 *word = mWord; in getFinalProbabilityInternal()
277 mWord[mOutputIndex] = c; in addCharToCurrentWord()
280 mWord, mOutputIndex + 1); in addCharToCurrentWord()
399 DUMP_WORD(mWord, mOutputIndex); in processCharAndCalcState()
425 mInputIndex, mWord[mOutputIndex - 1], false))) { in processCharAndCalcState()
430 AKLOGI("CONVERSION p->e %c", mWord[mOutputIndex - 1]); in processCharAndCalcState()
461 mInputIndex, mWord[mOutputIndex - 1], false)) in processCharAndCalcState()
520 DUMP_WORD(mWord, mOutputIndex); in processCharAndCalcState()
557 DUMP_WORD(mWord, mOutputIndex); in processCharAndCalcState()
[all …]
Dcorrection.h52 memset(mWord, 0, sizeof(mWord)); in Correction()
244 unsigned short mWord[MAX_WORD_LENGTH_INTERNAL]; variable
Dunigram_dictionary.cpp291 const unsigned short *word = sw->mWord; in getWordSuggestions()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DCandidatesViewManager.java74 protected WnnWord mWord; field in CandidatesViewManager
DTextCandidates1LineViewManager.java187 mWord = mWnnWordArray.get(wordcount);
189 displayDialog(v, mWord);
314 selectCandidate(mWord); in initView()
DTextCandidatesViewManager.java412 mWord = list.get(wordcount); in onLongClickCandidate()
414 displayDialog(v, mWord); in onLongClickCandidate()
529 selectCandidate(mWord); in initView()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
DAndroidWordLevelSpellCheckerSession.java271 final String suggestionStr = suggestion.mWord.toString(); in onGetSuggestions()