/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
H A D | file_utils.h | 24 class FileUtils { class in namespace:latinime 55 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtils);
|
H A D | file_utils.cpp | 31 /* static */ int FileUtils::getFileSize(const char *const filePath) { 45 /* static */ bool FileUtils::existsDir(const char *const dirPath) { 55 /* static */ bool FileUtils::removeDirAndFiles(const char *const dirPath) { 60 /* static */ bool FileUtils::removeDirAndFiles(const char *const dirPath, const int maxTries) { 97 /* static */ int FileUtils::getFilePathWithSuffixBufSize(const char *const filePath, 102 /* static */ void FileUtils::getFilePathWithSuffix(const char *const filePath, 107 /* static */ int FileUtils::getFilePathBufSize(const char *const dirPath, 112 /* static */ void FileUtils::getFilePath(const char *const dirPath, const char *const fileName, 117 /* static */ bool FileUtils::getFilePathWithoutSuffix(const char *const filePath, 140 /* static */ void FileUtils [all...] |
H A D | dict_file_writing_utils.cpp | 84 const int filePathBufSize = FileUtils::getFilePathWithSuffixBufSize(basePath, suffix); 86 FileUtils::getFilePathWithSuffix(basePath, suffix, filePathBufSize, filePath);
|
H A D | mmapped_buffer.cpp | 62 const int fileSize = FileUtils::getFileSize(path);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
H A D | ver4_dict_buffers.cpp | 72 const int tmpDirPathBufSize = FileUtils::getFilePathWithSuffixBufSize(dictDirPath, 75 FileUtils::getFilePathWithSuffix(dictDirPath, 78 if (FileUtils::existsDir(tmpDirPath)) { 79 if (!FileUtils::removeDirAndFiles(tmpDirPath)) { 93 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName); 94 const int dictPathBufSize = FileUtils::getFilePathBufSize(tmpDirPath, dictName); 96 FileUtils::getFilePath(tmpDirPath, dictName, dictPathBufSize, dictPath); 107 const int bodyFilePathBufSize = FileUtils::getFilePathWithSuffixBufSize(dictPath, 110 FileUtils::getFilePathWithSuffix(dictPath, Ver4DictConstants::BODY_FILE_EXTENSION, 132 if (!FileUtils [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/ |
H A D | AgeFileFilter.java | 23 import org.apache.commons.io.FileUtils; 137 boolean newer = FileUtils.isFileNewer(file, cutoff);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
H A D | ver4_dict_buffers.cpp | 56 const int tmpDirPathBufSize = FileUtils::getFilePathWithSuffixBufSize(dictDirPath, 59 FileUtils::getFilePathWithSuffix(dictDirPath, 62 if (FileUtils::existsDir(tmpDirPath)) { 63 if (!FileUtils::removeDirAndFiles(tmpDirPath)) { 77 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName); 78 const int dictPathBufSize = FileUtils::getFilePathBufSize(tmpDirPath, dictName); 80 FileUtils::getFilePath(tmpDirPath, dictName, dictPathBufSize, dictPath); 114 if (!FileUtils::removeDirAndFiles(dictDirPath)) {
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/comparator/ |
H A D | SizeFileComparator.java | 23 import org.apache.commons.io.FileUtils; 27 * {@link File#length()} and {@link FileUtils#sizeOfDirectory(File)}). 62 * using {@link FileUtils#sizeOfDirectory(File)} 68 * using {@link FileUtils#sizeOfDirectory(File)} 87 * directories is calculated using {@link FileUtils#sizeOfDirectory(File)}. 91 * as size zero (see {@link FileUtils#sizeOfDirectory(File)}). 111 size1 = sumDirectoryContents && file1.exists() ? FileUtils.sizeOfDirectory(file1) : 0; 117 size2 = sumDirectoryContents && file2.exists() ? FileUtils.sizeOfDirectory(file2) : 0;
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/ |
H A D | MigrateSystemAppsSnapshotTask.java | 19 import android.os.FileUtils; 76 FileUtils.deleteContentsAndDir(legacyFolder);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | AssetFileAddress.java | 19 import com.android.inputmethod.latin.common.FileUtils; 63 FileUtils.deleteRecursively(new File(mFilename));
|
/packages/services/BuiltInPrintService/src/com/android/bips/util/ |
H A D | FileUtils.java | 26 public class FileUtils { class 27 private static final String TAG = FileUtils.class.getSimpleName();
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
H A D | FileDeleteStrategy.java | 142 * This implementation uses <code>FileUtils.forceDelete() <code> 151 FileUtils.forceDelete(fileToDelete);
|
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/ |
H A D | FileUtils.java | 25 public class FileUtils { class 26 private static final String TAG = "FileUtils";
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
H A D | Ver4DictDecoder.java | 21 import com.android.inputmethod.latin.common.FileUtils; 76 FileUtils.deleteRecursively(mDictDirectory);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
H A D | RenamingDelegatingContext.java | 24 import android.os.FileUtils; 247 FileUtils.setPermissions( 249 FileUtils.S_IRWXU|FileUtils.S_IRWXG|FileUtils.S_IXOTH,
|
H A D | TestUtils.java | 23 import android.os.FileUtils; 69 FileUtils.deleteContents(path)); 113 FileUtils.deleteContents(toDir)); 123 FileUtils.copyFileOrThrow(file, to);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
H A D | FileWriterWithEncoding.java | 28 import org.apache.commons.io.FileUtils; 245 FileUtils.deleteQuietly(file); 252 FileUtils.deleteQuietly(file);
|
H A D | LockableFileWriter.java | 27 import org.apache.commons.io.FileUtils; 164 FileUtils.forceMkdir(file.getParentFile()); 175 FileUtils.forceMkdir(lockDirFile);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/ |
H A D | dictionary_structure_with_buffer_policy_factory.cpp | 42 if (FileUtils::existsDir(path)) { 149 if (!FileUtils::getFilePathWithoutSuffix(headerFilePath, 204 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName);
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/nonrequiredapps/ |
H A D | SystemAppsSnapshotTest.java | 26 import android.os.FileUtils; 76 FileUtils.deleteContentsAndDir(folder);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
H A D | PersonalizationHelper.java | 22 import com.android.inputmethod.latin.common.FileUtils; 87 final boolean filesDeleted = FileUtils.deleteFilteredFiles(
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/ |
H A D | UserHistoryDictionaryTestsHelper.java | 24 import com.android.inputmethod.latin.common.FileUtils; 62 FileUtils.deleteFilteredFiles(context.getFilesDir(), filenameFilter);
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
H A D | Test.java | 19 import com.android.inputmethod.latin.common.FileUtils; 107 FileUtils.deleteRecursively(TEST_TMP_DIR);
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
H A D | MigrateSystemAppsSnapshotTaskTest.java | 25 import android.os.FileUtils; 101 FileUtils.deleteContentsAndDir(SystemAppsSnapshot.getFolder(mContext)); 102 FileUtils.deleteContentsAndDir(SystemAppsSnapshot.getLegacyFolder(mContext)); 159 FileUtils.copy(getTestFile(fileToBeCopied), new FileOutputStream(destination));
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
H A D | E2eCarTestBase.java | 29 import android.os.FileUtils; 112 FileUtils.copy(in, out);
|