/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | patricia_trie_reading_utils.cpp | 142 int readingPos = ptNodePos; in readPtNodeInfo() local 143 const NodeFlags flags = getFlagsAndAdvancePosition(dictBuf, &readingPos); in readPtNodeInfo() 146 dictBuf, flags, MAX_WORD_LENGTH, codePointTable, outCodePoint, &readingPos); in readPtNodeInfo() 148 readProbabilityAndAdvancePosition(dictBuf, &readingPos) : NOT_A_PROBABILITY; in readPtNodeInfo() 150 readChildrenPositionAndAdvancePosition(dictBuf, flags, &readingPos) : NOT_A_DICT_POS; in readPtNodeInfo() 153 *outShortcutPos = readingPos; in readPtNodeInfo() 154 shortcutPolicy->skipAllShortcuts(&readingPos); in readPtNodeInfo() 158 *outBigramPos = readingPos; in readPtNodeInfo() 159 bigramPolicy->skipAllBigrams(&readingPos); in readPtNodeInfo() 161 *outSiblingPos = readingPos; in readPtNodeInfo()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_pt_node_array_reader.cpp | 36 int readingPos = ptNodeArrayPos; in readPtNodeArrayInfoAndReturnIfValid() local 38 readingPos -= mBuffer->getOriginalBufferSize(); in readPtNodeArrayInfoAndReturnIfValid() 41 dictBuf, &readingPos); in readPtNodeArrayInfoAndReturnIfValid() 43 readingPos += mBuffer->getOriginalBufferSize(); in readPtNodeArrayInfoAndReturnIfValid() 50 *outFirstPtNodePos = readingPos; in readPtNodeArrayInfoAndReturnIfValid() 65 int readingPos = forwordLinkPos; in readForwardLinkAndReturnIfValid() local 67 readingPos -= mBuffer->getOriginalBufferSize(); in readForwardLinkAndReturnIfValid() 70 DynamicPtReadingUtils::getForwardLinkPosition(dictBuf, readingPos); in readForwardLinkAndReturnIfValid()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_pt_node_array_reader.cpp | 45 int readingPos = ptNodeArrayPos; in readPtNodeArrayInfoAndReturnIfValid() local 47 readingPos -= mBuffer->getOriginalBufferSize(); in readPtNodeArrayInfoAndReturnIfValid() 50 dictBuf, &readingPos); in readPtNodeArrayInfoAndReturnIfValid() 52 readingPos += mBuffer->getOriginalBufferSize(); in readPtNodeArrayInfoAndReturnIfValid() 59 *outFirstPtNodePos = readingPos; in readPtNodeArrayInfoAndReturnIfValid() 74 int readingPos = forwordLinkPos; in readForwardLinkAndReturnIfValid() local 76 readingPos -= mBuffer->getOriginalBufferSize(); in readForwardLinkAndReturnIfValid() 79 DynamicPtReadingUtils::getForwardLinkPosition(dictBuf, readingPos); in readForwardLinkAndReturnIfValid()
|
D | ver4_patricia_trie_writing_helper.cpp | 255 int readingPos = bigramListPos; in truncateBigrams() local 257 const int entryPos = readingPos; in truncateBigrams() 259 bigramDictContent->getBigramEntryAndAdvancePosition(&readingPos); in truncateBigrams()
|
D | ver4_patricia_trie_policy.cpp | 571 int readingPos = bigramListPos; in getWordProperty() local 574 bigramDictContent->getBigramEntryAndAdvancePosition(&readingPos); in getWordProperty()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/ |
D | ver4_bigram_list_policy.cpp | 175 int readingPos = bigramListPos; in updateAllBigramEntriesAndDeleteUselessEntries() local 177 const int entryPos = readingPos; in updateAllBigramEntriesAndDeleteUselessEntries() 179 mBigramDictContent->getBigramEntryAndAdvancePosition(&readingPos); in updateAllBigramEntriesAndDeleteUselessEntries() 224 int readingPos = bigramListPos; in getBigramEntryConut() local 227 mBigramDictContent->getBigramEntryAndAdvancePosition(&readingPos); in getBigramEntryConut() 243 int readingPos = bigramListPos; in getEntryPosToUpdate() local 245 const int entryPos = readingPos; in getEntryPosToUpdate() 247 mBigramDictContent->getBigramEntryAndAdvancePosition(&readingPos); in getEntryPosToUpdate() 256 if (!hasNext && mBigramDictContent->isContentTailPos(readingPos)) { in getEntryPosToUpdate()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | shortcut_dict_content.cpp | 102 int readingPos = shortcutListPos; in copyShortcutListFromDictContent() local 109 codePoints, &codePointCount, &probability, &hasNext, &readingPos); in copyShortcutListFromDictContent() 151 int readingPos = shortcutListPos; in findShortcutEntryAndGetPos() local 154 const int entryPos = readingPos; in findShortcutEntryAndGetPos() 158 &probability, &hasNext, &readingPos); in findShortcutEntryAndGetPos()
|
D | shortcut_dict_content.h | 44 int readingPos = shortcutEntryPos; in getShortcutEntry() local 46 outCodePointCount, outProbability, outhasNext, &readingPos); in getShortcutEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/ |
D | shortcut_dict_content.cpp | 117 int readingPos = shortcutListPos; in copyShortcutListFromDictContent() local 124 codePoints, &codePointCount, &probability, &hasNext, &readingPos); in copyShortcutListFromDictContent() 166 int readingPos = shortcutListPos; in findShortcutEntryAndGetPos() local 169 const int entryPos = readingPos; in findShortcutEntryAndGetPos() 173 &probability, &hasNext, &readingPos); in findShortcutEntryAndGetPos()
|
D | bigram_dict_content.cpp | 129 int readingPos = bigramListPos; in copyBigramList() local 133 const BigramEntry bigramEntry = getBigramEntryAndAdvancePosition(&readingPos); in copyBigramList() 187 int readingPos = bigramListPos; in runGCBigramList() local 192 sourceBigramDictContent->getBigramEntryAndAdvancePosition(&readingPos); in runGCBigramList()
|
D | shortcut_dict_content.h | 53 int readingPos = shortcutEntryPos; in getShortcutEntry() local 55 outCodePointCount, outProbability, outhasNext, &readingPos); in getShortcutEntry()
|
D | bigram_dict_content.h | 55 int readingPos = bigramEntryPos; in getBigramEntry() local 56 return getBigramEntryAndAdvancePosition(&readingPos); in getBigramEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | ver2_pt_node_array_reader.cpp | 32 int readingPos = ptNodeArrayPos; in readPtNodeArrayInfoAndReturnIfValid() local 34 mBuffer.data(), &readingPos); in readPtNodeArrayInfoAndReturnIfValid() 36 *outFirstPtNodePos = readingPos; in readPtNodeArrayInfoAndReturnIfValid()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | sparse_table.cpp | 25 const int readingPos = getPosInIndexTable(id); in contains() local 26 if (id < 0 || mIndexTableBuffer->getTailPosition() <= readingPos) { in contains() 29 const int index = mIndexTableBuffer->readUint(INDEX_SIZE, readingPos); in contains()
|