Home
last modified time | relevance | path

Searched refs:tmpFile (Results 1 – 23 of 23) sorted by relevance

/external/robolectric/scripts/
Dupdate-cpp.sh40 tmpFile="/tmp/diff.tmp"
41 rm -f "$tmpFile"
42 echo "Apply changes to: $file" > "$tmpFile"
43 echo " From $repoFile $version -> $currentVersion" >> "$tmpFile"
44 …RepoDir" && git diff --color=always "${version}..${currentVersion}" "--" "$repoFile" >> "$tmpFile")
45 less -r "$tmpFile"
/external/conscrypt/repackaged/openjdk/src/main/java/com/android/org/conscrypt/
DNativeLibraryLoader.java187 File tmpFile = null; in loadFromWorkdir() local
190 tmpFile = Platform.createTempFile(prefix, suffix, WORKDIR); in loadFromWorkdir()
191 if (tmpFile.isFile() && tmpFile.canRead() && !Platform.canExecuteExecutable(tmpFile)) { in loadFromWorkdir()
196 tmpFile.getPath(), WORK_DIR_PROPERTY_NAME)); in loadFromWorkdir()
200 copyLibrary(url, tmpFile); in loadFromWorkdir()
202 return loadLibrary(loader, tmpFile.getPath(), true, results); in loadFromWorkdir()
207 tmpFile)).initCause(e); in loadFromWorkdir()
214 if (tmpFile != null) { in loadFromWorkdir()
217 deleted = tmpFile.delete(); in loadFromWorkdir()
220 tmpFile.deleteOnExit(); in loadFromWorkdir()
[all …]
/external/conscrypt/openjdk/src/main/java/org/conscrypt/
DNativeLibraryLoader.java186 File tmpFile = null; in loadFromWorkdir() local
189 tmpFile = Platform.createTempFile(prefix, suffix, WORKDIR); in loadFromWorkdir()
190 if (tmpFile.isFile() && tmpFile.canRead() && !Platform.canExecuteExecutable(tmpFile)) { in loadFromWorkdir()
195 tmpFile.getPath(), WORK_DIR_PROPERTY_NAME)); in loadFromWorkdir()
199 copyLibrary(url, tmpFile); in loadFromWorkdir()
201 return loadLibrary(loader, tmpFile.getPath(), true, results); in loadFromWorkdir()
206 tmpFile)).initCause(e); in loadFromWorkdir()
213 if (tmpFile != null) { in loadFromWorkdir()
216 deleted = tmpFile.delete(); in loadFromWorkdir()
219 tmpFile.deleteOnExit(); in loadFromWorkdir()
[all …]
/external/deqp/framework/qphelper/
DqpCrashHandler.c533 int tmpFile = mkstemp(tmpFileName); in qpCrashHandler_writeCrashInfo() local
535 if (tmpFile == -1) in qpCrashHandler_writeCrashInfo()
551 backtrace_symbols_fd(symbols, symbolCount, tmpFile); in qpCrashHandler_writeCrashInfo()
553 if (lseek(tmpFile, 0, SEEK_SET) < 0) in qpCrashHandler_writeCrashInfo()
557 close(tmpFile); in qpCrashHandler_writeCrashInfo()
587 if (read(tmpFile, &c, 1) == 1) in qpCrashHandler_writeCrashInfo()
614 close(tmpFile); in qpCrashHandler_writeCrashInfo()
615 tmpFile = -1; in qpCrashHandler_writeCrashInfo()
621 if (tmpFile == -1) in qpCrashHandler_writeCrashInfo()
625 if (tmpFile != -1) in qpCrashHandler_writeCrashInfo()
[all …]
/external/aws-sdk-java-v2/test/s3-benchmarks/src/main/java/software/amazon/awssdk/s3benchmarks/
DV1BaseTransferManagerBenchmark.java54 private final File tmpFile; field in V1BaseTransferManagerBenchmark
74 tmpFile = new RandomTempFile(20 * MB); in V1BaseTransferManagerBenchmark()
144 File tmpFile = RandomTempFile.randomUncreatedFile(); in warmUpDownloadBatch() local
145 tmpFiles.add(tmpFile); in warmUpDownloadBatch()
146 downloads.add(transferManager.download(bucket, WARMUP_KEY, tmpFile)); in warmUpDownloadBatch()
164 uploads.add(transferManager.upload(bucket, WARMUP_KEY, tmpFile)); in warmUpUploadBatch()
/external/toolchain-utils/compiler_wrapper/
Ddisable_werror_flag.go286 tmpFile, err := ioutil.TempFile(reportDir, "warnings_report*.json"+incompleteSuffix)
291 if err := tmpFile.Chmod(0666); err != nil {
295 enc := json.NewEncoder(tmpFile)
297 _ = tmpFile.Close()
301 if err := tmpFile.Close(); err != nil {
305 …if err := os.Rename(tmpFile.Name(), tmpFile.Name()[:len(tmpFile.Name())-len(incompleteSuffix)]); e…
/external/skia/bazel/gcs_mirror/
Dgcs_mirror.go136 tmpFile := filepath.Join(workDir, hash+suf)
137 if err := os.WriteFile(tmpFile, contents, 0644); err != nil {
138 return skerr.Wrapf(err, "writing %d bytes to %s", len(contents), tmpFile)
145 "cp", tmpFile, gcsBucketAndPrefix+hash+suf)
148 return skerr.Wrapf(cmd.Run(), "uploading %s to GCS", tmpFile)
/external/clang/www/demo/
Dindex.cgi382 my $tmpFile = getname(".bc");
385 "llvm-ld $stats -o=$tmpFile $bytecodeFile > $outputFile 2>&1",
388 system("mv $tmpFile.bc $bytecodeFile");
389 system("rm $tmpFile");
407 my $tmpFile = getname(".ll");
408 system("c++filt < $disassemblyFile > $tmpFile 2>&1");
409 system("mv $tmpFile $disassemblyFile");
/external/fonttools/MetaTools/
DroundTrip.py72 for tmpFile in (xmlFile1, ttFile2, xmlFile2):
73 if os.path.exists(tmpFile):
74 os.remove(tmpFile)
/external/robolectric/resources/src/test/java/org/robolectric/res/android/
DZipFileROTest.java90 File tmpFile = File.createTempFile("zip64eocd", "zip"); in testCreateJar() local
91 Files.write(zipBytes, tmpFile); in testCreateJar()
92 ZipFileRO zro = ZipFileRO.open(tmpFile.getAbsolutePath()); in testCreateJar()
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowBitmapFactoryTest.java244 File tmpFile = File.createTempFile("BitmapFactoryTest", null); in decodeFileDescriptor_shouldGetWidthAndHeightFromHints() local
246 tmpFile.deleteOnExit(); in decodeFileDescriptor_shouldGetWidthAndHeightFromHints()
247 try (FileInputStream is = new FileInputStream(tmpFile)) { in decodeFileDescriptor_shouldGetWidthAndHeightFromHints()
257 tmpFile.delete(); in decodeFileDescriptor_shouldGetWidthAndHeightFromHints()
402 File tmpFile = File.createTempFile("ShadowBitmapFactoryTest", ".jpg"); in decodeFile_shouldHaveCorrectWidthAndHeight() local
403 tmpFile.deleteOnExit(); in decodeFile_shouldHaveCorrectWidthAndHeight()
404 try (FileOutputStream fileOutputStream = new FileOutputStream(tmpFile)) { in decodeFile_shouldHaveCorrectWidthAndHeight()
408 Bitmap loadedBitmap = BitmapFactory.decodeFile(tmpFile.getAbsolutePath()); in decodeFile_shouldHaveCorrectWidthAndHeight()
450 File tmpFile = File.createTempFile("ShadowBitmapFactoryTest", ".jpg"); in decodeFileDescriptor_shouldHaveCorrectWidthAndHeight() local
451 tmpFile.deleteOnExit(); in decodeFileDescriptor_shouldHaveCorrectWidthAndHeight()
[all …]
DShadowMediaPlayerTest.java250 File tmpFile = File.createTempFile("MediaPlayerTest", null); in testSetDataSourceFD() local
252 tmpFile.deleteOnExit(); in testSetDataSourceFD()
253 FileInputStream is = new FileInputStream(tmpFile); in testSetDataSourceFD()
265 tmpFile.delete(); in testSetDataSourceFD()
/external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/
DTestUtils.java105 File tmpFile = File.createTempFile(name, ""); in loadCert() local
106 tmpFile.deleteOnExit(); in loadCert()
108 OutputStream os = new BufferedOutputStream(new FileOutputStream(tmpFile)); in loadCert()
120 return tmpFile; in loadCert()
/external/junit/src/main/java/org/junit/rules/
DTemporaryFolder.java278 File tmpFile = File.createTempFile(TMP_PREFIX, suffix, parentFolder); in createTemporaryFolderWithFileApi() local
279 String tmpName = tmpFile.toString(); in createTemporaryFolderWithFileApi()
284 tmpFile.delete(); in createTemporaryFolderWithFileApi()
287 tmpFile.delete(); in createTemporaryFolderWithFileApi()
/external/aws-sdk-java-v2/test/protocol-tests/src/test/java/software/amazon/awssdk/protocol/tests/
DResponseTransformerTest.java97 Path tmpFile = tmpDirectory.resolve(UUID.randomUUID().toString()); in downloadToFileRetriesCorrectly() local
98 tmpFile.toFile().deleteOnExit(); in downloadToFileRetriesCorrectly()
100 … testClient().streamingOutputOperation(StreamingOutputOperationRequest.builder().build(), tmpFile); in downloadToFileRetriesCorrectly() local
102 assertThat(Files.readAllLines(tmpFile)).containsExactly("retried"); in downloadToFileRetriesCorrectly()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/
DAbstractTestCase.java379 final File tmpFile = File.createTempFile("testfile", "", tmpDir); in createTempDirAndFile() local
380 tmpFile.deleteOnExit(); in createTempDirAndFile()
381 try (FileOutputStream fos = new FileOutputStream(tmpFile)) { in createTempDirAndFile()
383 return new File[] { tmpDir, tmpFile }; in createTempDirAndFile()
/external/tink/java_src/src/main/java/com/google/crypto/tink/testing/
DStreamingTestUtil.java1122 StreamingAead ags, File tmpFile, int plaintextSize) throws Exception { in testFileEncryptionWithChannel() argument
1129 ags.newEncryptingChannel(new FileOutputStream(tmpFile).getChannel(), associatedData); in testFileEncryptionWithChannel()
1146 ags.newDecryptingChannel(new FileInputStream(tmpFile).getChannel(), associatedData); in testFileEncryptionWithChannel()
1164 ags.newSeekableDecryptingChannel(new FileInputStream(tmpFile).getChannel(), associatedData); in testFileEncryptionWithChannel()
1196 StreamingAead ags, File tmpFile, int plaintextSize) throws Exception { in testFileEncryptionWithStream() argument
1199 FileOutputStream ctStream = new FileOutputStream(tmpFile); in testFileEncryptionWithStream()
1210 FileInputStream inpStream = new FileInputStream(tmpFile); in testFileEncryptionWithStream()
1235 public static void testFileEncryption(StreamingAead ags, File tmpFile, int plaintextSize) in testFileEncryption() argument
1237 testFileEncryptionWithChannel(ags, tmpFile, plaintextSize); in testFileEncryption()
1238 testFileEncryptionWithStream(ags, tmpFile, plaintextSize); in testFileEncryption()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowWallpaperManager.java334 File tmpFile = new File(RuntimeEnvironment.getApplication().getCacheDir(), fileName); in createParcelFileDescriptorFromBitmap() local
335 try (FileOutputStream fileOutputStream = new FileOutputStream(tmpFile)) { in createParcelFileDescriptorFromBitmap()
337 return ParcelFileDescriptor.open(tmpFile, ParcelFileDescriptor.MODE_READ_ONLY); in createParcelFileDescriptorFromBitmap()
/external/tink-java/src/main/java/com/google/crypto/tink/testing/
DStreamingTestUtil.java1185 StreamingAead ags, File tmpFile, int plaintextSize) throws Exception { in testFileEncryptionWithChannel() argument
1192 ags.newEncryptingChannel(new FileOutputStream(tmpFile).getChannel(), associatedData); in testFileEncryptionWithChannel()
1209 ags.newDecryptingChannel(new FileInputStream(tmpFile).getChannel(), associatedData); in testFileEncryptionWithChannel()
1227 ags.newSeekableDecryptingChannel(new FileInputStream(tmpFile).getChannel(), associatedData); in testFileEncryptionWithChannel()
1259 StreamingAead ags, File tmpFile, int plaintextSize) throws Exception { in testFileEncryptionWithStream() argument
1262 FileOutputStream ctStream = new FileOutputStream(tmpFile); in testFileEncryptionWithStream()
1273 FileInputStream inpStream = new FileInputStream(tmpFile); in testFileEncryptionWithStream()
1298 public static void testFileEncryption(StreamingAead ags, File tmpFile, int plaintextSize) in testFileEncryption() argument
1300 testFileEncryptionWithChannel(ags, tmpFile, plaintextSize); in testFileEncryption()
1301 testFileEncryptionWithStream(ags, tmpFile, plaintextSize); in testFileEncryption()
/external/intel-media-driver/media_softlet/linux/common/os/osservice/
Dmos_utilities_specific.cpp1360 static char* tmpFile = getenv("GFX_FEATURE_FILE"); in MosOsUtilitiesInit() local
1362 if (tmpFile != nullptr) in MosOsUtilitiesInit()
1364 if ((fp = fopen(tmpFile, "r")) != nullptr) in MosOsUtilitiesInit()
1366 MosUtilitiesSpecificNext::m_szUserFeatureFile = tmpFile; in MosOsUtilitiesInit()
1372 MOS_OS_ASSERTMESSAGE("Can't open %s for USER_FEATURE_FILE!!!", tmpFile); in MosOsUtilitiesInit()
1926 static char *tmpFile = getenv("GFX_FEATURE_FILE"); in MosGetApoMosEnabledUserFeatureFile() local
1928 if (tmpFile != nullptr) in MosGetApoMosEnabledUserFeatureFile()
1930 if ((fp = fopen(tmpFile, "r")) != nullptr) in MosGetApoMosEnabledUserFeatureFile()
1932 if (MosUtilitiesSpecificNext::m_szUserFeatureFile != tmpFile) in MosGetApoMosEnabledUserFeatureFile()
1933 MosUtilitiesSpecificNext::m_szUserFeatureFile = tmpFile; in MosGetApoMosEnabledUserFeatureFile()
[all …]
/external/v4l2_codec2/tests/c2_e2e_test/src/org/chromium/c2/test/
DE2eTestActivity.java192 boolean encode, String[] testArgs, int testArgsCount, Surface surface, String tmpFile); in c2VideoTest() argument
/external/google-breakpad/src/client/mac/sender/
Duploader.mm324 char *tmpFile = mktemp(tmpFilenameTemplate);
327 NSString *tmpFileString = [NSString stringWithUTF8String:tmpFile];
/external/bazelbuild-rules_go/third_party/
Dorg_golang_x_tools-deletegopls.patch24663 - tmpFile := filepath.Join(tmpDir, "fake.go")
24664 - if err := ioutil.WriteFile(tmpFile, []byte(""), 0775); err != nil {
24697 - uri := protocol.URIFromPath(tmpFile)
77217 - tmpFile, err := ioutil.TempFile(os.TempDir(), "gopls-x")
77221 - defer os.Remove(tmpFile.Name())
77233 - fmt.Sprintf("-o=%s", tmpFile.Name()),