Home
last modified time | relevance | path

Searched refs:word2 (Results 1 – 14 of 14) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DUserHistoryDictionaryBigramList.java45 public void addBigram(String word1, String word2) { in addBigram() argument
46 addBigram(word1, word2, FORGETTING_CURVE_INITIAL_VALUE); in addBigram()
52 public void addBigram(String word1, String word2, byte fcValue) { in addBigram() argument
54 Log.d(TAG, "--- add bigram: " + word1 + ", " + word2 + ", " + fcValue); in addBigram()
63 if (!map.containsKey(word2)) { in addBigram()
65 map.put(word2, fcValue); in addBigram()
72 public void updateBigram(String word1, String word2, byte fcValue) { in updateBigram() argument
74 Log.d(TAG, "--- update bigram: " + word1 + ", " + word2 + ", " + fcValue); in updateBigram()
82 if (!map.containsKey(word2)) { in updateBigram()
85 map.put(word2, fcValue); in updateBigram()
[all …]
DUserHistoryDictionary.java178 public int addToUserHistory(final String word1, String word2, boolean isValid) { in addToUserHistory() argument
182 word2, null /* the "shortcut" parameter is null */, FREQUENCY_FOR_TYPED); in addToUserHistory()
184 if (word2.equals(word1)) { in addToUserHistory()
192 word1, word2, new ForgettingCurveParams(isValid)); in addToUserHistory()
194 mBigramList.addBigram(word1, word2); in addToUserHistory()
203 public boolean cancelAddingUserHistory(String word1, String word2) { in cancelAddingUserHistory() argument
206 if (mBigramList.removeBigram(word1, word2)) { in cancelAddingUserHistory()
207 return super.removeBigram(word1, word2); in cancelAddingUserHistory()
261 final String word2 = cursor.getString(word2Index); in loadDictionaryAsyncLocked() local
264 Log.d(TAG, "--- Load user history: " + word1 + ", " + word2 + "," in loadDictionaryAsyncLocked()
[all …]
DExpandableBinaryDictionary.java261 protected boolean isValidBigram(final CharSequence word1, final CharSequence word2) { in isValidBigram() argument
263 return mBinaryDictionary.isValidBigram(word1, word2); in isValidBigram()
266 protected boolean isValidBigramInner(final CharSequence word1, final CharSequence word2) { in isValidBigramInner() argument
269 return isValidBigramLocked(word1, word2); in isValidBigramInner()
277 protected boolean isValidBigramLocked(final CharSequence word1, final CharSequence word2) { in isValidBigramLocked() argument
279 return mBinaryDictionary.isValidBigram(word1, word2); in isValidBigramLocked()
DExpandableDictionary.java306 protected boolean removeBigram(String word1, String word2) {
309 final Node secondWord = searchWord(mRoots, word2, 0, null);
337 protected NextWord getBigramWord(String word1, String word2) {
340 final Node secondWord = searchWord(mRoots, word2, 0, null);
507 public int setBigramAndGetFrequency(String word1, String word2, int frequency) {
508 return setBigramAndGetFrequency(word1, word2, frequency, null /* unused */);
511 public int setBigramAndGetFrequency(String word1, String word2, ForgettingCurveParams fcp) {
512 return setBigramAndGetFrequency(word1, word2, 0 /* unused */, fcp);
522 String word1, String word2, int frequency, ForgettingCurveParams fcp) {
528 Node secondWord = searchWord(mRoots, word2, 0, null);
DBinaryDictionary.java88 private native boolean isValidBigramNative(long dict, int[] word1, int[] word2); in isValidBigramNative() argument
216 public boolean isValidBigram(CharSequence word1, CharSequence word2) { in isValidBigram() argument
217 if (TextUtils.isEmpty(word1) || TextUtils.isEmpty(word2)) return false; in isValidBigram()
219 int[] chars2 = StringUtils.toCodePointArray(word2.toString()); in isValidBigram()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
DUserDictionaryToolsListJAJP.java68 public int compare(WnnWord word1, WnnWord word2) { in compare() argument
69 return word1.stroke.compareTo(word2.stroke); in compare()
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/
DUserDictionaryToolsListEN.java71 public int compare(WnnWord word1, WnnWord word2) { in compare() argument
72 return word1.stroke.compareTo(word2.stroke); in compare()
/packages/inputmethods/LatinIME/native/jni/src/
Ddictionary.cpp62 bool Dictionary::isValidBigram(const int32_t *word1, int length1, const int32_t *word2, in isValidBigram() argument
64 return mBigramDictionary->isValidBigram(word1, length1, word2, length2); in isValidBigram()
Dbigram_dictionary.cpp201 bool BigramDictionary::isValidBigram(const int32_t *word1, int length1, const int32_t *word2, in isValidBigram() argument
207 int nextWordPos = BinaryFormat::getTerminalPosition(root, word2, length2); in isValidBigram()
Dbigram_dictionary.h36 bool isValidBigram(const int32_t *word1, int length1, const int32_t *word2, int length2);
Ddictionary.h56 bool isValidBigram(const int32_t *word1, int length1, const int32_t *word2, int length2);
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp191 jint *word2 = env->GetIntArrayElements(wordArray2, 0); in latinime_BinaryDictionary_isValidBigram() local
193 jsize length2 = word2 ? env->GetArrayLength(wordArray2) : 0; in latinime_BinaryDictionary_isValidBigram()
194 jboolean result = dictionary->isValidBigram(word1, length1, word2, length2); in latinime_BinaryDictionary_isValidBigram()
195 env->ReleaseIntArrayElements(wordArray2, word2, JNI_ABORT); in latinime_BinaryDictionary_isValidBigram()
/packages/apps/Email/src/org/apache/james/mime4j/codec/
DEncoderUtil.java530 String word2 = encodeB(prefix, part2, 0, charset, bytes2); in encodeB() local
532 return word1 + " " + word2; in encodeB()
558 String word2 = encodeQ(prefix, part2, usage, 0, charset, bytes2); in encodeQ() local
560 return word1 + " " + word2; in encodeQ()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DFusionDictionary.java330 public void setBigram(final String word1, final String word2, final int frequency) { in setBigram() argument
333 final CharGroup charGroup2 = findWordInTree(mRoot, word2); in setBigram()
335 add(getCodePoints(word2), 0, null); in setBigram()
337 charGroup.addBigram(word2, frequency); in setBigram()