/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | file_utils.cpp | 31 /* 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 …]
|
D | file_utils.h | 24 class FileUtils { 55 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtils);
|
D | dict_file_writing_utils.cpp | 84 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/ |
D | ver4_dict_buffers.cpp | 72 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/ |
D | ver4_dict_buffers.cpp | 56 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/ |
D | SizeFileComparator.java | 23 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/ |
D | FileWriterWithEncoding.java | 28 import org.apache.commons.io.FileUtils; 245 FileUtils.deleteQuietly(file); in initWriter() 252 FileUtils.deleteQuietly(file); in initWriter()
|
D | LockableFileWriter.java | 27 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/ |
D | dictionary_structure_with_buffer_policy_factory.cpp | 42 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/ |
D | DownloadStorageProvider.java | 32 import android.os.FileUtils; 109 displayName = FileUtils.buildValidFatFilename(displayName); in createDocument() 122 final File file = FileUtils.buildUniqueFile(parent, mimeType, displayName); in createDocument()
|
D | Helpers.java | 28 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/ |
D | AgeFileFilter.java | 23 import org.apache.commons.io.FileUtils; 137 boolean newer = FileUtils.isFileNewer(file, cutoff); in accept()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | AssetFileAddress.java | 19 import com.android.inputmethod.latin.common.FileUtils; 63 FileUtils.deleteRecursively(new File(mFilename)); in deleteUnderlyingFile()
|
D | BinaryDictionaryFileDumper.java | 33 import com.android.inputmethod.latin.common.FileUtils; 327 if (!FileUtils.renameTo(outputFile, finalFile)) { in installWordListToStaging()
|
D | ExpandableBinaryDictionary.java | 25 import com.android.inputmethod.latin.common.FileUtils; 231 if (mDictFile.exists() && !FileUtils.deleteRecursively(mDictFile)) { in removeBinaryDictionaryLocked()
|
D | BinaryDictionary.java | 27 import com.android.inputmethod.latin.common.FileUtils; 611 if (!FileUtils.deleteRecursively(dictFile)) { in migrateTo()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | Ver4DictDecoder.java | 21 import com.android.inputmethod.latin.common.FileUtils; 76 FileUtils.deleteRecursively(mDictDirectory); in readDictionaryBinary()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
D | PersonalizationHelper.java | 22 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/ |
D | UserHistoryDictionaryTestsHelper.java | 24 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/ |
D | Test.java | 19 import com.android.inputmethod.latin.common.FileUtils; 107 FileUtils.deleteRecursively(TEST_TMP_DIR); in run()
|
/packages/apps/Browser/src/com/android/browser/provider/ |
D | SnapshotProvider.java | 29 import android.os.FileUtils; 128 FileUtils.copyFile(oldPath, dbPath); in migrateToDataFolder()
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
D | FileUtils.java | 83 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/ |
D | MmsProvider.java | 32 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/ |
D | BinaryDictionaryTests.java | 26 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/ |
D | DictionaryInfoUtils.java | 33 import com.android.inputmethod.latin.common.FileUtils; 317 if (!FileUtils.renameTo(stagingFile, cacheFile)) {
|