Home
last modified time | relevance | path

Searched refs:maxBigramCount (Results 1 – 3 of 3) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_writing_helper.cpp129 const int maxBigramCount = headerPolicy->getMaxNgramCounts().getNgramCount(NgramType::Bigram); in runGC() local
130 if (headerPolicy->isDecayingDict() && bigramCount > maxBigramCount) { in runGC()
131 if (!truncateBigrams(maxBigramCount)) { in runGC()
132 AKLOGE("Cannot remove bigrams. current: %d, max: %d", bigramCount, maxBigramCount); in runGC()
242 bool Ver4PatriciaTrieWritingHelper::truncateBigrams(const int maxBigramCount) { in truncateBigrams() argument
274 while (static_cast<int>(priorityQueue.size()) > maxBigramCount) { in truncateBigrams()
Dver4_patricia_trie_writing_helper.h132 bool truncateBigrams(const int maxBigramCount);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java527 final int maxBigramCount = 10000; in testRandomOperationsAndFlashWithGC() local
530 attributeMap.put(DictionaryHeader.MAX_BIGRAM_COUNT_KEY, String.valueOf(maxBigramCount)); in testRandomOperationsAndFlashWithGC()
658 final int maxBigramCount = 10000; in testUnigramAndBigramCount() local
661 attributeMap.put(DictionaryHeader.MAX_BIGRAM_COUNT_KEY, String.valueOf(maxBigramCount)); in testUnigramAndBigramCount()