Home
last modified time | relevance | path

Searched refs:tempFile (Results 1 – 25 of 27) sorted by relevance

12

/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/pack200/
DPack200Utils.java133 final File tempFile = File.createTempFile("commons-compress", "pack200normalize"); in normalize() local
135 try (FileOutputStream fos = new FileOutputStream(tempFile); in normalize()
143 unpacker.unpack(tempFile, jos); in normalize()
146 if (!tempFile.delete()) { in normalize()
147 tempFile.deleteOnExit(); in normalize()
/external/nanohttpd/samples/src/main/java/fi/iki/elonen/
DTempFilesServer.java76 DefaultTempFile tempFile = new DefaultTempFile(this.tmpdir); in createTempFile() local
77 this.tempFiles.add(tempFile); in createTempFile()
78 System.out.println("Created tempFile: " + tempFile.getName()); in createTempFile()
79 return tempFile; in createTempFile()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/offline/
DActionFileTest.java40 private File tempFile; field in ActionFileTest
46 tempFile = Util.createTempFile(ApplicationProvider.getApplicationContext(), "ExoPlayerTest"); in setUp()
55 tempFile.delete(); in tearDown()
120 try (FileOutputStream output = new FileOutputStream(tempFile)) { in getActionFile()
124 return new ActionFile(tempFile); in getActionFile()
DActionFileUpgradeUtilTest.java43 private File tempFile; field in ActionFileUpgradeUtilTest
49 tempFile = Util.createTempFile(ApplicationProvider.getApplicationContext(), "ExoPlayerTest"); in setUp()
57 tempFile.delete(); in tearDown()
67 try (FileOutputStream output = new FileOutputStream(tempFile)) { in upgradeAndDelete_createsDownloads()
93 tempFile, in upgradeAndDelete_createsDownloads()
/external/guava/android/guava-tests/test/com/google/common/io/
DIoTestCase.java113 File tempFile = File.createTempFile("IoTestCase", ""); in createTempDir() local
114 if (!tempFile.delete() || !tempFile.mkdir()) { in createTempDir()
117 filesToDelete.add(tempFile); in createTempDir()
118 return tempFile; in createTempDir()
DResourcesTest.java141 File tempFile = createTempFile(); in testGetResource_contextClassLoader() local
142 PrintWriter writer = new PrintWriter(tempFile, "UTF-8"); in testGetResource_contextClassLoader()
150 Resources.getResource(tempFile.getName()); in testGetResource_contextClassLoader()
156 URL baseUrl = tempFile.getParentFile().toURI().toURL(); in testGetResource_contextClassLoader()
161 URL url = Resources.getResource(tempFile.getName()); in testGetResource_contextClassLoader()
/external/guava/guava-tests/test/com/google/common/io/
DIoTestCase.java113 File tempFile = File.createTempFile("IoTestCase", ""); in createTempDir() local
114 if (!tempFile.delete() || !tempFile.mkdir()) { in createTempDir()
117 filesToDelete.add(tempFile); in createTempDir()
118 return tempFile; in createTempDir()
DResourcesTest.java141 File tempFile = createTempFile(); in testGetResource_contextClassLoader() local
142 PrintWriter writer = new PrintWriter(tempFile, "UTF-8"); in testGetResource_contextClassLoader()
150 Resources.getResource(tempFile.getName()); in testGetResource_contextClassLoader()
156 URL baseUrl = tempFile.getParentFile().toURI().toURL(); in testGetResource_contextClassLoader()
161 URL url = Resources.getResource(tempFile.getName()); in testGetResource_contextClassLoader()
/external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/
DCallSiteTest.java86 File tempFile = File.createTempFile("dex", ".dex"); in testPoolCallSite() local
87 DexFileFactory.writeDexFile(tempFile.getPath(), in testPoolCallSite()
90 verifyDexFile(DexFileFactory.loadDexFile(tempFile, Opcodes.forArtVersion(111))); in testPoolCallSite()
117 File tempFile = File.createTempFile("dex", ".dex"); in testBuilderCallSite() local
118 dexBuilder.writeTo(new FileDataStore(tempFile)); in testBuilderCallSite()
120 verifyDexFile(DexFileFactory.loadDexFile(tempFile, Opcodes.forArtVersion(111))); in testBuilderCallSite()
/external/nanohttpd/core/src/test/java/fi/iki/elonen/
DJavaIOTempDirExistTest.java54 DefaultTempFile tempFile = (DefaultTempFile) manager.createTempFile("xx"); in testJavaIoTempDefault() local
55 File tempFileBackRef = new File(tempFile.getName()); in testJavaIoTempDefault()
62 tempFile.delete(); in testJavaIoTempDefault()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/
DJarTypeSolver.java73 File tempFile = File.createTempFile("jar_file_from_input_stream", ".jar"); in dumpToTempFile() local
74 tempFile.deleteOnExit(); in dumpToTempFile()
78 try (OutputStream output = new FileOutputStream(tempFile)) { in dumpToTempFile()
86 return tempFile; in dumpToTempFile()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/
DFixedLengthBlockOutputStreamTest.java194 final Path tempFile = Files.createTempFile("xxx", "yyy"); in testWithFileOutputStream() local
199 Files.deleteIfExists(tempFile); in testWithFileOutputStream()
206 OutputStream os = new FileOutputStream(tempFile.toFile()); in testWithFileOutputStream()
216 assertEquals("file size",expectedFileSize, Files.size(tempFile)); in testWithFileOutputStream()
217 DataInputStream din = new DataInputStream(Files.newInputStream(tempFile)); in testWithFileOutputStream()
/external/junit/src/main/java/org/junit/rules/
DTemporaryFolder.java114 File tempFile = new File(folderName); in validateFolderName() local
115 if (tempFile.getParent() != null) { in validateFolderName()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/writer/io/
DFileDeferredOutputStream.java99 File tempFile = File.createTempFile("dexlibtmp", null, containingDirectory); in getFactory()
100 return new FileDeferredOutputStream(tempFile, bufferSize); in getFactory()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/
DParallelScatterZipCreator.java69 … final File tempFile = File.createTempFile("parallelscatter", "n" + storeNum.incrementAndGet()); in get() local
70 return new FileBasedScatterGatherBackingStore(tempFile); in get()
/external/angle/util/posix/
Dtest_utils_posix.cpp394 std::string tempFile = TempFileName(); in CreateTemporaryFileInDir() local
395 sprintf(tempFileNameOut, "%s/%s", dir, tempFile.c_str()); in CreateTemporaryFileInDir()
/external/conscrypt/openjdk/src/main/java/org/conscrypt/
DPlatform.java124 File tempFile = new File(directory, tempName); in createTempFile() local
125 if (!tempName.equals(tempFile.getName())) { in createTempFile()
127 throw new IOException("Unable to create temporary file: " + tempFile); in createTempFile()
130 if (tempFile.createNewFile()) { in createTempFile()
131 return tempFile.getCanonicalFile(); in createTempFile()
/external/conscrypt/repackaged/openjdk/src/main/java/com/android/org/conscrypt/
DPlatform.java125 File tempFile = new File(directory, tempName); in createTempFile() local
126 if (!tempName.equals(tempFile.getName())) { in createTempFile()
128 throw new IOException("Unable to create temporary file: " + tempFile); in createTempFile()
131 if (tempFile.createNewFile()) { in createTempFile()
132 return tempFile.getCanonicalFile(); in createTempFile()
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/
DSdkStore.java271 File tempFile = File.createTempFile("prefix", "suffix"); in copyResourceToFile() local
272 tempFile.deleteOnExit(); in copyResourceToFile()
273 tempDir = tempFile.getParentFile(); in copyResourceToFile()
/external/lzma/CPP/7zip/UI/Common/
DWorkDir.cpp73 CTempFile tempFile; in CreateTempFile() local
/external/nanohttpd/core/src/main/java/fi/iki/elonen/
DNanoHTTPD.java453 DefaultTempFile tempFile = new DefaultTempFile(this.tmpdir); in createTempFile() local
454 this.tempFiles.add(tempFile); in createTempFile()
455 return tempFile; in createTempFile()
979 TempFile tempFile = this.tempFileManager.createTempFile(null); in getTmpBucket() local
980 return new RandomAccessFile(tempFile.getName(), "rw"); in getTmpBucket()
1097 TempFile tempFile = this.tempFileManager.createTempFile(filename_hint); in saveTmpFile() local
1099 fileOutputStream = new FileOutputStream(tempFile.getName()); in saveTmpFile()
1103 path = tempFile.getName(); in saveTmpFile()
/external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/
DPropertyChangeSupportTest.java47 private File tempFile; field in PropertyChangeSupportTest
51 tempFile = File.createTempFile("beans", ".ser"); in setUp()
56 tempFile.delete(); in tearDown()
57 tempFile = null; in tearDown()
1452 oos = new ObjectOutputStream(new FileOutputStream(tempFile)); in writePropertyChangeListeners()
1480 ois = new ObjectInputStream(new FileInputStream(tempFile)); in readPropertyChangeListeners()
/external/angle/src/tests/test_utils/runner/
DTestSuite.cpp985 for (const std::string &tempFile : {processInfo->filterFileName, processInfo->resultsFileName}) in finishProcess()
989 if (!angle::DeleteFile(tempFile.c_str())) in finishProcess()
991 std::cerr << "Warning: Error cleaning up temp file: " << tempFile << "\n"; in finishProcess()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/util/
DUtil.java1841 File tempFile = createTempFile(context, prefix); in createTempDirectory() local
1842 tempFile.delete(); // Delete the temp file. in createTempDirectory()
1843 tempFile.mkdir(); // Create a directory with the same name. in createTempDirectory()
1844 return tempFile; in createTempDirectory()
/external/sonivox/arm-wt-22k/lib_src/
Deas_mdls.c840 EAS_FILE_HANDLE tempFile; in Parse_ptbl() local
871 …if ((result = EAS_HWDupHandle(pDLSData->hwInstData, pDLSData->fileHandle, &tempFile)) != EAS_SUCCE… in Parse_ptbl()
879 … if ((result = EAS_HWGetDWord(pDLSData->hwInstData, tempFile, &temp, EAS_FALSE)) != EAS_SUCCESS) in Parse_ptbl()
884 EAS_HWCloseFile(pDLSData->hwInstData, tempFile); in Parse_ptbl()
894 EAS_HWCloseFile(pDLSData->hwInstData, tempFile); in Parse_ptbl()

12