HomeSort by relevance Sort by last modified time
    Searched refs:tempFile (Results 1 - 25 of 49) 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 222 File tempFile = File.createTempFile(this.getClass().getSimpleName(), ".tmp");
223 File tempDir = tempFile.getParentFile();
224 if (!tempFile.delete()) {
225 tempFile.deleteOnExit();
270 tempFile = new File(tempDir, String.format("%1$s%2$d_%3$s.xml",
275 tempFile.deleteOnExit();
278 libFiles.add(tempFile);
281 mainFile = tempFile;
284 actualResultFile = tempFile;
292 writer = new BufferedWriter(new FileWriter(tempFile));
    [all...]
  /tools/motodev/src/plugins/db.devices/src/com/motorolamobility/studio/android/db/devices/model/
DeviceDbNode.java 141 File tempFile = getLocalTempFile();
143 if (tempFile != null)
145 localDbPath = new Path(tempFile.getAbsolutePath());
195 File tempFile =
198 tempFile.deleteOnExit();
199 return tempFile;
210 File tempFile = null;
213 tempFile = getLocalTempFile();
214 status = pullRemoteTempFile(tempFile);
227 String newMd5Sum = FileUtil.calculateMd5Sum(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...]
  /tools/motodev/src/plugins/certmanager/src/com/motorolamobility/studio/android/certmanager/packaging/
PackageFile.java 165 File tempFile =
167 tempFile.deleteOnExit();
176 bos = new BufferedOutputStream(new FileOutputStream(tempFile));
198 setTempEntryFile(entry.getName(), tempFile);
295 * @param tempFile
298 public void setTempEntryFile(String entryName, File tempFile)
300 entryMap.put(entryName, tempFile);
301 tempEntryMap.put(entryName, tempFile);
615 File tempFile = File.createTempFile("_tozipalign", ".apk");
616 FileUtil.copyFile(apk, 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();
  /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();
  /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 314 final File tempFile = new File(mContext.getFilesDir(), tempFileName);
317 out = new FileOutputStream(tempFile);
321 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);
  /sdk/lint/libs/lint_checks/tests/src/com/android/tools/lint/checks/
AbstractCheckTest.java 236 File tempFile = new File(dir, name);
237 if (tempFile.exists()) {
238 tempFile.delete();
245 }, tempFile);
247 return tempFile;

Completed in 618 milliseconds

1 2