/cts/apps/CtsVerifier/ |
proguard.flags | 5 -keepclassmembers class com.android.cts.verifier.os.FileUtils$FileStatus {
|
/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...] |
/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; 67 FileUtils.FileStatus fs = new FileUtils.FileStatus(); 68 if (!FileUtils.getFileStatus(file, fs, false)) { 71 assertTrue("File \"" + file + "\" is setUID", (fs.mode & FileUtils.S_ISUID) == 0); 72 assertTrue("File \"" + file + "\" is setGID", (fs.mode & FileUtils.S_ISGID) == 0);
|
/cts/tests/src/android/provider/cts/ |
PhotoUtil.java | 22 import android.os.cts.FileUtils; 30 return FileUtils.readInputStreamFully(input);
|
/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...] |
/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...] |
/external/ant-glob/ |
README.txt | 19 org.apache.tools.ant.util.FileUtils, 24 * FileUtils was pruned to keep only 2 methods, which brought OS (which
|
/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/apps/Email/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...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
FileSystemPermissionTest.java | 53 FileUtils.FileStatus status = new FileUtils.FileStatus(); 54 FileUtils.getFileStatus(myFile.getAbsolutePath(), status, false); 55 int expectedPerms = FileUtils.S_IFREG 56 | FileUtils.S_IWUSR 57 | FileUtils.S_IRUSR; 72 FileUtils.FileStatus status = new FileUtils.FileStatus(); 73 FileUtils.getFileStatus(myDir.getAbsolutePath(), status, false); 74 int expectedPerms = FileUtils.S_IFDI [all...] |
NoReadLogsPermissionTest.java | 19 import android.permission.cts.FileUtils.FileStatus; 83 if (FileUtils.getFileStatus(log.getAbsolutePath(), status, false)) { 87 "log".equals(FileUtils.getGroupName(status.gid)));
|
/cts/tests/jni/ |
android_os_cts_FileUtils.cpp | 42 * cts/tests/src/android/os/cts/FileUtils.java 112 { "getFileStatus", "(Ljava/lang/String;Landroid/os/cts/FileUtils$FileStatus;Z)Z", 124 jclass clazz = env->FindClass("android/os/cts/FileUtils"); 126 gFileStatusClass = env->FindClass("android/os/cts/FileUtils$FileStatus");
|
/cts/tests/tests/permission/jni/ |
android_permission_cts_FileUtils.cpp | 39 * cts/tests/tests/permission/src/android/permission/cts/FileUtils.java 91 { "getFileStatus", "(Ljava/lang/String;Landroid/permission/cts/FileUtils$FileStatus;Z)Z", 101 jclass clazz = env->FindClass("android/permission/cts/FileUtils"); 103 jclass fileStatusClass = env->FindClass("android/permission/cts/FileUtils$FileStatus");
|
/ndk/sources/host-tools/make-3.81/config/ |
glibc21.m4 | 1 # glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40)
|
/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)) {
|
/external/webkit/Tools/Scripts/webkitpy/test/ |
cat.py | 29 from webkitpy.common.system import fileutils namespace 37 fileutils.make_stdout_binary()
|
/external/webrtc/test/ |
test.gyp | 38 'testsupport/fileutils.h', 39 'testsupport/fileutils.cc',
|
/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/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);
|
/frameworks/base/services/java/com/android/server/usb/ |
UsbDebuggingManager.java | 27 import android.os.FileUtils; 287 FileUtils.setPermissions(keyFile.toString(), 288 FileUtils.S_IRUSR | FileUtils.S_IWUSR | 289 FileUtils.S_IRGRP, -1, -1); 335 pw.println(FileUtils.readTextFile(new File("/data/misc/adb/adb_keys"), 0, null)); 341 pw.println(FileUtils.readTextFile(new File("/adb_keys"), 0, null));
|
/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,
|