/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_dict_buffers.cpp | 40 const char *const dictPath, MmappedBuffer::MmappedBufferPtr headerBuffer, in openVer4DictBuffers() argument 49 return Ver4DictBuffersPtr(new Ver4DictBuffers(dictPath, std::move(headerBuffer), isUpdatable, in openVer4DictBuffers() 79 char dictPath[dictPathBufSize]; in flushHeaderAndDictBuffers() local 80 FileUtils::getFilePath(tmpDirPath, dictName, dictPathBufSize, dictPath); in flushHeaderAndDictBuffers() 83 if (!DictFileWritingUtils::flushBufferToFileWithSuffix(dictPath, in flushHeaderAndDictBuffers() 90 if (!DictFileWritingUtils::flushBufferToFileWithSuffix(dictPath, in flushHeaderAndDictBuffers() 97 if (!mTerminalPositionLookupTable.flushToFile(dictPath)) { in flushHeaderAndDictBuffers() 101 if (!mProbabilityDictContent.flushToFile(dictPath)) { in flushHeaderAndDictBuffers() 105 if (!mBigramDictContent.flushToFile(dictPath)) { in flushHeaderAndDictBuffers() 109 if (!mShortcutDictContent.flushToFile(dictPath)) { in flushHeaderAndDictBuffers() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_dict_buffers.cpp | 34 const char *const dictPath, MmappedBuffer::MmappedBufferPtr &&headerBuffer, in openVer4DictBuffers() argument 43 MmappedBuffer::MmappedBufferPtr bodyBuffer = MmappedBuffer::openBuffer(dictPath, in openVer4DictBuffers() 95 char dictPath[dictPathBufSize]; in flushHeaderAndDictBuffers() local 96 FileUtils::getFilePath(tmpDirPath, dictName, dictPathBufSize, dictPath); in flushHeaderAndDictBuffers() 99 if (!DictFileWritingUtils::flushBufferToFileWithSuffix(dictPath, in flushHeaderAndDictBuffers() 107 const int bodyFilePathBufSize = FileUtils::getFilePathWithSuffixBufSize(dictPath, in flushHeaderAndDictBuffers() 110 FileUtils::getFilePathWithSuffix(dictPath, Ver4DictConstants::BODY_FILE_EXTENSION, in flushHeaderAndDictBuffers()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/ |
D | sparse_table_dict_content.cpp | 30 bool SparseTableDictContent::flush(const char *const dictPath, in flush() argument 33 if (!DictFileWritingUtils::flushBufferToFileWithSuffix(dictPath, lookupTableFileNameSuffix, in flush() 37 if (!DictFileWritingUtils::flushBufferToFileWithSuffix(dictPath, addressTableFileNameSuffix, in flush() 41 if (!DictFileWritingUtils::flushBufferToFileWithSuffix(dictPath, contentFileNameSuffix, in flush()
|
D | single_dict_content.h | 41 SingleDictContent(const char *const dictPath, const char *const contentFileName, in SingleDictContent() argument 43 : mMmappedBuffer(MmappedBuffer::openBuffer(dictPath, contentFileName, isUpdatable)), in SingleDictContent() 73 bool flush(const char *const dictPath, const char *const contentFileNameSuffix) const { in flush() argument 74 return DictFileWritingUtils::flushBufferToFileWithSuffix(dictPath, in flush()
|
D | sparse_table_dict_content.h | 43 AK_FORCE_INLINE SparseTableDictContent(const char *const dictPath, in SparseTableDictContent() argument 48 MmappedBuffer::openBuffer(dictPath, lookupTableFileName, isUpdatable)), in SparseTableDictContent() 50 MmappedBuffer::openBuffer(dictPath, addressTableFileName, isUpdatable)), in SparseTableDictContent() 52 MmappedBuffer::openBuffer(dictPath, contentFileName, isUpdatable)), in SparseTableDictContent()
|
D | bigram_dict_content.h | 39 BigramDictContent(const char *const dictPath, const bool hasHistoricalInfo, in BigramDictContent() argument 41 : SparseTableDictContent(dictPath, in BigramDictContent() 90 bool flushToFile(const char *const dictPath) const { in flushToFile() argument 91 return flush(dictPath, Ver4DictConstants::BIGRAM_LOOKUP_TABLE_FILE_EXTENSION, in flushToFile()
|
D | terminal_position_lookup_table.h | 41 TerminalPositionLookupTable(const char *const dictPath, const bool isUpdatable) in TerminalPositionLookupTable() argument 42 : SingleDictContent(dictPath, in TerminalPositionLookupTable() 57 bool flushToFile(const char *const dictPath) const;
|
D | probability_dict_content.h | 41 ProbabilityDictContent(const char *const dictPath, const bool hasHistoricalInfo, in ProbabilityDictContent() argument 43 : SingleDictContent(dictPath, Ver4DictConstants::FREQ_FILE_EXTENSION, isUpdatable), in ProbabilityDictContent() 54 bool flushToFile(const char *const dictPath) const;
|
D | shortcut_dict_content.h | 38 ShortcutDictContent(const char *const dictPath, const bool isUpdatable) in ShortcutDictContent() argument 39 : SparseTableDictContent(dictPath, in ShortcutDictContent() 65 bool flushToFile(const char *const dictPath) const;
|
D | terminal_position_lookup_table.cpp | 62 bool TerminalPositionLookupTable::flushToFile(const char *const dictPath) const { in flushToFile() 75 return lookupTableToWrite.flush(dictPath, in flushToFile() 80 return flush(dictPath, Ver4DictConstants::TERMINAL_ADDRESS_TABLE_FILE_EXTENSION); in flushToFile()
|
D | probability_dict_content.cpp | 84 bool ProbabilityDictContent::flushToFile(const char *const dictPath) const { in flushToFile() 94 return probabilityDictContentToWrite.flush(dictPath, in flushToFile() 97 return flush(dictPath, Ver4DictConstants::FREQ_FILE_EXTENSION); in flushToFile()
|
D | shortcut_dict_content.cpp | 71 bool ShortcutDictContent::flushToFile(const char *const dictPath) const { in flushToFile() 72 return flush(dictPath, Ver4DictConstants::SHORTCUT_LOOKUP_TABLE_FILE_EXTENSION, in flushToFile()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/ |
D | dictionary_structure_with_buffer_policy_factory.cpp | 148 char dictPath[dictDirPathBufSize]; in newPolicyForV4Dict() local 150 DictConstants::HEADER_FILE_EXTENSION, dictDirPathBufSize, dictPath)) { in newPolicyForV4Dict() 157 DictBuffers::openVer4DictBuffers(dictPath, std::move(mmappedBuffer), formatVersion); in newPolicyForV4Dict() 160 dictPath); in newPolicyForV4Dict()
|