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

1 2 3 4 5 6 7 8 910

  /external/archive-patcher/shared/src/test/java/com/google/archivepatcher/shared/
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...]
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();
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...]
  /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/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/UnifiedEmail/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);
  /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();
  /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/skia/tools/
ThermalManager.cpp 76 FILE* tempFile = fopen(path, "r");
77 SkASSERT(tempFile);
79 int ret = fscanf(tempFile, "%d", &value);
85 fclose(tempFile);
  /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();
  /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/src/com/android/managedprovisioning/
LogoUtilsTest.java 44 File tempFile = writeBitmapToTempFile(bitmap);
46 Bitmap newBitmap = LogoUtils.getBitmapPartiallyResized(tempFile.getPath(), 10, 15);
52 tempFile.delete();
58 File tempFile = writeBitmapToTempFile(bitmap);
60 Bitmap newBitmap = LogoUtils.getBitmapPartiallyResized(tempFile.getPath(), 8, 8);
66 tempFile.delete();
99 File tempFile = writeBitmapToTempFile(bitmap);
101 LogoUtils.saveOrganisationLogo(getContext(), Uri.fromFile(tempFile));
159 File tempFile = File.createTempFile("temp_bitmap", "", getContext().getCacheDir());
160 FileOutputStream fos = new FileOutputStream(tempFile);
    [all...]
  /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();
  /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);
  /external/guava/guava-tests/test/com/google/common/io/
IoTestCase.java 116 File tempFile = File.createTempFile("IoTestCase", "");
117 if (!tempFile.delete() || !tempFile.mkdir()) {
120 filesToDelete.add(tempFile);
121 return tempFile;
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());
  /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();
171 File tempFile = File.createTempFile("jdwptest", ".tmp");
175 pw = new PrintWriter(tempFile);
190 return tempFile;
  /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/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/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();

Completed in 1233 milliseconds

1 2 3 4 5 6 7 8 910