/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | pt_node_params.h | 35 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 …]
|
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 | 237 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 …]
|
D | patricia_trie_reading_utils.cpp | 131 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()
|
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_reading_utils.cpp | 50 return NOT_A_DICT_POS; in getParentPtNodePos() 64 return NOT_A_DICT_POS; in readChildrenPositionAndAdvancePosition()
|
D | dynamic_pt_writing_utils.cpp | 44 return writeForwardLinkPositionAndAdvancePosition(buffer, NOT_A_DICT_POS /* forwardLinkPos */, in writeEmptyDictionary() 113 if (targetPos == NOT_A_DICT_POS) { in writeDictOffset()
|
/packages/inputmethods/LatinIME/native/jni/src/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/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 200 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 …]
|
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 | 65 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/v2/ |
D | patricia_trie_policy.cpp | 389 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 …]
|
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/tests/dictionary/structure/v4/content/ |
D | terminal_position_lookup_table_test.cpp | 32 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/ |
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/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 | 153 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()
|
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/dictionary/structure/v4/content/ |
D | terminal_position_lookup_table.cpp | 25 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()
|
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/dictionary/structure/v4/ |
D | ver4_patricia_trie_node_reader.cpp | 57 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()
|
D | ver4_patricia_trie_node_writer.cpp | 58 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()
|
/packages/inputmethods/LatinIME/native/jni/src/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()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/shortcut/ |
D | ver4_shortcut_list_policy.h | 59 if (shortcutListPos == NOT_A_DICT_POS) { in addNewShortcut() 71 if (entryPos == NOT_A_DICT_POS) { in addNewShortcut()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/shortcut/ |
D | ver4_shortcut_list_policy.h | 69 if (shortcutListPos == NOT_A_DICT_POS) { in addNewShortcut() 81 if (entryPos == NOT_A_DICT_POS) { in addNewShortcut()
|