Home
last modified time | relevance | path

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

/art/test/570-checker-osr/src/
DDeoptimizationController.java46 File tempFile = null; in startDeoptimization() local
48 tempFile = createTempFile(); in startDeoptimization()
49 String tempFileName = tempFile.getPath(); in startDeoptimization()
58 if (tempFile != null) { in startDeoptimization()
59 tempFile.delete(); in startDeoptimization()
/art/test/802-deoptimization/src/
DDeoptimizationController.java43 File tempFile = null; in startDeoptimization() local
45 tempFile = createTempFile(); in startDeoptimization()
46 String tempFileName = tempFile.getPath(); in startDeoptimization()
55 if (tempFile != null) { in startDeoptimization()
56 tempFile.delete(); in startDeoptimization()
/art/test/odsign/test-src/com/android/tests/odsign/
DDeviceState.java69 for (String tempFile : mTempFiles) { in restore()
70 mTestInfo.getDevice().deleteFile(tempFile); in restore()
165 File tempFile = File.createTempFile("empty", ".jar"); in simulateBadSystemServerJar() local
166 tempFile.deleteOnExit(); in simulateBadSystemServerJar()
167 pushAndBindMount(tempFile, "/system/framework/services.jar"); in simulateBadSystemServerJar()
202 String tempFile = "/data/local/tmp/odsign_e2e_tests_" + UUID.randomUUID() + ".tmp"; in backupAndDeleteFile() local
204 mTestUtils.assertCommandSucceeds(String.format("cp '%s' '%s'", remotePath, tempFile)); in backupAndDeleteFile()
206 mDeletedFiles.put(remotePath, tempFile); in backupAndDeleteFile()
223 String tempFile = "/data/local/tmp/odsign_e2e_tests_" + UUID.randomUUID() + ".tmp"; in pushAndBindMount() local
224 assertThat(mTestInfo.getDevice().pushFile(localFile, tempFile)).isTrue(); in pushAndBindMount()
[all …]
/art/test/817-hiddenapi/src-art/
DMain.java74 File tempFile = new File(System.getenv("DEX_LOCATION"), tempFileName); in createNativeLibCopy() local
75 Files.copy(new File(nativeLibFileName).toPath(), tempFile.toPath()); in createNativeLibCopy()
76 return tempFile.getAbsolutePath(); in createNativeLibCopy()
/art/test/855-native/src-art/
DMain.java49 File tempFile = createTempFile(); in main() local
52 VMDebug.startMethodTracing(tempFile.getPath(), 0, 0, false, 0); in main()
/art/test/099-vmdebug/src/
DMain.java58 File tempFile = null; in testMethodTracing() local
60 tempFile = createTempFile(); in testMethodTracing()
61 testMethodTracingToFile(tempFile); in testMethodTracing()
63 if (tempFile != null) { in testMethodTracing()
64 tempFile.delete(); in testMethodTracing()
69 private static void testMethodTracingToFile(File tempFile) throws Exception { in testMethodTracingToFile() argument
70 String tempFileName = tempFile.getPath(); in testMethodTracingToFile()
82 if (tempFile.length() == 0) { in testMethodTracingToFile()
91 if (tempFile.length() == 0) { in testMethodTracingToFile()
144 tempFile.delete(); in testMethodTracingToFile()
/art/libartservice/service/javatests/com/android/server/art/testing/
DTestingUtils.java189 File tempFile = File.createTempFile("temp", ".zip");
190 tempFile.deleteOnExit();
191 try (var out = new ZipOutputStream(new FileOutputStream(tempFile))) {
196 return tempFile.getPath();
/art/test/674-hiddenapi/src-art/
DMain.java157 File tempFile = new File(System.getenv("DEX_LOCATION"), tempFileName); in createNativeLibCopy() local
158 Files.copy(new File(nativeLibFileName).toPath(), tempFile.toPath()); in createNativeLibCopy()
159 return tempFile.getAbsolutePath(); in createNativeLibCopy()
/art/libartservice/service/java/com/android/server/art/prereboot/
DPreRebootStatsReporter.java319 File tempFile = null; in save() local
321 tempFile = File.createTempFile(file.getName(), null /* suffix */, file.getParentFile()); in save()
322 try (OutputStream out = new FileOutputStream(tempFile.getPath())) { in save()
325 Files.move(tempFile.toPath(), file.toPath(), StandardCopyOption.REPLACE_EXISTING, in save()
330 Utils.deleteIfExistsSafe(tempFile); in save()
/art/libartservice/service/javatests/com/android/server/art/
DPreRebootDexoptJobTest.java104 File tempFile = File.createTempFile("pre-reboot-stats", ".pb"); in setUp() local
105 tempFile.deleteOnExit(); in setUp()
108 .thenReturn(tempFile.getAbsolutePath()); in setUp()
DArtManagerLocalTest.java293 File tempFile = File.createTempFile("pre-reboot-stats", ".pb"); in setUp() local
294 tempFile.deleteOnExit(); in setUp()
297 .thenReturn(tempFile.getAbsolutePath()); in setUp()
863 File tempFile = File.createTempFile("primary", ".prof"); in testSnapshotAppProfile() local
864 tempFile.deleteOnExit(); in testSnapshotAppProfile()
883 try (var writer = new FileWriter(tempFile)) { in testSnapshotAppProfile()
889 output.profilePath.tmpPath = tempFile.getPath(); in testSnapshotAppProfile()
897 argThat(profile -> profile.getTmpProfilePath().tmpPath.equals(tempFile.getPath()))); in testSnapshotAppProfile()
/art/libartservice/service/java/com/android/server/art/
DDexUseManagerLocal.java542 File tempFile = null; in save() local
544 tempFile = File.createTempFile(file.getName(), null /* suffix */, file.getParentFile()); in save()
545 try (OutputStream out = new FileOutputStream(tempFile.getPath())) { in save()
552 Files.move(tempFile.toPath(), file.toPath(), in save()
560 Utils.deleteIfExistsSafe(tempFile); in save()