Searched refs:tempFile (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | ProcStatsUtilTest.java | 170 File tempFile = File.createTempFile("null-separated-file", null, mProcDirectory); in runReadNullSeparatedFile() local 171 Files.write(tempFile.toPath(), fileContents.getBytes()); in runReadNullSeparatedFile() 172 String result = ProcStatsUtil.readNullSeparatedFile(tempFile.toString()); in runReadNullSeparatedFile() 173 Files.delete(tempFile.toPath()); in runReadNullSeparatedFile() 178 File tempFile = File.createTempFile("single-line-proc-file", null, mProcDirectory); in runReadSingleLineProcFile() local 179 Files.write(tempFile.toPath(), fileContents.getBytes()); in runReadSingleLineProcFile() 180 String result = ProcStatsUtil.readSingleLineProcFile(tempFile.toString()); in runReadSingleLineProcFile() 181 Files.delete(tempFile.toPath()); in runReadSingleLineProcFile() 187 File tempFile = File.createTempFile("terminated-proc-file", null, mProcDirectory); in runReadTerminatedProcFile() local 188 Files.write(tempFile.toPath(), fileContents.getBytes()); in runReadTerminatedProcFile() [all …]
|
/frameworks/base/telephony/java/android/telephony/mbms/ |
D | MbmsDownloadReceiver.java | 304 File tempFile = new File(tempFileUri.getSchemeSpecificPart()); in cleanupPostMove() local 305 if (!tempFile.delete()) { in cleanupPostMove() 306 Log.w(LOG_TAG, "Failed to delete temp file at " + tempFile.getPath()); in cleanupPostMove() 353 File tempFile = generateSingleTempFile(tempFileDir); in generateFreshTempFiles() local 354 if (tempFile == null) { in generateFreshTempFiles() 359 Uri fileUri = Uri.fromFile(tempFile); in generateFreshTempFiles() 361 context, getFileProviderAuthorityCached(context), tempFile); in generateFreshTempFiles() 375 File tempFile = new File(tempFileDir, fileName); in generateSingleTempFile() local 377 if (tempFile.createNewFile()) { in generateSingleTempFile() 378 return tempFile.getCanonicalFile(); in generateSingleTempFile() [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageInstallerService.java | 212 File tempFile = null; in installPackage() local 241 tempFile = WearPackageUtil.getFileFromFd(WearPackageInstallerService.this, in installPackage() 243 if (tempFile == null) { in installPackage() 247 PackageParser.Package pkg = PackageUtil.getPackageInfo(this, tempFile); in installPackage() 259 pkg.applicationInfo.sourceDir = tempFile.getPath(); in installPackage() 260 pkg.applicationInfo.publicSourceDir = tempFile.getPath(); in installPackage() 332 permUri, wearablePerms, tempFile)) { in installPackage() 350 if (tempFile != null) { in installPackage() 351 tempFile.delete(); in installPackage() 521 File tempFile = WearPackageUtil.getTemporaryFile(mContext, mApplicationPackageName); in installSucceeded() local [all …]
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
D | MtpFileWriter.java | 39 final File tempFile = File.createTempFile("mtp", "tmp", context.getCacheDir()); in MtpFileWriter() local 41 tempFile, in MtpFileWriter() 45 tempFile.delete(); in MtpFileWriter()
|
/frameworks/ml/nn/tools/test_generator/ |
D | test_generator.py | 1351 tempFile = filename + '.tmp' 1353 with open(tempFile, 'w') as writer: 1355 os.replace(tempFile, filename) 1356 tempFile = None 1358 if tempFile is not None and os.path.exists(tempFile): 1359 os.remove(tempFile)
|
/frameworks/base/media/java/android/media/ |
D | ExifInterface.java | 1869 File tempFile = null; in saveAttributes() local 1873 tempFile = new File(mFilename + ".tmp"); in saveAttributes() 1875 if (!originalFile.renameTo(tempFile)) { in saveAttributes() 1876 throw new IOException("Could'nt rename to " + tempFile.getAbsolutePath()); in saveAttributes() 1879 tempFile = File.createTempFile("temp", "jpg"); in saveAttributes() 1882 out = new FileOutputStream(tempFile); in saveAttributes() 1896 in = new FileInputStream(tempFile); in saveAttributes() 1909 tempFile.delete(); in saveAttributes()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/ |
D | PrintActivity.java | 3191 File tempFile = null; in doTransform() local 3215 tempFile = File.createTempFile(TEMP_FILE_PREFIX, TEMP_FILE_EXTENSION, in doTransform() 3217 dst = ParcelFileDescriptor.open(tempFile, ParcelFileDescriptor.MODE_READ_WRITE); in doTransform() 3226 in = new FileInputStream(tempFile); in doTransform() 3234 if (tempFile != null) { in doTransform() 3235 tempFile.delete(); in doTransform()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | Settings.java | 2662 File tempFile = new File(mPackageListFilename.getAbsolutePath() + ".tmp"); in writePackageListLPrInternal() local 2663 JournaledFile journal = new JournaledFile(mPackageListFilename, tempFile); in writePackageListLPrInternal()
|