Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/
DTimedStatement.java69 File tmpFile = File.createTempFile("test", "file"); in calibrateMethod() local
73 FileOutputStream stream = new FileOutputStream(tmpFile); in calibrateMethod()
86 FileInputStream input = new FileInputStream(tmpFile); in calibrateMethod()
96 FileOutputStream hashStream = new FileOutputStream(tmpFile); in calibrateMethod()
/frameworks/base/services/core/java/com/android/server/power/
DShutdownCheckPoints.java390 AtomicFile tmpFile = new AtomicFile(mBaseFile); in writeCheckpoints() local
393 fos = tmpFile.startWrite(); in writeCheckpoints()
397 tmpFile.finishWrite(fos); // This also closes the output stream. in writeCheckpoints()
401 tmpFile.failWrite(fos); // This also closes the output stream. in writeCheckpoints()
/frameworks/base/tests/utils/hostutils/src/com/android/internal/util/test/
DSystemPreparer.java137 final File tmpFile = copyResourceToTemp(resourcePath); in installResourceApk() local
138 final String result = device.installPackage(tmpFile, true /* reinstall */); in installResourceApk()
153 final File tmpFile = copyResourceToTemp(resourcePaths[i]); in stageMultiplePackages() local
154 adbCommandLine[i + 2] = tmpFile.getAbsolutePath(); in stageMultiplePackages()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageParserTest.java232 final File tmpFile = File.createTempFile(filename, ".apk"); in extractFile() local
234 Files.copy(inputStream, tmpFile.toPath(), REPLACE_EXISTING); in extractFile()
236 return tmpFile; in extractFile()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java3570 final File tmpFile = File.createTempFile("inherit", ".tmp", toDir); in copyFiles() local
3571 if (LOGD) Slog.d(TAG, "Copying " + fromFile + " to " + tmpFile); in copyFiles()
3572 if (!FileUtils.copyFile(fromFile, tmpFile)) { in copyFiles()
3573 throw new IOException("Failed to copy " + fromFile + " to " + tmpFile); in copyFiles()
3576 Os.chmod(tmpFile.getAbsolutePath(), 0644); in copyFiles()
3578 throw new IOException("Failed to chmod " + tmpFile); in copyFiles()
3581 if (LOGD) Slog.d(TAG, "Renaming " + tmpFile + " to " + toFile); in copyFiles()
3582 if (!tmpFile.renameTo(toFile)) { in copyFiles()
3583 throw new IOException("Failed to rename " + tmpFile + " to " + toFile); in copyFiles()
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DPackageWatchdogTest.java1285 File tmpFile = File.createTempFile("package-watchdog-test", ".xml"); in testWritingAndReadingMonitoredPackage() local
1286 AtomicFile testFile = new AtomicFile(tmpFile); in testWritingAndReadingMonitoredPackage()