Home
last modified time | relevance | path

Searched refs:tempFile (Results 1 – 9 of 9) sorted by relevance

/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsSender.java176 final File tempFile = MmsFileProvider.getFile(contentUri); in writePduToTempFile() local
180 tempFile.getParentFile().mkdirs(); in writePduToTempFile()
181 writer = new FileOutputStream(tempFile); in writePduToTempFile()
194 if (tempFile != null) { in writePduToTempFile()
195 tempFile.delete(); in writePduToTempFile()
197 LogUtil.e(TAG, "Cannot create temporary file " + tempFile.getAbsolutePath(), e); in writePduToTempFile()
201 if (tempFile != null) { in writePduToTempFile()
202 tempFile.delete(); in writePduToTempFile()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/message/
DTempFileTextBody.java50 private TempFile tempFile = null; field in TempFileTextBody
62 tempFile = tempPath.createTempFile("attachment", ".txt"); in TempFileTextBody()
64 OutputStream out = tempFile.getOutputStream(); in TempFileTextBody()
107 return new InputStreamReader(tempFile.getInputStream(), javaCharset); in getReader()
115 IOUtils.copy(tempFile.getInputStream(), out); in writeTo()
DTempFileBinaryBody.java46 private TempFile tempFile = null; field in TempFileBinaryBody
57 tempFile = tempPath.createTempFile("attachment", ".bin"); in TempFileBinaryBody()
59 OutputStream out = tempFile.getOutputStream(); in TempFileBinaryBody()
82 return tempFile.getInputStream(); in getInputStream()
DMemoryTextBody.java51 private byte[] tempFile = null; field in MemoryTextBody
67 tempFile = out.toByteArray(); in MemoryTextBody()
108 return new InputStreamReader(new ByteArrayInputStream(tempFile), javaCharset); in getReader()
116 IOUtils.copy(new ByteArrayInputStream(tempFile), out); in writeTo()
DMemoryBinaryBody.java47 private byte[] tempFile = null; field in MemoryBinaryBody
62 tempFile = out.toByteArray(); in MemoryBinaryBody()
83 return new ByteArrayInputStream(tempFile); in getInputStream()
/packages/apps/Camera2/src/com/android/camera/session/
DSessionStorageManagerImpl.java97 File tempFile = new File(tempDirectory, title + ".jpg"); in createTemporaryOutputPath() local
99 if (!tempFile.exists()) { in createTemporaryOutputPath()
100 if (!tempFile.createNewFile()) { in createTemporaryOutputPath()
109 if (!tempFile.canWrite()) { in createTemporaryOutputPath()
112 return tempFile; in createTemporaryOutputPath()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DDownloadCache.java318 File tempFile = null; in run() local
321 tempFile = File.createTempFile("cache", ".tmp", mRoot); in run()
324 boolean downloaded = DownloadUtils.requestDownload(jc, url, tempFile); in run()
326 if (downloaded) return tempFile; in run()
332 if (tempFile != null) tempFile.delete(); in run()
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DProcessSentMessageAction.java142 final File tempFile = MmsFileProvider.getFile(contentUri); in executeAction() local
144 if (tempFile.exists()) { in executeAction()
145 messageSize = tempFile.length(); in executeAction()
146 tempFile.delete(); in executeAction()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapFolder.java1052 final File tempFile = File.createTempFile("IMAPupsync", ".eml", tempDir); in appendMessage() local
1055 final boolean deleteSuccessful = tempFile.delete(); in appendMessage()
1058 tempFile.getAbsolutePath()); in appendMessage()
1060 final OutputStream tempOut = new FileOutputStream(tempFile); in appendMessage()
1103 IOUtils.copyLarge(new FileInputStream(tempFile), transportOutputStream); in appendMessage()