/cts/hostsidetests/security/app/src/android/security/cts/ |
D | ZipPathValidatorDeviceTest.java | 68 final File tempFile = File.createTempFile("smdc", "zip"); in newZipFile_whenZipFileHasDangerousEntriesAndChangeEnabled_throws() local 70 writeZipFileOutputStreamWithEmptyEntry(tempFile, entryName); in newZipFile_whenZipFileHasDangerousEntriesAndChangeEnabled_throws() 76 new ZipFile(tempFile); in newZipFile_whenZipFileHasDangerousEntriesAndChangeEnabled_throws() 79 tempFile.delete(); in newZipFile_whenZipFileHasDangerousEntriesAndChangeEnabled_throws() 117 final File tempFile = File.createTempFile("smdc", "zip"); in newZipFile_whenZipFileHasNormalEntriesAndChangeEnabled_doesNotThrow() local 119 writeZipFileOutputStreamWithEmptyEntry(tempFile, entryName); in newZipFile_whenZipFileHasNormalEntriesAndChangeEnabled_doesNotThrow() 120 ZipFile zipFile = new ZipFile((tempFile)); in newZipFile_whenZipFileHasNormalEntriesAndChangeEnabled_doesNotThrow() 122 tempFile.delete(); in newZipFile_whenZipFileHasNormalEntriesAndChangeEnabled_doesNotThrow() 158 final File tempFile = File.createTempFile("smdc", "zip"); in newZipFile_whenZipFileHasNormalAndDangerousEntriesAndChangeDisabled_doesNotThrow() local 160 writeZipFileOutputStreamWithEmptyEntry(tempFile, entryName); in newZipFile_whenZipFileHasNormalAndDangerousEntriesAndChangeDisabled_doesNotThrow() [all …]
|
/cts/tools/vm-tests-tf/build/src/util/build/ |
D | JarBuildStep.java | 48 File tempFile = new File(inputFile.folder, outputJarEntryName); in build() local 50 if (!inputFile.fileName.equals(tempFile)) { in build() 51 copyFile(inputFile.fileName, tempFile); in build() 53 tempFile = null; in build() 106 if (tempFile != null) { in build() 107 tempFile.delete(); in build()
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | CVE_2021_39700.java | 47 File tempFile = File.createTempFile("CVE_2021_39700", "temp"); in testPocCVE_2021_39700() local 48 assertTrue("Vulnerable to b/201645790 !!", device.pullFile(procUdp6File, tempFile)); in testPocCVE_2021_39700() 49 tempFile.deleteOnExit(); in testPocCVE_2021_39700()
|
D | AdbUtils.java | 335 for (String tempFile : inputFiles) { in pushResources() 336 pushResource(RESOURCE_ROOT + tempFile, inputFilesDestination + tempFile, device); in pushResources() 354 for (String tempFile : inputFiles) { in removeResources() 355 runCommandLine("rm " + inputFilesDestination + tempFile, device); in removeResources()
|
/cts/hostsidetests/jdwpsecurity/src/android/jdwpsecurity/cts/ |
D | JdwpSecurityHostTest.java | 74 File tempFile = createScriptTempFile(); in setUp() local 76 boolean success = getDevice().pushFile(tempFile, getDeviceScriptFilepath()); in setUp() 79 if (tempFile != null) { in setUp() 80 tempFile.delete(); in setUp() 172 File tempFile = File.createTempFile("jdwptest", ".tmp"); in createScriptTempFile() local 176 pw = new PrintWriter(tempFile); in createScriptTempFile() 191 return tempFile; in createScriptTempFile()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | CtsRemoteService.java | 49 File tempFile = File.createTempFile("foo", "bar"); 50 return tempFile.delete();
|
D | ParcelFileDescriptorTest.java | 79 ParcelFileDescriptor tempFile = makeParcelFileDescriptor(); in testConstructorAndOpen() local 81 ParcelFileDescriptor pfd = new ParcelFileDescriptor(tempFile); in testConstructorAndOpen() 96 ParcelFileDescriptor tempFile = makeParcelFileDescriptor(); in testDetachAdopt() local 98 ParcelFileDescriptor before = new ParcelFileDescriptor(tempFile); in testDetachAdopt()
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
D | ApkNdkApiReport.java | 151 File tempFile = File.createTempFile("ApkNdkApiReport", ".so"); in parseTestcasesFolder() local 152 tempFile.deleteOnExit(); in parseTestcasesFolder() 153 FileOutputStream fos = new FileOutputStream(tempFile); in parseTestcasesFolder() 163 testModules.add(new TestModule(tempFile, targetFile.getName(), "jUnit")); in parseTestcasesFolder()
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | ClassUtils.java | 113 File tempFile = File.createTempFile(fileName, ""); in getResrouceFile() local 114 tempFile.deleteOnExit(); in getResrouceFile() 116 OutputStream output = new FileOutputStream(tempFile)) { in getResrouceFile() 123 return tempFile; in getResrouceFile()
|
/cts/hostsidetests/car/src/android/car/cts/ |
D | CarTelemetryHostTest.java | 160 File tempFile = File.createTempFile(metricsConfig.getName(), ".bin"); in createMetricsConfigTempFile() local 161 FileOutputStream os = new FileOutputStream(tempFile); in createMetricsConfigTempFile() 165 return tempFile; in createMetricsConfigTempFile()
|
/cts/tests/tests/telephony/current/EmbmsMiddlewareTestApp/src/android/telephony/cts/embmstestapp/ |
D | CtsDownloadService.java | 405 UriPathPair tempFile = tempFiles.get(i); 407 int result = writeContentsToTempFile(tempFile); 410 tempFile, request, result, requestedFile); 454 private Intent composeDownloadResultIntent(UriPathPair tempFile, DownloadRequest request, in composeDownloadResultIntent() argument 461 tempFile.getFilePathUri()); in composeDownloadResultIntent() 472 private int writeContentsToTempFile(UriPathPair tempFile) { in writeContentsToTempFile() argument 477 tempFile.getContentUri(), "rw"); in writeContentsToTempFile()
|
/cts/hostsidetests/compilation/src/android/compilation/cts/ |
D | Utils.java | 149 File tempFile = copyResourceToFile(resource, File.createTempFile("temp", ".tmp")); in pushFromResource() local 150 tempFile.deleteOnExit(); in pushFromResource() 151 mTestInfo.getDevice().pushFile(tempFile, remotePath); in pushFromResource()
|
/cts/hostsidetests/security/src/android/security/cts/ |
D | SELinuxHostTest.java | 129 File tempFile = createTempFile(tempFileName, ".tmp"); in copyResourceToTempFile() local 130 FileOutputStream os = new FileOutputStream(tempFile); in copyResourceToTempFile() 139 return tempFile; in copyResourceToTempFile()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | StagefrightTest.java | 768 final File tempFile = File.createTempFile("poc_tmp", ".ogg", null); in testStagefright_bug_36592202() local 770 final FileOutputStream tempFos = new FileOutputStream(tempFile.getAbsolutePath()); in testStagefright_bug_36592202() 773 long oggPagesAvailable = tempFile.getUsableSpace() / oggPageSize; in testStagefright_bug_36592202() 787 doStagefrightTestMediaCodec(tempFile.getAbsolutePath(), in testStagefright_bug_36592202() 790 if (!tempFile.delete()) { in testStagefright_bug_36592202() 800 if (!tempFile.delete()) { in testStagefright_bug_36592202()
|