Home
last modified time | relevance | path

Searched refs:NOT_A_DICT_POS (Results 1 – 25 of 47) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/
Dpt_node_params.h34 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 …]
Ddynamic_pt_reading_helper.h88 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 …]
Ddynamic_pt_reading_helper.cpp242 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 …]
Dpatricia_trie_reading_utils.cpp130 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()
Ddynamic_pt_gc_event_listeners.cpp48 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()
Ddynamic_pt_updating_helper.cpp35 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/
Dver4_patricia_trie_policy.cpp127 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 …]
Dver4_patricia_trie_node_writer.cpp59 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()
Dver4_patricia_trie_node_reader.cpp55 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/
Dver4_patricia_trie_policy.cpp137 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 …]
Dver4_patricia_trie_node_writer.cpp68 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()
Dver4_patricia_trie_node_reader.cpp64 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/
Dver4_bigram_list_policy.cpp73 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/
Dpatricia_trie_policy.cpp302 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 …]
Dver2_patricia_trie_node_reader.cpp36 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/
Dver4_bigram_list_policy.cpp63 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/
Dbinary_dictionary_bigrams_iterator.h29 : 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/
Dterminal_position_lookup_table.cpp26 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()
Dshortcut_dict_content.cpp57 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/
Dterminal_position_lookup_table.cpp35 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()
Dbigram_dict_content.cpp151 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()
Dshortcut_dict_content.cpp66 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/
Ddic_node_properties.h32 : 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/
Dprev_words_info.h125 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/
Dshortcut_list_policy.h36 if (pos == NOT_A_DICT_POS) { in getStartPos()
37 return NOT_A_DICT_POS; in getStartPos()

12