/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);
|
LogoUtilsTest.java | 38 File tempFile = writeBitmapToTempFile(bitmap); 40 Bitmap newBitmap = LogoUtils.getBitmapPartiallyResized(tempFile.getPath(), 10, 15); 46 tempFile.delete(); 52 File tempFile = writeBitmapToTempFile(bitmap); 54 Bitmap newBitmap = LogoUtils.getBitmapPartiallyResized(tempFile.getPath(), 8, 8); 60 tempFile.delete(); 93 File tempFile = writeBitmapToTempFile(bitmap); 95 LogoUtils.saveOrganisationLogo(getContext(), Uri.fromFile(tempFile)); 149 File tempFile = File.createTempFile("temp_bitmap", "", getContext().getCacheDir()); 150 FileOutputStream fos = new FileOutputStream(tempFile); [all...] |
/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...] |
/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();
|
/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/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;
|
/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;
|
/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;
|
/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();
|
/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"));
|
/external/junit/src/main/java/org/junit/rules/ |
TemporaryFolder.java | 114 File tempFile = new File(folderName); 115 if (tempFile.getParent() != null) {
|