Home
last modified time | relevance | path

Searched refs:BufferWithExtendableBuffer (Results 1 – 25 of 43) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dbuffer_with_extendable_buffer.cpp21 const size_t BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE = 1024 * 1024;
22 const int BufferWithExtendableBuffer::NEAR_BUFFER_LIMIT_THRESHOLD_PERCENTILE = 90;
24 const size_t BufferWithExtendableBuffer::EXTEND_ADDITIONAL_BUFFER_SIZE_STEP = 128 * 1024;
26 uint32_t BufferWithExtendableBuffer::readUint(const int size, const int pos) const { in readUint()
32 uint32_t BufferWithExtendableBuffer::readUintAndAdvancePosition(const int size, in readUintAndAdvancePosition()
39 void BufferWithExtendableBuffer::readCodePointsAndAdvancePosition(const int maxCodePointCount, in readCodePointsAndAdvancePosition()
54 bool BufferWithExtendableBuffer::extend(const int size) { in extend()
58 bool BufferWithExtendableBuffer::writeUint(const uint32_t data, const int size, const int pos) { in writeUint()
63 bool BufferWithExtendableBuffer::writeUintAndAdvancePosition(const uint32_t data, const int size, in writeUintAndAdvancePosition()
86 bool BufferWithExtendableBuffer::writeCodePointsAndAdvancePosition(const int *const codePoints, in writeCodePointsAndAdvancePosition()
[all …]
Ddict_file_writing_utils.h28 class BufferWithExtendableBuffer; variable
39 const BufferWithExtendableBuffer *const buffer);
42 const BufferWithExtendableBuffer *const buffer);
61 const BufferWithExtendableBuffer *const buffer);
64 const BufferWithExtendableBuffer *const buffer);
Dbuffer_with_extendable_buffer.h34 class BufferWithExtendableBuffer {
38 BufferWithExtendableBuffer(const ReadWriteByteArrayView originalBuffer, in BufferWithExtendableBuffer() function
44 BufferWithExtendableBuffer(const int maxAdditionalBufferSize) in BufferWithExtendableBuffer() function
104 bool copy(const BufferWithExtendableBuffer *const sourceBuffer);
107 DISALLOW_COPY_AND_ASSIGN(BufferWithExtendableBuffer);
Dsparse_table.h30 SparseTable(BufferWithExtendableBuffer *const indexTableBuffer, in SparseTable()
31 BufferWithExtendableBuffer *const contentTableBuffer, const int blockSize, in SparseTable()
54 BufferWithExtendableBuffer *const mIndexTableBuffer;
55 BufferWithExtendableBuffer *const mContentTableBuffer;
Ddict_file_writing_utils.cpp83 const char *const suffix, const BufferWithExtendableBuffer *const buffer) { in flushBufferToFileWithSuffix()
91 const BufferWithExtendableBuffer *const buffer) { in writeBufferToFileTail()
103 const BufferWithExtendableBuffer *const buffer) { in flushBufferToFile()
130 const BufferWithExtendableBuffer *const buffer) { in writeBufferToFile()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_writing_utils.h27 class BufferWithExtendableBuffer; variable
33 static bool writeEmptyDictionary(BufferWithExtendableBuffer *const buffer, const int rootPos);
36 BufferWithExtendableBuffer *const buffer, const int forwardLinkPos,
39 static bool writePtNodeArraySizeAndAdvancePosition(BufferWithExtendableBuffer *const buffer,
42 static bool writeFlags(BufferWithExtendableBuffer *const buffer, in writeFlags()
49 static bool writeFlagsAndAdvancePosition(BufferWithExtendableBuffer *const buffer,
53 static bool writeParentPosOffsetAndAdvancePosition(BufferWithExtendableBuffer *const buffer,
56 static bool writeCodePointsAndAdvancePosition(BufferWithExtendableBuffer *const buffer,
59 static bool writeChildrenPositionAndAdvancePosition(BufferWithExtendableBuffer *const buffer,
75 static bool writeDictOffset(BufferWithExtendableBuffer *const buffer, const int targetPos,
Ddynamic_pt_writing_utils.cpp39 BufferWithExtendableBuffer *const buffer, const int rootPos) { in writeEmptyDictionary()
49 BufferWithExtendableBuffer *const buffer, const int forwardLinkPos, in writeForwardLinkPositionAndAdvancePosition()
55 BufferWithExtendableBuffer *const buffer, const size_t arraySize, in writePtNodeArraySizeAndAdvancePosition()
77 BufferWithExtendableBuffer *const buffer, in writeFlagsAndAdvancePosition()
84 BufferWithExtendableBuffer *const buffer, const int parentPos, const int basePos, in writeParentPosOffsetAndAdvancePosition()
90 BufferWithExtendableBuffer *const buffer, const int *const codePoints, in writeCodePointsAndAdvancePosition()
104 BufferWithExtendableBuffer *const buffer, const int childrenPosition, in writeChildrenPositionAndAdvancePosition()
110 /* static */ bool DynamicPtWritingUtils::writeDictOffset(BufferWithExtendableBuffer *const buffer, in writeDictOffset()
Ddynamic_pt_updating_helper.h27 class BufferWithExtendableBuffer; variable
35 DynamicPtUpdatingHelper(BufferWithExtendableBuffer *const buffer, in DynamicPtUpdatingHelper()
64 BufferWithExtendableBuffer *const mBuffer;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dsparse_table_dict_content.h36 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE), in SparseTableDictContent()
38 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE), in SparseTableDictContent()
40 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE), in SparseTableDictContent()
68 BufferWithExtendableBuffer *getWritableContentBuffer() { in getWritableContentBuffer()
72 const BufferWithExtendableBuffer *getContentBuffer() const { in getContentBuffer()
85 BufferWithExtendableBuffer mExpandableLookupTableBuffer;
86 BufferWithExtendableBuffer mExpandableAddressTableBuffer;
87 BufferWithExtendableBuffer mExpandableContentBuffer;
Dsingle_dict_content.h34 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE) {} in SingleDictContent()
46 BufferWithExtendableBuffer *getWritableBuffer() { in getWritableBuffer()
50 const BufferWithExtendableBuffer *getBuffer() const { in getBuffer()
61 BufferWithExtendableBuffer mExpandableContentBuffer;
Dlanguage_model_dict_content_global_counters.h49 BufferWithExtendableBuffer bufferToWrite( in save()
50 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE); in save()
88 BufferWithExtendableBuffer mBuffer;
92 static int readValue(const BufferWithExtendableBuffer &buffer, const int index) { in readValue()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dsparse_table_dict_content.h56 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE), in SparseTableDictContent()
60 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE), in SparseTableDictContent()
64 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE), in SparseTableDictContent()
98 BufferWithExtendableBuffer *getWritableContentBuffer() { in getWritableContentBuffer()
102 const BufferWithExtendableBuffer *getContentBuffer() const { in getContentBuffer()
115 BufferWithExtendableBuffer mExpandableLookupTableBuffer;
116 BufferWithExtendableBuffer mExpandableAddressTableBuffer;
117 BufferWithExtendableBuffer mExpandableContentBuffer;
Dsingle_dict_content.h47 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE), in SingleDictContent()
65 BufferWithExtendableBuffer *getWritableBuffer() { in getWritableBuffer()
69 const BufferWithExtendableBuffer *getBuffer() const { in getBuffer()
82 BufferWithExtendableBuffer mExpandableContentBuffer;
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dbuffer_with_extendable_buffer_test.cpp27 BufferWithExtendableBuffer buffer(DEFAULT_MAX_BUFFER_SIZE); in TEST()
51 BufferWithExtendableBuffer buffer(DEFAULT_MAX_BUFFER_SIZE); in TEST()
62 BufferWithExtendableBuffer buffer(DEFAULT_MAX_BUFFER_SIZE); in TEST()
65 BufferWithExtendableBuffer targetBuffer(DEFAULT_MAX_BUFFER_SIZE); in TEST()
72 BufferWithExtendableBuffer emptyBuffer(0 /* maxAdditionalBufferSize */); in TEST()
76 BufferWithExtendableBuffer smallBuffer(4 /* maxAdditionalBufferSize */); in TEST()
83 BufferWithExtendableBuffer buffer(DEFAULT_MAX_BUFFER_SIZE); in TEST()
Dsparse_table_test.cpp29 BufferWithExtendableBuffer indexTableBuffer( in TEST()
30 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE); in TEST()
31 BufferWithExtendableBuffer contentTableBuffer( in TEST()
32 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE); in TEST()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_dict_buffers.h62 AK_FORCE_INLINE BufferWithExtendableBuffer *getWritableHeaderBuffer() { in getWritableHeaderBuffer()
66 AK_FORCE_INLINE BufferWithExtendableBuffer *getWritableTrieBuffer() { in getWritableTrieBuffer()
70 AK_FORCE_INLINE const BufferWithExtendableBuffer *getTrieBuffer() const { in getTrieBuffer()
107 const BufferWithExtendableBuffer *const headerBuffer) const;
124 BufferWithExtendableBuffer mExpandableHeaderBuffer;
125 BufferWithExtendableBuffer mExpandableTrieBuffer;
Dver4_pt_node_array_reader.h25 class BufferWithExtendableBuffer; variable
29 Ver4PtNodeArrayReader(const BufferWithExtendableBuffer *const buffer) : mBuffer(buffer) {}; in Ver4PtNodeArrayReader()
39 const BufferWithExtendableBuffer *const mBuffer;
Dver4_patricia_trie_node_reader.h26 class BufferWithExtendableBuffer; variable
36 explicit Ver4PatriciaTrieNodeReader(const BufferWithExtendableBuffer *const buffer) in Ver4PatriciaTrieNodeReader()
49 const BufferWithExtendableBuffer *const mBuffer;
Dver4_patricia_trie_writing_helper.cpp39 BufferWithExtendableBuffer headerBuffer( in writeToDictFile()
40 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE); in writeToDictFile()
66 BufferWithExtendableBuffer headerBuffer( in writeToDictFileWithGC()
67 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE); in writeToDictFileWithGC()
Dver4_patricia_trie_node_writer.h28 class BufferWithExtendableBuffer; variable
40 Ver4PatriciaTrieNodeWriter(BufferWithExtendableBuffer *const trieBuffer, in Ver4PatriciaTrieNodeWriter()
102 BufferWithExtendableBuffer *const mTrieBuffer;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_dict_buffers.h74 AK_FORCE_INLINE BufferWithExtendableBuffer *getWritableHeaderBuffer() { in getWritableHeaderBuffer()
78 AK_FORCE_INLINE BufferWithExtendableBuffer *getWritableTrieBuffer() { in getWritableTrieBuffer()
82 AK_FORCE_INLINE const BufferWithExtendableBuffer *getTrieBuffer() const { in getTrieBuffer()
127 const BufferWithExtendableBuffer *const headerBuffer) const;
141 BufferWithExtendableBuffer mExpandableHeaderBuffer;
142 BufferWithExtendableBuffer mExpandableTrieBuffer;
Dver4_pt_node_array_reader.h36 class BufferWithExtendableBuffer; variable
42 Ver4PtNodeArrayReader(const BufferWithExtendableBuffer *const buffer) : mBuffer(buffer) {}; in Ver4PtNodeArrayReader()
52 const BufferWithExtendableBuffer *const mBuffer;
Dver4_patricia_trie_node_reader.h37 class BufferWithExtendableBuffer; variable
53 Ver4PatriciaTrieNodeReader(const BufferWithExtendableBuffer *const buffer, in Ver4PatriciaTrieNodeReader()
69 const BufferWithExtendableBuffer *const mBuffer;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/
Dheader_read_write_utils.h28 class BufferWithExtendableBuffer; variable
52 static bool writeDictionaryVersion(BufferWithExtendableBuffer *const buffer,
55 static bool writeDictionaryFlags(BufferWithExtendableBuffer *const buffer,
58 static bool writeDictionaryHeaderSize(BufferWithExtendableBuffer *const buffer,
61 static bool writeHeaderAttributes(BufferWithExtendableBuffer *const buffer,
Dheader_read_write_utils.cpp105 BufferWithExtendableBuffer *const buffer, const FormatUtils::FORMAT_VERSION version, in writeDictionaryVersion()
128 BufferWithExtendableBuffer *const buffer, const DictionaryFlags flags, in writeDictionaryFlags()
134 BufferWithExtendableBuffer *const buffer, const int size, int *const writingPos) { in writeDictionaryHeaderSize()
139 BufferWithExtendableBuffer *const buffer, const AttributeMap *const headerAttributes, in writeHeaderAttributes()

12