Home
last modified time | relevance | path

Searched refs:mHeaderPolicy (Results 1 – 16 of 16) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.h67 : mBuffers(std::move(buffers)), mHeaderPolicy(mBuffers->getHeaderPolicy()), in Ver4PatriciaTriePolicy()
70 mBuffers->getTerminalPositionLookupTable(), mHeaderPolicy), in Ver4PatriciaTriePolicy()
73 mNodeReader(mDictBuffer, mBuffers->getProbabilityDictContent(), mHeaderPolicy), in Ver4PatriciaTriePolicy()
75 mNodeWriter(mDictBuffer, mBuffers.get(), mHeaderPolicy, &mNodeReader, in Ver4PatriciaTriePolicy()
79 mEntryCounters(mHeaderPolicy->getNgramCounts().getCountArray()), in Ver4PatriciaTriePolicy()
107 return mHeaderPolicy; in getHeaderStructurePolicy()
156 const HeaderPolicy *const mHeaderPolicy; variable
Dver4_patricia_trie_policy.cpp70 if (isTerminal && mHeaderPolicy->isDecayingDict()) { in createAndGetAllChildDicNodes()
223 if (mHeaderPolicy->hasHistoricalInfoOfWords()) { in getBigramConditionalProbability()
509 } else if (mHeaderPolicy->getExtendedRegionSize() + mDictBuffer->getUsedAdditionalBufferSize() in needsToRunGC()
517 } else if (mHeaderPolicy->isDecayingDict()) { in needsToRunGC()
519 mHeaderPolicy); in needsToRunGC()
534 mHeaderPolicy->isDecayingDict() ? in getProperty()
536 mHeaderPolicy->getMaxNgramCounts().getNgramCount( in getProperty()
541 mHeaderPolicy->isDecayingDict() ? in getProperty()
543 mHeaderPolicy->getMaxNgramCounts().getNgramCount( in getProperty()
588 bigramEntry.getHistoricalInfo(), mHeaderPolicy) in getWordProperty()
Dver4_dict_buffers.cpp134 mHeaderPolicy(mHeaderBuffer->getReadOnlyByteArrayView().data(), formatVersion), in Ver4DictBuffers()
142 mProbabilityDictContent(dictPath, mHeaderPolicy.hasHistoricalInfoOfWords(), isUpdatable), in Ver4DictBuffers()
143 mBigramDictContent(dictPath, mHeaderPolicy.hasHistoricalInfoOfWords(), isUpdatable), in Ver4DictBuffers()
148 : mHeaderBuffer(nullptr), mDictBuffer(nullptr), mHeaderPolicy(headerPolicy), in Ver4DictBuffers()
Dver4_dict_buffers.h57 return mHeaderBuffer && mDictBuffer && mHeaderPolicy.isValid() in isValid()
71 return &mHeaderPolicy; in getHeaderPolicy()
140 const HeaderPolicy mHeaderPolicy; variable
Dver4_patricia_trie_node_writer.cpp174 originalProbabilityEntry.getHistoricalInfo(), mHeaderPolicy); in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
183 const bool isValid = ForgettingCurveUtils::needsToKeep(&historicalInfo, mHeaderPolicy); in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
399 if (mHeaderPolicy->hasHistoricalInfoOfWords()) { in createUpdatedEntryFrom()
404 unigramProperty->getProbability(), &historicalInfoForUpdate, mHeaderPolicy); in createUpdatedEntryFrom()
429 if (!mHeaderPolicy->hasHistoricalInfoOfWords()) { in suppressUnigramEntry()
Dver4_patricia_trie_node_reader.h57 mHeaderPolicy(headerPolicy) {} in Ver4PatriciaTrieNodeReader()
71 const HeaderPolicy *const mHeaderPolicy; variable
Dver4_patricia_trie_node_reader.cpp64 dictBuf, flags, MAX_WORD_LENGTH, mHeaderPolicy->getCodePointTable(), codePoints, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
78 probabilityEntry.getHistoricalInfo(), mHeaderPolicy); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
Dver4_patricia_trie_node_writer.h64 : mTrieBuffer(trieBuffer), mBuffers(buffers), mHeaderPolicy(headerPolicy), in Ver4PatriciaTrieNodeWriter()
141 const HeaderPolicy *const mHeaderPolicy; variable
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp114 false /* mustMatchAllPrevWords */, mHeaderPolicy); in getWordAttributesInContext()
124 true /* mustMatchAllPrevWords */, mHeaderPolicy); in getProbabilityOfWord()
419 mHeaderPolicy, &mEntryCounters)) { in updateEntriesForWordWithNgramContext()
424 wordId, updateAsAValidWord, historicalInfo, mHeaderPolicy, &mEntryCounters)) { in updateEntriesForWordWithNgramContext()
464 } else if (mHeaderPolicy->getExtendedRegionSize() + mDictBuffer->getUsedAdditionalBufferSize() in needsToRunGC()
472 } else if (mHeaderPolicy->isDecayingDict()) { in needsToRunGC()
474 mHeaderPolicy); in needsToRunGC()
489 mHeaderPolicy->isDecayingDict() ? in getProperty()
491 mHeaderPolicy->getMaxNgramCounts().getNgramCount( in getProperty()
496 mHeaderPolicy->isDecayingDict() ? in getProperty()
[all …]
Dver4_patricia_trie_policy.h45 : mBuffers(std::move(buffers)), mHeaderPolicy(mBuffers->getHeaderPolicy()), in Ver4PatriciaTriePolicy()
54 mEntryCounters(mHeaderPolicy->getNgramCounts().getCountArray()), in Ver4PatriciaTriePolicy()
86 return mHeaderPolicy; in getHeaderStructurePolicy()
134 const HeaderPolicy *const mHeaderPolicy; variable
Dver4_dict_buffers.h48 return mHeaderBuffer && mDictBuffer && mHeaderPolicy.isValid(); in isValid()
59 return &mHeaderPolicy; in getHeaderPolicy()
123 const HeaderPolicy mHeaderPolicy; variable
Dver4_dict_buffers.cpp175 mHeaderPolicy(mHeaderBuffer->getReadOnlyByteArrayView().data(), formatVersion), in Ver4DictBuffers()
183 mHeaderPolicy.hasHistoricalInfoOfWords()), in Ver4DictBuffers()
188 : mHeaderBuffer(nullptr), mDictBuffer(nullptr), mHeaderPolicy(headerPolicy), in Ver4DictBuffers()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.h46 mHeaderPolicy(mMmappedBuffer->getReadOnlyByteArrayView().data(), in PatriciaTriePolicy()
48 mBuffer(mMmappedBuffer->getReadOnlyByteArrayView().skip(mHeaderPolicy.getSize())), in PatriciaTriePolicy()
51 mHeaderPolicy.getCodePointTable()), in PatriciaTriePolicy()
80 return &mHeaderPolicy; in getHeaderStructurePolicy()
157 const HeaderPolicy mHeaderPolicy; variable
Dpatricia_trie_policy.cpp88 const int *const codePointTable = mHeaderPolicy.getCodePointTable(); in getCodePointsAndProbabilityAndReturnCodePointCount()
412 const int *const codePointTable = mHeaderPolicy.getCodePointTable(); in createAndGetLeavingChildNode()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/
Dver4_bigram_list_policy.cpp52 mHeaderPolicy); in getNextBigram()
194 bigramEntry.getHistoricalInfo(), mHeaderPolicy); in updateAllBigramEntriesAndDeleteUselessEntries()
195 if (ForgettingCurveUtils::needsToKeep(&historicalInfo, mHeaderPolicy)) { in updateAllBigramEntriesAndDeleteUselessEntries()
269 if (mHeaderPolicy->hasHistoricalInfoOfWords()) { in createUpdatedBigramEntryFrom()
274 &historicalInfoForUpdate, mHeaderPolicy); in createUpdatedBigramEntryFrom()
Dver4_bigram_list_policy.h56 mHeaderPolicy(headerPolicy) {} in Ver4BigramListPolicy()
89 const HeaderPolicy *const mHeaderPolicy; variable