Home
last modified time | relevance | path

Searched refs:binaryDictionary (Results 1 – 5 of 5) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java123 BinaryDictionary binaryDictionary = getBinaryDictionary(dictFile); in testIsValidDictionary() local
125 binaryDictionary.isValidDictionary()); in testIsValidDictionary()
126 binaryDictionary.close(); in testIsValidDictionary()
128 binaryDictionary.isValidDictionary()); in testIsValidDictionary()
130 binaryDictionary = getBinaryDictionary(dictFile); in testIsValidDictionary()
132 binaryDictionary.isValidDictionary()); in testIsValidDictionary()
133 binaryDictionary.close(); in testIsValidDictionary()
141 final BinaryDictionary binaryDictionary = new BinaryDictionary(dictFile.getAbsolutePath(), in testConstructingDictionaryOnMemory() local
144 assertTrue(binaryDictionary.isValidDictionary()); in testConstructingDictionaryOnMemory()
145 assertEquals(FormatSpec.VERSION403, binaryDictionary.getFormatVersion()); in testConstructingDictionaryOnMemory()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DExpandableBinaryDictionary.java323 final BinaryDictionary binaryDictionary = getBinaryDictionary(); in removeUnigramEntryDynamically()
324 if (binaryDictionary == null) { in removeUnigramEntryDynamically()
328 if (!binaryDictionary.removeUnigramEntry(word)) { in removeUnigramEntryDynamically()
373 final BinaryDictionary binaryDictionary = getBinaryDictionary(); in updateEntriesForWord()
374 if (binaryDictionary == null) { in updateEntriesForWord()
377 if (!binaryDictionary.updateEntriesForWordWithNgramContext(ngramContext, word, in updateEntriesForWord()
412 final BinaryDictionary binaryDictionary = getBinaryDictionary(); in updateEntriesForInputEvents()
413 if (binaryDictionary == null) { in updateEntriesForInputEvents()
416 binaryDictionary.updateEntriesForInputEvents( in updateEntriesForInputEvents()
610 final BinaryDictionary binaryDictionary = getBinaryDictionary(); in asyncReloadDictionary()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DVer4DictDecoder.java44 final BinaryDictionary binaryDictionary= new BinaryDictionary( in readHeader() local
48 final DictionaryHeader header = binaryDictionary.getHeader(); in readHeader()
49 binaryDictionary.close(); in readHeader()
60 final BinaryDictionary binaryDictionary = new BinaryDictionary( in readDictionaryBinary() local
71 binaryDictionary.getNextWordProperty(token); in readDictionaryBinary()
74 binaryDictionary.close(); in readDictionaryBinary()
101 binaryDictionary.close(); in readDictionaryBinary()
DBinaryDictDecoderEncoderTests.java615 final BinaryDictionary binaryDictionary = new BinaryDictionary(file.getAbsolutePath(),
619 final WordProperty wordProperty = binaryDictionary.getWordProperty(word,
640 final BinaryDictionary binaryDictionary = new BinaryDictionary(file.getAbsolutePath(),
659 binaryDictionary.getNextWordProperty(token);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DBinaryDictionaryUtils.java57 final BinaryDictionary binaryDictionary = new BinaryDictionary( in getHeaderWithOffsetAndLength() local
61 final DictionaryHeader header = binaryDictionary.getHeader(); in getHeaderWithOffsetAndLength()
62 binaryDictionary.close(); in getHeaderWithOffsetAndLength()