Searched refs:mmappedBuffer (Results 1 – 5 of 5) sorted by relevance
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/ |
D | dictionary_structure_with_buffer_policy_factory.cpp | 108 MmappedBuffer::MmappedBufferPtr mmappedBuffer = in newPolicyForDirectoryDict() local 110 if (!mmappedBuffer) { in newPolicyForDirectoryDict() 114 mmappedBuffer->getReadOnlyByteArrayView()); in newPolicyForDirectoryDict() 126 headerFilePath, formatVersion, std::move(mmappedBuffer)); in newPolicyForDirectoryDict() 132 headerFilePath, formatVersion, std::move(mmappedBuffer)); in newPolicyForDirectoryDict() 146 MmappedBuffer::MmappedBufferPtr &&mmappedBuffer) { in newPolicyForV4Dict() argument 157 DictBuffers::openVer4DictBuffers(dictPath, std::move(mmappedBuffer), formatVersion); in newPolicyForV4Dict() 173 MmappedBuffer::MmappedBufferPtr mmappedBuffer( in newPolicyForFileDict() local 175 if (!mmappedBuffer) { in newPolicyForFileDict() 178 switch (FormatUtils::detectFormatVersion(mmappedBuffer->getReadOnlyByteArrayView())) { in newPolicyForFileDict() [all …]
|
D | dictionary_structure_with_buffer_policy_factory.h | 55 MmappedBuffer::MmappedBufferPtr &&mmappedBuffer);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | mmapped_buffer.cpp | 43 void *const mmappedBuffer = mmap(0, alignedSize, protMode, MAP_PRIVATE, mmapFd, in openBuffer() local 45 if (mmappedBuffer == MAP_FAILED) { in openBuffer() 50 uint8_t *const buffer = static_cast<uint8_t *>(mmappedBuffer) + offset; in openBuffer() 56 return MmappedBufferPtr(new MmappedBuffer(buffer, bufferSize, mmappedBuffer, alignedSize, in openBuffer()
|
D | mmapped_buffer.h | 57 void *const mmappedBuffer, const int alignedSize, const int mmapFd, in MmappedBuffer() argument 59 : mByteArrayView(buffer, bufferSize), mMmappedBuffer(mmappedBuffer), in MmappedBuffer()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.h | 44 PatriciaTriePolicy(MmappedBuffer::MmappedBufferPtr mmappedBuffer) in PatriciaTriePolicy() argument 45 : mMmappedBuffer(std::move(mmappedBuffer)), in PatriciaTriePolicy()
|