Home
last modified time | relevance | path

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

123

/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);
/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/DocumentsUI/src/com/android/documentsui/
DMultiRootDocumentsLoader.java31 import android.os.FileUtils;
275 FileUtils.closeQuietly(result); in deliverResult()
286 FileUtils.closeQuietly(oldResult); in deliverResult()
307 FileUtils.closeQuietly(result); in onCanceled()
319 FileUtils.closeQuietly(task); in onReset()
323 FileUtils.closeQuietly(mResult); in onReset()
419 FileUtils.closeQuietly(client); in runInternal()
437 FileUtils.closeQuietly(cursor); in close()
DDirectoryLoader.java30 import android.os.FileUtils;
177 FileUtils.closeQuietly(client); in loadInBackground()
197 FileUtils.closeQuietly(result); in deliverResult()
208 FileUtils.closeQuietly(oldResult); in deliverResult()
229 FileUtils.closeQuietly(result); in onCanceled()
239 FileUtils.closeQuietly(mResult); in onReset()
DDirectoryResult.java26 import android.os.FileUtils;
37 FileUtils.closeQuietly(cursor); in close()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DRenamingDelegatingContext.java24 import android.os.FileUtils;
247 FileUtils.setPermissions( in getCacheDir()
249 FileUtils.S_IRWXU|FileUtils.S_IRWXG|FileUtils.S_IXOTH, in getCacheDir()
DTestUtils.java25 import android.os.FileUtils;
70 FileUtils.deleteContents(path)); in getDatabaseFile()
114 FileUtils.deleteContents(toDir)); in createDatabaseSnapshot()
124 FileUtils.copyFileOrThrow(file, to); in createDatabaseSnapshot()
/packages/apps/DocumentsUI/src/com/android/documentsui/archives/
DWriteableArchive.java22 import android.os.FileUtils;
128 FileUtils.closeQuietly(descriptor); in createForParcelFileDescriptor()
274 FileUtils.closeQuietly(pipe[0]); in openDocument()
275 FileUtils.closeQuietly(pipe[1]); in openDocument()
315 FileUtils.closeQuietly(mOutputStream); in close()
DProxy.java19 import android.os.FileUtils;
95 FileUtils.closeQuietly(mInputStream); in onRelease()
100 FileUtils.closeQuietly(mInputStream); in recreateInputStream()
DArchiveHandle.java26 import android.os.FileUtils;
320 FileUtils.closeQuietly(zipFileChannel); in create()
330 FileUtils.closeQuietly(sevenZFileChannel); in create()
/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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DMigrateSystemAppsSnapshotTaskTest.java26 import android.os.FileUtils;
108 FileUtils.deleteContentsAndDir(SystemAppsSnapshot.getFolder(mContext)); in tearDown()
109 FileUtils.deleteContentsAndDir(SystemAppsSnapshot.getLegacyFolder(mContext)); in tearDown()
166 FileUtils.copy(getTestFile(fileToBeCopied), new FileOutputStream(destination)); in copyTestFileTo()
/packages/services/Car/tests/BugReportApp/src/com/google/android/car/bugreport/
DBugReportService.java267 File result = FileUtils.getFileWithSuffix(this, mMetaBugReport.getTimestamp(), in grabBtSnoopLog()
280 File outputFile = FileUtils.getFile(this, mMetaBugReport.getTimestamp(), OUTPUT_ZIP_FILE); in saveBugReport()
281 File extraOutputFile = FileUtils.getFile(this, mMetaBugReport.getTimestamp(), in saveBugReport()
367 FileUtils.createTempDir(this, mMetaBugReport.getTimestamp()), in zipDirectoryAndScheduleForUpload()
449 FileUtils.deleteDirectory(dirToZip); in zipDirectoryToOutputStream()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DMediaScannerTest.java30 import android.os.FileUtils;
71 FileUtils.deleteContents(mDir); in IsolatedContext()
189 FileUtils.deleteContentsAndDir(dir); in testSpeed()
246 FileUtils.copy(source, target); in stage()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/
DLockableFileWriter.java27 import org.apache.commons.io.FileUtils;
164 FileUtils.forceMkdir(file.getParentFile()); in LockableFileWriter()
175 FileUtils.forceMkdir(lockDirFile); in LockableFileWriter()
DFileWriterWithEncoding.java28 import org.apache.commons.io.FileUtils;
245 FileUtils.deleteQuietly(file); in initWriter()
252 FileUtils.deleteQuietly(file); in initWriter()
/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/services/BuiltInPrintService/src/com/android/bips/ipp/
DStartJobTask.java36 import com.android.bips.util.FileUtils;
126 if (!FileUtils.makeDirectory(tempFolder)) { in doInBackground()
134 FileUtils.copy(new ParcelFileDescriptor.AutoCloseInputStream(mSourceFileDescriptor), in doInBackground()
/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/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java46 import android.os.FileUtils;
485 FileUtils.closeQuietly(cursor); in copyDirectoryHelper()
574 FileUtils.copy(in, out, mSignal, Runnable::run, (long progress) -> { in copyFileHelper()
641 FileUtils.closeQuietly(in); in copyFileHelper()
642 FileUtils.closeQuietly(out); in copyFileHelper()
721 FileUtils.closeQuietly(cursor); in calculateFileSizesRecursively()
/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()
/packages/services/BuiltInPrintService/src/com/android/bips/util/
DFileUtils.java26 public class FileUtils { class
27 private static final String TAG = FileUtils.class.getSimpleName();
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/
DEjectRootTask.java25 import android.os.FileUtils;
70 FileUtils.closeQuietly(client); in doInBackground()

123