Loading java/src/com/android/inputmethod/latin/DictionaryFacilitator.java +0 −21 Original line number Diff line number Diff line Loading @@ -173,25 +173,4 @@ public interface DictionaryFacilitator { void dumpDictionaryForDebug(final String dictName); ArrayList<Pair<String, DictionaryStats>> getStatsOfEnabledSubDicts(); void addOrIncrementTerm(String fileName, String finalWordToBeAdded, NgramContext ngramContext, int increment, int timeStampInSeconds); void clearLanguageModel(String filePath); /** * Lets callers iterate over a given dynamic language model. Each iterate call * results in ngrams, their counts, their last updated timestamps and an iteration token * that can be used for the next {@link #iterateOverLanguageModel} call. * * Use empty string for starting the iterator from the begining. * Returns empty string if there are no more entries to iterate upon. * TODO: Encapsulate the result arrays into a java class. */ String iterateOverLanguageModel(String filePath, String iterationToken, ArrayList<String> outputNgramEntries, ArrayList<Integer> outputNgramCounts, ArrayList<Integer> outputNgramTimestamps); } java/src/com/android/inputmethod/latin/DictionaryFacilitatorImpl.java +4 −23 Original line number Diff line number Diff line /* * Copyright (C) 2013 The Android Open Source Project 7 * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading Loading @@ -772,10 +772,12 @@ public class DictionaryFacilitatorImpl implements DictionaryFacilitator { } } @Override public void clearUserHistoryDictionary() { clearSubDictionary(Dictionary.TYPE_USER_HISTORY); } @Override public void dumpDictionaryForDebug(final String dictName) { final DictionaryGroup[] dictionaryGroups = mDictionaryGroups; for (final DictionaryGroup dictionaryGroup : dictionaryGroups) { Loading @@ -789,6 +791,7 @@ public class DictionaryFacilitatorImpl implements DictionaryFacilitator { } } @Override public ArrayList<Pair<String, DictionaryStats>> getStatsOfEnabledSubDicts() { final ArrayList<Pair<String, DictionaryStats>> statsOfEnabledSubDicts = new ArrayList<>(); final DictionaryGroup[] dictionaryGroups = mDictionaryGroups; Loading @@ -801,26 +804,4 @@ public class DictionaryFacilitatorImpl implements DictionaryFacilitator { } return statsOfEnabledSubDicts; } @Override public void addOrIncrementTerm(String fileName, String word, NgramContext ngramContext, int increment, int timeStampInSeconds) { // Do nothing. } @Override public void clearLanguageModel(String filePath) { // Do nothing. } @Override public String iterateOverLanguageModel(String filePath, String iterationToken, ArrayList<String> outputNgramEntries, ArrayList<Integer> outputNgramCounts, ArrayList<Integer> outputNgramTimestamps) { // Do nothing. return ""; } } Loading
java/src/com/android/inputmethod/latin/DictionaryFacilitator.java +0 −21 Original line number Diff line number Diff line Loading @@ -173,25 +173,4 @@ public interface DictionaryFacilitator { void dumpDictionaryForDebug(final String dictName); ArrayList<Pair<String, DictionaryStats>> getStatsOfEnabledSubDicts(); void addOrIncrementTerm(String fileName, String finalWordToBeAdded, NgramContext ngramContext, int increment, int timeStampInSeconds); void clearLanguageModel(String filePath); /** * Lets callers iterate over a given dynamic language model. Each iterate call * results in ngrams, their counts, their last updated timestamps and an iteration token * that can be used for the next {@link #iterateOverLanguageModel} call. * * Use empty string for starting the iterator from the begining. * Returns empty string if there are no more entries to iterate upon. * TODO: Encapsulate the result arrays into a java class. */ String iterateOverLanguageModel(String filePath, String iterationToken, ArrayList<String> outputNgramEntries, ArrayList<Integer> outputNgramCounts, ArrayList<Integer> outputNgramTimestamps); }
java/src/com/android/inputmethod/latin/DictionaryFacilitatorImpl.java +4 −23 Original line number Diff line number Diff line /* * Copyright (C) 2013 The Android Open Source Project 7 * Copyright (C) 2013 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. Loading Loading @@ -772,10 +772,12 @@ public class DictionaryFacilitatorImpl implements DictionaryFacilitator { } } @Override public void clearUserHistoryDictionary() { clearSubDictionary(Dictionary.TYPE_USER_HISTORY); } @Override public void dumpDictionaryForDebug(final String dictName) { final DictionaryGroup[] dictionaryGroups = mDictionaryGroups; for (final DictionaryGroup dictionaryGroup : dictionaryGroups) { Loading @@ -789,6 +791,7 @@ public class DictionaryFacilitatorImpl implements DictionaryFacilitator { } } @Override public ArrayList<Pair<String, DictionaryStats>> getStatsOfEnabledSubDicts() { final ArrayList<Pair<String, DictionaryStats>> statsOfEnabledSubDicts = new ArrayList<>(); final DictionaryGroup[] dictionaryGroups = mDictionaryGroups; Loading @@ -801,26 +804,4 @@ public class DictionaryFacilitatorImpl implements DictionaryFacilitator { } return statsOfEnabledSubDicts; } @Override public void addOrIncrementTerm(String fileName, String word, NgramContext ngramContext, int increment, int timeStampInSeconds) { // Do nothing. } @Override public void clearLanguageModel(String filePath) { // Do nothing. } @Override public String iterateOverLanguageModel(String filePath, String iterationToken, ArrayList<String> outputNgramEntries, ArrayList<Integer> outputNgramCounts, ArrayList<Integer> outputNgramTimestamps) { // Do nothing. return ""; } }