OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:dictDecoder
(Results
1 - 8
of
8
) sorted by null
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
BinaryDictDecoderUtils.java
283
* @param
dictDecoder
the dict decoder.
289
/* package for tests */ static WeightedString getWordAtPosition(final
DictDecoder
dictDecoder
,
292
final int originalPos =
dictDecoder
.getPosition();
293
dictDecoder
.setPosition(pos);
294
result = getWordAtPositionWithoutParentAddress(
dictDecoder
, headerSize, pos);
295
dictDecoder
.setPosition(originalPos);
300
final
DictDecoder
dictDecoder
, final int headerSize, final int pos) {
301
dictDecoder
.setPosition(headerSize)
[
all
...]
BinaryDictIOUtils.java
21
import com.android.inputmethod.latin.makedict.
DictDecoder
.DictionaryBufferFactory;
41
* @param bufferType The type of buffer, as one of USE_* in
DictDecoder
.
44
public static
DictDecoder
getDictDecoder(final File dictFile, final long offset,
54
public static
DictDecoder
getDictDecoder(final File dictFile, final long offset,
64
public static
DictDecoder
getDictDecoder(final File dictFile, final long offset,
66
return getDictDecoder(dictFile, offset, length,
DictDecoder
.USE_READONLY_BYTEBUFFER);
87
private static void readUnigramsAndBigramsBinaryInner(final
DictDecoder
dictDecoder
,
107
if (
dictDecoder
.getPosition() != p.mAddress)
dictDecoder
.setPosition(p.mAddress)
[
all
...]
Ver2DictDecoderTests.java
20
import com.android.inputmethod.latin.makedict.
DictDecoder
.DictionaryBufferFactory;
21
import com.android.inputmethod.latin.makedict.
DictDecoder
.DictionaryBufferFromByteArrayFactory;
22
import com.android.inputmethod.latin.makedict.
DictDecoder
.
24
import com.android.inputmethod.latin.makedict.
DictDecoder
.
70
final Ver2DictDecoder
dictDecoder
= new Ver2DictDecoder(testFile, 0, testFile.length(),
73
dictDecoder
.openDictBuffer();
81
dictDecoder
.openDictBuffer();
86
assertEquals(testFile.length(),
dictDecoder
.getDictBuffer().capacity());
112
final Ver2DictDecoder
dictDecoder
= new Ver2DictDecoder(testFile, 0, testFile.length(),
117
dictDecoder
.getDictBuffer())
[
all
...]
BinaryDictDecoderEncoderTests.java
249
final
DictDecoder
dictDecoder
= BinaryDictIOUtils.getDictDecoder(file, 0, file.length(),
252
dict =
dictDecoder
.readDictionaryBinary(false /* deleteDictIfBroken */);
411
final
DictDecoder
dictDecoder
= BinaryDictIOUtils.getDictDecoder(file, 0, file.length(),
414
dictDecoder
.readUnigramsAndBigramsBinary(resultWords, resultFreqs, resultBigrams);
487
private String getWordFromBinary(final
DictDecoder
dictDecoder
, final int address) {
488
if (
dictDecoder
.getPosition() != 0)
dictDecoder
.setPosition(0)
[
all
...]
/packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
BinaryDictOffdeviceUtilsTests.java
20
import com.android.inputmethod.latin.makedict.
DictDecoder
;
80
final
DictDecoder
dictDecoder
= BinaryDictIOUtils.getDictDecoder(decodeSpec.mFile, 0,
83
dictDecoder
.readDictionaryBinary(false /* deleteDictIfBroken */);
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
BinaryDictOffdeviceUtils.java
21
import com.android.inputmethod.latin.makedict.
DictDecoder
;
203
final
DictDecoder
dictDecoder
= BinaryDictIOUtils.getDictDecoder(
205
DictDecoder
.USE_BYTEARRAY);
211
return
dictDecoder
.readDictionaryBinary(false /* deleteDictIfBroken */);
DictionaryMaker.java
21
import com.android.inputmethod.latin.makedict.
DictDecoder
;
272
final
DictDecoder
dictDecoder
= BinaryDictIOUtils.getDictDecoder(file, 0, file.length());
273
return
dictDecoder
.readDictionaryBinary(false /* deleteDictIfBroken */);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
BinaryDictionaryDecayingTests.java
26
import com.android.inputmethod.latin.makedict.
DictDecoder
;
172
final
DictDecoder
dictDecoder
=
176
dictDecoder
.readDictionaryBinary(false /* deleteDictIfBroken */);
[
all
...]
Completed in 382 milliseconds