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

1 2

  /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);
  /sdk/manifmerger/tests/src/com/android/manifmerger/
ManifestMergerTestCase.java 219 File tempFile = File.createTempFile(this.getClass().getSimpleName(), ".tmp");
220 File tempDir = tempFile.getParentFile();
221 if (!tempFile.delete()) {
222 tempFile.deleteOnExit();
267 tempFile = new File(tempDir, String.format("%1$s%2$d_%3$s.xml",
272 tempFile.deleteOnExit();
275 libFiles.add(tempFile);
278 mainFile = tempFile;
281 actualResultFile = tempFile;
289 writer = new BufferedWriter(new FileWriter(tempFile));
    [all...]
  /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));
  /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 316 File tempFile = null;
319 tempFile = File.createTempFile("cache", ".tmp", mRoot);
320 // download from url to tempFile
322 boolean downloaded = DownloadUtils.requestDownload(jc, url, tempFile);
324 if (downloaded) return tempFile;
330 if (tempFile != null) tempFile.delete();
  /sdk/ddms/libs/ddmuilib/src/com/android/ddmuilib/handler/
MethodProfilingHandler.java 110 File tempFile = saveTempFile(data, DdmConstants.DOT_TRACE);
111 open(tempFile.getAbsolutePath());
  /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();
  /sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/
AbstractCheckTest.java 199 File tempFile = new File(dir, name);
200 if (tempFile.exists()) {
201 tempFile.delete();
208 }, tempFile);
210 return tempFile;
  /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));
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
ExpandableBinaryDictionary.java 338 final File tempFile = new File(mContext.getFilesDir(), tempFileName);
341 out = new FileOutputStream(tempFile);
345 tempFile.renameTo(file);
  /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);
  /external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/
PropertyChangeSupportTest.java 47 private File tempFile;
51 tempFile = File.createTempFile("beans", ".ser");
56 tempFile.delete();
57 tempFile = null;
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.ddms/src/com/android/ide/eclipse/ddms/views/
DeviceView.java 218 File tempFile = saveTempFile(data, null /* extension */);
219 open(tempFile.getAbsolutePath());

Completed in 2028 milliseconds

1 2