Lines Matching full:word2
149 public int addToUserHistory(final String word1, final String word2, final boolean isValid) {
150 if (word2.length() >= Constants.Dictionary.MAX_WORD_LENGTH ||
157 word2, null /* the "shortcut" parameter is null */, FREQUENCY_FOR_TYPED);
158 mBigramList.addBigram(null, word2, (byte)FREQUENCY_FOR_TYPED);
160 if (word2.equals(word1)) {
168 word1, word2, new ForgettingCurveParams(isValid));
170 mBigramList.addBigram(word1, word2);
179 public boolean cancelAddingUserHistory(final String word1, final String word2) {
182 if (mBigramList.removeBigram(word1, word2)) {
183 return super.removeBigram(word1, word2);
241 public void setBigram(final String word1, final String word2, final int frequency) {
243 && word2.length() < Constants.Dictionary.MAX_WORD_LENGTH) {
246 Log.d(TAG, "load bigram: " + word1 + "," + word2 + "," + frequency);
249 word1, word2, initializing ? new ForgettingCurveParams(true)
252 mBigramList.addBigram(word1, word2, (byte)frequency);
367 public int getFrequency(final String word1, final String word2) {
371 final byte prevFc = mBigramList.getBigrams(word1).get(word2);
373 final NextWord nw = mUserHistoryDictionary.getBigramWord(word1, word2);
376 final byte prevFc = mBigramList.getBigrams(word1).get(word2);
398 void forceAddWordForTest(final String word1, final String word2, final boolean isValid) {
401 addToUserHistory(word1, word2, isValid);