Home
last modified time | relevance | path

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

12

/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java106 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 …]
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/os/src/android/os/cts/
DFileUtilsTest.java20 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/
DBannedFilesTest.java22 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/
DPhotoUtil.java22 import com.android.compatibility.common.util.FileUtils;
30 return FileUtils.readInputStreamFully(input); in getTestPhotoData()
DProviderTestUtils.java29 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()
DMediaStore_DownloadsTest.java34 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()
DMediaStore_Video_MediaTest.java49 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()
DMediaStorePendingTest.java38 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()
DMediaStore_Images_MediaTest.java49 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);
DMediaStore_Video_ThumbnailsTest.java38 import android.os.FileUtils;
244 FileUtils.copy(from, to); in testInsertUpdateDelete()
/cts/tools/cfassembler/src/dxconvext/util/
DFileUtils.java26 public final class FileUtils { class
30 private FileUtils() { in FileUtils() method in FileUtils
/cts/tests/tests/net/src/android/net/cts/
DNetworkWatchlistTest.java27 import android.os.FileUtils;
136 FileUtils.copy(resStream, fdStream); in pipeResourceToFileDescriptor()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_PhotoTest.java31 import com.android.compatibility.common.util.FileUtils;
104 byte[] actualBytes = FileUtils.readInputStreamFully(photoStream); in assertPhotoStream()
/cts/tests/tests/net/src/android/net/http/cts/
DHttpResponseCacheTest.java27 import com.android.compatibility.common.util.FileUtils;
52 FileUtils.setPermissions(cacheDir.getPath(), 0777); in setUp()
/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/tools/cfassembler/
DAndroid.bp19 "src/dxconvext/util/FileUtils.java",
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java30 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/
DFileUtils.java26 public class FileUtils { class
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DFileUtils.java26 public class FileUtils { class
/cts/libs/input/src/com/android/cts/input/
DHidDevice.java19 import static android.os.FileUtils.closeQuietly;
/cts/tests/tests/media/src/android/media/cts/
DExifInterfaceTest.java23 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/
DMediaStorageTest.java40 import android.os.FileUtils;
401 FileUtils.copy(in, out); in createAudio()
416 FileUtils.copy(in, out); in createVideo()

12