/external/qemu/android/utils/ |
tempfile.c | 13 #include "android/utils/tempfile.h" 34 ** create the file with tempfile_create(), which returns a reference to a TempFile 37 ** you can then call tempfile_path() to retrieve the TempFile's real path to open 38 ** it. the returned path is owned by the TempFile object and should not be freed. 44 struct TempFile 47 TempFile* next; 51 static TempFile* _all_tempfiles; 53 TempFile* 56 TempFile* tempfile; local 192 TempFile* tempfile; local [all...] |
tempfile.h | 20 ** create the file with tempfile_create(), which returns a reference to a TempFile 23 ** you can then call tempfile_path() to retrieve the TempFile's real path to open 24 ** it. the returned path is owned by the TempFile object and should not be freed. 30 typedef struct TempFile TempFile; 32 extern TempFile* tempfile_create( void ); 33 extern const char* tempfile_path( TempFile* temp ); 34 extern void tempfile_close( TempFile* temp );
|
/packages/apps/Email/src/org/apache/james/mime4j/util/ |
TempFile.java | 27 * @version $Id: TempFile.java,v 1.3 2004/10/02 12:41:11 ntherning Exp $
29 public interface TempFile {
34 * <code>TempFile</code> creates a <code>FileInputStream</code> or any
36 * <code>TempFile</code>'s responsibility to wrap it.
47 * <code>TempFile</code> creates a <code>FileOutputStream</code> or any
49 * <code>TempFile</code>'s responsibility to wrap it.
58 * <code>TempFile</code>. The path may be <code>null</code> if this is
|
SimpleTempStorage.java | 78 private TempFile createTempFile(TempPath parent, String prefix,
135 public TempFile createTempFile() throws IOException {
142 public TempFile createTempFile(String prefix, String suffix)
151 public TempFile createTempFile(String prefix, String suffix,
187 private class SimpleTempFile implements TempFile {
196 * @see org.apache.james.mime4j.util.TempFile#getInputStream()
203 * @see org.apache.james.mime4j.util.TempFile#getOutputStream()
210 * @see org.apache.james.mime4j.util.TempFile#getAbsolutePath()
224 * @see org.apache.james.mime4j.util.TempFile#isInMemory()
231 * @see org.apache.james.mime4j.util.TempFile#length() [all...] |
TempPath.java | 40 TempFile createTempFile() throws IOException;
52 TempFile createTempFile(String prefix, String suffix) throws IOException;
69 TempFile createTempFile(String prefix, String suffix,
|
/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);
|
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();
|
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);
|
/cts/tools/vm-tests/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/WebKitTools/Scripts/ |
pdevenv | 6 use File::Temp qw/tempfile/; 12 my ($fh, $path) = tempfile(UNLINK => 0, SUFFIX => '.cmd') or die;
|
bisect-builds | 45 use File::Temp qw(tempfile); 133 my $tempFile = createTempFile($testURL); 142 mountAndRunNightly($nightlies[$startIndex]->{file}, $nightlyDownloadDirectory, $safariPath, $tempFile); 155 mountAndRunNightly($nightlies[$endIndex]->{file}, $nightlyDownloadDirectory, $safariPath, $tempFile); 178 mountAndRunNightly($nightlies[$index]->{file}, $nightlyDownloadDirectory, $safariPath, $tempFile); 200 unlink $tempFile if $tempFile; 210 my ($fh, $tempFile) = tempfile( 219 return $tempFile; [all...] |
/frameworks/base/tools/obbtool/ |
mkobb.sh | 138 if [ "x${tempfile}" != "x" -a -f "${tempfile}" ]; then \ 139 rm -f ${tempfile} 212 tempfile=$(tempfile -d ${outdir}) || ( echo "ERROR: couldn't create temporary file in ${outdir}"; exit 1 ) 221 ${DDBIN} if=/dev/zero of=${tempfile} bs=${BLOCK_SIZE} count=$((${block_count} + ${SLOP})) > /dev/null 2>&1 228 ${LOSETUPBIN} ${loop_dev} ${tempfile} || ( echo "ERROR: couldn't create loopback device"; exit 1 ) 232 unique_dm_name=`basename ${tempfile}` 277 mv ${tempfile} ${filename}
|
/external/webkit/WebCore/platform/win/ |
FileSystemWin.cpp | 205 char tempFile[] = "XXXXXXXX.tmp"; // Use 8.3 style name (more characters aren't helpful due to 8.3 short file names) 207 if (!CryptGenRandom(hCryptProv, randomPartLength, reinterpret_cast<BYTE*>(tempFile))) 214 tempFile[i] = validChars[tempFile[i] % (sizeof(validChars) - 1)]; 216 ASSERT(strlen(tempFile) == sizeof(tempFile) - 1); 218 if (!PathCombineA(proposedPath, tempPath, tempFile))
|
/external/webkit/WebCore/platform/wince/ |
FileSystemWince.cpp | 187 wchar_t tempFile[] = L"XXXXXXXX.tmp"; // Use 8.3 style name (more characters aren't helpful due to 8.3 short file names) 189 if (!CryptGenRandom(hCryptProv, randomPartLength * 2, reinterpret_cast<BYTE*>(tempFile))) 196 tempFile[i] = validChars[tempFile[i] % (sizeof(validChars) - 1)]; 198 ASSERT(wcslen(tempFile) * 2 == sizeof(tempFile) - 2); 200 proposedPath = pathByAppendingComponent(String(tempPath), String(tempFile));
|
/external/e2fsprogs/contrib/ |
dconf | 13 TEMPFILE=/tmp/${SELF}.tmp 68 awk -f $AWKFILE $* >$TEMPFILE 118 awk -f $AWKFILE $TEMPFILE
|
/external/webkit/WebCore/platform/qt/ |
FileSystemQt.cpp | 120 QTemporaryFile* tempFile = new QTemporaryFile(QLatin1String(prefix)); 121 tempFile->setAutoRemove(false); 122 QFile* temp = tempFile;
|
/system/extras/tests/bionic/libc/other/ |
test_zlib.c | 178 char tempfile[256]; local 215 sprintf(tempfile, "/tmp/ztest.%d", getpid() ); 235 out = fopen( tempfile, "wb" ); 237 fprintf(stderr, "could not create '%s': %s\n", tempfile, strerror(errno)); 253 f = fopen( tempfile, "rb" ); 265 unlink(tempfile);
|
/external/webkit/WebKitTools/wx/build/ |
waf_extensions.py | 36 import tempfile namespace 37 (fd, filename) = tempfile.mkstemp()
|
/build/tools/releasetools/ |
img_from_target_files | 39 import tempfile namespace 58 temp_dir = tempfile.mkdtemp() 61 img = tempfile.NamedTemporaryFile() 95 img = tempfile.NamedTemporaryFile()
|
sign_target_files_apks | 73 import tempfile namespace 119 unsigned = tempfile.NamedTemporaryFile() 123 signed = tempfile.NamedTemporaryFile() 238 tempfile = cStringIO.StringIO() 239 certs_zip = zipfile.ZipFile(tempfile, "w") 244 tempfile.getvalue())
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
Main.java | 130 File tempFile = File.createTempFile("dexdeps", ".dex"); 131 //System.out.println("+++ using temp " + tempFile); 132 RandomAccessFile raf = new RandomAccessFile(tempFile, "rw"); 133 tempFile.delete();
|
/frameworks/base/core/java/com/android/internal/content/ |
NativeLibraryHelper.java | 277 File tempFile = File.createTempFile("tmp", "tmp", binaryDir); 278 String tempFilePath = tempFile.getPath(); 281 if (!FileUtils.copyToFile(inputStream, tempFile) 282 || !tempFile.setLastModified(entry.getTime()) 286 || !tempFile.renameTo(binaryFile)) { 288 tempFile.delete();
|
/packages/apps/Gallery3D/src/com/cooliris/media/ |
DiskCache.java | 286 File tempFile = null; 290 tempFile = File.createTempFile("DiskCache", null, new File(tempFilePath)); 292 Log.e(TAG, "Unable to create or tempFile " + tempFilePath); 296 final FileOutputStream fileOutput = new FileOutputStream(tempFile); 325 tempFile.renameTo(new File(indexFilePath)); 329 tempFile.delete();
|
/external/svox/pico/src/com/svox/pico/ |
CheckVoiceData.java | 114 File tempFile = new File(PICO_LINGWARE_PATH + filename); 116 if ((!tempFile.exists()) && (!tempFileSys.exists())) {
|