/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | buffer_with_extendable_buffer.cpp | 21 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 …]
|
D | dict_file_writing_utils.h | 28 class BufferWithExtendableBuffer; variable 39 const BufferWithExtendableBuffer *const buffer); 42 const BufferWithExtendableBuffer *const buffer); 61 const BufferWithExtendableBuffer *const buffer); 64 const BufferWithExtendableBuffer *const buffer);
|
D | buffer_with_extendable_buffer.h | 34 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);
|
D | sparse_table.h | 30 SparseTable(BufferWithExtendableBuffer *const indexTableBuffer, in SparseTable() 31 BufferWithExtendableBuffer *const contentTableBuffer, const int blockSize, in SparseTable() 54 BufferWithExtendableBuffer *const mIndexTableBuffer; 55 BufferWithExtendableBuffer *const mContentTableBuffer;
|
D | dict_file_writing_utils.cpp | 83 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/ |
D | dynamic_pt_writing_utils.h | 27 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,
|
D | dynamic_pt_writing_utils.cpp | 39 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()
|
D | dynamic_pt_updating_helper.h | 27 class BufferWithExtendableBuffer; variable 35 DynamicPtUpdatingHelper(BufferWithExtendableBuffer *const buffer, in DynamicPtUpdatingHelper() 64 BufferWithExtendableBuffer *const mBuffer;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | sparse_table_dict_content.h | 36 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;
|
D | single_dict_content.h | 34 BufferWithExtendableBuffer::DEFAULT_MAX_ADDITIONAL_BUFFER_SIZE) {} in SingleDictContent() 46 BufferWithExtendableBuffer *getWritableBuffer() { in getWritableBuffer() 50 const BufferWithExtendableBuffer *getBuffer() const { in getBuffer() 61 BufferWithExtendableBuffer mExpandableContentBuffer;
|
D | language_model_dict_content_global_counters.h | 49 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/ |
D | sparse_table_dict_content.h | 56 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;
|
D | single_dict_content.h | 47 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/ |
D | buffer_with_extendable_buffer_test.cpp | 27 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()
|
D | sparse_table_test.cpp | 29 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/ |
D | ver4_dict_buffers.h | 62 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;
|
D | ver4_pt_node_array_reader.h | 25 class BufferWithExtendableBuffer; variable 29 Ver4PtNodeArrayReader(const BufferWithExtendableBuffer *const buffer) : mBuffer(buffer) {}; in Ver4PtNodeArrayReader() 39 const BufferWithExtendableBuffer *const mBuffer;
|
D | ver4_patricia_trie_writing_helper.cpp | 39 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()
|
D | ver4_patricia_trie_node_reader.h | 26 class BufferWithExtendableBuffer; variable 36 explicit Ver4PatriciaTrieNodeReader(const BufferWithExtendableBuffer *const buffer) in Ver4PatriciaTrieNodeReader() 49 const BufferWithExtendableBuffer *const mBuffer;
|
D | ver4_patricia_trie_node_writer.h | 28 class BufferWithExtendableBuffer; variable 40 Ver4PatriciaTrieNodeWriter(BufferWithExtendableBuffer *const trieBuffer, in Ver4PatriciaTrieNodeWriter() 102 BufferWithExtendableBuffer *const mTrieBuffer;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_dict_buffers.h | 74 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;
|
D | ver4_pt_node_array_reader.h | 36 class BufferWithExtendableBuffer; variable 42 Ver4PtNodeArrayReader(const BufferWithExtendableBuffer *const buffer) : mBuffer(buffer) {}; in Ver4PtNodeArrayReader() 52 const BufferWithExtendableBuffer *const mBuffer;
|
D | ver4_patricia_trie_node_reader.h | 37 class BufferWithExtendableBuffer; variable 53 Ver4PatriciaTrieNodeReader(const BufferWithExtendableBuffer *const buffer, in Ver4PatriciaTrieNodeReader() 69 const BufferWithExtendableBuffer *const mBuffer;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/header/ |
D | header_read_write_utils.h | 28 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,
|
D | header_read_write_utils.cpp | 105 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()
|