Searched refs:tmpDirPath (Results 1 – 2 of 2) sorted by relevance
/aosp12/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
H A D | ver4_dict_buffers.cpp | 58 char tmpDirPath[tmpDirPathBufSize]; in flushHeaderAndDictBuffers() local 61 tmpDirPath); in flushHeaderAndDictBuffers() 62 if (FileUtils::existsDir(tmpDirPath)) { in flushHeaderAndDictBuffers() 63 if (!FileUtils::removeDirAndFiles(tmpDirPath)) { in flushHeaderAndDictBuffers() 64 AKLOGE("Existing directory %s cannot be removed.", tmpDirPath); in flushHeaderAndDictBuffers() 70 if (mkdir(tmpDirPath, S_IRWXU) == -1) { in flushHeaderAndDictBuffers() 92 AKLOGE("Dictionary trie file %s%s cannot be written.", tmpDirPath, in flushHeaderAndDictBuffers() 106 AKLOGE("Bigram dict content cannot be written. %s", tmpDirPath); in flushHeaderAndDictBuffers() 110 AKLOGE("Shortcut dict content cannot be written. %s", tmpDirPath); in flushHeaderAndDictBuffers() 120 if (rename(tmpDirPath, dictDirPath) != 0) { in flushHeaderAndDictBuffers() [all …]
|
/aosp12/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
H A D | ver4_dict_buffers.cpp | 74 char tmpDirPath[tmpDirPathBufSize]; in flushHeaderAndDictBuffers() local 77 tmpDirPath); in flushHeaderAndDictBuffers() 78 if (FileUtils::existsDir(tmpDirPath)) { in flushHeaderAndDictBuffers() 79 if (!FileUtils::removeDirAndFiles(tmpDirPath)) { in flushHeaderAndDictBuffers() 80 AKLOGE("Existing directory %s cannot be removed.", tmpDirPath); in flushHeaderAndDictBuffers() 86 if (mkdir(tmpDirPath, S_IRWXU) == -1) { in flushHeaderAndDictBuffers() 87 AKLOGE("Cannot create directory: %s. errno: %d.", tmpDirPath, errno); in flushHeaderAndDictBuffers() 96 FileUtils::getFilePath(tmpDirPath, dictName, dictPathBufSize, dictPath); in flushHeaderAndDictBuffers() 101 AKLOGE("Dictionary header file %s%s cannot be written.", tmpDirPath, in flushHeaderAndDictBuffers() 138 if (rename(tmpDirPath, dictDirPath) != 0) { in flushHeaderAndDictBuffers() [all …]
|