/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);
|
/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/DocumentsUI/src/com/android/documentsui/ |
D | MultiRootDocumentsLoader.java | 31 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()
|
D | DirectoryLoader.java | 30 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()
|
D | DirectoryResult.java | 26 import android.os.FileUtils; 37 FileUtils.closeQuietly(cursor); in close()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | RenamingDelegatingContext.java | 24 import android.os.FileUtils; 247 FileUtils.setPermissions( in getCacheDir() 249 FileUtils.S_IRWXU|FileUtils.S_IRWXG|FileUtils.S_IXOTH, in getCacheDir()
|
D | TestUtils.java | 25 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/ |
D | WriteableArchive.java | 22 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()
|
D | Proxy.java | 19 import android.os.FileUtils; 95 FileUtils.closeQuietly(mInputStream); in onRelease() 100 FileUtils.closeQuietly(mInputStream); in recreateInputStream()
|
D | ArchiveHandle.java | 26 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/ |
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/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/ |
D | MigrateSystemAppsSnapshotTaskTest.java | 26 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/ |
D | BugReportService.java | 267 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/ |
D | MediaScannerTest.java | 30 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/ |
D | LockableFileWriter.java | 27 import org.apache.commons.io.FileUtils; 164 FileUtils.forceMkdir(file.getParentFile()); in LockableFileWriter() 175 FileUtils.forceMkdir(lockDirFile); in LockableFileWriter()
|
D | FileWriterWithEncoding.java | 28 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/ |
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/services/BuiltInPrintService/src/com/android/bips/ipp/ |
D | StartJobTask.java | 36 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/ |
D | AgeFileFilter.java | 23 import org.apache.commons.io.FileUtils; 137 boolean newer = FileUtils.isFileNewer(file, cutoff); in accept()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | CopyJob.java | 46 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/ |
D | AssetFileAddress.java | 19 import com.android.inputmethod.latin.common.FileUtils; 63 FileUtils.deleteRecursively(new File(mFilename)); in deleteUnderlyingFile()
|
/packages/services/BuiltInPrintService/src/com/android/bips/util/ |
D | FileUtils.java | 26 public class FileUtils { class 27 private static final String TAG = FileUtils.class.getSimpleName();
|
/packages/apps/DocumentsUI/src/com/android/documentsui/sidebar/ |
D | EjectRootTask.java | 25 import android.os.FileUtils; 70 FileUtils.closeQuietly(client); in doInBackground()
|