Home
last modified time | relevance | path

Searched refs:dictDirPath (Results 1 – 10 of 10) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_dict_buffers.cpp53 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()
Dver4_dict_buffers.h47 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,
Dver4_patricia_trie_writing_helper.cpp45 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()
Dver4_patricia_trie_writing_helper.h50 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/
Dver4_dict_buffers.cpp69 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()
Dver4_dict_buffers.h38 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,
Dver4_patricia_trie_writing_helper.cpp36 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()
Dver4_patricia_trie_writing_helper.h37 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/
Ddictionary_structure_with_buffer_policy_factory.cpp200 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/
Dsparse_table_dict_content.h106 bool flush(const char *const dictDirPath, const char *const lookupTableFileName,