/cts/tests/tests/permission/src/android/permission/cts/ |
D | FileSystemPermissionTest.java | 106 FileUtils.FileStatus status = new FileUtils.FileStatus(); in testCreateFileHasSanePermissions() 107 FileUtils.getFileStatus(myFile.getAbsolutePath(), status, false); in testCreateFileHasSanePermissions() 108 int expectedPerms = FileUtils.S_IFREG in testCreateFileHasSanePermissions() 109 | FileUtils.S_IWUSR in testCreateFileHasSanePermissions() 110 | FileUtils.S_IRUSR; in testCreateFileHasSanePermissions() 126 FileUtils.FileStatus status = new FileUtils.FileStatus(); in testCreateDirectoryHasSanePermissions() 127 FileUtils.getFileStatus(myDir.getAbsolutePath(), status, false); in testCreateDirectoryHasSanePermissions() 128 int expectedPerms = FileUtils.S_IFDIR in testCreateDirectoryHasSanePermissions() 129 | FileUtils.S_IWUSR in testCreateDirectoryHasSanePermissions() 130 | 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/os/src/android/os/cts/ |
D | FileUtilsTest.java | 20 import android.os.FileUtils; 67 FileUtils.copy(in, out); in testCopyByteStream() 75 FileUtils.copy(in, out); in testCopyFileStream() 85 FileUtils.copy(in, out, null, executor, (progress) -> { in testCopyFileStreamListener() 96 FileUtils.copy(in.getFD(), out.getFD()); in testCopyFileDescriptor() 106 FileUtils.copy(in.getFD(), out.getFD(), null, executor, (progress) -> { in testCopyFileDescriptorListener() 116 FileUtils.closeQuietly(fis); in testClose() 119 FileUtils.closeQuietly(fd); in testClose()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | BannedFilesTest.java | 22 import com.android.compatibility.common.util.FileUtils; 152 FileUtils.FileStatus fs = new FileUtils.FileStatus(); in assertNotSetugid() 153 if (!FileUtils.getFileStatus(file, fs, false)) { in assertNotSetugid() 156 assertTrue("File \"" + file + "\" is setUID", (fs.mode & FileUtils.S_ISUID) == 0); in assertNotSetugid() 157 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 com.android.compatibility.common.util.FileUtils; 30 return FileUtils.readInputStreamFully(input); in getTestPhotoData()
|
D | ProviderTestUtils.java | 29 import android.os.FileUtils; 197 if (FileUtils.contains(Environment.getStorageDirectory(), file)) { in stageFile() 221 FileUtils.copy(source, target); in stageFile() 239 FileUtils.copy(source, target); in stageMedia() 261 FileUtils.copy(digestIn, out); in hash() 297 if (FileUtils.contains(Environment.getStorageDirectory(), new File(path))) { in access()
|
D | MediaStore_DownloadsTest.java | 34 import android.os.FileUtils; 130 FileUtils.copy(in, out); in testScannedMediaDownload() 235 android.os.FileUtils.copy(in, out); in testUpdateDownload() 271 android.os.FileUtils.copy(in, out); in testDeleteDownload() 311 android.os.FileUtils.copy(in, out); in testNotifyChange() 341 FileUtils.copy(in, out); in insertImage()
|
D | MediaStore_Video_MediaTest.java | 49 import com.android.compatibility.common.util.FileUtils; 120 FileUtils.createFile(videoFile, numBytes); in testStoreVideoMediaExternal() 224 android.os.FileUtils.copy(in, out); in testLocationRedaction() 241 byte[] bytes = FileUtils.readInputStreamFully(in); in testLocationRedaction() 264 byte[] bytes = FileUtils.readInputStreamFully(in); in testLocationRedaction() 289 android.os.FileUtils.copy(in, out); in testLocationDeprecated()
|
D | MediaStorePendingTest.java | 38 import android.os.FileUtils; 130 FileUtils.copy(in, out); in verifySuccessfulImageInsertion() 169 FileUtils.copy(in, out); in testSimple_Abandoned() 400 FileUtils.copy(in, out); in testMutableColumns() 458 FileUtils.copy(in, out); in execPending()
|
D | MediaStore_Images_MediaTest.java | 49 import com.android.compatibility.common.util.FileUtils; 232 FileUtils.createFile(new File(externalPath), numBytes); in testStoreImagesMediaExternal() 319 android.os.FileUtils.copy(in, out); 378 android.os.FileUtils.copy(in, out);
|
D | MediaStore_Video_ThumbnailsTest.java | 38 import android.os.FileUtils; 244 FileUtils.copy(from, to); in testInsertUpdateDelete()
|
/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/net/src/android/net/cts/ |
D | NetworkWatchlistTest.java | 27 import android.os.FileUtils; 136 FileUtils.copy(resStream, fdStream); in pipeResourceToFileDescriptor()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactsContract_PhotoTest.java | 31 import com.android.compatibility.common.util.FileUtils; 104 byte[] actualBytes = FileUtils.readInputStreamFully(photoStream); in assertPhotoStream()
|
/cts/tests/tests/net/src/android/net/http/cts/ |
D | HttpResponseCacheTest.java | 27 import com.android.compatibility.common.util.FileUtils; 52 FileUtils.setPermissions(cacheDir.getPath(), 0777); in setUp()
|
/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/tools/cfassembler/ |
D | Android.bp | 19 "src/dxconvext/util/FileUtils.java",
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTestBase.java | 30 import android.os.FileUtils; 103 FileUtils.copy(digestIn, out); in hash() 106 FileUtils.closeQuietly(in); in hash()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | FileUtils.java | 26 public class FileUtils { class
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | FileUtils.java | 26 public class FileUtils { class
|
/cts/libs/input/src/com/android/cts/input/ |
D | HidDevice.java | 19 import static android.os.FileUtils.closeQuietly;
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ExifInterfaceTest.java | 23 import android.os.FileUtils; 563 FileUtils.copyFileOrThrow(srcFile, imageFile); in testSetDateTime() 587 FileUtils.copy(source, target); in stageFile() 594 FileUtils.copyFileOrThrow(original, cloned); in clone()
|
/cts/hostsidetests/appsecurity/test-apps/MediaStorageApp/src/com/android/cts/mediastorageapp/ |
D | MediaStorageTest.java | 40 import android.os.FileUtils; 401 FileUtils.copy(in, out); in createAudio() 416 FileUtils.copy(in, out); in createVideo()
|