Home
last modified time | relevance | path

Searched refs:tempFile (Results 1 – 25 of 30) 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/boringssl/src/util/fipstools/acvp/acvptool/test/
Dcheck_expected.go141 tempFile, err := ioutil.TempFile("", "boringssl-check_expected-")
145 defer os.Remove(tempFile.Name())
146 defer tempFile.Close()
149 if _, err := io.Copy(tempFile, decompressor); err != nil {
153 cmd := exec.Command(test.toolPath, "-wrapper", test.wrapperPath, "-json", tempFile.Name())
/external/cldr/tools/java/org/unicode/cldr/util/
DTempPrintWriter.java46 File tempFile; in TempPrintWriter() local
48 tempFile = new File(parentFile, (0xFFFF & rand.nextInt()) + "-" + file.getName()); in TempPrintWriter()
49 } while (tempFile.exists()); in TempPrintWriter()
50 tempName = tempFile.toString(); in TempPrintWriter()
51 tempPrintWriter = FileUtilities.openUTF8Writer(parentFile, tempFile.getName()); in TempPrintWriter()
/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/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/conscrypt/repackaged/openjdk/src/main/java/com/android/org/conscrypt/
DPlatform.java126 File tempFile = new File(directory, tempName); in createTempFile() local
127 if (!tempName.equals(tempFile.getName())) { in createTempFile()
129 throw new IOException("Unable to create temporary file: " + tempFile); in createTempFile()
132 if (tempFile.createNewFile()) { in createTempFile()
133 return tempFile.getCanonicalFile(); in createTempFile()
/external/conscrypt/openjdk/src/main/java/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/oss-fuzz/projects/alembic/
Dalembic_dump_info_fuzzer.cc200 FuzzerTemporaryFile tempFile(data, size); in LLVMFuzzerTestOneInput() local
201 dumpInfo(tempFile.filename()); in LLVMFuzzerTestOneInput()
/external/angle/util/posix/
Dtest_utils_posix.cpp422 std::string tempFile = TempFileName(); in CreateTemporaryFileInDir() local
423 sprintf(tempFileNameOut, "%s/%s", dir, tempFile.c_str()); in CreateTemporaryFileInDir()
/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/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()

12