/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_dict_buffers.cpp | 53 bool Ver4DictBuffers::flushHeaderAndDictBuffers(const char *const dictDirPath, in flushHeaderAndDictBuffers() argument 56 const int tmpDirPathBufSize = FileUtils::getFilePathWithSuffixBufSize(dictDirPath, in flushHeaderAndDictBuffers() 59 FileUtils::getFilePathWithSuffix(dictDirPath, in flushHeaderAndDictBuffers() 75 const int dictNameBufSize = strlen(dictDirPath) + 1 /* terminator */; in flushHeaderAndDictBuffers() 77 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName); in flushHeaderAndDictBuffers() 114 if (!FileUtils::removeDirAndFiles(dictDirPath)) { in flushHeaderAndDictBuffers() 115 AKLOGE("Existing directory %s cannot be removed.", dictDirPath); in flushHeaderAndDictBuffers() 120 if (rename(tmpDirPath, dictDirPath) != 0) { in flushHeaderAndDictBuffers() 121 AKLOGE("%s cannot be renamed to %s", tmpDirPath, dictDirPath); in flushHeaderAndDictBuffers()
|
D | ver4_dict_buffers.h | 47 static Ver4DictBuffersPtr openVer4DictBuffers(const char *const dictDirPath, 122 bool flush(const char *const dictDirPath) const { in flush() argument 123 return flushHeaderAndDictBuffers(dictDirPath, &mExpandableHeaderBuffer); in flush() 126 bool flushHeaderAndDictBuffers(const char *const dictDirPath, 132 Ver4DictBuffers(const char *const dictDirPath,
|
D | ver4_patricia_trie_writing_helper.cpp | 45 bool Ver4PatriciaTrieWritingHelper::writeToDictFile(const char *const dictDirPath, in writeToDictFile() argument 60 return mBuffers->flushHeaderAndDictBuffers(dictDirPath, &headerBuffer); in writeToDictFile() 64 const char *const dictDirPath) { in writeToDictFileWithGC() argument 83 return dictBuffers->flushHeaderAndDictBuffers(dictDirPath, &headerBuffer); in writeToDictFileWithGC()
|
D | ver4_patricia_trie_writing_helper.h | 50 bool writeToDictFile(const char *const dictDirPath, const EntryCounts &entryCounts) const; 54 bool writeToDictFileWithGC(const int rootPtNodeArrayPos, const char *const dictDirPath);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_dict_buffers.cpp | 69 bool Ver4DictBuffers::flushHeaderAndDictBuffers(const char *const dictDirPath, in flushHeaderAndDictBuffers() argument 72 const int tmpDirPathBufSize = FileUtils::getFilePathWithSuffixBufSize(dictDirPath, in flushHeaderAndDictBuffers() 75 FileUtils::getFilePathWithSuffix(dictDirPath, in flushHeaderAndDictBuffers() 91 const int dictNameBufSize = strlen(dictDirPath) + 1 /* terminator */; in flushHeaderAndDictBuffers() 93 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName); in flushHeaderAndDictBuffers() 132 if (!FileUtils::removeDirAndFiles(dictDirPath)) { in flushHeaderAndDictBuffers() 133 AKLOGE("Existing directory %s cannot be removed.", dictDirPath); in flushHeaderAndDictBuffers() 138 if (rename(tmpDirPath, dictDirPath) != 0) { in flushHeaderAndDictBuffers() 139 AKLOGE("%s cannot be renamed to %s", tmpDirPath, dictDirPath); in flushHeaderAndDictBuffers()
|
D | ver4_dict_buffers.h | 38 static Ver4DictBuffersPtr openVer4DictBuffers(const char *const dictDirPath, 102 bool flush(const char *const dictDirPath) const { in flush() argument 103 return flushHeaderAndDictBuffers(dictDirPath, &mExpandableHeaderBuffer); in flush() 106 bool flushHeaderAndDictBuffers(const char *const dictDirPath,
|
D | ver4_patricia_trie_writing_helper.cpp | 36 bool Ver4PatriciaTrieWritingHelper::writeToDictFile(const char *const dictDirPath, in writeToDictFile() argument 53 return mBuffers->flushHeaderAndDictBuffers(dictDirPath, &headerBuffer); in writeToDictFile() 57 const char *const dictDirPath) { in writeToDictFileWithGC() argument 72 return dictBuffers->flushHeaderAndDictBuffers(dictDirPath, &headerBuffer); in writeToDictFileWithGC()
|
D | ver4_patricia_trie_writing_helper.h | 37 bool writeToDictFile(const char *const dictDirPath, const EntryCounts &entryCounts) const; 41 bool writeToDictFileWithGC(const int rootPtNodeArrayPos, const char *const dictDirPath);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/ |
D | dictionary_structure_with_buffer_policy_factory.cpp | 200 const char *const dictDirPath, const int outHeaderFileBufSize, in getHeaderFilePathInDictDir() argument 202 const int dictNameBufSize = strlen(dictDirPath) + 1 /* terminator */; in getHeaderFilePathInDictDir() 204 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName); in getHeaderFilePathInDictDir() 205 snprintf(outHeaderFilePath, outHeaderFileBufSize, "%s/%s%s", dictDirPath, in getHeaderFilePathInDictDir()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/ |
D | sparse_table_dict_content.h | 106 bool flush(const char *const dictDirPath, const char *const lookupTableFileName,
|