Home
last modified time | relevance | path

Searched refs:dictPath (Results 1 – 13 of 13) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_dict_buffers.cpp40 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/
Dver4_dict_buffers.cpp34 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/
Dsparse_table_dict_content.cpp30 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()
Dsingle_dict_content.h41 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()
Dsparse_table_dict_content.h43 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()
Dbigram_dict_content.h39 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()
Dterminal_position_lookup_table.h41 TerminalPositionLookupTable(const char *const dictPath, const bool isUpdatable) in TerminalPositionLookupTable() argument
42 : SingleDictContent(dictPath, in TerminalPositionLookupTable()
57 bool flushToFile(const char *const dictPath) const;
Dprobability_dict_content.h41 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;
Dshortcut_dict_content.h38 ShortcutDictContent(const char *const dictPath, const bool isUpdatable) in ShortcutDictContent() argument
39 : SparseTableDictContent(dictPath, in ShortcutDictContent()
65 bool flushToFile(const char *const dictPath) const;
Dterminal_position_lookup_table.cpp62 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()
Dprobability_dict_content.cpp84 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()
Dshortcut_dict_content.cpp71 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/
Ddictionary_structure_with_buffer_policy_factory.cpp148 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()