Home | History | Annotate | Download | only in makedict

Lines Matching refs:FormatSpec

22 import com.android.inputmethod.latin.makedict.FormatSpec.FileHeader;
23 import com.android.inputmethod.latin.makedict.FormatSpec.FormatOptions;
46 return (flags & (~FormatSpec.MASK_CHILDREN_ADDRESS_TYPE)) | FormatSpec.FLAG_IS_DELETED;
103 if (dictUpdater.getPosition() == FormatSpec.NO_FORWARD_LINK_ADDRESS) break;
124 BinaryDictIOUtils.skipString(dictBuffer, (flags & FormatSpec.FLAG_HAS_MULTIPLE_CHARS) != 0);
125 if ((flags & FormatSpec.FLAG_IS_TERMINAL) != 0) dictBuffer.readUnsignedByte();
126 final int childrenOffset = newChildrenAddress == FormatSpec.NO_CHILDREN_ADDRESS
127 ? FormatSpec.NO_CHILDREN_ADDRESS : newChildrenAddress - dictBuffer.position();
144 dictBuffer.put((byte)(FormatSpec.FLAG_IS_MOVED | (currentFlags
145 & (~FormatSpec.MASK_MOVE_AND_DELETE_FLAG))));
146 int size = FormatSpec.PTNODE_FLAGS_SIZE;
165 if (forwardLinkAddress == FormatSpec.NO_FORWARD_LINK_ADDRESS) {
166 dictBuffer.position(dictBuffer.position() - FormatSpec.FORWARD_LINK_ADDRESS_SIZE);
207 flags, writtenCharacters, frequency, parentAddress, FormatSpec.NO_CHILDREN_ADDRESS,
212 fileEndAddress + 1 + size + FormatSpec.FORWARD_LINK_ADDRESS_SIZE, shortcutTargets,
216 return 1 + size + FormatSpec.FORWARD_LINK_ADDRESS_SIZE;
246 if (position == FormatSpec.NOT_VALID_WORD) {
280 nodeParentAddress = (currentInfo.mParentAddress == FormatSpec.NO_PARENT_ADDRESS)
281 ? FormatSpec.NO_PARENT_ADDRESS : currentInfo.mParentAddress + address;
305 if (currentInfo.mChildrenAddress != FormatSpec.NO_CHILDREN_ADDRESS) {
347 if (currentInfo.mChildrenAddress != FormatSpec.NO_CHILDREN_ADDRESS) {
353 (currentInfo.mFlags & FormatSpec.FLAG_IS_TERMINAL) != 0,
355 (currentInfo.mFlags & FormatSpec.FLAG_HAS_SHORTCUT_TARGETS)
357 (currentInfo.mFlags & FormatSpec.FLAG_HAS_BIGRAMS) != 0,
376 FormatSpec.NO_CHILDREN_ADDRESS, shortcuts, bigrams);
404 if (currentInfo.mChildrenAddress == FormatSpec.NO_CHILDREN_ADDRESS) {
427 characters, frequency, address, FormatSpec.NO_CHILDREN_ADDRESS,
443 if ((nextLink & FormatSpec.MSB24) != 0) {
444 nextLink = -(nextLink & FormatSpec.SINT24_MAX);
446 if (nextLink == FormatSpec.NO_FORWARD_LINK_ADDRESS) {
472 FormatSpec.NO_CHILDREN_ADDRESS, shortcuts, bigrams);