Home
last modified time | relevance | path

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

/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/
H A DBulkPerfTest.java103 File tmpFile = File.createTempFile("MappedByteBufferTest", ".tmp"); in newBuffer() local
104 tmpFile.createNewFile(); in newBuffer()
105 tmpFile.deleteOnExit(); in newBuffer()
106 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer()
H A DByteBufferPerfTest.java96 File tmpFile = new File("/sdcard/bm.tmp"); in newBuffer() local
99 tmpFile = File.createTempFile("MappedByteBufferTest", ".tmp"); in newBuffer()
101 tmpFile.createNewFile(); in newBuffer()
102 tmpFile.deleteOnExit(); in newBuffer()
103 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); in newBuffer()
/aosp14/frameworks/base/tests/utils/hostutils/src/com/android/internal/util/test/
H A DSystemPreparer.java136 final File tmpFile = copyResourceToTemp(resourcePath); in installResourceApk() local
137 final String result = device.installPackage(tmpFile, true /* reinstall */); in installResourceApk()
152 final File tmpFile = copyResourceToTemp(resourcePaths[i]); in stageMultiplePackages() local
153 adbCommandLine[i + 2] = tmpFile.getAbsolutePath(); in stageMultiplePackages()
/aosp14/frameworks/base/services/core/java/com/android/server/power/
H A DShutdownCheckPoints.java400 AtomicFile tmpFile = new AtomicFile(mBaseFile); in writeCheckpoints() local
403 fos = tmpFile.startWrite(); in writeCheckpoints()
407 tmpFile.finishWrite(fos); // This also closes the output stream. in writeCheckpoints()
411 tmpFile.failWrite(fos); // This also closes the output stream. in writeCheckpoints()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/settings/
H A DUserFileManagerImplTest.kt133 val tmpFile = regex
135 tmpFile.renameTo(legacyFile)
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
H A DPackageParserTest.java255 final File tmpFile = File.createTempFile(filename, ".apk"); in extractFile() local
257 Files.copy(inputStream, tmpFile.toPath(), REPLACE_EXISTING); in extractFile()
259 return tmpFile; in extractFile()
269 final File tmpFile = new File(dir, filename); in extractFile() local
271 Files.copy(inputStream, tmpFile.toPath(), REPLACE_EXISTING); in extractFile()
273 return tmpFile; in extractFile()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageInstallerSession.java3923 final File tmpFile = File.createTempFile("inherit", ".tmp", toDir);
3924 if (LOGD) Slog.d(TAG, "Copying " + fromFile + " to " + tmpFile);
3925 if (!FileUtils.copyFile(fromFile, tmpFile)) {
3926 throw new IOException("Failed to copy " + fromFile + " to " + tmpFile);
3929 Os.chmod(tmpFile.getAbsolutePath(), 0644);
3931 throw new IOException("Failed to chmod " + tmpFile);
3934 if (LOGD) Slog.d(TAG, "Renaming " + tmpFile + " to " + toFile);
3935 if (!tmpFile.renameTo(toFile)) {
3936 throw new IOException("Failed to rename " + tmpFile + " to " + toFile);
/aosp14/frameworks/base/tests/PackageWatchdog/src/com/android/server/
H A DPackageWatchdogTest.java1285 File tmpFile = File.createTempFile("package-watchdog-test", ".xml"); in testWritingAndReadingMonitoredPackage() local
1286 AtomicFile testFile = new AtomicFile(tmpFile); in testWritingAndReadingMonitoredPackage()