/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/EN/ |
H A D | UserDictionaryToolsListEN.java | 71 public int compare(WnnWord word1, WnnWord word2) { argument 72 return word1.stroke.compareTo(word2.stroke);
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/ |
H A D | UserDictionaryToolsListJAJP.java | 68 public int compare(WnnWord word1, WnnWord word2) { argument 69 return word1.stroke.compareTo(word2.stroke);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | UserHistoryDictionaryBigramList.java | 45 public void addBigram(String word1, String word2) { argument 46 addBigram(word1, word2, FORGETTING_CURVE_INITIAL_VALUE); 52 public void addBigram(String word1, String word2, byte fcValue) { argument 54 Log.d(TAG, "--- add bigram: " + word1 + ", " + word2 + ", " + fcValue); 57 if (mBigramMap.containsKey(word1)) { 58 map = mBigramMap.get(word1); 61 mBigramMap.put(word1, map); 72 public void updateBigram(String word1, String word2, byte fcValue) { argument 74 Log.d(TAG, "--- update bigram: " + word1 + ", " + word2 + ", " + fcValue); 77 if (mBigramMap.containsKey(word1)) { 100 getBigrams(String word1) argument 108 removeBigram(String word1, String word2) argument [all...] |
H A D | BinaryDictionary.java | 88 private native boolean isValidBigramNative(long dict, int[] word1, int[] word2); argument 216 public boolean isValidBigram(CharSequence word1, CharSequence word2) { argument 217 if (TextUtils.isEmpty(word1) || TextUtils.isEmpty(word2)) return false; 218 int[] chars1 = StringUtils.toCodePointArray(word1.toString());
|
H A D | ExpandableBinaryDictionary.java | 261 protected boolean isValidBigram(final CharSequence word1, final CharSequence word2) { argument 263 return mBinaryDictionary.isValidBigram(word1, word2); 266 protected boolean isValidBigramInner(final CharSequence word1, final CharSequence word2) { argument 269 return isValidBigramLocked(word1, word2); 277 protected boolean isValidBigramLocked(final CharSequence word1, final CharSequence word2) { argument 279 return mBinaryDictionary.isValidBigram(word1, word2);
|
H A D | UserHistoryDictionary.java | 73 private static final String MAIN_COLUMN_WORD1 = "word1"; 178 public int addToUserHistory(final String word1, String word2, boolean isValid) { argument 184 if (word2.equals(word1)) { 188 if (null == word1) { 192 word1, word2, new ForgettingCurveParams(isValid)); 194 mBigramList.addBigram(word1, word2); 203 public boolean cancelAddingUserHistory(String word1, String word2) { argument 206 if (mBigramList.removeBigram(word1, word2)) { 207 return super.removeBigram(word1, word2); 260 final String word1 570 getContentValues(String word1, String word2, String locale) argument [all...] |
H A D | ExpandableDictionary.java | 306 protected boolean removeBigram(String word1, String word2) { argument 307 // Refer to addOrSetBigram() about word1.toLowerCase() 308 final Node firstWord = searchWord(mRoots, word1.toLowerCase(), 0, null); 337 protected NextWord getBigramWord(String word1, String word2) { argument 338 // Refer to addOrSetBigram() about word1.toLowerCase() 339 final Node firstWord = searchWord(mRoots, word1.toLowerCase(), 0, null); 507 public int setBigramAndGetFrequency(String word1, String word2, int frequency) { argument 508 return setBigramAndGetFrequency(word1, word2, frequency, null /* unused */); 511 public int setBigramAndGetFrequency(String word1, String word2, ForgettingCurveParams fcp) { argument 512 return setBigramAndGetFrequency(word1, word 521 setBigramAndGetFrequency( String word1, String word2, int frequency, ForgettingCurveParams fcp) argument [all...] |
/packages/inputmethods/LatinIME/native/jni/src/ |
H A D | dictionary.cpp | 62 bool Dictionary::isValidBigram(const int32_t *word1, int length1, const int32_t *word2, argument 64 return mBigramDictionary->isValidBigram(word1, length1, word2, length2);
|
H A D | bigram_dictionary.cpp | 201 bool BigramDictionary::isValidBigram(const int32_t *word1, int length1, const int32_t *word2, argument 204 int pos = getBigramListPositionForWord(word1, length1);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/ |
H A D | FusionDictionary.java | 326 * @param word1 the previous word of the context 330 public void setBigram(final String word1, final String word2, final int frequency) { argument 331 CharGroup charGroup = findWordInTree(mRoot, word1);
|