/cts/tests/tests/permission/src/android/permission/cts/ |
D | FileSystemPermissionTest.java | 68 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 …]
|
D | NoReadLogsPermissionTest.java | 98 assertEquals("not owned by gid=logs", "log", FileUtils.getGroupName(stat.st_gid)); in testLogIsSane()
|
D | FileUtils.java | 27 public class FileUtils { class
|
/cts/tests/tests/security/src/android/security/cts/ |
D | BannedFilesTest.java | 19 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/ |
D | PhotoUtil.java | 22 import android.cts.util.FileUtils; 30 return FileUtils.readInputStreamFully(input); in getTestPhotoData()
|
D | ContactsContract_PhotoTest.java | 22 import android.cts.util.FileUtils; 102 byte[] actualBytes = FileUtils.readInputStreamFully(photoStream); in assertPhotoStream()
|
D | MediaStore_Video_MediaTest.java | 26 import android.cts.util.FileUtils; 79 FileUtils.createFile(videoFile, numBytes); in testStoreVideoMediaExternal()
|
D | MediaStore_Images_MediaTest.java | 25 import android.cts.util.FileUtils; 211 FileUtils.createFile(new File(externalPath), numBytes); in testStoreImagesMediaExternal()
|
/cts/tests/tests/os/src/android/os/storage/cts/ |
D | StorageManagerTest.java | 25 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/ |
D | 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)) { 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/ |
D | FileUtils.java | 26 public final class FileUtils { class 30 private FileUtils() { in FileUtils() method in FileUtils
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | VulkanReservedTest.java | 18 import android.cts.util.FileUtils;
|
/cts/tools/cfassembler/ |
D | Android.mk | 40 LOCAL_SRC_FILES := src/dxconvext/ClassFileAssembler.java src/dxconvext/util/FileUtils.java
|
/cts/tests/tests/net/src/android/net/http/cts/ |
D | HttpResponseCacheTest.java | 24 import android.cts.util.FileUtils; 49 FileUtils.setPermissions(cacheDir.getPath(), 0777); in setUp()
|
/cts/apps/CtsVerifier/ |
D | proguard.flags | 5 -keepclassmembers class com.android.cts.verifier.os.FileUtils$FileStatus {
|
/cts/tools/cfassembler/src/dxconvext/ |
D | ClassFileAssembler.java | 19 import dxconvext.util.FileUtils; 77 byte[] cfhbytes = FileUtils.readFile(cfhF); in run()
|
D | ClassFileParser.java | 25 import com.android.dx.util.FileUtils; 79 byte[] bytes = FileUtils.readFile(inFile); in process()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/os/ |
D | FileUtils.java | 20 public class FileUtils { class
|
/cts/libs/deviceutil/src/android/cts/util/ |
D | FileUtils.java | 26 public class FileUtils { class
|
/cts/tools/vm-tests-tf/src/util/build/ |
D | BuildDalvikSuite.java | 19 import com.android.dex.util.FileUtils; 761 String all = new String(FileUtils.readFile(f));
|