Loading java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java +2 −1 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ abstract public class ExpandableBinaryDictionary extends Dictionary { private static final boolean DBG_STRESS_TEST = false; private static final int TIMEOUT_FOR_READ_OPS_IN_MILLISECONDS = 100; private static final int TIMEOUT_FOR_READ_OPS_FOR_TESTS_IN_MILLISECONDS = 1000; /** * The maximum length of a word in this dictionary. Loading Loading @@ -761,7 +762,7 @@ abstract public class ExpandableBinaryDictionary extends Dictionary { } } }); return holder.get(false, TIMEOUT_FOR_READ_OPS_IN_MILLISECONDS); return holder.get(false, TIMEOUT_FOR_READ_OPS_FOR_TESTS_IN_MILLISECONDS); } @UsedForTesting Loading tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java +2 −0 Original line number Diff line number Diff line Loading @@ -105,8 +105,10 @@ public class UserHistoryDictionaryTests extends AndroidTestCase { final UserHistoryDictionary dict = PersonalizationHelper.getUserHistoryDictionary(getContext(), new Locale(testFilenameSuffix)); dict.waitAllTasksForTests(); dict.clearAndFlushDictionary(); dict.close(); dict.waitAllTasksForTests(); } /** Loading Loading
java/src/com/android/inputmethod/latin/ExpandableBinaryDictionary.java +2 −1 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ abstract public class ExpandableBinaryDictionary extends Dictionary { private static final boolean DBG_STRESS_TEST = false; private static final int TIMEOUT_FOR_READ_OPS_IN_MILLISECONDS = 100; private static final int TIMEOUT_FOR_READ_OPS_FOR_TESTS_IN_MILLISECONDS = 1000; /** * The maximum length of a word in this dictionary. Loading Loading @@ -761,7 +762,7 @@ abstract public class ExpandableBinaryDictionary extends Dictionary { } } }); return holder.get(false, TIMEOUT_FOR_READ_OPS_IN_MILLISECONDS); return holder.get(false, TIMEOUT_FOR_READ_OPS_FOR_TESTS_IN_MILLISECONDS); } @UsedForTesting Loading
tests/src/com/android/inputmethod/latin/personalization/UserHistoryDictionaryTests.java +2 −0 Original line number Diff line number Diff line Loading @@ -105,8 +105,10 @@ public class UserHistoryDictionaryTests extends AndroidTestCase { final UserHistoryDictionary dict = PersonalizationHelper.getUserHistoryDictionary(getContext(), new Locale(testFilenameSuffix)); dict.waitAllTasksForTests(); dict.clearAndFlushDictionary(); dict.close(); dict.waitAllTasksForTests(); } /** Loading