/external/android-mock/tests/com/google/android/testing/mocking/ |
FileUtilsTest.java | 29 FileUtils.getFilenameFor(Object.class.getName())); 32 FileUtils.getFilenameFor(InnerClass.class.getName())); 37 FileUtils.getFilenameFor(Object.class.getName())); 40 FileUtils.getFilenameFor(InnerClass.class.getName())); 45 FileUtils.getInterfaceNameFor(Vector.class, SdkVersion.CUPCAKE)); 47 FileUtils.getInterfaceNameFor(Vector.class, SdkVersion.DONUT)); 49 FileUtils.getInterfaceNameFor(Vector.class, SdkVersion.ECLAIR_0_1)); 51 FileUtils.getInterfaceNameFor(Vector.class, SdkVersion.ECLAIR_MR1)); 53 FileUtils.getInterfaceNameFor(Vector.class, SdkVersion.FROYO)); 55 FileUtils.getInterfaceNameFor(Vector.class, SdkVersion.UNKNOWN)) [all...] |
/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/src/android/provider/cts/ |
PhotoUtil.java | 22 import android.os.cts.FileUtils; 30 return FileUtils.readInputStreamFully(input);
|
/cts/tests/tests/security/src/android/security/cts/ |
BannedFilesTest.java | 19 import android.os.cts.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);
|
/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/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);
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoReadLogsPermissionTest.java | 19 import android.permission.cts.FileUtils.FileStatus; 83 if (FileUtils.getFileStatus(log.getAbsolutePath(), status, false)) { 87 "log".equals(FileUtils.getGroupName(status.gid)));
|
FileSystemPermissionTest.java | 61 FileUtils.FileStatus status = new FileUtils.FileStatus(); 62 FileUtils.getFileStatus(myFile.getAbsolutePath(), status, false); 63 int expectedPerms = FileUtils.S_IFREG 64 | FileUtils.S_IWUSR 65 | FileUtils.S_IRUSR; 80 FileUtils.FileStatus status = new FileUtils.FileStatus(); 81 FileUtils.getFileStatus(myDir.getAbsolutePath(), status, false); 82 int expectedPerms = FileUtils.S_IFDI [all...] |
/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; 97 FileUtils.sync(fos); 99 FileUtils.setPermissions(keyFile.getName(), (FileUtils.S_IRUSR | FileUtils.S_IWUSR),
|
/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() {
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/ |
FileUtils.java | 35 public final class FileUtils { 39 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.os.cts.FileUtils; 217 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 218 | FileUtils.S_IRWXO); 219 assertTrue(FileUtils.copyToFile(is, outFile)); 220 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 221 | FileUtils.S_IRWXO) [all...] |
/frameworks/base/core/java/com/android/internal/content/ |
PackageHelper.java | 19 import android.os.FileUtils; 247 FileUtils.sync(fstr); 249 FileUtils.setPermissions(publicZipFile.getAbsolutePath(), FileUtils.S_IRUSR 250 | FileUtils.S_IWUSR | FileUtils.S_IRGRP | FileUtils.S_IROTH, -1, -1);
|
/external/android-mock/src/com/google/android/testing/mocking/ |
AndroidFrameworkMockGenerator.java | 80 classes.add(Class.forName(FileUtils.getSubclassNameFor(clazz, sdkVersion))); 81 classes.add(Class.forName(FileUtils.getInterfaceNameFor(clazz, sdkVersion))); 109 classList.add(Class.forName(FileUtils.getClassNameFor(jarEntry.getName()))); 164 FileUtils.saveClassToFolder(clazz, outputFolderName);
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/ |
FileDeleteStrategy.java | 142 * This implementation uses <code>FileUtils.forceDelete() <code>
151 FileUtils.forceDelete(fileToDelete);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/suid/ |
SuidFilesActivity.java | 22 import com.android.cts.verifier.os.FileUtils; 23 import com.android.cts.verifier.os.FileUtils.FileStatus; 131 if (FileUtils.getFileStatus(file.getAbsolutePath(), status, true)) { 133 FileUtils.getUserName(status.getUid()), 134 FileUtils.getGroupName(status.getGid()), 135 FileUtils.getFormattedPermissions(status.getMode()), 217 if (FileUtils.getFileStatus(pathname.getPath(), status, true)) { 233 if (FileUtils.getFileStatus(pathname.getPath(), status, true)) {
|