Home
last modified time | relevance | path

Searched refs:readingPos (Results 1 – 14 of 14) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Dpatricia_trie_reading_utils.cpp142 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/
Dver4_pt_node_array_reader.cpp36 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/
Dver4_pt_node_array_reader.cpp45 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()
Dver4_patricia_trie_writing_helper.cpp255 int readingPos = bigramListPos; in truncateBigrams() local
257 const int entryPos = readingPos; in truncateBigrams()
259 bigramDictContent->getBigramEntryAndAdvancePosition(&readingPos); in truncateBigrams()
Dver4_patricia_trie_policy.cpp571 int readingPos = bigramListPos; in getWordProperty() local
574 bigramDictContent->getBigramEntryAndAdvancePosition(&readingPos); in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/
Dver4_bigram_list_policy.cpp175 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/
Dshortcut_dict_content.cpp102 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()
Dshortcut_dict_content.h44 int readingPos = shortcutEntryPos; in getShortcutEntry() local
46 outCodePointCount, outProbability, outhasNext, &readingPos); in getShortcutEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dshortcut_dict_content.cpp117 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()
Dbigram_dict_content.cpp129 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()
Dshortcut_dict_content.h53 int readingPos = shortcutEntryPos; in getShortcutEntry() local
55 outCodePointCount, outProbability, outhasNext, &readingPos); in getShortcutEntry()
Dbigram_dict_content.h55 int readingPos = bigramEntryPos; in getBigramEntry() local
56 return getBigramEntryAndAdvancePosition(&readingPos); in getBigramEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dver2_pt_node_array_reader.cpp32 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/
Dsparse_table.cpp25 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()