Merge "Add DictionaryFacilitator dump()."

main
Chieu Nguyen 2015-03-03 23:16:48 +00:00 committed by Android (Google) Code Review
commit 2281ba7666
3 changed files with 9 additions and 1 deletions

View File

@ -170,7 +170,9 @@ public interface DictionaryFacilitator {
int getMaxFrequencyOfExactMatches(final String word);
void clearUserHistoryDictionary();
String dump(final Context context);
void dumpDictionaryForDebug(final String dictName);
ArrayList<Pair<String, DictionaryStats>> getStatsOfEnabledSubDicts();

View File

@ -807,4 +807,9 @@ public class DictionaryFacilitatorImpl implements DictionaryFacilitator {
}
return statsOfEnabledSubDicts;
}
@Override
public String dump(final Context context) {
return "";
}
}

View File

@ -1845,6 +1845,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
p.println(" Keyboard mode = " + keyboardMode);
final SettingsValues settingsValues = mSettings.getCurrent();
p.println(settingsValues.dump());
p.println(mDictionaryFacilitator.dump(this /* context */));
// TODO: Dump all settings values
}