Home
last modified time | relevance | path

Searched refs:terminalIdMap (Results 1 – 19 of 19) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dbigram_dict_content.cpp146 bool BigramDictContent::runGC(const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap, in runGC() argument
149 for (TerminalPositionLookupTable::TerminalIdMap::const_iterator it = terminalIdMap->begin(); in runGC()
150 it != terminalIdMap->end(); ++it) { in runGC()
161 terminalIdMap, &bigramEntryCount)) { in runGC()
184 const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap, in runGCBigramList() argument
198 terminalIdMap->find(originalBigramEntry.getTargetTerminalId()); in runGCBigramList()
199 if (it == terminalIdMap->end()) { in runGCBigramList()
Dprobability_dict_content.cpp104 const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap, in runGC() argument
106 for (TerminalPositionLookupTable::TerminalIdMap::const_iterator it = terminalIdMap->begin(); in runGC()
107 it != terminalIdMap->end(); ++it) { in runGC()
Dshortcut_dict_content.cpp78 const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap, in runGC() argument
80 for (TerminalPositionLookupTable::TerminalIdMap::const_iterator it = terminalIdMap->begin(); in runGC()
81 it != terminalIdMap->end(); ++it) { in runGC()
Dterminal_position_lookup_table.cpp84 bool TerminalPositionLookupTable::runGCTerminalIds(TerminalIdMap *const terminalIdMap) { in runGCTerminalIds() argument
101 terminalIdMap->insert(TerminalIdMap::value_type(i, nextNewTerminalId)); in runGCTerminalIds()
Dbigram_dict_content.h96 bool runGC(const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap,
127 const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap,
Dterminal_position_lookup_table.h59 bool runGCTerminalIds(TerminalIdMap *const terminalIdMap);
Dprobability_dict_content.h56 bool runGC(const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap,
Dshortcut_dict_content.h67 bool runGC(const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap,
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_writing_helper.cpp133 TerminalPositionLookupTable::TerminalIdMap terminalIdMap; in runGC() local
135 &terminalIdMap)) { in runGC()
139 if (!buffersToWrite->getMutableLanguageModelDictContent()->runGC(&terminalIdMap, in runGC()
144 if(!buffersToWrite->getMutableShortcutDictContent()->runGC(&terminalIdMap, in runGC()
158 traversePolicyToUpdateAllPtNodeFlagsAndTerminalIds(&newPtNodeWriter, &terminalIdMap); in runGC()
Dver4_patricia_trie_writing_helper.h51 const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap) in TraversePolicyToUpdateAllPtNodeFlagsAndTerminalIds() argument
52 : mPtNodeWriter(ptNodeWriter), mTerminalIdMap(terminalIdMap) {} in TraversePolicyToUpdateAllPtNodeFlagsAndTerminalIds()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_writing_helper.cpp163 TerminalPositionLookupTable::TerminalIdMap terminalIdMap; in runGC() local
165 &terminalIdMap)) { in runGC()
169 if (!buffersToWrite->getMutableProbabilityDictContent()->runGC(&terminalIdMap, in runGC()
174 if(!buffersToWrite->getMutableBigramDictContent()->runGC(&terminalIdMap, in runGC()
179 if(!buffersToWrite->getMutableShortcutDictContent()->runGC(&terminalIdMap, in runGC()
193 traversePolicyToUpdateAllPtNodeFlagsAndTerminalIds(&newPtNodeWriter, &terminalIdMap); in runGC()
Dver4_patricia_trie_writing_helper.h64 const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap) in TraversePolicyToUpdateAllPtNodeFlagsAndTerminalIds() argument
65 : mPtNodeWriter(ptNodeWriter), mTerminalIdMap(terminalIdMap) {} in TraversePolicyToUpdateAllPtNodeFlagsAndTerminalIds()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp36 const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap, in runGC() argument
38 return runGCInner(terminalIdMap, originalContent->mTrieMap.getEntriesInRootLevel(), in runGC()
275 const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap, in runGCInner() argument
278 const auto it = terminalIdMap->find(entry.key()); in runGCInner()
279 if (it == terminalIdMap->end() || it->second == Ver4DictConstants::NOT_A_TERMINAL_ID) { in runGCInner()
287 if (!runGCInner(terminalIdMap, entry.getEntriesInNextLevel(), in runGCInner()
Dshortcut_dict_content.cpp63 const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap, in runGC() argument
65 for (TerminalPositionLookupTable::TerminalIdMap::const_iterator it = terminalIdMap->begin(); in runGC()
66 it != terminalIdMap->end(); ++it) { in runGC()
Dterminal_position_lookup_table.cpp73 bool TerminalPositionLookupTable::runGCTerminalIds(TerminalIdMap *const terminalIdMap) { in runGCTerminalIds() argument
90 terminalIdMap->insert(TerminalIdMap::value_type(i, nextNewTerminalId)); in runGCTerminalIds()
Dlanguage_model_dict_content.h150 bool runGC(const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap,
238 bool runGCInner(const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap,
Dterminal_position_lookup_table.h51 bool runGCTerminalIds(TerminalIdMap *const terminalIdMap);
Dshortcut_dict_content.h60 bool runGC(const TerminalPositionLookupTable::TerminalIdMap *const terminalIdMap,
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
Dterminal_position_lookup_table_test.cpp65 TerminalPositionLookupTable::TerminalIdMap terminalIdMap; in TEST() local
66 EXPECT_TRUE(lookupTable.runGCTerminalIds(&terminalIdMap)); in TEST()
69 EXPECT_EQ(static_cast<int>(i), terminalIdMap[terminalIds[i]]) in TEST()