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

1 2 3

  /packages/apps/Email/src/org/apache/james/mime4j/message/
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);
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);
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);
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();
  /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();
  /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;
  /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");
  /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/svox/pico/src/com/svox/pico/
CheckVoiceData.java 114 File tempFile = new File(PICO_LINGWARE_PATH + filename);
116 if ((!tempFile.exists()) && (!tempFileSys.exists())) {
  /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;
  /packages/apps/Gallery2/src/com/android/photos/data/
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...]
  /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/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));
  /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);
  /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();
  /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())
  /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...]
  /cts/tests/tests/os/src/android/os/cts/
ParcelFileDescriptorTest.java 45 ParcelFileDescriptor tempFile = makeParcelFileDescriptor(getContext());
47 ParcelFileDescriptor pfd = new ParcelFileDescriptor(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));
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
ScannerTest.java 277 File tempFile = File.createTempFile("harmony", "test");
278 tempFile.deleteOnExit();
279 FileOutputStream os = new FileOutputStream(tempFile);
283 FileInputStream is = new FileInputStream(tempFile);
    [all...]
  /prebuilts/devtools/adt/lib/
sdktestutils.jar 
  /external/sonivox/arm-wt-22k/lib_src/
eas_mdls.c 814 EAS_FILE_HANDLE tempFile;
836 if ((result = EAS_HWDupHandle(pDLSData->hwInstData, pDLSData->fileHandle, &tempFile)) != EAS_SUCCESS)
844 if ((result = EAS_HWGetDWord(pDLSData->hwInstData, tempFile, &temp, EAS_FALSE)) != EAS_SUCCESS)
849 EAS_HWCloseFile(pDLSData->hwInstData, tempFile);
859 EAS_HWCloseFile(pDLSData->hwInstData, tempFile);
    [all...]

Completed in 448 milliseconds

1 2 3