HomeSort by relevance Sort by last modified time
    Searched refs:FormatSpec (Results 1 - 18 of 18) sorted by null

  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
BinaryDictIOUtils.java 81 int[] pushedChars = new int[FormatSpec.MAX_WORD_LENGTH + 1];
171 if (word == null) return FormatSpec.NOT_VALID_WORD;
177 if (wordPos >= wordLen) return FormatSpec.NOT_VALID_WORD;
199 return currentInfo.isTerminal() ? ptNodePos : FormatSpec.NOT_VALID_WORD;
202 if (currentInfo.mChildrenAddress == FormatSpec.NO_CHILDREN_ADDRESS) {
203 return FormatSpec.NOT_VALID_WORD;
211 return FormatSpec.NOT_VALID_WORD;
214 return FormatSpec.NOT_VALID_WORD;
229 // Please see comments in FormatSpec.
234 (ptNodeCount | FormatSpec.LARGE_PTNODE_ARRAY_SIZE_FIELD_SIZE_FLAG) : ptNodeCount
    [all...]
BinaryDictEncoderUtils.java 20 import com.android.inputmethod.latin.makedict.FormatSpec.FormatOptions;
65 if (characters.length > 1) size += FormatSpec.PTNODE_TERMINATOR_SIZE;
103 size += FormatSpec.PTNODE_FREQUENCY_SIZE;
105 size += FormatSpec.PTNODE_MAX_ADDRESS_SIZE; // For children address
107 size += (FormatSpec.PTNODE_ATTRIBUTE_FLAGS_SIZE
108 + FormatSpec.PTNODE_ATTRIBUTE_MAX_ADDRESS_SIZE)
139 return FormatSpec.PTNODE_FLAGS_SIZE + getPtNodeCharactersSize(ptNode,
154 assert(address <= FormatSpec.UINT24_MAX);
157 } else if (Math.abs(address) <= FormatSpec.UINT8_MAX) {
159 } else if (Math.abs(address) <= FormatSpec.UINT16_MAX)
    [all...]
BinaryDictDecoderUtils.java 129 return codePoint >= FormatSpec.MINIMAL_ONE_BYTE_CHARACTER_VALUE
130 && codePoint <= FormatSpec.MAXIMAL_ONE_BYTE_CHARACTER_VALUE;
154 if (FormatSpec.INVALID_CHARACTER == character) return 1;
228 buffer[index++] = FormatSpec.PTNODE_CHARACTERS_TERMINATOR;
257 stream.write(FormatSpec.PTNODE_CHARACTERS_TERMINATOR);
258 written += FormatSpec.PTNODE_TERMINATOR_SIZE;
268 while (character != FormatSpec.INVALID_CHARACTER) {
286 if (FormatSpec.PTNODE_CHARACTERS_TERMINATOR == character) {
287 return FormatSpec.INVALID_CHARACTER;
301 if (FormatSpec.MAX_PTNODES_FOR_ONE_BYTE_PTNODE_COUNT >= msb)
    [all...]
DictEncoder.java 20 import com.android.inputmethod.latin.makedict.FormatSpec.FormatOptions;
FusionDictionary.java 21 import com.android.inputmethod.latin.makedict.FormatSpec.DictionaryOptions;
335 assert(probabilityInfo.mProbability <= FormatSpec.MAX_TERMINAL_FREQUENCY);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DictionaryHeader.java 19 import com.android.inputmethod.latin.makedict.FormatSpec.DictionaryOptions;
20 import com.android.inputmethod.latin.makedict.FormatSpec.FormatOptions;
65 mBodyOffset = formatOptions.mVersion < FormatSpec.VERSION4 ? headerSize : 0;
FormatSpec.java 28 public final class FormatSpec {
304 private FormatSpec() {
  /packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/makedict/
BinaryDictEncoderFlattenTreeTests.java 19 import com.android.inputmethod.latin.makedict.FormatSpec.DictionaryOptions;
FusionDictionaryTest.java 19 import com.android.inputmethod.latin.makedict.FormatSpec.DictionaryOptions;
  /packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DictionaryMaker.java 23 import com.android.inputmethod.latin.makedict.FormatSpec;
123 int outputBinaryFormatVersion = FormatSpec.VERSION202; // the default version is 202.
134 outputBinaryFormatVersion = FormatSpec.VERSION4;
290 final FormatSpec.FormatOptions formatOptions = new FormatSpec.FormatOptions(version);
292 if (version == FormatSpec.VERSION4) {
BinaryDictOffdeviceUtils.java 23 import com.android.inputmethod.latin.makedict.FormatSpec;
24 import com.android.inputmethod.latin.makedict.FormatSpec.DictionaryOptions;
25 import com.android.inputmethod.latin.makedict.FormatSpec.FormatOptions;
161 // Ad-hoc check for the magic number. See FormatSpec.java as well as
170 if (magicNumber != FormatSpec.MAGIC_NUMBER) {
175 if (version != FormatSpec.VERSION2 && version != FormatSpec.VERSION201
176 && version != FormatSpec.VERSION202) {
Info.java 19 import com.android.inputmethod.latin.makedict.FormatSpec;
54 if (FormatSpec.SHORTCUT_WHITELIST_FREQUENCY
87 + (FormatSpec.SHORTCUT_WHITELIST_FREQUENCY
CombinedInputOutput.java 19 import com.android.inputmethod.latin.makedict.FormatSpec;
20 import com.android.inputmethod.latin.makedict.FormatSpec.DictionaryOptions;
161 ? FormatSpec.SHORTCUT_WHITELIST_FREQUENCY
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
BinaryDictionaryTests.java 28 import com.android.inputmethod.latin.makedict.FormatSpec;
110 final File dictFile = createEmptyDictionaryAndGetFile(FormatSpec.VERSION403);
125 final File dictFile = createEmptyDictionaryAndGetFile(FormatSpec.VERSION403);
130 FormatSpec.VERSION403, new HashMap<String, String>());
132 assertEquals(FormatSpec.VERSION403, binaryDictionary.getFormatVersion());
140 assertEquals(FormatSpec.VERSION403, binaryDictionary.getFormatVersion());
146 final BinaryDictionary binaryDictionary = getEmptyBinaryDictionary(FormatSpec.VERSION403);
213 final BinaryDictionary binaryDictionary = getEmptyBinaryDictionary(FormatSpec.VERSION403);
243 final BinaryDictionary binaryDictionary = getEmptyBinaryDictionary(FormatSpec.VERSION403);
262 final BinaryDictionary binaryDictionary = getEmptyBinaryDictionary(FormatSpec.VERSION403)
    [all...]
  /packages/inputmethods/LatinIME/tools/dicttool/tests/com/android/inputmethod/latin/dicttool/
BinaryDictOffdeviceUtilsTests.java 29 import com.android.inputmethod.latin.makedict.FormatSpec;
30 import com.android.inputmethod.latin.makedict.FormatSpec.DictionaryOptions;
31 import com.android.inputmethod.latin.makedict.FormatSpec.FormatOptions;
104 dictEncoder.writeDictionary(dict, new FormatOptions(FormatSpec.VERSION202, false));
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
ExpandableBinaryDictionary.java 28 import com.android.inputmethod.latin.makedict.FormatSpec;
76 private static final int DICTIONARY_FORMAT_VERSION = FormatSpec.VERSION4;
118 return formatVersion == FormatSpec.VERSION4;
124 return formatVersion == FormatSpec.VERSION402;
BinaryDictionary.java 31 import com.android.inputmethod.latin.makedict.FormatSpec;
32 import com.android.inputmethod.latin.makedict.FormatSpec.DictionaryOptions;
264 new FormatSpec.FormatOptions(outFormatVersion[0], hasHistoricalInfo));
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
UpdateHandler.java 42 import com.android.inputmethod.latin.makedict.FormatSpec;
82 FormatSpec.MAXIMUM_SUPPORTED_STATIC_VERSION;
    [all...]

Completed in 216 milliseconds