/packages/apps/UnifiedEmail/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();
|
/external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/ |
RandomAccessFileInputStreamFactoryTest.java | 47 private File tempFile = null; 55 tempFile = File.createTempFile("ra-fist", "tmp"); 56 FileOutputStream out = new FileOutputStream(tempFile); 60 tempFile.deleteOnExit(); 61 factory = new RandomAccessFileInputStreamFactory(tempFile, 0, testData.length); 67 tempFile.delete();
|
RandomAccessFileOutputStreamTest.java | 49 private File tempFile = null; 57 tempFile = File.createTempFile("ra-fost", "tmp"); 58 tempFile.deleteOnExit(); 69 tempFile.delete(); 77 stream = new RandomAccessFileOutputStream(tempFile, 11L); 78 Assert.assertEquals(11, tempFile.length()); 84 new RandomAccessFileOutputStream(tempFile, 11L) { 99 stream = new RandomAccessFileOutputStream(tempFile, 1L); 105 in = new FileInputStream(tempFile); 118 stream = new RandomAccessFileOutputStream(tempFile, 1L) [all...] |
RandomAccessFileInputStreamTest.java | 49 private File tempFile = null; 57 tempFile = File.createTempFile("ra-fist", "tmp"); 58 tempFile.deleteOnExit(); 60 FileOutputStream out = new FileOutputStream(tempFile); 66 tempFile.delete(); 72 stream = new RandomAccessFileInputStream(tempFile); 83 tempFile.delete(); 143 stream = new RandomAccessFileInputStream(tempFile, 1, testData.length - 2); 221 new RandomAccessFileInputStream(tempFile, 0, testData.length) { 258 stream = new RandomAccessFileInputStream(tempFile, 5, 2) [all...] |
/art/test/570-checker-osr/src/ |
DeoptimizationController.java | 46 File tempFile = null; 48 tempFile = createTempFile(); 49 String tempFileName = tempFile.getPath(); 58 if (tempFile != null) { 59 tempFile.delete();
|
/art/test/802-deoptimization/src/ |
DeoptimizationController.java | 43 File tempFile = null; 45 tempFile = createTempFile(); 46 String tempFileName = tempFile.getPath(); 55 if (tempFile != null) { 56 tempFile.delete();
|
/external/lzma/CPP/7zip/UI/Common/ |
WorkDir.cpp | 73 CTempFile tempFile;
|
/external/skia/tools/ |
ThermalManager.cpp | 76 FILE* tempFile = fopen(path, "r"); 77 SkASSERT(tempFile); 79 int ret = fscanf(tempFile, "%d", &value); 85 fclose(tempFile);
|
/prebuilts/go/darwin-x86/src/crypto/tls/ |
handshake_test.go | 216 // tempFile creates a temp file containing contents and returns its path. 217 func tempFile(contents string) string { 218 file, err := ioutil.TempFile("", "go-tls-test")
|
/prebuilts/go/linux-x86/src/crypto/tls/ |
handshake_test.go | 216 // tempFile creates a temp file containing contents and returns its path. 217 func tempFile(contents string) string { 218 file, err := ioutil.TempFile("", "go-tls-test")
|
/cts/tools/vm-tests-tf/src/util/build/ |
JarBuildStep.java | 48 File tempFile = new File(inputFile.folder, outputJarEntryName); 50 if (!inputFile.fileName.equals(tempFile)) { 51 copyFile(inputFile.fileName, tempFile); 53 tempFile = null; 106 if (tempFile != null) { 107 tempFile.delete();
|
/external/archive-patcher/applier/src/main/java/com/google/archivepatcher/applier/ |
FileByFileV1DeltaApplier.java | 58 File tempFile = File.createTempFile("gfbfv1", "old", tempDir); 60 applyDeltaInternal(oldBlob, tempFile, deltaIn, newBlobOut); 62 tempFile.delete();
|
/external/nanohttpd/core/src/test/java/fi/iki/elonen/ |
JavaIOTempDirExistTest.java | 54 DefaultTempFile tempFile = (DefaultTempFile) manager.createTempFile("xx"); 55 File tempFileBackRef = new File(tempFile.getName()); 62 tempFile.delete();
|
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/ |
MtpFileWriter.java | 39 final File tempFile = File.createTempFile("mtp", "tmp", context.getCacheDir()); 41 tempFile, 45 tempFile.delete();
|
/packages/apps/WallpaperPicker/src/com/android/gallery3d/common/ |
ExifOrientation.java | 50 File tempFile = null; 72 if (tempFile == null) { 73 tempFile = File.createTempFile(TAG, ".jpg", context.getCacheDir()); 74 tempOut = new DataOutputStream(new FileOutputStream(tempFile)); 105 return readRotation(tempFile.getAbsolutePath()); 115 if (tempFile != null) { 116 tempFile.delete();
|
/external/nanohttpd/samples/src/main/java/fi/iki/elonen/ |
TempFilesServer.java | 52 private final List<TempFile> tempFiles; 56 this.tempFiles = new ArrayList<TempFile>(); 64 for (TempFile file : this.tempFiles) { 75 public TempFile createTempFile(String filename_hint) throws Exception { 76 DefaultTempFile tempFile = new DefaultTempFile(this.tmpdir); 77 this.tempFiles.add(tempFile); 78 System.out.println("Created tempFile: " + tempFile.getName()); 79 return tempFile;
|
/packages/apps/Camera2/src/com/android/camera/session/ |
SessionStorageManagerImpl.java | 97 File tempFile = new File(tempDirectory, title + ".jpg"); 99 if (!tempFile.exists()) { 100 if (!tempFile.createNewFile()) { 109 if (!tempFile.canWrite()) { 112 return tempFile;
|
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
UriBitmap.java | 34 private UriBitmap(Bitmap bitmap, Uri uri, File tempFile) { 37 mTempFile = tempFile; 53 File tempFile = File.createTempFile("tmpImage", ".png"); 54 Uri uri = bitmapToUri(bitmap, tempFile); 55 return new UriBitmap(bitmap, uri, tempFile); 68 private static Uri bitmapToUri(Bitmap bitmap, File tempFile) throws IOException { 69 try (FileOutputStream fs = new FileOutputStream(tempFile)) { 71 return Uri.fromFile(tempFile);
|
/art/test/099-vmdebug/src/ |
Main.java | 55 File tempFile = null; 57 tempFile = createTempFile(); 58 testMethodTracingToFile(tempFile); 60 if (tempFile != null) { 61 tempFile.delete(); 66 private static void testMethodTracingToFile(File tempFile) throws Exception { 67 String tempFileName = tempFile.getPath(); 79 if (tempFile.length() == 0) { 88 if (tempFile.length() == 0) { 128 tempFile.delete() [all...] |
/cts/hostsidetests/jdwpsecurity/src/android/jdwpsecurity/cts/ |
JdwpSecurityHostTest.java | 74 File tempFile = createScriptTempFile(); 76 boolean success = getDevice().pushFile(tempFile, getDeviceScriptFilepath()); 79 if (tempFile != null) { 80 tempFile.delete(); 172 File tempFile = File.createTempFile("jdwptest", ".tmp"); 176 pw = new PrintWriter(tempFile); 191 return tempFile;
|
/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/ |
ApkNdkApiReport.java | 149 File tempFile = File.createTempFile("ApkNdkApiReport", ".so"); 150 tempFile.deleteOnExit(); 151 FileOutputStream fos = new FileOutputStream(tempFile); 161 testModules.add(new TestModule(tempFile, targetFile.getName(), "jUnit"));
|
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
Main.java | 173 File tempFile = File.createTempFile("dexdeps", ".dex"); 174 //System.out.println("+++ using temp " + tempFile); 175 RandomAccessFile raf = new RandomAccessFile(tempFile, "rw"); 176 tempFile.delete();
|