Searched refs:tmpFile (Results 1 – 5 of 5) sorted by relevance
/frameworks/support/compat/java/android/support/v4/graphics/ |
D | TypefaceCompatBaseImpl.java | 57 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()
|
D | TypefaceCompatUtil.java | 88 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()
|
D | TypefaceCompat.java | 133 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/ |
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/services/core/java/com/android/server/pm/ |
D | PackageInstallerSession.java | 1007 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()
|