/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_node_writer.cpp | 65 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 …]
|
D | ver4_patricia_trie_policy.cpp | 69 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()
|
D | ver4_patricia_trie_node_reader.cpp | 68 if (PatriciaTrieReadingUtils::isTerminal(flags)) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
|
D | ver4_patricia_trie_node_writer.h | 134 const bool isTerminal, const bool hasShortcutTargets, const bool hasBigrams,
|
D | ver4_patricia_trie_writing_helper.cpp | 289 if (!ptNodeParams->isTerminal()) { in onVisitingPtNode()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_node_writer.cpp | 55 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()
|
D | ver4_patricia_trie_policy.cpp | 60 const bool isTerminal = ptNodeParams.isTerminal() && !ptNodeParams.isDeleted(); in createAndGetAllChildDicNodes() local 61 const int wordId = isTerminal ? ptNodeParams.getTerminalId() : NOT_A_WORD_ID; in createAndGetAllChildDicNodes()
|
D | ver4_patricia_trie_node_reader.cpp | 59 if (PatriciaTrieReadingUtils::isTerminal(flags)) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
|
D | ver4_patricia_trie_node_writer.h | 98 bool updatePtNodeFlags(const int ptNodePos, const bool isTerminal, const bool hasMultipleChars);
|
D | ver4_patricia_trie_writing_helper.cpp | 168 if (!ptNodeParams->isTerminal()) { in onVisitingPtNode()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | dynamic_pt_gc_event_listeners.cpp | 31 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()
|
D | dynamic_pt_updating_helper.cpp | 139 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()
|
D | patricia_trie_reading_utils.h | 65 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()
|
D | dynamic_pt_updating_helper.h | 88 const bool isNotAWord, const bool isPossiblyOffensive, const bool isTerminal, 92 const bool isPossiblyOffensive, const bool isTerminal, const int parentPos,
|
D | dynamic_pt_reading_helper.cpp | 31 if (ptNodeParams->isTerminal() && !ptNodeParams->isDeleted()) { in onVisitingPtNode() 242 if (!ptNodeParams.isTerminal()) { in getTerminalPtNodePositionOfWord()
|
D | pt_node_params.h | 143 AK_FORCE_INLINE bool isTerminal() const { in isTerminal() function 144 return PatriciaTrieReadingUtils::isTerminal(mFlags); in isTerminal()
|
D | patricia_trie_reading_utils.cpp | 147 *outProbability = isTerminal(flags) ? in readPtNodeInfo()
|
D | dynamic_pt_reading_helper.h | 132 return !isEnd() && !ptNodeParams.isDeleted() && ptNodeParams.isTerminal(); in isValidTerminalNode()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictEncoderUtils.java | 101 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()
|
D | FusionDictionary.java | 136 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()
|
D | BinaryDictIOUtils.java | 114 if (ptNodeInfo.isTerminal()) {// found word in readUnigramsAndBigramsBinaryInner() 199 return currentInfo.isTerminal() ? ptNodePos : FormatSpec.NOT_VALID_WORD; in getTerminalPosition()
|
D | PtNodeInfo.java | 48 public boolean isTerminal() { in isTerminal() method in PtNodeInfo
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | P2pPermissionManager.java | 125 if (state.isTerminal()) { in request() 182 if (state.isTerminal() || state == State.DENIED) { in listenForPreferenceChanges() 279 public boolean isTerminal() { in isTerminal() method in State
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 151 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/ |
D | dic_node_properties.h | 102 bool isTerminal() const { in isTerminal() function
|