/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 114 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 …]
|
D | ver4_patricia_trie_policy.h | 45 : 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
|
D | ver4_dict_buffers.h | 48 return mHeaderBuffer && mDictBuffer && mHeaderPolicy.isValid(); in isValid() 59 return &mHeaderPolicy; in getHeaderPolicy() 123 const HeaderPolicy mHeaderPolicy; variable
|
D | ver4_dict_buffers.cpp | 175 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/backward/v402/ |
D | ver4_patricia_trie_policy.h | 67 : 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
|
D | ver4_patricia_trie_policy.cpp | 70 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()
|
D | ver4_dict_buffers.cpp | 134 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()
|
D | ver4_patricia_trie_node_writer.cpp | 174 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()
|
D | ver4_dict_buffers.h | 57 return mHeaderBuffer && mDictBuffer && mHeaderPolicy.isValid() in isValid() 71 return &mHeaderPolicy; in getHeaderPolicy() 140 const HeaderPolicy mHeaderPolicy; variable
|
D | ver4_patricia_trie_node_reader.h | 57 mHeaderPolicy(headerPolicy) {} in Ver4PatriciaTrieNodeReader() 71 const HeaderPolicy *const mHeaderPolicy; variable
|
D | ver4_patricia_trie_node_reader.cpp | 64 dictBuf, flags, MAX_WORD_LENGTH, mHeaderPolicy->getCodePointTable(), codePoints, &pos); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() 78 probabilityEntry.getHistoricalInfo(), mHeaderPolicy); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
|
D | ver4_patricia_trie_node_writer.h | 64 : mTrieBuffer(trieBuffer), mBuffers(buffers), mHeaderPolicy(headerPolicy), in Ver4PatriciaTrieNodeWriter() 141 const HeaderPolicy *const mHeaderPolicy; variable
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.h | 46 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
|
D | patricia_trie_policy.cpp | 88 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/ |
D | ver4_bigram_list_policy.cpp | 52 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()
|
D | ver4_bigram_list_policy.h | 56 mHeaderPolicy(headerPolicy) {} in Ver4BigramListPolicy() 89 const HeaderPolicy *const mHeaderPolicy; variable
|