Home
last modified time | relevance | path

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

123

/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/
DIsolatedService.java19 import static com.android.cts.appdataisolation.common.FileUtils.assertDirDoesNotExist;
20 import static com.android.cts.appdataisolation.common.FileUtils.assertDirIsNotAccessible;
29 import com.android.cts.appdataisolation.common.FileUtils;
49 assertDirDoesNotExist(FileUtils.replacePackageAWithPackageB(
51 assertDirDoesNotExist(FileUtils.replacePackageAWithPackageB(
53 assertDirDoesNotExist("/data/data/" + FileUtils.APPB_PKG);
55 + FileUtils.APPB_PKG);
56 assertDirDoesNotExist("/data/misc/profiles/ref/" + FileUtils.APPB_PKG);
58 assertDirDoesNotExist(FileUtils.replacePackageAWithNotInstalledPkg(
60 assertDirDoesNotExist(FileUtils.replacePackageAWithNotInstalledPkg(
[all …]
DAppATests.java19 import static com.android.cts.appdataisolation.common.FileUtils.APPA_PKG;
20 import static com.android.cts.appdataisolation.common.FileUtils.APPB_PKG;
21 import static com.android.cts.appdataisolation.common.FileUtils.CE_DATA_FILE_NAME;
22 import static com.android.cts.appdataisolation.common.FileUtils.DE_DATA_FILE_NAME;
23 import static com.android.cts.appdataisolation.common.FileUtils.EXTERNAL_DATA_FILE_NAME;
24 import static com.android.cts.appdataisolation.common.FileUtils.NOT_INSTALLED_PKG;
25 import static com.android.cts.appdataisolation.common.FileUtils.OBB_FILE_NAME;
26 import static com.android.cts.appdataisolation.common.FileUtils.assertDirDoesNotExist;
27 import static com.android.cts.appdataisolation.common.FileUtils.assertDirIsAccessible;
28 import static com.android.cts.appdataisolation.common.FileUtils.assertDirIsNotAccessible;
[all …]
/cts/tests/tests/security/src/android/security/cts/
DBannedFilesTest.java21 import com.android.compatibility.common.util.FileUtils;
150 FileUtils.FileStatus fs = new FileUtils.FileStatus(); in assertNotSetugid()
151 if (!FileUtils.getFileStatus(file, fs, false)) { in assertNotSetugid()
154 assertTrue("File \"" + file + "\" is setUID", (fs.mode & FileUtils.S_ISUID) == 0); in assertNotSetugid()
155 assertTrue("File \"" + file + "\" is setGID", (fs.mode & FileUtils.S_ISGID) == 0); in assertNotSetugid()
/cts/tests/tests/os/src/android/os/cts/
DFileUtilsTest.java20 import android.os.FileUtils;
69 FileUtils.copy(in, out); in testCopyByteStream()
77 FileUtils.copy(in, out); in testCopyFileStream()
87 FileUtils.copy(in, out, null, executor, (progress) -> { in testCopyFileStreamListener()
98 FileUtils.copy(in.getFD(), out.getFD()); in testCopyFileDescriptor()
108 FileUtils.copy(in.getFD(), out.getFD(), null, executor, (progress) -> { in testCopyFileDescriptorListener()
118 FileUtils.closeQuietly(fis); in testClose()
121 FileUtils.closeQuietly(fd); in testClose()
/cts/tests/tests/contactsprovider/src/android/provider/cts/
DPhotoUtil.java22 import com.android.compatibility.common.util.FileUtils;
30 return FileUtils.readInputStreamFully(input); in getTestPhotoData()
/cts/tools/cfassembler/src/dxconvext/util/
DFileUtils.java26 public final class FileUtils { class
30 private FileUtils() { in FileUtils() method in FileUtils
/cts/hostsidetests/scopedstorage/device/src/android/scopedstorage/cts/device/
DDeviceTestUtils.java21 import android.os.FileUtils;
42 FileUtils.copy(in, fileOutputStream); in createContentFromResource()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/
DAppBTests.java19 import static com.android.cts.appdataisolation.common.FileUtils.assertDirDoesNotExist;
20 import static com.android.cts.appdataisolation.common.FileUtils.assertDirIsAccessible;
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DDumpOnFailureRule.java23 import android.os.FileUtils;
73 FileUtils.copy(in, out); in dumpCommandOutput()
/cts/tests/BlobStore/src/com/android/cts/blob/
DDumpOnFailureRule.java21 import android.os.FileUtils;
70 FileUtils.copy(in, out); in dumpCommandOutput()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DDumpOnFailureRule.java20 import android.os.FileUtils;
81 FileUtils.copy(in, out); in dumpCommandOutput()
/cts/tests/app/ShortFgsTest/src/android/app/cts/shortfgstest/
DDumpProtoUtils.java26 import com.android.compatibility.common.util.FileUtils;
72 return FileUtils.readInputStreamFully(fis); in getDump()
/cts/tests/app/FgsTimeoutTest/src/android/app/cts/fgstimeouttest/
DDumpProtoUtils.java26 import com.android.compatibility.common.util.FileUtils;
72 return FileUtils.readInputStreamFully(fis); in getDump()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaProviderTestUtils.java40 import android.os.FileUtils;
167 && FileUtils.contains(Environment.getStorageDirectory(), file)) { in stageFile()
199 FileUtils.copy(source, target); in stageFile()
219 FileUtils.copy(source, target); in stageMedia()
254 FileUtils.copy(digestIn, out); in hash()
332 if (FileUtils.contains(Environment.getStorageDirectory(), new File(path))) { in access()
DMediaStore_DownloadsTest.java35 import android.os.FileUtils;
136 FileUtils.copy(in, out); in testScannedMediaDownload()
244 android.os.FileUtils.copy(in, out); in testUpdateDownload()
280 android.os.FileUtils.copy(in, out); in testDeleteDownload()
320 android.os.FileUtils.copy(in, out); in testNotifyChange()
365 FileUtils.copy(in, out); in insertImage()
DMediaStorePendingTest.java42 import android.os.FileUtils;
135 FileUtils.copy(in, out); in verifySuccessfulImageInsertion()
175 FileUtils.copy(in, out); in testSimple_Abandoned()
407 FileUtils.copy(in, out); in testMutableColumns()
458 FileUtils.copy(in, out); in testMatchingColumns()
500 FileUtils.copy(in, out); in execPending()
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_PhotoTest.java31 import com.android.compatibility.common.util.FileUtils;
104 byte[] actualBytes = FileUtils.readInputStreamFully(photoStream); in assertPhotoStream()
/cts/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DRedactionTestHelper.java25 import android.os.FileUtils;
144 FileUtils.copy(in, out); in assertConsistentNonRedactedAccess()
/cts/tests/tests/apache-http/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()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DSystemUtil.java108 return FileUtils.readInputStreamFully(fis); in runShellCommandByteOutput()
161 out = new String(FileUtils.readInputStreamFully(fis)); in runShellCommandOrThrow()
164 err = new String(FileUtils.readInputStreamFully(fis)); in runShellCommandOrThrow()
/cts/tools/cfassembler/
DAndroid.bp23 "src/dxconvext/util/FileUtils.java",
/cts/tools/cts-api-coverage/src/com/android/cts/apimap/
DFileUtils.java27 public final class FileUtils { class
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/
DShellCommandUtils.java267 String out = new String(FileUtils.readInputStreamFully(fis)); in executeCommandPreS()
299 return FileUtils.readInputStreamFully(fis); in executeCommandForBytesPreS()
320 return FileUtils.readInputStreamFully(fis); in readStreamAndClose()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DMetricsRecorder.java31 import com.android.compatibility.common.util.FileUtils;
194 out = new String(FileUtils.readInputStreamFully(fis)); in runShellCommandWithStdIn()
199 err = new String(FileUtils.readInputStreamFully(fis)); in runShellCommandWithStdIn()

123