Home
last modified time | relevance | path

Searched refs:mmappedBuffer (Results 1 – 5 of 5) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/
Ddictionary_structure_with_buffer_policy_factory.cpp108 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 …]
Ddictionary_structure_with_buffer_policy_factory.h55 MmappedBuffer::MmappedBufferPtr &&mmappedBuffer);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dmmapped_buffer.cpp43 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()
Dmmapped_buffer.h57 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/
Dpatricia_trie_policy.h44 PatriciaTriePolicy(MmappedBuffer::MmappedBufferPtr mmappedBuffer) in PatriciaTriePolicy() argument
45 : mMmappedBuffer(std::move(mmappedBuffer)), in PatriciaTriePolicy()