Home
last modified time | relevance | path

Searched refs:newWord (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Settings/src/com/android/settings/inputmethod/
DUserDictionaryAddWordContents.java127 final String newWord = mWordEditText.getText().toString(); in apply() local
139 if (TextUtils.isEmpty(newWord)) { in apply()
143 mSavedWord = newWord; in apply()
149 if (TextUtils.isEmpty(newShortcut) && hasWord(newWord, context)) { in apply()
156 UserDictionarySettings.deleteWord(newWord, null, resolver); in apply()
159 UserDictionarySettings.deleteWord(newWord, newShortcut, resolver); in apply()
164 UserDictionary.Words.addWord(context, newWord.toString(), in apply()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionaryAddWordContents.java148 final String newWord = mWordEditText.getText().toString(); in apply() local
162 if (TextUtils.isEmpty(newWord)) { in apply()
166 mSavedWord = newWord; in apply()
172 if (TextUtils.isEmpty(newShortcut) && hasWord(newWord, context)) { in apply()
179 UserDictionarySettings.deleteWord(newWord, null, resolver); in apply()
182 UserDictionarySettings.deleteWord(newWord, newShortcut, resolver); in apply()
187 UserDictionaryCompatUtils.addWord(context, newWord.toString(), in apply()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java417 final PtNode newWord = new PtNode(Arrays.copyOfRange(word, in add() local
423 newChildren.mData.add(addIndex, newWord); in add()