Searched refs:tmpFile (Results 1 – 4 of 4) sorted by relevance
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/ |
D | TimedStatement.java | 69 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/tests/utils/hostutils/src/com/android/internal/util/test/ |
D | SystemPreparer.java | 110 final File tmpFile = copyResourceToTemp(resourcePath); in installResourceApk() local 111 final String result = device.installPackage(tmpFile, true /* reinstall */); in installResourceApk()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageParserTest.java | 224 final File tmpFile = File.createTempFile(filename, ".apk"); in extractFile() local 226 Files.copy(inputStream, tmpFile.toPath(), REPLACE_EXISTING); in extractFile() 228 return tmpFile; in extractFile()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerSession.java | 2488 final File tmpFile = File.createTempFile("inherit", ".tmp", toDir); in copyFiles() local 2489 if (LOGD) Slog.d(TAG, "Copying " + fromFile + " to " + tmpFile); in copyFiles() 2490 if (!FileUtils.copyFile(fromFile, tmpFile)) { in copyFiles() 2491 throw new IOException("Failed to copy " + fromFile + " to " + tmpFile); in copyFiles() 2494 Os.chmod(tmpFile.getAbsolutePath(), 0644); in copyFiles() 2496 throw new IOException("Failed to chmod " + tmpFile); in copyFiles() 2499 if (LOGD) Slog.d(TAG, "Renaming " + tmpFile + " to " + toFile); in copyFiles() 2500 if (!tmpFile.renameTo(toFile)) { in copyFiles() 2501 throw new IOException("Failed to rename " + tmpFile + " to " + toFile); in copyFiles()
|