/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/ |
D | IsolatedService.java | 19 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 …]
|
D | AppATests.java | 19 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/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 | 96 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 | 21 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/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/ |
D | AppBTests.java | 19 import static com.android.cts.appdataisolation.common.FileUtils.assertDirDoesNotExist; 20 import static com.android.cts.appdataisolation.common.FileUtils.assertDirIsAccessible; 21 import static com.android.cts.appdataisolation.common.FileUtils.assertDirIsNotAccessible; 22 import static com.android.cts.appdataisolation.common.FileUtils.assertFileIsAccessible;
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/ |
D | PhotoUtil.java | 22 import com.android.compatibility.common.util.FileUtils; 30 return FileUtils.readInputStreamFully(input); in getTestPhotoData()
|
/cts/tools/cfassembler/src/dxconvext/util/ |
D | FileUtils.java | 26 public final class FileUtils { class 30 private FileUtils() { in FileUtils() method in FileUtils
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | ShellCommandUtils.java | 30 import com.android.compatibility.common.util.FileUtils; 222 String out = new String(FileUtils.readInputStreamFully(fis)); in executeCommandPreS() 254 return FileUtils.readInputStreamFully(fis); in executeCommandForBytesPreS() 275 return FileUtils.readInputStreamFully(fis); in readStreamAndClose()
|
/cts/tests/BlobStore/src/com/android/cts/blob/ |
D | DumpOnFailureRule.java | 21 import android.os.FileUtils; 70 FileUtils.copy(in, out); in dumpCommandOutput()
|
/cts/tests/tests/contactsprovider/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/apache-http/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/tests/tests/provider/src/android/provider/cts/media/ |
D | MediaStore_DownloadsTest.java | 35 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()
|
D | MediaStorePendingTest.java | 40 import android.os.FileUtils; 135 FileUtils.copy(in, out); in verifySuccessfulImageInsertion() 174 FileUtils.copy(in, out); in testSimple_Abandoned() 406 FileUtils.copy(in, out); in testMutableColumns() 457 FileUtils.copy(in, out); in testMatchingColumns() 499 FileUtils.copy(in, out); in execPending()
|
/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/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | SystemUtil.java | 108 return FileUtils.readInputStreamFully(fis); in runShellCommandByteOutput() 161 out = new String(FileUtils.readInputStreamFully(fis)); in runShellCommandOrThrow() 164 err = new String(FileUtils.readInputStreamFully(fis)); in runShellCommandOrThrow()
|
D | FileUtils.java | 26 public class FileUtils { class
|
/cts/tools/cfassembler/ |
D | Android.bp | 23 "src/dxconvext/util/FileUtils.java",
|
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | BugreportManagerTest.java | 29 import android.os.FileUtils; 108 FileUtils.closeQuietly(mBugreportFd); in tearDown() 109 FileUtils.closeQuietly(mScreenshotFd); in tearDown()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | ReportExporter.java | 24 import android.os.FileUtils; 186 FileUtils.copy(is, fos); in saveReportOnInternalStorage()
|
/cts/tests/app/src/android/app/cts/ |
D | DownloadManagerTestBase.java | 40 import android.os.FileUtils; 138 FileUtils.copy(digestIn, out); in hash() 141 FileUtils.closeQuietly(in); in hash() 214 FileUtils.closeQuietly(in); in getTotalBytes()
|
/cts/tests/app/DownloadManagerApi28Test/src/android/app/cts/ |
D | DownloadManagerApi28Test.java | 33 import android.os.FileUtils; 249 FileUtils.copy(in, out); in testAddCompletedDownload_mediaStoreEntry()
|
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/common/src/com/android/cts/appdataisolation/common/ |
D | FileUtils.java | 38 public class FileUtils { class
|