/external/archive-patcher/generator/src/test/java/com/google/archivepatcher/generator/ |
D | DeltaFriendlyOldBlobSizeLimiterTest.java | 187 private File tempFile = null; field in DeltaFriendlyOldBlobSizeLimiterTest 192 tempFile = File.createTempFile("DeltaFriendlyOldBlobSizeLimiterTest", "test"); in setup() 193 tempFile.deleteOnExit(); in setup() 198 tempFile.delete(); in tearDown() 207 assertEquivalence(expected, limiter.getModifiedRecommendations(tempFile, tempFile, ALL_RECS)); in testZeroLimit() 213 assertEquivalence(ALL_RECS, limiter.getModifiedRecommendations(tempFile, tempFile, ALL_RECS)); in testMaxLimit() 226 assertEquivalence(expected, limiter.getModifiedRecommendations(tempFile, tempFile, ALL_RECS)); in testLimit_ExactlySmallest() 239 assertEquivalence(expected, limiter.getModifiedRecommendations(tempFile, tempFile, ALL_RECS)); in testLimit_EdgeUnderSmallest() 253 assertEquivalence(expected, limiter.getModifiedRecommendations(tempFile, tempFile, ALL_RECS)); in testLimit_EdgeOverSmallest() 266 assertEquivalence(expected, limiter.getModifiedRecommendations(tempFile, tempFile, ALL_RECS)); in testLimit_ExactlyLargest() [all …]
|
D | MinimalZipArchiveTest.java | 40 private File tempFile; field in MinimalZipArchiveTest 45 tempFile = File.createTempFile("MinimalZipArchiveTest", "zip"); in setup() 46 tempFile.deleteOnExit(); in setup() 48 FileOutputStream out = new FileOutputStream(tempFile); in setup() 54 tempFile.delete(); in setup() 64 if (tempFile != null) { in tearDown() 66 tempFile.delete(); in tearDown() 76 List<MinimalZipEntry> parsedEntries = MinimalZipArchive.listEntries(tempFile); in testListEntries()
|
D | MinimalZipParserTest.java | 72 File tempFile = File.createTempFile("MinimalZipParserTest", "zip"); in testLocateStartOfEocd_WithFile() local 73 tempFile.deleteOnExit(); in testLocateStartOfEocd_WithFile() 75 FileOutputStream out = new FileOutputStream(tempFile); in testLocateStartOfEocd_WithFile() 83 tempFile.delete(); in testLocateStartOfEocd_WithFile() 91 try (RandomAccessFileInputStream in = new RandomAccessFileInputStream(tempFile)) { in testLocateStartOfEocd_WithFile() 100 File tempFile = File.createTempFile("MinimalZipParserTest", "zip"); in testLocateStartOfEocd_WithFile_NoEocd() local 101 tempFile.deleteOnExit(); in testLocateStartOfEocd_WithFile_NoEocd() 103 FileOutputStream out = new FileOutputStream(tempFile); in testLocateStartOfEocd_WithFile_NoEocd() 109 tempFile.delete(); in testLocateStartOfEocd_WithFile_NoEocd() 117 try (RandomAccessFileInputStream in = new RandomAccessFileInputStream(tempFile)) { in testLocateStartOfEocd_WithFile_NoEocd()
|
D | DefaultDeflateCompressionDivinerTest.java | 110 File tempFile = File.createTempFile("ddcdt", "tmp"); in testDivineDeflateParameters_File() local 111 tempFile.deleteOnExit(); in testDivineDeflateParameters_File() 113 UnitTestZipArchive.saveTestZip(tempFile); in testDivineDeflateParameters_File() 114 List<DivinationResult> results = diviner.divineDeflateParameters(tempFile); in testDivineDeflateParameters_File() 136 tempFile.delete(); in testDivineDeflateParameters_File()
|
D | PreDiffPlannerTest.java | 144 private MinimalZipEntry findEntry(File tempFile, UnitTestZipEntry unitTestEntry) { in findEntry() argument 145 Map<ByteArrayHolder, MinimalZipEntry> subMap = entriesByPathByTempFile.get(tempFile); in findEntry() 163 private TypedRange<Void> findRangeWithoutParams(File tempFile, UnitTestZipEntry unitTestEntry) { in findRangeWithoutParams() argument 164 MinimalZipEntry found = findEntry(tempFile, unitTestEntry); in findRangeWithoutParams() 178 File tempFile, UnitTestZipEntry unitTestEntry) { in findRangeWithParams() argument 179 MinimalZipEntry found = findEntry(tempFile, unitTestEntry); in findRangeWithParams() 193 private void corruptEntryData(File tempFile, UnitTestZipEntry unitTestEntry) throws IOException { in corruptEntryData() argument 194 TypedRange<Void> range = findRangeWithoutParams(tempFile, unitTestEntry); in corruptEntryData() 196 try (RandomAccessFile raf = new RandomAccessFile(tempFile, "rw")) { in corruptEntryData() 208 private void corruptCompressionMethod(File tempFile, UnitTestZipEntry unitTestEntry) in corruptCompressionMethod() argument [all …]
|
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/ |
D | RandomAccessFileOutputStreamTest.java | 49 private File tempFile = null; field in RandomAccessFileOutputStreamTest 57 tempFile = File.createTempFile("ra-fost", "tmp"); in setup() 58 tempFile.deleteOnExit(); in setup() 69 tempFile.delete(); in tearDown() 77 stream = new RandomAccessFileOutputStream(tempFile, 11L); in testCreateAndSize() 78 Assert.assertEquals(11, tempFile.length()); in testCreateAndSize() 84 new RandomAccessFileOutputStream(tempFile, 11L) { in testCreateAndFailToSize() 99 stream = new RandomAccessFileOutputStream(tempFile, 1L); in testWrite() 105 in = new FileInputStream(tempFile); in testWrite() 118 stream = new RandomAccessFileOutputStream(tempFile, 1L); in testWriteArray() [all …]
|
D | RandomAccessFileInputStreamTest.java | 49 private File tempFile = null; field in RandomAccessFileInputStreamTest 57 tempFile = File.createTempFile("ra-fist", "tmp"); in setup() 58 tempFile.deleteOnExit(); in setup() 60 FileOutputStream out = new FileOutputStream(tempFile); in setup() 66 tempFile.delete(); in setup() 72 stream = new RandomAccessFileInputStream(tempFile); in setup() 83 tempFile.delete(); in tearDown() 143 stream = new RandomAccessFileInputStream(tempFile, 1, testData.length - 2); in testMarkAndReset_WithOffsetFile() 221 new RandomAccessFileInputStream(tempFile, 0, testData.length) { in testMark_IOExceptionInRaf() 258 stream = new RandomAccessFileInputStream(tempFile, 5, 2); in testConstructorWithSpecificLength() [all …]
|
D | RandomAccessFileInputStreamFactoryTest.java | 47 private File tempFile = null; field in RandomAccessFileInputStreamFactoryTest 55 tempFile = File.createTempFile("ra-fist", "tmp"); in setup() 56 FileOutputStream out = new FileOutputStream(tempFile); in setup() 60 tempFile.deleteOnExit(); in setup() 61 factory = new RandomAccessFileInputStreamFactory(tempFile, 0, testData.length); in setup() 67 tempFile.delete(); in tearDown()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/pack200/ |
D | Pack200Utils.java | 133 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/archive-patcher/generator/src/main/java/com/google/archivepatcher/generator/bsdiff/ |
D | RandomAccessObject.java | 79 public RandomAccessFileObject(final File tempFile, final String mode) throws IOException { in RandomAccessFileObject() argument 80 this(tempFile, mode, false); in RandomAccessFileObject() 96 public RandomAccessFileObject(final File tempFile, final String mode, boolean deleteFileOnClose) in RandomAccessFileObject() argument 98 super(tempFile, mode); in RandomAccessFileObject() 100 mFile = tempFile; in RandomAccessFileObject() 435 public RandomAccessMmapObject(final File tempFile, final String mode) in RandomAccessMmapObject() argument 437 if (tempFile.length() > Integer.MAX_VALUE) { in RandomAccessMmapObject() 441 mFile = tempFile; in RandomAccessMmapObject() 456 mByteBuffer = mFileChannel.map(mapMode, 0, tempFile.length()); in RandomAccessMmapObject()
|
/external/nanohttpd/samples/src/main/java/fi/iki/elonen/ |
D | TempFilesServer.java | 76 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/guava/guava-tests/test/com/google/common/io/ |
D | IoTestCase.java | 116 File tempFile = File.createTempFile("IoTestCase", ""); in createTempDir() local 117 if (!tempFile.delete() || !tempFile.mkdir()) { in createTempDir() 120 filesToDelete.add(tempFile); in createTempDir() 121 return tempFile; in createTempDir()
|
D | ResourcesTest.java | 140 File tempFile = createTempFile(); in testGetResource_contextClassLoader() local 141 PrintWriter writer = new PrintWriter(tempFile, "UTF-8"); in testGetResource_contextClassLoader() 149 Resources.getResource(tempFile.getName()); in testGetResource_contextClassLoader() 155 URL baseUrl = tempFile.getParentFile().toURI().toURL(); in testGetResource_contextClassLoader() 161 URL url = Resources.getResource(tempFile.getName()); in testGetResource_contextClassLoader()
|
/external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
D | JavaIOTempDirExistTest.java | 54 DefaultTempFile tempFile = (DefaultTempFile) manager.createTempFile("xx"); in testJavaIoTempDefault() local 55 File tempFileBackRef = new File(tempFile.getName()); in testJavaIoTempDefault() 62 tempFile.delete(); in testJavaIoTempDefault()
|
/external/syzkaller/pkg/db/ |
D | db_test.go | 17 fn := tempFile(t) 54 fn := tempFile(t) 95 fn := tempFile(t) 121 func tempFile(t *testing.T) string { func
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ |
D | JarTypeSolver.java | 62 File tempFile = File.createTempFile("jar_file_from_input_stream", ".jar"); in dumpToTempFile() local 63 tempFile.deleteOnExit(); in dumpToTempFile() 68 OutputStream output = new FileOutputStream(tempFile); in dumpToTempFile() 80 return tempFile; in dumpToTempFile()
|
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/ |
D | FileByFileV1DeltaApplier.java | 70 File tempFile = File.createTempFile("gfbfv1", "old", tempDir); in applyDelta() local 72 applyDeltaInternal(oldBlob, tempFile, deltaIn, newBlobOut); in applyDelta() 74 tempFile.delete(); in applyDelta()
|
/external/archive-patcher/tools/src/main/java/com/google/archivepatcher/tools/ |
D | FileByFileTool.java | 215 File tempFile = File.createTempFile("fbftool", "tmp"); in applyPatch() local 216 File tempDir = tempFile.getParentFile(); in applyPatch() 217 tempFile.delete(); in applyPatch()
|
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/utils/ |
D | FixedLengthBlockOutputStreamTest.java | 194 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/ |
D | TemporaryFolder.java | 114 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/ |
D | FileDeferredOutputStream.java | 99 File tempFile = File.createTempFile("dexlibtmp", null, containingDirectory); in getFactory() 100 return new FileDeferredOutputStream(tempFile, bufferSize); in getFactory()
|
/external/archive-patcher/applier/src/test/java/com/google/archivepatcher/applier/ |
D | FileByFileV1DeltaApplierTest.java | 117 File tempFile = File.createTempFile("foo", "bar"); in setUp() local 118 tempDir = tempFile.getParentFile(); in setUp() 119 tempFile.delete(); in setUp()
|
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/archivers/zip/ |
D | ParallelScatterZipCreator.java | 69 … 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/ |
D | Platform.java | 125 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/conscrypt/openjdk/src/main/java/org/conscrypt/ |
D | Platform.java | 124 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()
|