/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/core/src/test/java/com/google/android/exoplayer2/offline/ |
D | ActionFileUpgradeUtilTest.java | 42 private File tempFile; field in ActionFileUpgradeUtilTest 48 tempFile = Util.createTempFile(ApplicationProvider.getApplicationContext(), "ExoPlayerTest"); in setUp() 56 tempFile.delete(); in tearDown() 65 try (FileOutputStream output = new FileOutputStream(tempFile)) { in upgradeAndDelete_progressiveActionFile_createsDownloads() 83 tempFile, in upgradeAndDelete_progressiveActionFile_createsDownloads() 89 assertThat(tempFile.exists()).isFalse(); in upgradeAndDelete_progressiveActionFile_createsDownloads() 100 try (FileOutputStream output = new FileOutputStream(tempFile)) { in upgradeAndDelete_dashActionFile_createsDownloads() 122 tempFile, in upgradeAndDelete_dashActionFile_createsDownloads() 128 assertThat(tempFile.exists()).isFalse(); in upgradeAndDelete_dashActionFile_createsDownloads() 139 try (FileOutputStream output = new FileOutputStream(tempFile)) { in upgradeAndDelete_hlsActionFile_createsDownloads() [all …]
|
D | ActionFileTest.java | 40 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()
|
/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/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/apache-commons-io/src/test/java/org/apache/commons/io/file/ |
D | FilesUncheckTest.java | 434 final Path tempFile = FilesUncheck.createTempFile(PREFIX, SUFFIX); in testWritePathByteArrayOpenOptionArray() local 435 …assertEquals(tempFile, FilesUncheck.write(tempFile, "test".getBytes(), StandardOpenOption.TRUNCATE… in testWritePathByteArrayOpenOptionArray() 436 FilesUncheck.delete(tempFile); in testWritePathByteArrayOpenOptionArray() 441 final Path tempFile = FilesUncheck.createTempFile(PREFIX, SUFFIX); in testWritePathIterableOfQextendsCharSequenceCharsetOpenOptionArray() local 442 …assertEquals(tempFile, FilesUncheck.write(tempFile, Arrays.asList("test"), StandardCharsets.UTF_8,… in testWritePathIterableOfQextendsCharSequenceCharsetOpenOptionArray() 443 FilesUncheck.delete(tempFile); in testWritePathIterableOfQextendsCharSequenceCharsetOpenOptionArray() 448 final Path tempFile = FilesUncheck.createTempFile(PREFIX, SUFFIX); in testWritePathIterableOfQextendsCharSequenceOpenOptionArray() local 449 …assertEquals(tempFile, FilesUncheck.write(tempFile, Arrays.asList("test"), StandardOpenOption.TRUN… in testWritePathIterableOfQextendsCharSequenceOpenOptionArray() 450 FilesUncheck.delete(tempFile); in testWritePathIterableOfQextendsCharSequenceOpenOptionArray()
|
D | AccumulatorPathVisitorTest.java | 180 final Path tempFile = Files.createTempFile(tempDirPath, "test", ".txt"); in testFolderWhileDeletingAsync() local 181 assertTrue(Files.exists(tempFile)); in testFolderWhileDeletingAsync() 182 files.add(tempFile); in testFolderWhileDeletingAsync() 235 final Path tempFile = Files.createTempFile(tempDirPath, "test", ".txt"); in testFolderWhileDeletingSync() local 236 assertTrue(Files.exists(tempFile)); in testFolderWhileDeletingSync() 237 files.add(tempFile); in testFolderWhileDeletingSync()
|
/external/guava/android/guava-tests/test/com/google/common/io/ |
D | IoTestCase.java | 113 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()
|
D | ResourcesTest.java | 141 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/ |
D | IoTestCase.java | 113 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()
|
D | ResourcesTest.java | 141 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/ |
D | CallSiteTest.java | 86 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/mobile-data-download/javatests/com/google/android/libraries/mobiledatadownload/file/openers/ |
D | WriteFileOpenerAndroidTest.java | 240 File tempFile = new File(uri.getPath() + ".tmp"); in openForWrite() local 242 return new BufferingOutputStream(new FileOutputStream(tempFile), tempFile, finalFile); in openForWrite() 247 private final File tempFile; field in WriteFileOpenerAndroidTest.BufferingBackend.BufferingOutputStream 250 BufferingOutputStream(OutputStream stream, File tempFile, File finalFile) { in BufferingOutputStream() argument 252 this.tempFile = tempFile; in BufferingOutputStream() 258 return tempFile; in toFile() 264 tempFile.renameTo(finalFile); in close()
|
/external/google-smali/dexlib2/src/test/java/com/android/tools/smali/dexlib2/writer/ |
D | CallSiteTest.java | 90 File tempFile = File.createTempFile("dex", ".dex"); in testPoolCallSite() local 91 DexFileFactory.writeDexFile(tempFile.getPath(), in testPoolCallSite() 94 verifyDexFile(DexFileFactory.loadDexFile(tempFile, Opcodes.forArtVersion(111))); in testPoolCallSite() 121 File tempFile = File.createTempFile("dex", ".dex"); in testBuilderCallSite() local 122 dexBuilder.writeTo(new FileDataStore(tempFile)); in testBuilderCallSite() 124 verifyDexFile(DexFileFactory.loadDexFile(tempFile, Opcodes.forArtVersion(111))); in testBuilderCallSite()
|
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/ |
D | TempPrintWriter.java | 46 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/cronet/third_party/boringssl/src/util/fipstools/acvp/acvptool/test/ |
D | check_expected.go | 153 tempFile, err := os.CreateTemp("", "boringssl-check_expected-") 157 defer os.Remove(tempFile.Name()) 158 defer tempFile.Close() 161 if _, err := io.Copy(tempFile, decompressor); err != nil { 165 …cmd := exec.Command(test.toolPath, "-wrapper", test.wrapperPath, "-json", tempFile.Name(), "-confi…
|
/external/boringssl/src/util/fipstools/acvp/acvptool/test/ |
D | check_expected.go | 153 tempFile, err := os.CreateTemp("", "boringssl-check_expected-") 157 defer os.Remove(tempFile.Name()) 158 defer tempFile.Close() 161 if _, err := io.Copy(tempFile, decompressor); err != nil { 165 …cmd := exec.Command(test.toolPath, "-wrapper", test.wrapperPath, "-json", tempFile.Name(), "-confi…
|
/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/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typesolvers/ |
D | JarTypeSolver.java | 73 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/toolchain-utils/compiler_wrapper/ |
D | env_test.go | 178 tempFile := path.Join(ctx.tempDir, "some_file") 181 Args: []string{tempFile}, 184 t.Fatalf("Unexpected error touch'ing %q: %v", tempFile, err) 188 if _, err := os.Stat(tempFile); err != nil { 189 t.Errorf("Stat'ing temp file at %q failed: %v", tempFile, err)
|
/external/angle/src/tests/test_utils/runner/ |
D | TestSuite_unittest.cpp | 58 Optional<std::string> tempFile = CreateTemporaryFileInDirectory(tempDirName.value()); in runTestSuite() local 59 if (!tempFile.valid()) in runTestSuite() 64 mTempFileName = tempFile.value(); in runTestSuite()
|
/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/robolectric/plugins/maven-dependency-resolver/src/main/java/org/robolectric/internal/dependency/ |
D | MavenArtifactFetcher.java | 142 File tempFile = new File(this.stagingRepositoryDir, filePath); in validateStagedFiles() local 148 HashCode actual = Files.asByteSource(tempFile).hash(Hashing.sha512()); in validateStagedFiles() 193 protected ListenableFuture<Void> createFetchToFileTask(URL remoteUrl, File tempFile) { in createFetchToFileTask() argument 196 remoteUrl, tempFile, repositoryUserName, repositoryPassword, proxyHost, proxyPort), in createFetchToFileTask()
|
/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/cronet/base/android/junit/src/org/chromium/base/ |
D | FileUtilsTest.java | 279 File tempFile = temporaryFolder.newFile(); in testGetFileSize() 280 FileUtils.copyStreamToFile(inputStream, tempFile); in testGetFileSize() 281 size = FileUtils.getFileSizeBytes(tempFile); in testGetFileSize() 337 File tempFile = temporaryFolder.newFile(); in testCopyStreamToFile() 338 FileUtils.copyStreamToFile(inputStream, tempFile); in testCopyStreamToFile() 340 try (InputStream is = new FileInputStream(tempFile)) { in testCopyStreamToFile()
|
/external/google-smali/dexlib2/src/main/java/com/android/tools/smali/dexlib2/writer/io/ |
D | FileDeferredOutputStream.java | 136 File tempFile = File.createTempFile("dexlibtmp", null, containingDirectory); in getFactory() 137 return new FileDeferredOutputStream(tempFile, bufferSize); in getFactory()
|