Home
last modified time | relevance | path

Searched refs:FileUtils (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java68 FileUtils.FileStatus status = new FileUtils.FileStatus(); in testCreateFileHasSanePermissions()
69 FileUtils.getFileStatus(myFile.getAbsolutePath(), status, false); in testCreateFileHasSanePermissions()
70 int expectedPerms = FileUtils.S_IFREG in testCreateFileHasSanePermissions()
71 | FileUtils.S_IWUSR in testCreateFileHasSanePermissions()
72 | FileUtils.S_IRUSR; in testCreateFileHasSanePermissions()
87 FileUtils.FileStatus status = new FileUtils.FileStatus(); in testCreateDirectoryHasSanePermissions()
88 FileUtils.getFileStatus(myDir.getAbsolutePath(), status, false); in testCreateDirectoryHasSanePermissions()
89 int expectedPerms = FileUtils.S_IFDIR in testCreateDirectoryHasSanePermissions()
90 | FileUtils.S_IWUSR in testCreateDirectoryHasSanePermissions()
91 | FileUtils.S_IRUSR in testCreateDirectoryHasSanePermissions()
[all …]
DNoReadLogsPermissionTest.java98 assertEquals("not owned by gid=logs", "log", FileUtils.getGroupName(stat.st_gid)); in testLogIsSane()
DFileUtils.java27 public class FileUtils { class
/cts/tests/tests/security/src/android/security/cts/
DBannedFilesTest.java19 import android.cts.util.FileUtils;
135 FileUtils.FileStatus fs = new FileUtils.FileStatus(); in assertNotSetugid()
136 if (!FileUtils.getFileStatus(file, fs, false)) { in assertNotSetugid()
139 assertTrue("File \"" + file + "\" is setUID", (fs.mode & FileUtils.S_ISUID) == 0); in assertNotSetugid()
140 assertTrue("File \"" + file + "\" is setGID", (fs.mode & FileUtils.S_ISGID) == 0); in assertNotSetugid()
/cts/tests/tests/provider/src/android/provider/cts/
DPhotoUtil.java22 import android.cts.util.FileUtils;
30 return FileUtils.readInputStreamFully(input); in getTestPhotoData()
DContactsContract_PhotoTest.java22 import android.cts.util.FileUtils;
102 byte[] actualBytes = FileUtils.readInputStreamFully(photoStream); in assertPhotoStream()
DMediaStore_Video_MediaTest.java26 import android.cts.util.FileUtils;
79 FileUtils.createFile(videoFile, numBytes); in testStoreVideoMediaExternal()
DMediaStore_Images_MediaTest.java25 import android.cts.util.FileUtils;
211 FileUtils.createFile(new File(externalPath), numBytes); in testStoreImagesMediaExternal()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java25 import android.cts.util.FileUtils;
244 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG in copyRawToFile()
245 | FileUtils.S_IRWXO); in copyRawToFile()
246 assertTrue(FileUtils.copyToFile(is, outFile)); in copyRawToFile()
247 FileUtils.setPermissions(outFile.getPath(), FileUtils.S_IRWXU | FileUtils.S_IRWXG in copyRawToFile()
248 | FileUtils.S_IRWXO); in copyRawToFile()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/suid/
DSuidFilesActivity.java22 import com.android.cts.verifier.os.FileUtils;
23 import com.android.cts.verifier.os.FileUtils.FileStatus;
131 if (FileUtils.getFileStatus(file.getAbsolutePath(), status, true)) { in getMessage()
133 FileUtils.getUserName(status.getUid()), in getMessage()
134 FileUtils.getGroupName(status.getGid()), in getMessage()
135 FileUtils.getFormattedPermissions(status.getMode()), in getMessage()
217 if (FileUtils.getFileStatus(pathname.getPath(), status, true)) { in accept()
233 if (FileUtils.getFileStatus(pathname.getPath(), status, true)) { in accept()
/cts/tools/cfassembler/src/dxconvext/util/
DFileUtils.java26 public final class FileUtils { class
30 private FileUtils() { in FileUtils() method in FileUtils
/cts/tests/tests/graphics/src/android/graphics/cts/
DVulkanReservedTest.java18 import android.cts.util.FileUtils;
/cts/tools/cfassembler/
DAndroid.mk40 LOCAL_SRC_FILES := src/dxconvext/ClassFileAssembler.java src/dxconvext/util/FileUtils.java
/cts/tests/tests/net/src/android/net/http/cts/
DHttpResponseCacheTest.java24 import android.cts.util.FileUtils;
49 FileUtils.setPermissions(cacheDir.getPath(), 0777); in setUp()
/cts/apps/CtsVerifier/
Dproguard.flags5 -keepclassmembers class com.android.cts.verifier.os.FileUtils$FileStatus {
/cts/tools/cfassembler/src/dxconvext/
DClassFileAssembler.java19 import dxconvext.util.FileUtils;
77 byte[] cfhbytes = FileUtils.readFile(cfhF); in run()
DClassFileParser.java25 import com.android.dx.util.FileUtils;
79 byte[] bytes = FileUtils.readFile(inFile); in process()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/os/
DFileUtils.java20 public class FileUtils { class
/cts/libs/deviceutil/src/android/cts/util/
DFileUtils.java26 public class FileUtils { class
/cts/tools/vm-tests-tf/src/util/build/
DBuildDalvikSuite.java19 import com.android.dex.util.FileUtils;
761 String all = new String(FileUtils.readFile(f));