Home
last modified time | relevance | path

Searched refs:mDictBuffer (Results 1 – 8 of 8) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.h46 mDictBuffer(mBuffers->getWritableTrieBuffer()), in Ver4PatriciaTriePolicy()
49 mNodeReader(mDictBuffer), mPtNodeArrayReader(mDictBuffer), in Ver4PatriciaTriePolicy()
50 mNodeWriter(mDictBuffer, mBuffers.get(), &mNodeReader, &mPtNodeArrayReader, in Ver4PatriciaTriePolicy()
52 mUpdatingHelper(mDictBuffer, &mNodeReader, &mNodeWriter), in Ver4PatriciaTriePolicy()
135 BufferWithExtendableBuffer *const mDictBuffer; variable
Dver4_patricia_trie_policy.cpp185 if (mDictBuffer->getTailPosition() >= MIN_DICT_SIZE_TO_REFUSE_DYNAMIC_OPERATIONS) { in addUnigramEntry()
187 mDictBuffer->getTailPosition()); in addUnigramEntry()
277 if (mDictBuffer->getTailPosition() >= MIN_DICT_SIZE_TO_REFUSE_DYNAMIC_OPERATIONS) { in addNgramEntry()
279 mDictBuffer->getTailPosition()); in addNgramEntry()
340 if (mDictBuffer->getTailPosition() >= MIN_DICT_SIZE_TO_REFUSE_DYNAMIC_OPERATIONS) { in removeNgramEntry()
342 mDictBuffer->getTailPosition()); in removeNgramEntry()
464 } else if (mHeaderPolicy->getExtendedRegionSize() + mDictBuffer->getUsedAdditionalBufferSize() in needsToRunGC()
468 } else if (mDictBuffer->getTailPosition() >= MIN_DICT_SIZE_TO_REFUSE_DYNAMIC_OPERATIONS in needsToRunGC()
469 && mDictBuffer->getUsedAdditionalBufferSize() > 0) { in needsToRunGC()
Dver4_dict_buffers.cpp174 : mHeaderBuffer(std::move(headerBuffer)), mDictBuffer(std::move(bodyBuffer)), in Ver4DictBuffers()
185 mIsUpdatable(mDictBuffer->isUpdatable()) {} in Ver4DictBuffers()
188 : mHeaderBuffer(nullptr), mDictBuffer(nullptr), mHeaderPolicy(headerPolicy), in Ver4DictBuffers()
Dver4_dict_buffers.h48 return mHeaderBuffer && mDictBuffer && mHeaderPolicy.isValid(); in isValid()
122 const MmappedBuffer::MmappedBufferPtr mDictBuffer; variable
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.h68 mDictBuffer(mBuffers->getWritableTrieBuffer()), in Ver4PatriciaTriePolicy()
73 mNodeReader(mDictBuffer, mBuffers->getProbabilityDictContent(), mHeaderPolicy), in Ver4PatriciaTriePolicy()
74 mPtNodeArrayReader(mDictBuffer), in Ver4PatriciaTriePolicy()
75 mNodeWriter(mDictBuffer, mBuffers.get(), mHeaderPolicy, &mNodeReader, in Ver4PatriciaTriePolicy()
77 mUpdatingHelper(mDictBuffer, &mNodeReader, &mNodeWriter), in Ver4PatriciaTriePolicy()
157 BufferWithExtendableBuffer *const mDictBuffer; variable
Dver4_patricia_trie_policy.cpp272 if (mDictBuffer->getTailPosition() >= MIN_DICT_SIZE_TO_REFUSE_DYNAMIC_OPERATIONS) { in addUnigramEntry()
274 mDictBuffer->getTailPosition()); in addUnigramEntry()
352 if (mDictBuffer->getTailPosition() >= MIN_DICT_SIZE_TO_REFUSE_DYNAMIC_OPERATIONS) { in addNgramEntry()
354 mDictBuffer->getTailPosition()); in addNgramEntry()
414 if (mDictBuffer->getTailPosition() >= MIN_DICT_SIZE_TO_REFUSE_DYNAMIC_OPERATIONS) { in removeNgramEntry()
416 mDictBuffer->getTailPosition()); in removeNgramEntry()
509 } else if (mHeaderPolicy->getExtendedRegionSize() + mDictBuffer->getUsedAdditionalBufferSize() in needsToRunGC()
513 } else if (mDictBuffer->getTailPosition() >= MIN_DICT_SIZE_TO_REFUSE_DYNAMIC_OPERATIONS in needsToRunGC()
514 && mDictBuffer->getUsedAdditionalBufferSize() > 0) { in needsToRunGC()
Dver4_dict_buffers.cpp132 mDictBuffer(MmappedBuffer::openBuffer(dictPath, in Ver4DictBuffers()
138 mDictBuffer ? mDictBuffer->getReadWriteByteArrayView() : in Ver4DictBuffers()
148 : mHeaderBuffer(nullptr), mDictBuffer(nullptr), mHeaderPolicy(headerPolicy), in Ver4DictBuffers()
Dver4_dict_buffers.h57 return mHeaderBuffer && mDictBuffer && mHeaderPolicy.isValid() in isValid()
139 const MmappedBuffer::MmappedBufferPtr mDictBuffer; variable