OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:tempFile
(Results
1 - 25
of
100
) sorted by null
1
2
3
4
/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();
/art/test/802-deoptimization/src/
DeoptimizationController.java
41
File
tempFile
= createTempFile();
42
tempFile
.deleteOnExit();
43
String tempFileName =
tempFile
.getPath();
/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();
/art/test/099-vmdebug/src/
Main.java
48
File
tempFile
= createTempFile();
49
tempFile
.deleteOnExit();
50
String tempFileName =
tempFile
.getPath();
62
if (
tempFile
.length() == 0) {
71
if (
tempFile
.length() == 0) {
111
tempFile
.delete();
/external/nanohttpd/samples/src/main/java/fi/iki/elonen/
TempFilesServer.java
28
private final List<
TempFile
> tempFiles;
32
tempFiles = new ArrayList<
TempFile
>();
36
public
TempFile
createTempFile() throws Exception {
37
DefaultTempFile
tempFile
= new DefaultTempFile(tmpdir);
38
tempFiles.add(
tempFile
);
39
System.out.println("Created
tempFile
: " +
tempFile
.getName());
40
return
tempFile
;
48
for (
TempFile
file : tempFiles) {
/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
;
/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();
171
File
tempFile
= File.createTempFile("jdwptest", ".tmp");
175
pw = new PrintWriter(
tempFile
);
190
return
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/guava/guava-tests/test/com/google/common/io/
ResourcesTest.java
140
File
tempFile
= createTempFile();
141
PrintWriter writer = new PrintWriter(
tempFile
, "UTF-8");
149
Resources.getResource(
tempFile
.getName());
155
URL baseUrl =
tempFile
.getParentFile().toURI().toURL();
161
URL url = Resources.getResource(
tempFile
.getName());
IoTestCase.java
116
File
tempFile
= File.createTempFile("IoTestCase", "");
117
if (!
tempFile
.delete() || !
tempFile
.mkdir()) {
120
filesToDelete.add(
tempFile
);
121
return
tempFile
;
/external/mockito/cglib-and-asm/src/org/mockito/cglib/transform/
AbstractTransformTask.java
130
File
tempFile
= File.createTempFile(file.getName(), null, new File(file
136
FileOutputStream fout = new FileOutputStream(
tempFile
, false);
192
File newFile = new File(
tempFile
.getAbsolutePath());
195
throw new IOException("can not rename " +
tempFile
+ " to " + file);
204
tempFile
.delete();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
FileLockTest.java
58
File
tempFile
= File.createTempFile("testing", "tmp");
59
tempFile
.deleteOnExit();
60
RandomAccessFile randomAccessFile = new RandomAccessFile(
tempFile
, "rw");
/packages/apps/Messaging/src/com/android/messaging/sms/
MmsSender.java
176
final File
tempFile
= MmsFileProvider.getFile(contentUri);
180
tempFile
.getParentFile().mkdirs();
181
writer = new FileOutputStream(
tempFile
);
194
if (
tempFile
!= null) {
195
tempFile
.delete();
197
LogUtil.e(TAG, "Cannot create temporary file " +
tempFile
.getAbsolutePath(), e);
201
if (
tempFile
!= null) {
202
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())) {
/hardware/libhardware/tests/input/evdev/
InputHub_test.cpp
111
std::unique_ptr<
TempFile
>
tempFile
;
116
tempFile
.reset(tempDir->newTempFile());
126
EXPECT_EQ(
tempFile
->getName(), pathname);
133
auto deviceFile = std::unique_ptr<
TempFile
>(tempDir->newTempFile());
164
auto deviceFile = std::unique_ptr<
TempFile
>(tempDir->newTempFile());
205
auto deviceFile1 = std::unique_ptr<
TempFile
>(tempDir->newTempFile());
206
auto deviceFile2 = std::unique_ptr<
TempFile
>(tempDir->newTempFile());
/libcore/tzdata/update/src/test/libcore/tzdata/update/
ConfigBundleTest.java
44
for (File
tempFile
: testFiles) {
45
tempFile
.delete();
/development/samples/Vault/src/com/example/android/vault/
EncryptedDocument.java
215
final File
tempFile
= new File(mFile.getParentFile(), tempName);
217
RandomAccessFile f = new RandomAccessFile(
tempFile
, "rw");
254
tempFile
.renameTo(mFile);
261
tempFile
.delete();
/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();
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
ProcessSentMessageAction.java
142
final File
tempFile
= MmsFileProvider.getFile(contentUri);
144
if (
tempFile
.exists()) {
145
messageSize =
tempFile
.length();
146
tempFile
.delete();
/external/lzma/CPP/Windows/
FileDir.cpp
841
CTempFile
tempFile
;
842
if (!
tempFile
.Create(prefix, dirName))
844
if (!
tempFile
.Remove())
880
CTempFileW
tempFile
;
881
if (!
tempFile
.Create(prefix, dirName))
883
if (!
tempFile
.Remove())
/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/util/zip/
OldZipFileTest.java
146
File
tempFile
= File.createTempFile("OldZipFileTest", "zip");
147
tempFileName =
tempFile
.getAbsolutePath();
149
FileOutputStream fos = new FileOutputStream(
tempFile
);
154
zfile = new ZipFile(
tempFile
);
Completed in 1030 milliseconds
1
2
3
4