Home
last modified time | relevance | path

Searched refs:isTerminal (Results 1 – 25 of 26) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_node_writer.cpp65 if (toBeUpdatedPtNodeParams->isTerminal()) { in markPtNodeAsDeleted()
151 if (!toBeUpdatedPtNodeParams->isTerminal()) { in updatePtNodeUnigramProperty()
165 if (!toBeUpdatedPtNodeParams->isTerminal()) { in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
249 sourcePtNodeParams.isTerminal(), sourcePtNodeParams.hasShortcutTargets(), in addNgramEntry()
320 ptNodeParams->isTerminal(), true /* hasShortcutTargets */, in addShortcutTarget()
334 ptNodeParams->isNotAWord(), ptNodeParams->isTerminal(), hasShortcutTargets, in updatePtNodeHasBigramsAndShortcutTargetsFlags()
362 } else if (ptNodeParams->isTerminal()) { in writePtNodeAndGetTerminalIdAndAdvancePosition()
368 const int isTerminal = terminalId != Ver4DictConstants::NOT_A_TERMINAL_ID; in writePtNodeAndGetTerminalIdAndAdvancePosition() local
369 if (isTerminal) { in writePtNodeAndGetTerminalIdAndAdvancePosition()
390 ptNodeParams->isNotAWord(), isTerminal, ptNodeParams->hasShortcutTargets(), in writePtNodeAndGetTerminalIdAndAdvancePosition()
[all …]
Dver4_patricia_trie_policy.cpp69 bool isTerminal = ptNodeParams.isTerminal() && !ptNodeParams.isDeleted(); in createAndGetAllChildDicNodes() local
70 if (isTerminal && mHeaderPolicy->isDecayingDict()) { in createAndGetAllChildDicNodes()
74 isTerminal = ptNodeParams.getProbability() != NOT_A_PROBABILITY; in createAndGetAllChildDicNodes()
81 const int wordId = isTerminal ? ptNodeParams.getHeadPos() : NOT_A_WORD_ID; in createAndGetAllChildDicNodes()
Dver4_patricia_trie_node_reader.cpp68 if (PatriciaTrieReadingUtils::isTerminal(flags)) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
Dver4_patricia_trie_node_writer.h134 const bool isTerminal, const bool hasShortcutTargets, const bool hasBigrams,
Dver4_patricia_trie_writing_helper.cpp289 if (!ptNodeParams->isTerminal()) { in onVisitingPtNode()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_node_writer.cpp55 if (toBeUpdatedPtNodeParams->isTerminal()) { in markPtNodeAsDeleted()
142 if (!toBeUpdatedPtNodeParams->isTerminal()) { in updatePtNodeUnigramProperty()
152 if (!toBeUpdatedPtNodeParams->isTerminal()) { in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
309 } else if (ptNodeParams->isTerminal()) { in writePtNodeAndGetTerminalIdAndAdvancePosition()
315 const int isTerminal = terminalId != Ver4DictConstants::NOT_A_TERMINAL_ID; in writePtNodeAndGetTerminalIdAndAdvancePosition() local
316 if (isTerminal) { in writePtNodeAndGetTerminalIdAndAdvancePosition()
336 return updatePtNodeFlags(nodePos, isTerminal, in writePtNodeAndGetTerminalIdAndAdvancePosition()
340 bool Ver4PatriciaTrieNodeWriter::updatePtNodeFlags(const int ptNodePos, const bool isTerminal, in updatePtNodeFlags() argument
345 false /* isPossiblyOffensive */, isTerminal, false /* hasShortcutTargets */, in updatePtNodeFlags()
Dver4_patricia_trie_policy.cpp60 const bool isTerminal = ptNodeParams.isTerminal() && !ptNodeParams.isDeleted(); in createAndGetAllChildDicNodes() local
61 const int wordId = isTerminal ? ptNodeParams.getTerminalId() : NOT_A_WORD_ID; in createAndGetAllChildDicNodes()
Dver4_patricia_trie_node_reader.cpp59 if (PatriciaTrieReadingUtils::isTerminal(flags)) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
Dver4_patricia_trie_node_writer.h98 bool updatePtNodeFlags(const int ptNodePos, const bool isTerminal, const bool hasMultipleChars);
Dver4_patricia_trie_writing_helper.cpp168 if (!ptNodeParams->isTerminal()) { in onVisitingPtNode()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_gc_event_listeners.cpp31 bool isUselessPtNode = !ptNodeParams->isTerminal(); in onVisitingPtNode()
32 if (ptNodeParams->isTerminal() && !ptNodeParams->representsNonWordInfo()) { in onVisitingPtNode()
45 } else if (ptNodeParams->isTerminal()) { in onVisitingPtNode()
59 if (ptNodeParams->isTerminal() && !ptNodeParams->representsNonWordInfo()) { in onVisitingPtNode()
138 if (ptNodeParams->isTerminal()) { in onVisitingPtNode()
Ddynamic_pt_updating_helper.cpp139 if (originalPtNodeParams->isTerminal() && !originalPtNodeParams->isDeleted()) { in setPtNodeProbability()
245 reallocatingPtNodeParams->isTerminal(), firstPartOfReallocatedPtNodePos, in reallocatePtNodeAndAddNewPtNodes()
280 const bool isPossiblyOffensive, const bool isTerminal, const int parentPos, in getUpdatedPtNodeParams() argument
283 isPossiblyOffensive, isNotAWord, isTerminal, false /* hasShortcutTargets */, in getUpdatedPtNodeParams()
290 const bool isPossiblyOffensive, const bool isTerminal, const int parentPos, in getPtNodeParamsForNewPtNode() argument
293 isPossiblyOffensive, isNotAWord, isTerminal, false /* hasShortcutTargets */, in getPtNodeParamsForNewPtNode()
Dpatricia_trie_reading_utils.h65 static AK_FORCE_INLINE bool isTerminal(const NodeFlags flags) { in isTerminal() function
86 const bool isNotAWord, const bool isTerminal, const bool hasShortcutTargets, in createAndGetFlags() argument
92 nodeFlags = isTerminal ? (nodeFlags | FLAG_IS_TERMINAL) : nodeFlags; in createAndGetFlags()
Ddynamic_pt_updating_helper.h88 const bool isNotAWord, const bool isPossiblyOffensive, const bool isTerminal,
92 const bool isPossiblyOffensive, const bool isTerminal, const int parentPos,
Ddynamic_pt_reading_helper.cpp31 if (ptNodeParams->isTerminal() && !ptNodeParams->isDeleted()) { in onVisitingPtNode()
242 if (!ptNodeParams.isTerminal()) { in getTerminalPtNodePositionOfWord()
Dpt_node_params.h143 AK_FORCE_INLINE bool isTerminal() const { in isTerminal() function
144 return PatriciaTrieReadingUtils::isTerminal(mFlags); in isTerminal()
Dpatricia_trie_reading_utils.cpp147 *outProbability = isTerminal(flags) ? in readPtNodeInfo()
Ddynamic_pt_reading_helper.h132 return !isEnd() && !ptNodeParams.isDeleted() && ptNodeParams.isTerminal(); in isValidTerminalNode()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderUtils.java101 if (ptNode.isTerminal()) { in getPtNodeMaximumSize()
330 if (ptNode.isTerminal()) { in computeActualPtNodeArraySize()
516 static int makePtNodeFlags(final boolean hasMultipleChars, final boolean isTerminal, in makePtNodeFlags() argument
521 if (isTerminal) flags |= FormatSpec.FLAG_IS_TERMINAL; in makePtNodeFlags()
545 return (byte) makePtNodeFlags(node.mChars.length > 1, node.isTerminal(), in makePtNodeFlags()
634 if (ptNode.isTerminal()) { in getChildrenPosition()
703 if (ptNode.isTerminal()) { in showStatistics()
DFusionDictionary.java136 public boolean isTerminal() { in isTerminal() method in FusionDictionary.PtNode
141 return isTerminal() ? mProbabilityInfo.mProbability : NOT_A_TERMINAL; in getProbability()
533 if (!currentPtNode.isTerminal()) return null; in findWordInTree()
616 if (currentPtNode.isTerminal()) { in next()
DBinaryDictIOUtils.java114 if (ptNodeInfo.isTerminal()) {// found word in readUnigramsAndBigramsBinaryInner()
199 return currentInfo.isTerminal() ? ptNodePos : FormatSpec.NOT_VALID_WORD; in getTerminalPosition()
DPtNodeInfo.java48 public boolean isTerminal() { in isTerminal() method in PtNodeInfo
/packages/services/BuiltInPrintService/src/com/android/bips/
DP2pPermissionManager.java131 if (state.isTerminal()) { in request()
205 if (state.isTerminal() || state == State.DENIED) { in listenForPreferenceChanges()
318 public boolean isTerminal() { in isTerminal() method in State
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp151 if (PatriciaTrieReadingUtils::isTerminal(flags)) { in getCodePointsAndProbabilityAndReturnCodePointCount()
216 if (PatriciaTrieReadingUtils::isTerminal(lastFlags)) { in getCodePointsAndProbabilityAndReturnCodePointCount()
419 const int wordId = PatriciaTrieReadingUtils::isTerminal(flags) ? ptNodePos : NOT_A_WORD_ID; in createAndGetLeavingChildNode()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/
Ddic_node_properties.h102 bool isTerminal() const { in isTerminal() function

12