Home
last modified time | relevance | path

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

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Dpt_node_params.h35 PtNodeParams() : mHeadPos(NOT_A_DICT_POS), mFlags(0), mHasMovedFlag(false), in PtNodeParams()
36 mParentPos(NOT_A_DICT_POS), mCodePointCount(0), mCodePoints(), in PtNodeParams()
37 mTerminalIdFieldPos(NOT_A_DICT_POS), mTerminalId(Ver4DictConstants::NOT_A_TERMINAL_ID), in PtNodeParams()
38 mProbabilityFieldPos(NOT_A_DICT_POS), mProbability(NOT_A_PROBABILITY), in PtNodeParams()
39 mChildrenPosFieldPos(NOT_A_DICT_POS), mChildrenPos(NOT_A_DICT_POS), in PtNodeParams()
40 mBigramLinkedNodePos(NOT_A_DICT_POS), mShortcutPos(NOT_A_DICT_POS), in PtNodeParams()
41 mBigramPos(NOT_A_DICT_POS), mSiblingPos(NOT_A_DICT_POS) {} in PtNodeParams()
64 : mHeadPos(headPos), mFlags(flags), mHasMovedFlag(false), mParentPos(NOT_A_DICT_POS), in PtNodeParams()
65 mCodePointCount(codePointCount), mCodePoints(), mTerminalIdFieldPos(NOT_A_DICT_POS), in PtNodeParams()
67 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.cpp237 return NOT_A_DICT_POS; in getTerminalPtNodePositionOfWord()
243 return NOT_A_DICT_POS; in getTerminalPtNodePositionOfWord()
249 return NOT_A_DICT_POS; in getTerminalPtNodePositionOfWord()
256 return NOT_A_DICT_POS; in getTerminalPtNodePositionOfWord()
263 int firstPtNodePos = NOT_A_DICT_POS; in nextPtNodeArray()
267 mReadingState.mPos = NOT_A_DICT_POS; in nextPtNodeArray()
292 mReadingState.mPos = NOT_A_DICT_POS; in nextPtNodeArray()
303 int nextPtNodeArrayPos = NOT_A_DICT_POS; in followForwardLink()
307 mReadingState.mPos = NOT_A_DICT_POS; in followForwardLink()
311 if (nextPtNodeArrayPos != NOT_A_DICT_POS) { in followForwardLink()
[all …]
Dpatricia_trie_reading_utils.cpp131 return NOT_A_DICT_POS; in readChildrenPositionAndAdvancePosition()
150 readChildrenPositionAndAdvancePosition(dictBuf, flags, &readingPos) : NOT_A_DICT_POS; in readPtNodeInfo()
151 *outShortcutPos = NOT_A_DICT_POS; in readPtNodeInfo()
156 *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.cpp34 int parentPos = NOT_A_DICT_POS; in addUnigramWord()
191 NOT_A_DICT_POS /* forwardLinkPos */, &writingPos)) { in createNewPtNodeArrayWithAChildPtNode()
263 NOT_A_DICT_POS /* forwardLinkPos */, &writingPos)) { in reallocatePtNodeAndAddNewPtNodes()
Ddynamic_pt_reading_utils.cpp50 return NOT_A_DICT_POS; in getParentPtNodePos()
64 return NOT_A_DICT_POS; in readChildrenPositionAndAdvancePosition()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp200 if (prevWordIds.firstOrDefault(NOT_A_DICT_POS) == NOT_A_DICT_POS) { in iterateNgramEntries()
243 if (ptNodePos == NOT_A_DICT_POS) { in getShortcutPositionOfPtNode()
244 return NOT_A_DICT_POS; in getShortcutPositionOfPtNode()
248 return NOT_A_DICT_POS; in getShortcutPositionOfPtNode()
255 if (ptNodePos == NOT_A_DICT_POS) { in getBigramsPositionOfPtNode()
256 return NOT_A_DICT_POS; in getBigramsPositionOfPtNode()
260 return NOT_A_DICT_POS; in getBigramsPositionOfPtNode()
312 if (wordPos == NOT_A_DICT_POS) { in addUnigramEntry()
340 if (ptNodePos == NOT_A_DICT_POS) { in removeUnigramEntry()
392 if (wordPos == 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.cpp65 int terminalIdFieldPos = NOT_A_DICT_POS; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
89 if (usesAdditionalBuffer && childrenPos != NOT_A_DICT_POS) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
96 int newSiblingNodePos = (siblingNodePos == NOT_A_DICT_POS) ? pos : siblingNodePos; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
/packages/inputmethods/LatinIME/native/jni/src/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/dictionary/structure/v2/
Dpatricia_trie_policy.cpp389 if (ptNodePos == NOT_A_DICT_POS) { in getShortcutPositionOfPtNode()
390 return NOT_A_DICT_POS; in getShortcutPositionOfPtNode()
396 if (ptNodePos == NOT_A_DICT_POS) { in getBigramsPositionOfPtNode()
397 return NOT_A_DICT_POS; in getBigramsPositionOfPtNode()
408 int childrenPos = NOT_A_DICT_POS; in createAndGetLeavingChildNode()
409 int shortcutPos = NOT_A_DICT_POS; in createAndGetLeavingChildNode()
410 int bigramPos = NOT_A_DICT_POS; in createAndGetLeavingChildNode()
411 int siblingPos = NOT_A_DICT_POS; in createAndGetLeavingChildNode()
445 if (bigramsIt.getBigramPos() != NOT_A_DICT_POS) { in getWordProperty()
461 if (shortcutPos != 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/tests/dictionary/structure/v4/content/
Dterminal_position_lookup_table_test.cpp32 EXPECT_EQ(NOT_A_DICT_POS, lookupTable.getTerminalPtNodePosition(0)); in TEST()
33 EXPECT_EQ(NOT_A_DICT_POS, lookupTable.getTerminalPtNodePosition(-1)); in TEST()
34 EXPECT_EQ(NOT_A_DICT_POS, lookupTable.getTerminalPtNodePosition( in TEST()
43 EXPECT_EQ(NOT_A_DICT_POS, lookupTable.getTerminalPtNodePosition(9)); in TEST()
49 EXPECT_EQ(NOT_A_DICT_POS, lookupTable.getTerminalPtNodePosition(-1)); in TEST()
51 EXPECT_EQ(NOT_A_DICT_POS, lookupTable.getTerminalPtNodePosition( in TEST()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
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/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.cpp153 if (originalBigramListPos == NOT_A_DICT_POS) { in runGC()
189 int lastEntryPos = NOT_A_DICT_POS; in runGCBigramList()
203 lastEntryPos = hasNext ? writingPos : NOT_A_DICT_POS; in runGCBigramList()
212 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/dictionary/structure/v4/content/
Dterminal_position_lookup_table.cpp25 return NOT_A_DICT_POS; in getTerminalPtNodePosition()
30 NOT_A_DICT_POS : terminalPos; in getTerminalPtNodePosition()
46 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/dictionary/structure/v4/
Dver4_patricia_trie_node_reader.cpp57 int terminalIdFieldPos = NOT_A_DICT_POS; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
72 if (usesAdditionalBuffer && childrenPos != NOT_A_DICT_POS) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
79 int newSiblingNodePos = (siblingNodePos == NOT_A_DICT_POS) ? pos : siblingNodePos; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
Dver4_patricia_trie_node_writer.cpp58 toBeUpdatedPtNodeParams->getTerminalId(), NOT_A_DICT_POS /* ptNodePos */); in markPtNodeAsDeleted()
126 toBeUpdatedPtNodeParams->getTerminalId(), NOT_A_DICT_POS /* ptNodePos */)) { in markPtNodeAsWillBecomeNonTerminal()
244 if (parentPos != NOT_A_DICT_POS) { in updateAllPositionFields()
261 if (childrenPos != NOT_A_DICT_POS) { in updateAllPositionFields()
Dver4_patricia_trie_policy.cpp97 if (ptNodePos == NOT_A_DICT_POS) { in getWordId()
167 return NOT_A_DICT_POS; in getShortcutPositionOfWord()
173 return NOT_A_DICT_POS; in getShortcutPositionOfWord()
546 if (shortcutPos != NOT_A_DICT_POS) { in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/shortcut/
Dshortcut_list_policy.h36 if (pos == NOT_A_DICT_POS) { in getStartPos()
37 return NOT_A_DICT_POS; in getStartPos()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/shortcut/
Dver4_shortcut_list_policy.h69 if (shortcutListPos == NOT_A_DICT_POS) { in addNewShortcut()
81 if (entryPos == NOT_A_DICT_POS) { in addNewShortcut()

12