/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...] |
/cts/tests/tests/security/src/android/security/cts/ |
BannedFilesTest.java | 19 import android.os.cts.FileUtils; 51 FileUtils.FileStatus fs = new FileUtils.FileStatus(); 52 if (!FileUtils.getFileStatus(file, fs, false)) { 55 assertTrue((fs.mode & FileUtils.S_ISUID) == 0); 56 assertTrue((fs.mode & FileUtils.S_ISGID) == 0);
|
/frameworks/base/core/tests/coretests/src/android/os/ |
FileUtilsTest.java | 20 import android.os.FileUtils; 21 import android.os.FileUtils.FileStatus; 80 Assert.assertTrue(FileUtils.getFileStatus(mTestFile.getPath(), null)); 83 FileUtils.getFileStatus(mTestFile.getPath(), status1); 106 FileUtils.getFileStatus(mTestFile.getPath(), status2); 114 Assert.assertFalse(FileUtils.getFileStatus(mTestFile.getPath(), null)); 122 FileUtils.copyFile(mTestFile, mCopyFile); 124 assertEquals(TEST_DATA, FileUtils.readTextFile(mCopyFile, 0, null)); 131 FileUtils.copyToFile(new ByteArrayInputStream(s.getBytes()), mCopyFile); assertTrue(mCopyFile.exists()); 132 assertEquals(s, FileUtils.readTextFile(mCopyFile, 0, null)) [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
EntropyServiceTest.java | 20 import android.os.FileUtils; 34 assertEquals(0, FileUtils.readTextFile(file, 0, null).length()); 39 assertTrue(FileUtils.readTextFile(file, 0, null).length() > 0);
|
/frameworks/base/core/java/com/android/internal/os/ |
AtomicFile.java | 19 import android.os.FileUtils; 65 FileUtils.setPermissions( 67 FileUtils.S_IRWXU|FileUtils.S_IRWXG|FileUtils.S_IXOTH, 80 FileUtils.sync(str); 92 FileUtils.sync(str); 114 FileUtils.sync(fos);
|
/cts/tests/tests/permission/src/android/permission/cts/ |
FileSystemPermissionTest.java | 49 FileUtils.FileStatus status = new FileUtils.FileStatus(); 50 FileUtils.getFileStatus(myFile.getAbsolutePath(), status, false); 51 int expectedPerms = FileUtils.S_IFREG 52 | FileUtils.S_IWUSR 53 | FileUtils.S_IRUSR; 68 FileUtils.FileStatus status = new FileUtils.FileStatus(); 69 FileUtils.getFileStatus(myDir.getAbsolutePath(), status, false); 70 int expectedPerms = FileUtils.S_IFDI [all...] |
NoReadLogsPermissionTest.java | 19 import android.permission.cts.FileUtils.FileStatus; 78 if (FileUtils.getFileStatus(log.getAbsolutePath(), status, false)) { 82 "log".equals(FileUtils.getGroupName(status.gid))); 84 status.hasModeFlag(FileUtils.S_IROTH));
|
FileUtils.java | 19 /** Bits and pieces copied from hidden API of android.os.FileUtils. */ 20 public class FileUtils {
|
/cts/tools/dx-tests/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/Email/emailcommon/src/org/apache/commons/io/filefilter/ |
AgeFileFilter.java | 23 import org.apache.commons.io.FileUtils;
137 boolean newer = FileUtils.isFileNewer(file, cutoff);
|
/packages/apps/Email/emailcommon/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),
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
StorageManagerTest.java | 24 import android.os.cts.FileUtils; 183 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 184 | FileUtils.S_IRWXO); 185 assertTrue(FileUtils.copyToFile(is, outFile)); 186 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 187 | FileUtils.S_IRWXO) [all...] |
/frameworks/base/core/tests/coretests/src/com/android/server/ |
MountServiceTests.java | 24 import android.os.FileUtils; 127 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 128 | FileUtils.S_IRWXO, -1, -1); 129 assertTrue(FileUtils.copyToFile(is, outFile)); 130 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 131 | FileUtils.S_IRWXO, -1, -1) [all...] |
/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)) {
|
/dalvik/dx/src/com/android/dx/util/ |
FileUtils.java | 26 public final class FileUtils { 30 private FileUtils() {
|
/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/Email/emailcommon/src/org/apache/commons/io/ |
FileDeleteStrategy.java | 142 * This implementation uses <code>FileUtils.forceDelete() <code>
151 FileUtils.forceDelete(fileToDelete);
|
/frameworks/base/core/java/android/app/ |
SharedPreferencesImpl.java | 20 import android.os.FileUtils.FileStatus; 21 import android.os.FileUtils; 109 if (FileUtils.getFileStatus(mFile.getPath(), stat) && mFile.canRead()) { 159 if (!FileUtils.getFileStatus(mFile.getPath(), stat)) { 530 FileUtils.setPermissions( 532 FileUtils.S_IRWXU|FileUtils.S_IRWXG|FileUtils.S_IXOTH, 577 FileUtils.sync(str); 581 if (FileUtils.getFileStatus(mFile.getPath(), stat)) [all...] |
/frameworks/base/core/tests/coretests/src/android/os/storage/ |
StorageManagerBaseTest.java | 27 import android.os.FileUtils; 237 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 238 | FileUtils.S_IRWXO, -1, -1); 239 assertTrue(FileUtils.copyToFile(is, outFile)); 240 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 241 | FileUtils.S_IRWXO, -1, -1) [all...] |
/frameworks/base/services/java/com/android/server/pm/ |
UserManager.java | 25 import android.os.FileUtils; 76 FileUtils.setPermissions(mUsersDir.toString(), 77 FileUtils.S_IRWXU|FileUtils.S_IRWXG 78 |FileUtils.S_IROTH|FileUtils.S_IXOTH, 377 FileUtils.setPermissions(userPath.toString(), FileUtils.S_IRWXU | FileUtils.S_IRWXG 378 | FileUtils.S_IXOTH, -1, -1) [all...] |
/external/libvpx/examples/includes/geshi/geshi/ |
ruby.php | 80 'File::Constants', 'File::Stat', 'FileTest', 'FileUtils', 81 'FileUtils::DryRun', 'FileUtils::NoWrite', 82 'FileUtils::StreamUtils_', 'FileUtils::Verbose', 'Find',
|
/frameworks/base/test-runner/src/android/test/ |
RenamingDelegatingContext.java | 26 import android.os.FileUtils; 236 FileUtils.setPermissions( 238 FileUtils.S_IRWXU|FileUtils.S_IRWXG|FileUtils.S_IXOTH,
|
/frameworks/base/services/java/com/android/server/ |
BootReceiver.java | 27 import android.os.FileUtils; 93 .append(FileUtils.readTextFile(new File("/proc/version"), 1024, "...\n")) 106 // Negative sizes mean to take the *tail* of the file (see FileUtils.readTextFile()) 161 db.addText(tag, headers + FileUtils.readTextFile(file, maxSize, "[[TRUNCATED]]\n"));
|