Home
last modified time | relevance | path

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

/frameworks/support/compat/java/android/support/v4/graphics/
DTypefaceCompatBaseImpl.java57 final File tmpFile = TypefaceCompatUtil.getTempFile(context); in createTypeface() local
58 if (tmpFile == null) { in createTypeface()
62 if (!TypefaceCompatUtil.copyToFile(tmpFile, buffer)) { in createTypeface()
65 return Typeface.createFromFile(tmpFile.getPath()); in createTypeface()
72 tmpFile.delete(); in createTypeface()
DTypefaceCompatUtil.java88 File tmpFile = getTempFile(context); in copyToDirectBuffer() local
89 if (tmpFile == null) { in copyToDirectBuffer()
93 if (!copyToFile(tmpFile, res, id)) { in copyToDirectBuffer()
96 return mmap(tmpFile); in copyToDirectBuffer()
98 tmpFile.delete(); in copyToDirectBuffer()
DTypefaceCompat.java133 final File tmpFile = TypefaceCompatUtil.getTempFile(context); in createFromResourcesFontFile() local
134 if (tmpFile == null) { in createFromResourcesFontFile()
138 if (!TypefaceCompatUtil.copyToFile(tmpFile, resources, id)) { in createFromResourcesFontFile()
141 Typeface typeface = Typeface.createFromFile(tmpFile.getPath()); in createFromResourcesFontFile()
152 tmpFile.delete(); in createFromResourcesFontFile()
/frameworks/base/tools/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/pm/
DPackageInstallerSession.java1007 final File tmpFile = File.createTempFile("inherit", ".tmp", toDir); in copyFiles() local
1008 if (LOGD) Slog.d(TAG, "Copying " + fromFile + " to " + tmpFile); in copyFiles()
1009 if (!FileUtils.copyFile(fromFile, tmpFile)) { in copyFiles()
1010 throw new IOException("Failed to copy " + fromFile + " to " + tmpFile); in copyFiles()
1013 Os.chmod(tmpFile.getAbsolutePath(), 0644); in copyFiles()
1015 throw new IOException("Failed to chmod " + tmpFile); in copyFiles()
1018 if (LOGD) Slog.d(TAG, "Renaming " + tmpFile + " to " + toFile); in copyFiles()
1019 if (!tmpFile.renameTo(toFile)) { in copyFiles()
1020 throw new IOException("Failed to rename " + tmpFile + " to " + toFile); in copyFiles()