Home
last modified time | relevance | path

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

/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/
DLogoUtilsTest.java38 File tempFile = writeBitmapToTempFile(bitmap); in testPartiallyResizedBitmap() local
40 Bitmap newBitmap = LogoUtils.getBitmapPartiallyResized(tempFile.getPath(), 10, 15); in testPartiallyResizedBitmap()
46 tempFile.delete(); in testPartiallyResizedBitmap()
52 File tempFile = writeBitmapToTempFile(bitmap); in testPartiallyResizedElongatedBitmap() local
54 Bitmap newBitmap = LogoUtils.getBitmapPartiallyResized(tempFile.getPath(), 8, 8); in testPartiallyResizedElongatedBitmap()
60 tempFile.delete(); in testPartiallyResizedElongatedBitmap()
93 File tempFile = writeBitmapToTempFile(bitmap); in testSaveGetOrganisationLogo() local
95 LogoUtils.saveOrganisationLogo(getContext(), Uri.fromFile(tempFile)); in testSaveGetOrganisationLogo()
149 File tempFile = File.createTempFile("temp_bitmap", "", getContext().getCacheDir()); in writeBitmapToTempFile() local
150 FileOutputStream fos = new FileOutputStream(tempFile); in writeBitmapToTempFile()
[all …]
DUriBitmap.java34 private UriBitmap(Bitmap bitmap, Uri uri, File tempFile) { in UriBitmap() argument
37 mTempFile = tempFile; in UriBitmap()
53 File tempFile = File.createTempFile("tmpImage", ".png"); in createSimpleInstance() local
54 Uri uri = bitmapToUri(bitmap, tempFile); in createSimpleInstance()
55 return new UriBitmap(bitmap, uri, tempFile); in createSimpleInstance()
68 private static Uri bitmapToUri(Bitmap bitmap, File tempFile) throws IOException { in bitmapToUri() argument
69 try (FileOutputStream fs = new FileOutputStream(tempFile)) { in bitmapToUri()
71 return Uri.fromFile(tempFile); in bitmapToUri()
/packages/apps/WallpaperPicker/src/com/android/gallery3d/common/
DExifOrientation.java50 File tempFile = null; in readRotation() local
72 if (tempFile == null) { in readRotation()
73 tempFile = File.createTempFile(TAG, ".jpg", context.getCacheDir()); in readRotation()
74 tempOut = new DataOutputStream(new FileOutputStream(tempFile)); in readRotation()
105 return readRotation(tempFile.getAbsolutePath()); in readRotation()
115 if (tempFile != null) { in readRotation()
116 tempFile.delete(); in readRotation()
/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/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/services/Telephony/testapps/EmbmsServiceTestApp/src/com/android/phone/testapps/embmsmw/
DEmbmsSampleDownloadService.java328 UriPathPair tempFile = tempFiles.get(i); in performDownload() local
331 tempFile.getFilePathUri()); in performDownload()
338 downloadSingleFile(appKey, request, tempFile, extraTempFile, fileToDownload); in performDownload()
340 tempFile.getFilePathUri()); in performDownload()
346 UriPathPair tempFile, UriPathPair extraTempFile, FileInfo fileToDownload) { in downloadSingleFile() argument
362 tempFile.getContentUri(), "rw"); in downloadSingleFile()
394 tempFile.getFilePathUri()); in downloadSingleFile()
399 tempFileList.add(tempFile.getFilePathUri()); in downloadSingleFile()
/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()