Home
last modified time | relevance | path

Searched refs:BinaryDictionary (Results 1 – 13 of 13) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java96 private static BinaryDictionary getBinaryDictionary(final File dictFile) { in getBinaryDictionary()
97 return new BinaryDictionary(dictFile.getAbsolutePath(), in getBinaryDictionary()
102 private BinaryDictionary getEmptyBinaryDictionary(final int formatVersion) { in getEmptyBinaryDictionary()
104 return new BinaryDictionary(dictFile.getAbsolutePath(), in getEmptyBinaryDictionary()
111 BinaryDictionary binaryDictionary = getBinaryDictionary(dictFile); in testIsValidDictionary()
128 final BinaryDictionary binaryDictionary = new BinaryDictionary(dictFile.getAbsolutePath(), in testConstructingDictionaryOnMemory()
146 final BinaryDictionary binaryDictionary = getEmptyBinaryDictionary(FormatSpec.VERSION403); in testAddTooLongWord()
148 for (int i = 0; i < BinaryDictionary.DICTIONARY_MAX_WORD_LENGTH; i++) { in testAddTooLongWord()
161 BinaryDictionary.NOT_A_VALID_TIMESTAMP); in testAddTooLongWord()
175 private static void addUnigramWord(final BinaryDictionary binaryDictionary, final String word, in addUnigramWord()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DExpandableBinaryDictionary.java88 private BinaryDictionary mBinaryDictionary;
184 BinaryDictionary getBinaryDictionary() { in getBinaryDictionary()
237 mBinaryDictionary = new BinaryDictionary( in openBinaryDictionaryLocked()
243 mBinaryDictionary = new BinaryDictionary( in createOnMemoryBinaryDictionaryLocked()
323 final BinaryDictionary binaryDictionary = getBinaryDictionary(); in removeUnigramEntryDynamically()
373 final BinaryDictionary binaryDictionary = getBinaryDictionary(); in updateEntriesForWord()
412 final BinaryDictionary binaryDictionary = getBinaryDictionary(); in updateEntriesForInputEvents()
531 final BinaryDictionary oldBinaryDictionary = mBinaryDictionary; in loadBinaryDictionaryLocked()
610 final BinaryDictionary binaryDictionary = getBinaryDictionary(); in asyncReloadDictionary()
636 final BinaryDictionary binaryDictionary = getBinaryDictionary(); in asyncFlushBinaryDictionary()
[all …]
DContactsBinaryDictionary.java105 BinaryDictionary.NOT_A_VALID_TIMESTAMP); in loadDeviceAccountsEmailAddressesLocked()
136 BinaryDictionary.MAX_PREV_WORD_COUNT_FOR_N_GRAM); in addNameLocked()
157 BinaryDictionary.NOT_A_VALID_TIMESTAMP); in addNameLocked()
163 BinaryDictionary.NOT_A_VALID_TIMESTAMP); in addNameLocked()
DBinaryDictionary.java53 public final class BinaryDictionary extends Dictionary { class
54 private static final String TAG = BinaryDictionary.class.getSimpleName();
123 public BinaryDictionary(final String filename, final long offset, final long length, in BinaryDictionary() method in BinaryDictionary
143 public BinaryDictionary(final String filename, final boolean useFullEditDistance, in BinaryDictionary() method in BinaryDictionary
DReadOnlyBinaryDictionary.java39 private final BinaryDictionary mBinaryDictionary;
44 mBinaryDictionary = new BinaryDictionary(filename, offset, length, useFullEditDistance, in ReadOnlyBinaryDictionary()
DUserBinaryDictionary.java210 BinaryDictionary.NOT_A_VALID_TIMESTAMP); in addWordsLocked()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DVer4DictDecoder.java20 import com.android.inputmethod.latin.BinaryDictionary;
44 final BinaryDictionary binaryDictionary= new BinaryDictionary( in readHeader()
60 final BinaryDictionary binaryDictionary = new BinaryDictionary( in readDictionaryBinary()
70 final BinaryDictionary.GetNextWordPropertyResult result = in readDictionaryBinary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DWordProperty.java20 import com.android.inputmethod.latin.BinaryDictionary;
73 probabilityInfo[BinaryDictionary.FORMAT_WORD_PROPERTY_PROBABILITY_INDEX], in createProbabilityInfoFromArray()
74 probabilityInfo[BinaryDictionary.FORMAT_WORD_PROPERTY_TIMESTAMP_INDEX], in createProbabilityInfoFromArray()
75 probabilityInfo[BinaryDictionary.FORMAT_WORD_PROPERTY_LEVEL_INDEX], in createProbabilityInfoFromArray()
76 probabilityInfo[BinaryDictionary.FORMAT_WORD_PROPERTY_COUNT_INDEX]); in createProbabilityInfoFromArray()
DProbabilityInfo.java20 import com.android.inputmethod.latin.BinaryDictionary;
48 this(probability, BinaryDictionary.NOT_A_VALID_TIMESTAMP, 0, 0); in ProbabilityInfo()
60 return mTimestamp != BinaryDictionary.NOT_A_VALID_TIMESTAMP; in hasHistoricalInfo()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DBinaryDictionaryUtils.java20 import com.android.inputmethod.latin.BinaryDictionary;
57 final BinaryDictionary binaryDictionary = new BinaryDictionary( in getHeaderWithOffsetAndLength()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionaryTestsHelper.java21 import com.android.inputmethod.latin.BinaryDictionary;
103 BinaryDictionary.MAX_PREV_WORD_COUNT_FOR_N_GRAM); in addWordsToDictionary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionary.java23 import com.android.inputmethod.latin.BinaryDictionary;
102 if (word.length() > BinaryDictionary.DICTIONARY_MAX_WORD_LENGTH) { in addToDictionary()
/packages/inputmethods/LatinIME/tools/dicttool/
DAndroid.mk45 latin/BinaryDictionary.java \