HomeSort by relevance Sort by last modified time
    Searched refs:tempFile (Results 1 - 25 of 59) sorted by null

1 2 3

  /cts/tools/vm-tests-tf/src/util/build/
JarBuildStep.java 40 File tempFile = new File(inputFile.folder, destFileName);
42 if (!inputFile.fileName.equals(tempFile)) {
43 copyFile(inputFile.fileName, tempFile);
45 tempFile = null;
66 if (tempFile != null) {
67 tempFile.delete();
  /packages/apps/Email/src/org/apache/james/mime4j/message/
TempFileBinaryBody.java 31 import org.apache.james.mime4j.util.TempFile;
37 * Binary body backed by a {@link org.apache.james.mime4j.util.TempFile}.
46 private TempFile tempFile = null;
57 tempFile = tempPath.createTempFile("attachment", ".bin");
59 OutputStream out = tempFile.getOutputStream();
82 return tempFile.getInputStream();
TempFileTextBody.java 35 import org.apache.james.mime4j.util.TempFile;
41 * Text body backed by a {@link org.apache.james.mime4j.util.TempFile}.
50 private TempFile tempFile = null;
62 tempFile = tempPath.createTempFile("attachment", ".txt");
64 OutputStream out = tempFile.getOutputStream();
104 return new InputStreamReader(tempFile.getInputStream());
107 return new InputStreamReader(tempFile.getInputStream(), javaCharset);
115 IOUtils.copy(tempFile.getInputStream(), out);
MemoryTextBody.java 42 * Text body backed by a {@link org.apache.james.mime4j.util.TempFile}.
51 private byte[] tempFile = null;
67 tempFile = out.toByteArray();
105 return new InputStreamReader(tempFile.getInputStream());
108 return new InputStreamReader(new ByteArrayInputStream(tempFile), javaCharset);
116 IOUtils.copy(new ByteArrayInputStream(tempFile), out);
MemoryBinaryBody.java 38 * Binary body backed by a {@link org.apache.james.mime4j.util.TempFile}.
47 private byte[] tempFile = null;
62 tempFile = out.toByteArray();
83 return new ByteArrayInputStream(tempFile);
  /packages/apps/Gallery2/src/com/android/photos/data/
FileRetriever.java 60 public boolean getMedia(Uri contentUri, MediaSize imageSize, File tempFile) {
68 return MediaCacheUtils.downsample(preview, imageSize, tempFile);
74 success = MediaCacheUtils.downsample(highRes, imageSize, tempFile);
82 && MediaCacheUtils.writeToFile(bitmap, tempFile)) {
85 mediaCache.insertIntoCache(contentUri, MediaSize.Preview, tempFile);
88 success = MediaCacheUtils.downsample(bitmap, imageSize, tempFile);
MediaRetriever.java 101 * @param tempFile The file to write the bitmap to.
104 boolean getMedia(Uri contentUri, MediaSize imageSize, File tempFile);
MediaCache.java 215 File tempFile = (File) parameter;
217 tempFile.renameTo(cacheFile);
430 * @param tempFile The temporary file where the image is stored. This file
435 public File insertIntoCache(Uri contentUri, MediaSize size, File tempFile) {
436 long fileSize = tempFile.length();
448 if (tempFile.renameTo(cacheFile)) {
451 Log.w(TAG, "Could not update cached file with " + tempFile);
452 tempFile.delete();
456 ensureFreeCacheSpace(tempFile.length(), size);
457 id = mDatabaseHelper.insert(contentUri, size, mMoveTempToCache, tempFile);
    [all...]
MediaCacheDatabase.java 162 public long insert(Uri uri, MediaSize size, Action action, File tempFile) {
170 values.put(Columns.SIZE_IN_BYTES, tempFile.length());
173 action.execute(uri, id, size, tempFile);
  /external/webkit/Source/WebCore/platform/win/
FileSystemWin.cpp 209 char tempFile[] = "XXXXXXXX.tmp"; // Use 8.3 style name (more characters aren't helpful due to 8.3 short file names)
211 if (!CryptGenRandom(hCryptProv, randomPartLength, reinterpret_cast<BYTE*>(tempFile)))
218 tempFile[i] = validChars[tempFile[i] % (sizeof(validChars) - 1)];
220 ASSERT(strlen(tempFile) == sizeof(tempFile) - 1);
222 if (!PathCombineA(proposedPath, tempPath, tempFile))
  /external/webkit/Source/WebCore/platform/wince/
FileSystemWinCE.cpp 206 wchar_t tempFile[] = L"XXXXXXXX.tmp"; // Use 8.3 style name (more characters aren't helpful due to 8.3 short file names)
208 if (!CryptGenRandom(hCryptProv, randomPartLength * 2, reinterpret_cast<BYTE*>(tempFile)))
215 tempFile[i] = validChars[tempFile[i] % (sizeof(validChars) - 1)];
217 ASSERT(wcslen(tempFile) * 2 == sizeof(tempFile) - 2);
219 proposedPath = pathByAppendingComponent(String(tempPath), String(tempFile));
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
ExternalDictionaryGetterForDebug.java 122 File tempFile = null;
130 tempFile = new File(tempFileName);
131 tempFile.delete();
132 outputStream = new BufferedOutputStream(new FileOutputStream(tempFile));
139 if (!tempFile.renameTo(finalFile)) {
157 if (null != tempFile) tempFile.delete();
ExpandableBinaryDictionary.java 317 final File tempFile = new File(mContext.getFilesDir(), tempFileName);
320 out = new FileOutputStream(tempFile);
324 tempFile.renameTo(file);
  /external/webkit/Tools/Scripts/
bisect-builds 45 use File::Temp qw(tempfile);
134 my $tempFile = createTempFile($testURL);
143 mountAndRunNightly($nightlies[$startIndex]->{file}, $nightlyDownloadDirectory, $safariPath, $tempFile);
156 mountAndRunNightly($nightlies[$endIndex]->{file}, $nightlyDownloadDirectory, $safariPath, $tempFile);
179 mountAndRunNightly($nightlies[$index]->{file}, $nightlyDownloadDirectory, $safariPath, $tempFile);
203 unlink $tempFile if $tempFile;
213 my ($fh, $tempFile) = tempfile(
222 return $tempFile;
    [all...]
  /libcore/luni/src/test/java/libcore/java/io/
OldFileTest.java 35 private File tempFile;
222 tempFile = new File(tempDirectory, "tempfile");
225 tempStream = new FileOutputStream(tempFile.getPath(), false);
234 if (tempFile.exists() && !tempFile.delete())
  /dalvik/tools/dexdeps/src/com/android/dexdeps/
Main.java 153 File tempFile = File.createTempFile("dexdeps", ".dex");
154 //System.out.println("+++ using temp " + tempFile);
155 RandomAccessFile raf = new RandomAccessFile(tempFile, "rw");
156 tempFile.delete();
  /external/apache-harmony/nio/src/test/java/common/org/apache/harmony/nio/tests/java/nio/channels/
FileLockTest.java 58 File tempFile = File.createTempFile("testing", "tmp");
59 tempFile.deleteOnExit();
60 RandomAccessFile randomAccessFile = new RandomAccessFile(tempFile, "rw");
  /external/webkit/Source/WebCore/platform/qt/
FileSystemQt.cpp 120 QTemporaryFile* tempFile = new QTemporaryFile(QDir::tempPath() + QLatin1Char('/') + QString(prefix));
121 tempFile->setAutoRemove(false);
122 QFile* temp = tempFile;
  /external/svox/pico/src/com/svox/pico/
CheckVoiceData.java 114 File tempFile = new File(PICO_LINGWARE_PATH + filename);
116 if ((!tempFile.exists()) && (!tempFileSys.exists())) {
  /packages/apps/Gallery2/src/com/android/gallery3d/data/
DownloadCache.java 318 File tempFile = null;
321 tempFile = File.createTempFile("cache", ".tmp", mRoot);
322 // download from url to tempFile
324 boolean downloaded = DownloadUtils.requestDownload(jc, url, tempFile);
326 if (downloaded) return tempFile;
332 if (tempFile != null) tempFile.delete();
  /external/webkit/Source/WebCore/platform/brew/
FileSystemBrew.cpp 213 IFile* tempFile = IFILEMGR_OpenFile(fileMgr.get(), filename.utf8().data(), _OFM_CREATE);
214 if (tempFile) {
215 handle = tempFile;
  /libcore/dom/src/test/java/org/w3c/domts/
DOMTest.java 163 File tempFile = File.createTempFile("domts", ".xml");
169 Object uri = method.invoke(tempFile, (Class<?>) null);
176 URL url = tempFile.toURL();
  /development/samples/HoneycombGallery/src/com/example/android/hcgallery/
ContentFragment.java 319 final File tempFile = new File(externalCacheDir, "tempfile.jpg");
329 FileOutputStream fo = new FileOutputStream(tempFile, false);
355 shareIntent.putExtra(Intent.EXTRA_STREAM, Uri.fromFile(tempFile));
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
VideoEditorHelper.java 316 File tempFile = new File(fileName);
317 assertEquals("Exported FileName", tempFile.exists(), true);
364 File tempFile = new File(fileName);
365 assertEquals("Exported FileName", tempFile.exists(), true);
  /cts/tests/tests/os/src/android/os/cts/
ParcelFileDescriptorTest.java 45 ParcelFileDescriptor tempFile = makeParcelFileDescriptor(getContext());
47 ParcelFileDescriptor pfd = new ParcelFileDescriptor(tempFile);

Completed in 1827 milliseconds

1 2 3