Home
last modified time | relevance | path

Searched refs:entryPos (Results 1 – 8 of 8) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dprobability_dict_content.cpp41 int entryPos = getEntryPos(terminalId); in getProbabilityEntry() local
43 Ver4DictConstants::FLAGS_IN_PROBABILITY_FILE_SIZE, &entryPos); in getProbabilityEntry()
45 Ver4DictConstants::PROBABILITY_SIZE, &entryPos); in getProbabilityEntry()
48 Ver4DictConstants::TIME_STAMP_FIELD_SIZE, &entryPos); in getProbabilityEntry()
50 Ver4DictConstants::WORD_LEVEL_FIELD_SIZE, &entryPos); in getProbabilityEntry()
52 Ver4DictConstants::WORD_COUNT_FIELD_SIZE, &entryPos); in getProbabilityEntry()
66 const int entryPos = getEntryPos(terminalId); in setProbabilityEntry() local
71 while (writingPos <= entryPos) { in setProbabilityEntry()
81 return writeEntry(probabilityEntry, entryPos); in setProbabilityEntry()
134 const int entryPos) { in writeEntry() argument
[all …]
Dshortcut_dict_content.cpp169 const int entryPos = readingPos; in findShortcutEntryAndGetPos() local
185 return entryPos; in findShortcutEntryAndGetPos()
Dprobability_dict_content.h66 bool writeEntry(const ProbabilityEntry *const probabilityEntry, const int entryPos);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/
Dver4_bigram_list_policy.cpp177 const int entryPos = readingPos; in updateAllBigramEntriesAndDeleteUselessEntries() local
189 if (!mBigramDictContent->writeBigramEntry(&updatedBigramEntry, entryPos)) { in updateAllBigramEntriesAndDeleteUselessEntries()
198 if (!mBigramDictContent->writeBigramEntry(&updatedBigramEntry, entryPos)) { in updateAllBigramEntriesAndDeleteUselessEntries()
205 if (!mBigramDictContent->writeBigramEntry(&updatedBigramEntry, entryPos)) { in updateAllBigramEntriesAndDeleteUselessEntries()
245 const int entryPos = readingPos; in getEntryPosToUpdate() local
251 return entryPos; in getEntryPosToUpdate()
254 invalidEntryPos = entryPos; in getEntryPosToUpdate()
258 *outTailEntryPos = entryPos; in getEntryPosToUpdate()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/shortcut/
Dver4_shortcut_list_policy.h69 const int entryPos = mShortcutDictContent->findShortcutEntryAndGetPos(shortcutListPos, in addNewShortcut() local
71 if (entryPos == NOT_A_DICT_POS) { in addNewShortcut()
90 0 /* outCodePointCount */ , 0 /* probability */, &hasNext, entryPos); in addNewShortcut()
92 codePointCount, probability, hasNext, entryPos)) { in addNewShortcut()
94 entryPos); in addNewShortcut()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/shortcut/
Dver4_shortcut_list_policy.h79 const int entryPos = mShortcutDictContent->findShortcutEntryAndGetPos(shortcutListPos, in addNewShortcut() local
81 if (entryPos == NOT_A_DICT_POS) { in addNewShortcut()
100 0 /* outCodePointCount */ , 0 /* probability */, &hasNext, entryPos); in addNewShortcut()
102 codePointCount, probability, hasNext, entryPos)) { in addNewShortcut()
104 entryPos); in addNewShortcut()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_writing_helper.cpp257 const int entryPos = readingPos; in truncateBigrams() local
268 priorityQueue.push(DictProbability(entryPos, probability, in truncateBigrams()
275 const int entryPos = priorityQueue.top().getDictPos(); in truncateBigrams() local
276 const BigramEntry bigramEntry = bigramDictContent->getBigramEntry(entryPos); in truncateBigrams()
278 if (!bigramDictContent->writeBigramEntry(&invalidatedBigramEntry, entryPos)) { in truncateBigrams()
279 AKLOGE("Cannot write bigram entry to remove. pos: %d", entryPos); in truncateBigrams()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dshortcut_dict_content.cpp154 const int entryPos = readingPos; in findShortcutEntryAndGetPos() local
170 return entryPos; in findShortcutEntryAndGetPos()