Add DictionaryFacilitator dump().

Change-Id: I8b75aded3fc2b9b33128b6ba5a3e8d943dfca352
main
Chieu Nguyen 2015-03-03 12:11:43 -08:00
parent 63a0bdb41b
commit c809dc26a1
3 changed files with 9 additions and 1 deletions

View File

@ -171,6 +171,8 @@ public interface DictionaryFacilitator {
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
}