Home
last modified time | relevance | path

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

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_writing_helper.cpp47 const HeaderPolicy *const headerPolicy = mBuffers->getHeaderPolicy(); in writeToDictFile()
51 + mBuffers->getTrieBuffer()->getUsedAdditionalBufferSize(); in writeToDictFile()
60 return mBuffers->flushHeaderAndDictBuffers(dictDirPath, &headerBuffer); in writeToDictFile()
65 const HeaderPolicy *const headerPolicy = mBuffers->getHeaderPolicy(); in writeToDictFileWithGC()
89 Ver4PatriciaTrieNodeReader ptNodeReader(mBuffers->getTrieBuffer(), in runGC()
90 mBuffers->getProbabilityDictContent(), headerPolicy); in runGC()
91 Ver4PtNodeArrayReader ptNodeArrayReader(mBuffers->getTrieBuffer()); in runGC()
92 Ver4BigramListPolicy bigramPolicy(mBuffers->getMutableBigramDictContent(), in runGC()
93 mBuffers->getTerminalPositionLookupTable(), headerPolicy); in runGC()
94 Ver4ShortcutListPolicy shortcutPolicy(mBuffers->getMutableShortcutDictContent(), in runGC()
[all …]
Dver4_patricia_trie_policy.h67 : mBuffers(std::move(buffers)), mHeaderPolicy(mBuffers->getHeaderPolicy()), in Ver4PatriciaTriePolicy()
68 mDictBuffer(mBuffers->getWritableTrieBuffer()), in Ver4PatriciaTriePolicy()
69 mBigramPolicy(mBuffers->getMutableBigramDictContent(), in Ver4PatriciaTriePolicy()
70 mBuffers->getTerminalPositionLookupTable(), mHeaderPolicy), in Ver4PatriciaTriePolicy()
71 mShortcutPolicy(mBuffers->getMutableShortcutDictContent(), in Ver4PatriciaTriePolicy()
72 mBuffers->getTerminalPositionLookupTable()), in Ver4PatriciaTriePolicy()
73 mNodeReader(mDictBuffer, mBuffers->getProbabilityDictContent(), mHeaderPolicy), in Ver4PatriciaTriePolicy()
75 mNodeWriter(mDictBuffer, mBuffers.get(), mHeaderPolicy, &mNodeReader, in Ver4PatriciaTriePolicy()
78 mWritingHelper(mBuffers.get()), in Ver4PatriciaTriePolicy()
155 const Ver4DictBuffers::Ver4DictBuffersPtr mBuffers; variable
Dver4_patricia_trie_policy.cpp181 const int bigramsPosition = mBuffers->getBigramDictContent()->getBigramListHeadPos( in getProbabilityOfWord()
208 const int bigramsPosition = mBuffers->getBigramDictContent()->getBigramListHeadPos( in iterateNgramEntries()
250 return mBuffers->getShortcutDictContent()->getShortcutListHeadPos( in getShortcutPositionOfPtNode()
262 return mBuffers->getBigramDictContent()->getBigramListHeadPos( in getBigramsPositionOfPtNode()
268 if (!mBuffers->isUpdatable()) { in addUnigramEntry()
334 if (!mBuffers->isUpdatable()) { in removeUnigramEntry()
348 if (!mBuffers->isUpdatable()) { in addNgramEntry()
410 if (!mBuffers->isUpdatable()) { in removeNgramEntry()
452 if (!mBuffers->isUpdatable()) { in updateEntriesForWordWithNgramContext()
476 if (!mBuffers->isUpdatable()) { in flush()
[all …]
Dver4_patricia_trie_node_writer.cpp67 return mBuffers->getMutableTerminalPositionLookupTable()->setTerminalPtNodePosition( in markPtNodeAsDeleted()
134 if (!mBuffers->getMutableTerminalPositionLookupTable()->setTerminalPtNodePosition( in markPtNodeAsWillBecomeNonTerminal()
155 mBuffers->getProbabilityDictContent()->getProbabilityEntry( in updatePtNodeUnigramProperty()
159 return mBuffers->getMutableProbabilityDictContent()->setProbabilityEntry( in updatePtNodeUnigramProperty()
170 mBuffers->getProbabilityDictContent()->getProbabilityEntry( in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
177 if (!mBuffers->getMutableProbabilityDictContent()->setProbabilityEntry( in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
230 return mBuffers->getMutableProbabilityDictContent()->setProbabilityEntry(terminalId, in writeNewTerminalPtNodeAndAdvancePosition()
242 mBuffers->getTerminalPositionLookupTable()->getTerminalPtNodePosition(prevWordIds[0]); in addNgramEntry()
329 const bool hasBigrams = mBuffers->getBigramDictContent()->getBigramListHeadPos( in updatePtNodeHasBigramsAndShortcutTargetsFlags()
331 const bool hasShortcutTargets = mBuffers->getShortcutDictContent()->getShortcutListHeadPos( in updatePtNodeHasBigramsAndShortcutTargetsFlags()
[all …]
Dver4_patricia_trie_writing_helper.h48 : mBuffers(buffers) {} in Ver4PatriciaTrieWritingHelper()
134 Ver4DictBuffers *const mBuffers; variable
Dver4_patricia_trie_node_writer.h64 : mTrieBuffer(trieBuffer), mBuffers(buffers), mHeaderPolicy(headerPolicy), in Ver4PatriciaTrieNodeWriter()
140 Ver4DictBuffers *const mBuffers; variable
/packages/services/Car/evs/sampleDriver/
DEvsV4lCamera.cpp84 if (mBuffers.size() > 0) { in shutdown()
86 for (auto&& rec : mBuffers) { in shutdown()
93 mBuffers.clear(); in shutdown()
222 } else if (buffer.bufferId >= mBuffers.size()) { in doneWithFrame()
224 buffer.bufferId, mBuffers.size()-1); in doneWithFrame()
225 } else if (!mBuffers[buffer.bufferId].inUse) { in doneWithFrame()
230 mBuffers[buffer.bufferId].inUse = false; in doneWithFrame()
237 for (auto&& rec : mBuffers) { in doneWithFrame()
239 rec.handle = mBuffers[buffer.bufferId].handle; in doneWithFrame()
240 mBuffers[buffer.bufferId].handle = nullptr; in doneWithFrame()
[all …]
DEvsV4lCamera.h84 std::vector <BufferRecord> mBuffers; // Graphics buffers to transfer images variable
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_writing_helper.cpp38 const HeaderPolicy *const headerPolicy = mBuffers->getHeaderPolicy(); in writeToDictFile()
42 + mBuffers->getTrieBuffer()->getUsedAdditionalBufferSize(); in writeToDictFile()
53 return mBuffers->flushHeaderAndDictBuffers(dictDirPath, &headerBuffer); in writeToDictFile()
58 const HeaderPolicy *const headerPolicy = mBuffers->getHeaderPolicy(); in writeToDictFileWithGC()
78 Ver4PatriciaTrieNodeReader ptNodeReader(mBuffers->getTrieBuffer()); in runGC()
79 Ver4PtNodeArrayReader ptNodeArrayReader(mBuffers->getTrieBuffer()); in runGC()
80 Ver4ShortcutListPolicy shortcutPolicy(mBuffers->getMutableShortcutDictContent(), in runGC()
81 mBuffers->getTerminalPositionLookupTable()); in runGC()
82 Ver4PatriciaTrieNodeWriter ptNodeWriter(mBuffers->getWritableTrieBuffer(), in runGC()
83 mBuffers, &ptNodeReader, &ptNodeArrayReader, &shortcutPolicy); in runGC()
[all …]
Dver4_patricia_trie_policy.cpp76 mBuffers->getTerminalPositionLookupTable()->getTerminalPtNodePosition(wordId); in getCodePointsAndReturnCodePointCount()
113 return mBuffers->getLanguageModelDictContent()->getWordAttributes(prevWordIds, wordId, in getWordAttributesInContext()
123 mBuffers->getLanguageModelDictContent()->getWordAttributes(prevWordIds, wordId, in getProbabilityOfWord()
142 const auto languageModelDictContent = mBuffers->getLanguageModelDictContent(); in iterateNgramEntries()
170 mBuffers->getTerminalPositionLookupTable()->getTerminalPtNodePosition(wordId); in getShortcutPositionOfWord()
175 return mBuffers->getShortcutDictContent()->getShortcutListHeadPos( in getShortcutPositionOfWord()
181 if (!mBuffers->isUpdatable()) { in addUnigramEntry()
229 mBuffers->getTerminalPositionLookupTable()->getTerminalPtNodePosition(wordId); in addUnigramEntry()
248 if (!mBuffers->isUpdatable()) { in removeUnigramEntry()
257 mBuffers->getTerminalPositionLookupTable()->getTerminalPtNodePosition(wordId); in removeUnigramEntry()
[all …]
Dver4_patricia_trie_policy.h45 : mBuffers(std::move(buffers)), mHeaderPolicy(mBuffers->getHeaderPolicy()), in Ver4PatriciaTriePolicy()
46 mDictBuffer(mBuffers->getWritableTrieBuffer()), in Ver4PatriciaTriePolicy()
47 mShortcutPolicy(mBuffers->getMutableShortcutDictContent(), in Ver4PatriciaTriePolicy()
48 mBuffers->getTerminalPositionLookupTable()), in Ver4PatriciaTriePolicy()
50 mNodeWriter(mDictBuffer, mBuffers.get(), &mNodeReader, &mPtNodeArrayReader, in Ver4PatriciaTriePolicy()
53 mWritingHelper(mBuffers.get()), in Ver4PatriciaTriePolicy()
133 const Ver4DictBuffers::Ver4DictBuffersPtr mBuffers; variable
Dver4_patricia_trie_node_writer.cpp57 return mBuffers->getMutableTerminalPositionLookupTable()->setTerminalPtNodePosition( in markPtNodeAsDeleted()
125 if (!mBuffers->getMutableTerminalPositionLookupTable()->setTerminalPtNodePosition( in markPtNodeAsWillBecomeNonTerminal()
146 return mBuffers->getMutableLanguageModelDictContent()->setProbabilityEntry( in updatePtNodeUnigramProperty()
157 mBuffers->getLanguageModelDictContent()->getProbabilityEntry( in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
201 return mBuffers->getMutableLanguageModelDictContent()->setProbabilityEntry( in writeNewTerminalPtNodeAndAdvancePosition()
209 mBuffers->getMutableLanguageModelDictContent(); in addNgramEntry()
228 mBuffers->getMutableLanguageModelDictContent(); in removeNgramEntry()
312 terminalId = mBuffers->getTerminalPositionLookupTable()->getNextTerminalId(); in writePtNodeAndGetTerminalIdAndAdvancePosition()
318 if (!mBuffers->getMutableTerminalPositionLookupTable()->setTerminalPtNodePosition( in writePtNodeAndGetTerminalIdAndAdvancePosition()
Dver4_patricia_trie_writing_helper.h35 : mBuffers(buffers) {} in Ver4PatriciaTrieWritingHelper()
72 Ver4DictBuffers *const mBuffers; variable
Dver4_patricia_trie_node_writer.h44 : mTrieBuffer(trieBuffer), mBuffers(buffers), in Ver4PatriciaTrieNodeWriter()
103 Ver4DictBuffers *const mBuffers; variable
/packages/services/Car/evs/app/
DStreamHandler.cpp111 return mBuffers[mHeldBuffer]; in getNewFrame()
119 if ((mHeldBuffer < 0) || (buffer.bufferId != mBuffers[mHeldBuffer].bufferId)) { in doneWithFrame()
124 mCamera->doneWithFrame(mBuffers[mHeldBuffer]); in doneWithFrame()
145 mCamera->doneWithFrame(mBuffers[mReadyBuffer]); in deliverFrame()
157 mBuffers[mReadyBuffer] = buffer; in deliverFrame()
DStreamHandler.h75 BufferDesc mBuffers[2]; variable