/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/ |
D | pt_node_params.h | 34 PtNodeParams() : mHeadPos(NOT_A_DICT_POS), mFlags(0), mHasMovedFlag(false), in PtNodeParams() 35 mParentPos(NOT_A_DICT_POS), mCodePointCount(0), mCodePoints(), in PtNodeParams() 36 mTerminalIdFieldPos(NOT_A_DICT_POS), mTerminalId(Ver4DictConstants::NOT_A_TERMINAL_ID), in PtNodeParams() 37 mProbabilityFieldPos(NOT_A_DICT_POS), mProbability(NOT_A_PROBABILITY), in PtNodeParams() 38 mChildrenPosFieldPos(NOT_A_DICT_POS), mChildrenPos(NOT_A_DICT_POS), in PtNodeParams() 39 mBigramLinkedNodePos(NOT_A_DICT_POS), mShortcutPos(NOT_A_DICT_POS), in PtNodeParams() 40 mBigramPos(NOT_A_DICT_POS), mSiblingPos(NOT_A_DICT_POS) {} in PtNodeParams() 63 : mHeadPos(headPos), mFlags(flags), mHasMovedFlag(false), mParentPos(NOT_A_DICT_POS), in PtNodeParams() 64 mCodePointCount(codePointCount), mCodePoints(), mTerminalIdFieldPos(NOT_A_DICT_POS), in PtNodeParams() 66 mProbabilityFieldPos(NOT_A_DICT_POS), mProbability(probability), in PtNodeParams() [all …]
|
D | dynamic_pt_reading_helper.h | 88 return mReadingState.mPos == NOT_A_DICT_POS; in isEnd() 93 if (ptNodeArrayPos == NOT_A_DICT_POS) { in initWithPtNodeArrayPos() 94 mReadingState.mPos = NOT_A_DICT_POS; in initWithPtNodeArrayPos() 101 mReadingState.mPosOfLastForwardLinkField = NOT_A_DICT_POS; in initWithPtNodeArrayPos() 109 if (ptNodePos == NOT_A_DICT_POS) { in initWithPtNodePos() 110 mReadingState.mPos = NOT_A_DICT_POS; in initWithPtNodePos() 118 mReadingState.mPosOfLastForwardLinkField = NOT_A_DICT_POS; in initWithPtNodePos() 119 mReadingState.mPosOfThisPtNodeArrayHead = NOT_A_DICT_POS; in initWithPtNodePos() 177 mReadingState.mPosOfLastForwardLinkField = NOT_A_DICT_POS; in readChildNode() 181 mReadingState.mPos = NOT_A_DICT_POS; in readChildNode() [all …]
|
D | dynamic_pt_reading_helper.cpp | 242 return NOT_A_DICT_POS; in getTerminalPtNodePositionOfWord() 248 return NOT_A_DICT_POS; in getTerminalPtNodePositionOfWord() 254 return NOT_A_DICT_POS; in getTerminalPtNodePositionOfWord() 261 return NOT_A_DICT_POS; in getTerminalPtNodePositionOfWord() 268 int firstPtNodePos = NOT_A_DICT_POS; in nextPtNodeArray() 272 mReadingState.mPos = NOT_A_DICT_POS; in nextPtNodeArray() 297 mReadingState.mPos = NOT_A_DICT_POS; in nextPtNodeArray() 308 int nextPtNodeArrayPos = NOT_A_DICT_POS; in followForwardLink() 312 mReadingState.mPos = NOT_A_DICT_POS; in followForwardLink() 316 if (nextPtNodeArrayPos != NOT_A_DICT_POS) { in followForwardLink() [all …]
|
D | patricia_trie_reading_utils.cpp | 130 return NOT_A_DICT_POS; in readChildrenPositionAndAdvancePosition() 149 readChildrenPositionAndAdvancePosition(dictBuf, flags, &readingPos) : NOT_A_DICT_POS; in readPtNodeInfo() 150 *outShortcutPos = NOT_A_DICT_POS; in readPtNodeInfo() 155 *outBigramPos = NOT_A_DICT_POS; in readPtNodeInfo()
|
D | dynamic_pt_gc_event_listeners.cpp | 48 NOT_A_DICT_POS /* newChildrenPosition */)) { in onVisitingPtNode() 99 mBufferToWrite, NOT_A_DICT_POS /* forwardLinkPos */, &writingPos)) { in onReadingPtNodeArrayTail() 117 ptNodeParams->getHeadPos(), NOT_A_DICT_POS)); in onVisitingPtNode()
|
D | dynamic_pt_updating_helper.cpp | 35 int parentPos = NOT_A_DICT_POS; in addUnigramWord() 197 NOT_A_DICT_POS /* forwardLinkPos */, &writingPos)) { in createNewPtNodeArrayWithAChildPtNode() 269 NOT_A_DICT_POS /* forwardLinkPos */, &writingPos)) { in reallocatePtNodeAndAddNewPtNodes()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 127 if (ptNodePos == NOT_A_DICT_POS) { in getProbabilityOfPtNode() 163 if (ptNodePos == NOT_A_DICT_POS) { in getShortcutPositionOfPtNode() 164 return NOT_A_DICT_POS; in getShortcutPositionOfPtNode() 168 return NOT_A_DICT_POS; in getShortcutPositionOfPtNode() 175 if (ptNodePos == NOT_A_DICT_POS) { in getBigramsPositionOfPtNode() 176 return NOT_A_DICT_POS; in getBigramsPositionOfPtNode() 180 return NOT_A_DICT_POS; in getBigramsPositionOfPtNode() 230 if (wordPos == NOT_A_DICT_POS) { in addUnigramEntry() 258 if (ptNodePos == NOT_A_DICT_POS) { in removeUnigramEntry() 297 if (prevWordsPtNodePos[0] == NOT_A_DICT_POS) { in addNgramEntry() [all …]
|
D | ver4_patricia_trie_node_writer.cpp | 59 toBeUpdatedPtNodeParams->getTerminalId(), NOT_A_DICT_POS /* ptNodePos */); in markPtNodeAsDeleted() 126 toBeUpdatedPtNodeParams->getTerminalId(), NOT_A_DICT_POS /* ptNodePos */)) { in markPtNodeAsWillBecomeNonTerminal() 251 if (parentPos != NOT_A_DICT_POS) { in updateAllPositionFields() 268 if (childrenPos != NOT_A_DICT_POS) { in updateAllPositionFields()
|
D | ver4_patricia_trie_node_reader.cpp | 55 int terminalIdFieldPos = NOT_A_DICT_POS; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 80 if (usesAdditionalBuffer && childrenPos != NOT_A_DICT_POS) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 87 int newSiblingNodePos = (siblingNodePos == NOT_A_DICT_POS) ? pos : siblingNodePos; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 137 if (ptNodePos == NOT_A_DICT_POS) { in getProbabilityOfPtNode() 173 if (ptNodePos == NOT_A_DICT_POS) { in getShortcutPositionOfPtNode() 174 return NOT_A_DICT_POS; in getShortcutPositionOfPtNode() 178 return NOT_A_DICT_POS; in getShortcutPositionOfPtNode() 185 if (ptNodePos == NOT_A_DICT_POS) { in getBigramsPositionOfPtNode() 186 return NOT_A_DICT_POS; in getBigramsPositionOfPtNode() 190 return NOT_A_DICT_POS; in getBigramsPositionOfPtNode() 240 if (wordPos == NOT_A_DICT_POS) { in addUnigramEntry() 285 if (prevWordsPtNodePos[0] == NOT_A_DICT_POS) { in addNgramEntry() 308 if (word1Pos == NOT_A_DICT_POS) { in addNgramEntry() [all …]
|
D | ver4_patricia_trie_node_writer.cpp | 68 toBeUpdatedPtNodeParams->getTerminalId(), NOT_A_DICT_POS /* ptNodePos */); in markPtNodeAsDeleted() 135 toBeUpdatedPtNodeParams->getTerminalId(), NOT_A_DICT_POS /* ptNodePos */)) { in markPtNodeAsWillBecomeNonTerminal() 272 if (parentPos != NOT_A_DICT_POS) { in updateAllPositionFields() 289 if (childrenPos != NOT_A_DICT_POS) { in updateAllPositionFields() 330 ptNodeParams->getTerminalId()) != NOT_A_DICT_POS; in updatePtNodeHasBigramsAndShortcutTargetsFlags() 332 ptNodeParams->getTerminalId()) != NOT_A_DICT_POS; in updatePtNodeHasBigramsAndShortcutTargetsFlags()
|
D | ver4_patricia_trie_node_reader.cpp | 64 int terminalIdFieldPos = NOT_A_DICT_POS; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 88 if (usesAdditionalBuffer && childrenPos != NOT_A_DICT_POS) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 95 int newSiblingNodePos = (siblingNodePos == NOT_A_DICT_POS) ? pos : siblingNodePos; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/bigram/ |
D | ver4_bigram_list_policy.cpp | 73 if (bigramListPos == NOT_A_DICT_POS) { in addNewEntry() 94 int tailEntryPos = NOT_A_DICT_POS; in addNewEntry() 97 if (tailEntryPos != NOT_A_DICT_POS || entryPosToUpdate == NOT_A_DICT_POS) { in addNewEntry() 100 if (tailEntryPos == NOT_A_DICT_POS) { in addNewEntry() 147 if (bigramListPos == NOT_A_DICT_POS) { in removeEntry() 153 if (entryPosToUpdate == NOT_A_DICT_POS) { in removeEntry() 170 if (bigramListPos == NOT_A_DICT_POS) { in updateAllBigramEntriesAndDeleteUselessEntries() 186 if (targetPtNodePos == NOT_A_DICT_POS) { in updateAllBigramEntriesAndDeleteUselessEntries() 218 if (bigramListPos == NOT_A_DICT_POS) { in getBigramEntryConut() 239 *outTailEntryPos = NOT_A_DICT_POS; in getEntryPosToUpdate() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 302 if (ptNodePos == NOT_A_DICT_POS) { in getProbabilityOfPtNode() 342 if (ptNodePos == NOT_A_DICT_POS) { in getShortcutPositionOfPtNode() 343 return NOT_A_DICT_POS; in getShortcutPositionOfPtNode() 349 if (ptNodePos == NOT_A_DICT_POS) { in getBigramsPositionOfPtNode() 350 return NOT_A_DICT_POS; in getBigramsPositionOfPtNode() 361 int childrenPos = NOT_A_DICT_POS; in createAndGetLeavingChildNode() 362 int shortcutPos = NOT_A_DICT_POS; in createAndGetLeavingChildNode() 363 int bigramPos = NOT_A_DICT_POS; in createAndGetLeavingChildNode() 364 int siblingPos = NOT_A_DICT_POS; in createAndGetLeavingChildNode() 384 if (ptNodePos == NOT_A_DICT_POS) { in getWordProperty() [all …]
|
D | ver2_patricia_trie_node_reader.cpp | 36 int childrenPos = NOT_A_DICT_POS; in fetchPtNodeParamsInBufferFromPtNodePos() 37 int shortcutPos = NOT_A_DICT_POS; in fetchPtNodeParamsInBufferFromPtNodePos() 38 int bigramPos = NOT_A_DICT_POS; in fetchPtNodeParamsInBufferFromPtNodePos() 39 int siblingPos = NOT_A_DICT_POS; in fetchPtNodeParamsInBufferFromPtNodePos()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/bigram/ |
D | ver4_bigram_list_policy.cpp | 63 if (bigramListPos == NOT_A_DICT_POS) { in addNewEntry() 90 int tailEntryPos = NOT_A_DICT_POS; in addNewEntry() 93 if (entryPosToUpdate == NOT_A_DICT_POS) { in addNewEntry() 148 if (bigramListPos == NOT_A_DICT_POS) { in removeEntry() 154 if (entryPosToUpdate == NOT_A_DICT_POS) { in removeEntry() 171 if (bigramListPos == NOT_A_DICT_POS) { in updateAllBigramEntriesAndDeleteUselessEntries() 187 if (targetPtNodePos == NOT_A_DICT_POS) { in updateAllBigramEntriesAndDeleteUselessEntries() 219 if (bigramListPos == NOT_A_DICT_POS) { in getBigramEntryConut() 240 *outTailEntryPos = NOT_A_DICT_POS; in getEntryPosToUpdate() 242 int invalidEntryPos = NOT_A_DICT_POS; in getEntryPosToUpdate()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
D | binary_dictionary_bigrams_iterator.h | 29 : mBigramsStructurePolicy(nullptr), mPos(NOT_A_DICT_POS), in BinaryDictionaryBigramsIterator() 30 mBigramPos(NOT_A_DICT_POS), mProbability(NOT_A_PROBABILITY), mHasNext(false) {} in BinaryDictionaryBigramsIterator() 35 mBigramPos(NOT_A_DICT_POS), mProbability(NOT_A_PROBABILITY), in BinaryDictionaryBigramsIterator() 36 mHasNext(pos != NOT_A_DICT_POS) {} in BinaryDictionaryBigramsIterator()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/content/ |
D | terminal_position_lookup_table.cpp | 26 return NOT_A_DICT_POS; in getTerminalPtNodePosition() 31 NOT_A_DICT_POS : terminalPos; in getTerminalPtNodePosition() 37 return NOT_A_DICT_POS; in setTerminalPtNodePosition() 47 const int terminalPos = (terminalPtNodePos != NOT_A_DICT_POS) ? in setTerminalPtNodePosition()
|
D | shortcut_dict_content.cpp | 57 return NOT_A_DICT_POS; in getShortcutListHeadPos() 69 if (originalShortcutListPos == NOT_A_DICT_POS) { in runGC() 173 return NOT_A_DICT_POS; in findShortcutEntryAndGetPos()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/content/ |
D | terminal_position_lookup_table.cpp | 35 return NOT_A_DICT_POS; in getTerminalPtNodePosition() 40 NOT_A_DICT_POS : terminalPos; in getTerminalPtNodePosition() 46 return NOT_A_DICT_POS; in setTerminalPtNodePosition() 56 const int terminalPos = (terminalPtNodePos != NOT_A_DICT_POS) ? in setTerminalPtNodePosition()
|
D | bigram_dict_content.cpp | 151 if (originalBigramListPos == NOT_A_DICT_POS) { in runGC() 187 int lastEntryPos = NOT_A_DICT_POS; in runGCBigramList() 201 lastEntryPos = hasNext ? writingPos : NOT_A_DICT_POS; in runGCBigramList() 210 if (lastEntryPos != NOT_A_DICT_POS) { in runGCBigramList()
|
D | shortcut_dict_content.cpp | 66 return NOT_A_DICT_POS; in getShortcutListHeadPos() 84 if (originalShortcutListPos == NOT_A_DICT_POS) { in runGC() 188 return NOT_A_DICT_POS; in findShortcutEntryAndGetPos()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/ |
D | dic_node_properties.h | 32 : mPtNodePos(NOT_A_DICT_POS), mChildrenPtNodeArrayPos(NOT_A_DICT_POS), in DicNodeProperties() 57 mPtNodePos = NOT_A_DICT_POS; in init()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/ |
D | prev_words_info.h | 125 return NOT_A_DICT_POS; in getTerminalPtNodePosOfWord() 134 return NOT_A_DICT_POS; in getTerminalPtNodePosOfWord() 139 if (wordPtNodePos != NOT_A_DICT_POS || !tryLowerCaseSearch) { in getTerminalPtNodePosOfWord()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/shortcut/ |
D | shortcut_list_policy.h | 36 if (pos == NOT_A_DICT_POS) { in getStartPos() 37 return NOT_A_DICT_POS; in getStartPos()
|