Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Dpatricia_trie_reading_utils.h89 NodeFlags nodeFlags = 0; in createAndGetFlags() local
90 nodeFlags = isPossiblyOffensive ? (nodeFlags | FLAG_IS_POSSIBLY_OFFENSIVE) : nodeFlags; in createAndGetFlags()
91 nodeFlags = isNotAWord ? (nodeFlags | FLAG_IS_NOT_A_WORD) : nodeFlags; in createAndGetFlags()
92 nodeFlags = isTerminal ? (nodeFlags | FLAG_IS_TERMINAL) : nodeFlags; in createAndGetFlags()
93 nodeFlags = hasShortcutTargets ? (nodeFlags | FLAG_HAS_SHORTCUT_TARGETS) : nodeFlags; in createAndGetFlags()
94 nodeFlags = hasBigrams ? (nodeFlags | FLAG_HAS_BIGRAMS) : nodeFlags; in createAndGetFlags()
95 nodeFlags = hasMultipleChars ? (nodeFlags | FLAG_HAS_MULTIPLE_CHARS) : nodeFlags; in createAndGetFlags()
97 nodeFlags |= FLAG_CHILDREN_POSITION_TYPE_ONEBYTE; in createAndGetFlags()
99 nodeFlags |= FLAG_CHILDREN_POSITION_TYPE_TWOBYTES; in createAndGetFlags()
101 nodeFlags |= FLAG_CHILDREN_POSITION_TYPE_THREEBYTES; in createAndGetFlags()
[all …]
Ddynamic_pt_writing_utils.h43 const DynamicPtReadingUtils::NodeFlags nodeFlags, in writeFlags() argument
46 return writeFlagsAndAdvancePosition(buffer, nodeFlags, &writingPos); in writeFlags()
50 const DynamicPtReadingUtils::NodeFlags nodeFlags,
Ddynamic_pt_writing_utils.cpp78 const DynamicPtReadingUtils::NodeFlags nodeFlags, int *const nodeFlagsFieldPos) { in writeFlagsAndAdvancePosition() argument
79 return buffer->writeUintAndAdvancePosition(nodeFlags, NODE_FLAG_FIELD_SIZE, nodeFlagsFieldPos); in writeFlagsAndAdvancePosition()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_node_writer.cpp343 PatriciaTrieReadingUtils::NodeFlags nodeFlags = in updatePtNodeFlags() local
347 if (!DynamicPtWritingUtils::writeFlags(mTrieBuffer, nodeFlags, ptNodePos)) { in updatePtNodeFlags()
348 AKLOGE("Cannot write PtNode flags. flags: %x, pos: %d", nodeFlags, ptNodePos); in updatePtNodeFlags()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_node_writer.cpp417 PatriciaTrieReadingUtils::NodeFlags nodeFlags = in updatePtNodeFlags() local
421 if (!DynamicPtWritingUtils::writeFlags(mTrieBuffer, nodeFlags, ptNodePos)) { in updatePtNodeFlags()
422 AKLOGE("Cannot write PtNode flags. flags: %x, pos: %d", nodeFlags, ptNodePos); in updatePtNodeFlags()