/frameworks/base/core/tests/coretests/src/android/os/ |
FileUtilsTest.java | 65 FileUtils.copyFile(mTestFile, mCopyFile); 67 assertEquals(TEST_DATA, FileUtils.readTextFile(mCopyFile, 0, null)); 73 FileUtils.copyToFile(new ByteArrayInputStream(s.getBytes()), mCopyFile); 75 assertEquals(s, FileUtils.readTextFile(mCopyFile, 0, null)); 79 assertTrue(FileUtils.isFilenameSafe(new File("foobar"))); 80 assertTrue(FileUtils.isFilenameSafe(new File("a_b-c=d.e/0,1+23"))); 81 assertFalse(FileUtils.isFilenameSafe(new File("foo*bar"))); 82 assertFalse(FileUtils.isFilenameSafe(new File("foo\nbar"))); 88 assertEquals(TEST_DATA, FileUtils.readTextFile(mTestFile, 0, null)); 90 assertEquals("ABCDE", FileUtils.readTextFile(mTestFile, 5, null)) [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
EntropyMixerTest.java | 20 import android.os.FileUtils; 34 assertEquals(0, FileUtils.readTextFile(file, 0, null).length()); 39 assertTrue(FileUtils.readTextFile(file, 0, null).length() > 0);
|
MountServiceTests.java | 22 import android.os.FileUtils; 129 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 130 | FileUtils.S_IRWXO, -1, -1); 131 assertTrue(FileUtils.copyToFile(is, outFile)); 132 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 133 | FileUtils.S_IRWXO, -1, -1) [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
PhotoUtil.java | 22 import android.cts.util.FileUtils; 30 return FileUtils.readInputStreamFully(input);
|
/cts/tests/tests/security/src/android/security/cts/ |
BannedFilesTest.java | 19 import android.cts.util.FileUtils; 135 FileUtils.FileStatus fs = new FileUtils.FileStatus(); 136 if (!FileUtils.getFileStatus(file, fs, false)) { 139 assertTrue("File \"" + file + "\" is setUID", (fs.mode & FileUtils.S_ISUID) == 0); 140 assertTrue("File \"" + file + "\" is setGID", (fs.mode & FileUtils.S_ISGID) == 0);
|
/frameworks/base/core/java/android/util/ |
AtomicFile.java | 19 import android.os.FileUtils; 108 FileUtils.setPermissions( 110 FileUtils.S_IRWXU|FileUtils.S_IRWXG|FileUtils.S_IXOTH, 129 FileUtils.sync(str); 146 FileUtils.sync(str); 163 FileUtils.sync(fos);
|
/frameworks/base/core/java/com/android/internal/os/ |
AtomicFile.java | 19 import android.os.FileUtils; 76 FileUtils.setPermissions( 78 FileUtils.S_IRWXU|FileUtils.S_IRWXG|FileUtils.S_IXOTH, 91 FileUtils.sync(str); 103 FileUtils.sync(str); 125 FileUtils.sync(fos);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/ |
file_utils.h | 24 class FileUtils { 55 DISALLOW_IMPLICIT_CONSTRUCTORS(FileUtils);
|
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::getDirPath(const char *const filePath, const int outDirPathBufSize [all...] |
/external/ant-glob/src/org/apache/tools/ant/util/ |
FileUtils.java | 33 public class FileUtils { 36 private static final FileUtils PRIMARY_INSTANCE = new FileUtils(); 80 * @return a new instance of FileUtils. 83 * FileUtils do not have state. 86 public static FileUtils newFileUtils() { 87 return new FileUtils(); 91 * Method to retrieve The FileUtils, which is shared by all users of this 93 * @return an instance of FileUtils. 96 public static FileUtils getFileUtils() [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
FileSystemPermissionTest.java | 64 FileUtils.FileStatus status = new FileUtils.FileStatus(); 65 FileUtils.getFileStatus(myFile.getAbsolutePath(), status, false); 66 int expectedPerms = FileUtils.S_IFREG 67 | FileUtils.S_IWUSR 68 | FileUtils.S_IRUSR; 83 FileUtils.FileStatus status = new FileUtils.FileStatus(); 84 FileUtils.getFileStatus(myDir.getAbsolutePath(), status, false); 85 int expectedPerms = FileUtils.S_IFDI [all...] |
/cts/tools/cfassembler/src/dxconvext/util/ |
FileUtils.java | 26 public final class FileUtils { 30 private FileUtils() {
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
FileUtils.java | 26 public final class FileUtils { 30 private FileUtils() {
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/filefilter/ |
AgeFileFilter.java | 23 import org.apache.commons.io.FileUtils; 137 boolean newer = FileUtils.isFileNewer(file, cutoff);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
AssetFileAddress.java | 19 import com.android.inputmethod.latin.utils.FileUtils; 63 FileUtils.deleteRecursively(new File(mFilename));
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/ |
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/ |
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;
|
/frameworks/base/keystore/java/android/security/ |
SystemKeyStore.java | 20 import android.os.FileUtils; 95 FileUtils.sync(fos); 97 FileUtils.setPermissions(keyFile.getName(), (FileUtils.S_IRUSR | FileUtils.S_IWUSR),
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/ |
ver4_dict_buffers.cpp | 75 const int tmpDirPathBufSize = FileUtils::getFilePathWithSuffixBufSize(dictDirPath, 78 FileUtils::getFilePathWithSuffix(dictDirPath, 81 if (FileUtils::existsDir(tmpDirPath)) { 82 if (!FileUtils::removeDirAndFiles(tmpDirPath)) { 96 FileUtils::getBasename(dictDirPath, dictNameBufSize, dictName); 97 const int dictPathBufSize = FileUtils::getFilePathBufSize(tmpDirPath, dictName); 99 FileUtils::getFilePath(tmpDirPath, dictName, dictPathBufSize, dictPath); 110 const int bodyFilePathBufSize = FileUtils::getFilePathWithSuffixBufSize(dictPath, 113 FileUtils::getFilePathWithSuffix(dictPath, Ver4DictConstants::BODY_FILE_EXTENSION, 135 if (!FileUtils::removeDirAndFiles(dictDirPath)) [all...] |
/frameworks/base/packages/ExternalStorageProvider/tests/src/com/android/externalstorage/ |
ExternalStorageProviderTest.java | 21 import android.os.FileUtils; 37 FileUtils.deleteContents(mTarget); 43 FileUtils.deleteContents(mTarget);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
FileUtils.java | 25 public class FileUtils {
|
/sdk/eclipse/plugins/com.android.ide.eclipse.gldebugger/src/com/android/ide/eclipse/gltrace/ |
FileUtils.java | 24 public class FileUtils {
|
/external/dexmaker/src/dx/java/com/android/dx/util/ |
FileUtils.java | 26 public final class FileUtils { 30 private FileUtils() {
|
/libcore/dex/src/main/java/com/android/dex/util/ |
FileUtils.java | 26 public final class FileUtils { 27 private FileUtils() {
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
StorageManagerTest.java | 25 import android.cts.util.FileUtils; 244 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 245 | FileUtils.S_IRWXO); 246 assertTrue(FileUtils.copyToFile(is, outFile)); 247 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 248 | FileUtils.S_IRWXO) [all...] |