Home
last modified time | relevance | path

Searched refs:FileUtils (Results 1 – 25 of 29) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dfile_utils.cpp31 /* static */ int FileUtils::getFileSize(const char *const filePath) { in getFileSize()
45 /* static */ bool FileUtils::existsDir(const char *const dirPath) { in existsDir()
55 /* static */ bool FileUtils::removeDirAndFiles(const char *const dirPath) { in removeDirAndFiles()
60 /* static */ bool FileUtils::removeDirAndFiles(const char *const dirPath, const int maxTries) { in removeDirAndFiles()
97 /* static */ int FileUtils::getFilePathWithSuffixBufSize(const char *const filePath, in getFilePathWithSuffixBufSize()
102 /* static */ void FileUtils::getFilePathWithSuffix(const char *const filePath, in getFilePathWithSuffix()
107 /* static */ int FileUtils::getFilePathBufSize(const char *const dirPath, in getFilePathBufSize()
112 /* static */ void FileUtils::getFilePath(const char *const dirPath, const char *const fileName, in getFilePath()
117 /* static */ bool FileUtils::getFilePathWithoutSuffix(const char *const filePath, in getFilePathWithoutSuffix()
140 /* static */ void FileUtils::getDirPath(const char *const filePath, const int outDirPathBufSize, in getDirPath()
[all …]
Dfile_utils.h24 class FileUtils {
55 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtils);
Ddict_file_writing_utils.cpp84 const int filePathBufSize = FileUtils::getFilePathWithSuffixBufSize(basePath, suffix); in flushBufferToFileWithSuffix()
86 FileUtils::getFilePathWithSuffix(basePath, suffix, filePathBufSize, filePath); in flushBufferToFileWithSuffix()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_dict_buffers.cpp72 const int tmpDirPathBufSize = FileUtils::getFilePathWithSuffixBufSize(dictDirPath, in flushHeaderAndDictBuffers()
75 FileUtils::getFilePathWithSuffix(dictDirPath, in flushHeaderAndDictBuffers()
78 if (FileUtils::existsDir(tmpDirPath)) { in flushHeaderAndDictBuffers()
79 if (!FileUtils::removeDirAndFiles(tmpDirPath)) { in flushHeaderAndDictBuffers()
93 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName); in flushHeaderAndDictBuffers()
94 const int dictPathBufSize = FileUtils::getFilePathBufSize(tmpDirPath, dictName); in flushHeaderAndDictBuffers()
96 FileUtils::getFilePath(tmpDirPath, dictName, dictPathBufSize, dictPath); in flushHeaderAndDictBuffers()
107 const int bodyFilePathBufSize = FileUtils::getFilePathWithSuffixBufSize(dictPath, in flushHeaderAndDictBuffers()
110 FileUtils::getFilePathWithSuffix(dictPath, Ver4DictConstants::BODY_FILE_EXTENSION, in flushHeaderAndDictBuffers()
132 if (!FileUtils::removeDirAndFiles(dictDirPath)) { in flushHeaderAndDictBuffers()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_dict_buffers.cpp56 const int tmpDirPathBufSize = FileUtils::getFilePathWithSuffixBufSize(dictDirPath, in flushHeaderAndDictBuffers()
59 FileUtils::getFilePathWithSuffix(dictDirPath, in flushHeaderAndDictBuffers()
62 if (FileUtils::existsDir(tmpDirPath)) { in flushHeaderAndDictBuffers()
63 if (!FileUtils::removeDirAndFiles(tmpDirPath)) { in flushHeaderAndDictBuffers()
77 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName); in flushHeaderAndDictBuffers()
78 const int dictPathBufSize = FileUtils::getFilePathBufSize(tmpDirPath, dictName); in flushHeaderAndDictBuffers()
80 FileUtils::getFilePath(tmpDirPath, dictName, dictPathBufSize, dictPath); in flushHeaderAndDictBuffers()
114 if (!FileUtils::removeDirAndFiles(dictDirPath)) { in flushHeaderAndDictBuffers()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/comparator/
DSizeFileComparator.java23 import org.apache.commons.io.FileUtils;
111 size1 = sumDirectoryContents && file1.exists() ? FileUtils.sizeOfDirectory(file1) : 0; in compare()
117 size2 = sumDirectoryContents && file2.exists() ? FileUtils.sizeOfDirectory(file2) : 0; in compare()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
DFileWriterWithEncoding.java28 import org.apache.commons.io.FileUtils;
245 FileUtils.deleteQuietly(file); in initWriter()
252 FileUtils.deleteQuietly(file); in initWriter()
DLockableFileWriter.java27 import org.apache.commons.io.FileUtils;
164 FileUtils.forceMkdir(file.getParentFile()); in LockableFileWriter()
175 FileUtils.forceMkdir(lockDirFile); in LockableFileWriter()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/
Ddictionary_structure_with_buffer_policy_factory.cpp42 if (FileUtils::existsDir(path)) { in newPolicyForExistingDictFile()
149 if (!FileUtils::getFilePathWithoutSuffix(headerFilePath, in newPolicyForV4Dict()
204 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName); in getHeaderFilePathInDictDir()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java32 import android.os.FileUtils;
109 displayName = FileUtils.buildValidFatFilename(displayName); in createDocument()
122 final File file = FileUtils.buildUniqueFile(parent, mimeType, displayName); in createDocument()
DHelpers.java28 import android.os.FileUtils;
224 filename = FileUtils.buildValidFatFilename(filename);
406 return FileUtils.contains(dir.getCanonicalFile(), file); in containsCanonical()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/
DAgeFileFilter.java23 import org.apache.commons.io.FileUtils;
137 boolean newer = FileUtils.isFileNewer(file, cutoff); in accept()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DAssetFileAddress.java19 import com.android.inputmethod.latin.common.FileUtils;
63 FileUtils.deleteRecursively(new File(mFilename)); in deleteUnderlyingFile()
DBinaryDictionaryFileDumper.java33 import com.android.inputmethod.latin.common.FileUtils;
327 if (!FileUtils.renameTo(outputFile, finalFile)) { in installWordListToStaging()
DExpandableBinaryDictionary.java25 import com.android.inputmethod.latin.common.FileUtils;
231 if (mDictFile.exists() && !FileUtils.deleteRecursively(mDictFile)) { in removeBinaryDictionaryLocked()
DBinaryDictionary.java27 import com.android.inputmethod.latin.common.FileUtils;
611 if (!FileUtils.deleteRecursively(dictFile)) { in migrateTo()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DVer4DictDecoder.java21 import com.android.inputmethod.latin.common.FileUtils;
76 FileUtils.deleteRecursively(mDictDirectory); in readDictionaryBinary()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
DPersonalizationHelper.java22 import com.android.inputmethod.latin.common.FileUtils;
87 final boolean filesDeleted = FileUtils.deleteFilteredFiles( in removeAllUserHistoryDictionaries()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/
DUserHistoryDictionaryTestsHelper.java24 import com.android.inputmethod.latin.common.FileUtils;
62 FileUtils.deleteFilteredFiles(context.getFilesDir(), filenameFilter); in removeAllTestDictFiles()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DTest.java19 import com.android.inputmethod.latin.common.FileUtils;
107 FileUtils.deleteRecursively(TEST_TMP_DIR); in run()
/packages/apps/Browser/src/com/android/browser/provider/
DSnapshotProvider.java29 import android.os.FileUtils;
128 FileUtils.copyFile(oldPath, dbPath); in migrateToDataFolder()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DFileUtils.java83 public class FileUtils { class
88 public FileUtils() { in FileUtils() method in FileUtils
1824 FileUtils.deleteQuietly(destFile); in moveFile()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsProvider.java32 import android.os.FileUtils;
476 int result = FileUtils.setPermissions(path, 0666, -1, -1); in insert()
771 int result = FileUtils.setPermissions(path, 0644, -1, -1); in update()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java26 import com.android.inputmethod.latin.common.FileUtils;
117 FileUtils.deleteRecursively(dictFile); in testIsValidDictionary()
126 FileUtils.deleteRecursively(dictFile); in testConstructingDictionaryOnMemory()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DDictionaryInfoUtils.java33 import com.android.inputmethod.latin.common.FileUtils;
317 if (!FileUtils.renameTo(stagingFile, cacheFile)) {

12