/libcore/benchmarks/src/benchmarks/regression/ |
ByteBufferBulkBenchmark.java | 56 File tmpFile = File.createTempFile("MappedByteBufferTest", ".tmp"); 57 tmpFile.createNewFile(); 58 tmpFile.deleteOnExit(); 59 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw");
|
ByteBufferBenchmark.java | 62 File tmpFile = new File("/sdcard/bm.tmp"); 65 tmpFile = File.createTempFile("MappedByteBufferTest", ".tmp"); 67 tmpFile.createNewFile(); 68 tmpFile.deleteOnExit(); 69 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw");
|
/frameworks/support/compat/java/android/support/v4/graphics/ |
TypefaceCompat.java | 133 final File tmpFile = TypefaceCompatUtil.getTempFile(context); 134 if (tmpFile == null) { 138 if (!TypefaceCompatUtil.copyToFile(tmpFile, resources, id)) { 141 Typeface typeface = Typeface.createFromFile(tmpFile.getPath()); 152 tmpFile.delete();
|
TypefaceCompatBaseImpl.java | 57 final File tmpFile = TypefaceCompatUtil.getTempFile(context); 58 if (tmpFile == null) { 62 if (!TypefaceCompatUtil.copyToFile(tmpFile, buffer)) { 65 return Typeface.createFromFile(tmpFile.getPath()); 72 tmpFile.delete();
|
TypefaceCompatUtil.java | 88 File tmpFile = getTempFile(context); 89 if (tmpFile == null) { 93 if (!copyToFile(tmpFile, res, id)) { 96 return mmap(tmpFile); 98 tmpFile.delete();
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.build.tools/src_rss/org/eclipse/releng/services/rss/ |
RSSFeedWatcherTask.java | 70 private File tmpFile; 81 this.tmpFile = new File(file + ".tmp"); //$NON-NLS-1$ 127 downloadFeed(tmpFile,debug>0); 130 if (tmpFile.isFile()) { 131 if (debug>0) { System.out.println(Messages.getString("RSSFeedWatcherTask.Compare") + SP + file + Messages.getString("RSSFeedWatcherTask.with") + tmpFile + CL); } //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ 151 newFeedWatcher.setFile(tmpFile.toString()); 210 RSSFeedUtil.transferData(new FileInputStream(tmpFile), new FileOutputStream(file)); 211 tmpFile.deleteOnExit();
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
FileUtilFuncTest.java | 109 File tmpFile = createTempFile("foo", "txt"); 110 tmpFile.setReadable(false); 111 tmpFile.setWritable(false); 112 FileUtil.chmodGroupRW(tmpFile); 113 assertTrue(tmpFile.canRead()); 114 assertTrue(tmpFile.canWrite()); 141 File tmpFile = createTempFile("foo", ".txt"); 142 assertTrue(tmpFile.exists()); 143 assertTrue(tmpFile.isFile()); 144 assertTrue(tmpFile.getName().startsWith("foo")) [all...] |
ZipUtil2Test.java | 111 File tmpFile = FileUtil.createTempFile("ziputiltest", ".zip"); 113 ZipUtil2.extractZipToTemp(tmpFile, "testExtractZipToTemp"); 118 FileUtil.deleteFile(tmpFile);
|
/cts/hostsidetests/aadb/src/android/aadb/cts/ |
TestDeviceStressTest.java | 53 File tmpFile = null; 59 tmpFile = FileUtil.createTempFile(String.format("tmp_%d", i), ".txt", tmpDir); 60 FileUtil.writeToFile(fileContents, tmpFile);
|
TestDeviceFuncTest.java | 99 File tmpFile = null; 104 tmpFile = createTempTestFile(null); 113 assertTrue(mTestDevice.pushFile(tmpFile, deviceFilePath)); 117 assertTrue(compareFiles(tmpFile, tmpDestFile)); 135 File tmpFile = null; 142 tmpFile = createTempTestFile(null); 151 assertTrue(mTestDevice.pushFile(tmpFile, deviceFilePath)); 155 assertTrue(compareFiles(tmpFile, tmpDestFile)); 159 assertTrue(compareFiles(tmpFile, tmpDestFile2)); 191 File tmpFile = null [all...] |
/tools/tradefederation/core/tests/src/com/android/tradefed/command/ |
VerifyTest.java | 51 File tmpFile = FileUtil.createTempFile(tmpFileName, ".txt"); 53 FileUtil.writeToFile(cmdFileStream, tmpFile); 55 // Clean up tmpFile, if it was created. 56 FileUtil.deleteFile(tmpFile); 60 return tmpFile;
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/xml/ |
AndroidManifestWriterTest.java | 88 File tmpFile = FileUtil.createTempFile(fileName, ".xml"); 89 FileUtil.writeToFile(testStream, tmpFile); 90 return tmpFile;
|
/external/conscrypt/openjdk/src/main/java/org/conscrypt/ |
NativeLibraryLoader.java | 206 File tmpFile = null; 208 tmpFile = createTempFile(prefix, suffix, WORKDIR); 210 out = new FileOutputStream(tmpFile); 224 loadLibrary(loader, tmpFile.getPath(), true); 235 if (tmpFile != null && !tmpFile.delete()) { 236 tmpFile.deleteOnExit();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
ProcessManagerTest.java | 186 File tmpFile = File.createTempFile("testCloseNonStandardFds", ".txt"); 188 this.out = new FileOutputStream(tmpFile); 198 tmpFile.delete();
|
/tools/tradefederation/core/src/com/android/tradefed/result/ |
SubprocessResultsReporter.java | 173 File tmpFile = null; 176 tmpFile = 179 FileUtil.writeToFile(dataStream.createInputStream(), tmpFile); 180 TestLogEventInfo info = new TestLogEventInfo(dataName, dataType, tmpFile); 184 FileUtil.deleteFile(tmpFile);
|
/cts/hostsidetests/jvmti/base/host/src/android/jvmti/cts/ |
JvmtiHostTest.java | 128 File tmpFile = null; 152 if (tmpFile != null) { 153 tmpFile.delete(); 167 File tmpFile = null; 175 tmpFile = ZipUtil.extractFileFromZip(zf, libPathInApk); 177 String libInTmp = "/data/local/tmp/" + tmpFile.getName(); 178 if (!mDevice.pushFile(tmpFile, libInTmp)) { 196 if (tmpFile != null) { 197 tmpFile.delete();
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.test.performance.ui/src/org/eclipse/test/internal/performance/results/db/ |
ComponentResults.java | 401 File tmpFile = new File(dir, getName()+".tmp"); //$NON-NLS-1$ 404 if (tmpFile.exists()) { 406 tmpFile.renameTo(dataFile); 411 if (tmpFile.exists()) { 412 tmpFile.delete(); 416 file = tmpFile;
|
/external/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
SwatDeprecated.java | 175 File tmpFile = null; 181 tmpFile = File.createTempFile(inFile.getName(), null, inFile.getParentFile()); 184 tmpFile = outFile; 185 File parent = tmpFile.getParentFile(); 187 tmpFile.createNewFile(); 190 String tmpPath = tmpFile.getPath(); 192 pw.println("tmpFile: " + tmpPath); 196 OutputStream os = new FileOutputStream(tmpFile); 283 if (!tmpFile.delete()) { 294 if (!tmpFile.renameTo(bakFile)) [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
FileInputStreamTest.java | 250 File tmpFile = File.createTempFile("FileOutputStream", "tmp"); 251 FileInputStream in = new FileInputStream(tmpFile); 259 tmpFile.delete();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
MappedByteBufferTest.java | 37 File tmpFile, emptyFile; 45 FileInputStream fis = new FileInputStream(tmpFile); 128 FileInputStream fileInputStream = new FileInputStream(tmpFile); 135 FileInputStream inputStream = new FileInputStream(tmpFile); 146 RandomAccessFile randomFile = new RandomAccessFile(tmpFile, "rw"); 154 RandomAccessFile random = new RandomAccessFile(tmpFile, "rw"); 172 FileInputStream fileInputStream = new FileInputStream(tmpFile); 179 RandomAccessFile randomFile = new RandomAccessFile(tmpFile, "rw"); 192 tmpFile = File.createTempFile("harmony", "test"); //$NON-NLS-1$//$NON-NLS-2$ 193 tmpFile.deleteOnExit() [all...] |
/libcore/luni/src/test/java/com/android/org/bouncycastle/jce/provider/ |
CertBlacklistTest.java | 42 private File tmpFile; 131 tmpFile = File.createTempFile("test", ""); 134 tmpFile.delete(); 140 tmpFile = File.createTempFile("test", ""); 146 tmpFile.delete(); 194 return getPubkeyBlacklist(tmpFile.getCanonicalPath()); 198 return getSerialBlacklist(tmpFile.getCanonicalPath()); 202 FileOutputStream out = new FileOutputStream(tmpFile); 252 CertBlacklist bl = new CertBlacklist(tmpFile.getCanonicalPath(), ""); 267 CertBlacklist bl = new CertBlacklist(tmpFile.getCanonicalPath(), "") [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
ChannelsTest.java | 61 private File tmpFile; 66 tmpFile = File.createTempFile("test","tmp"); 67 tmpFile.deleteOnExit(); 81 tmpFile.delete(); 87 this.fouts = new FileOutputStream(tmpFile); 129 this.fins = new FileInputStream(tmpFile); 156 this.fins = new FileInputStream(tmpFile); 207 this.fouts = new FileOutputStream(tmpFile); 231 this.fouts = new FileOutputStream(tmpFile); 242 this.fins = new FileInputStream(tmpFile); [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldRandomAccessFileTest.java | 54 File tmpFile = new File(fileName); 57 raf = new java.io.RandomAccessFile(tmpFile, "r"); 65 tmpFile.createNewFile(); 70 raf = new java.io.RandomAccessFile(tmpFile, "rwd"); 76 raf = new java.io.RandomAccessFile(tmpFile, "rws"); 82 raf = new java.io.RandomAccessFile(tmpFile, "rw"); 90 raf = new java.io.RandomAccessFile(tmpFile, "i"); 97 tmpFile.delete(); 108 File tmpFile = new File(fileName); 161 if (tmpFile.exists()) tmpFile.delete() [all...] |
/tools/loganalysis/tests/src/com/android/loganalysis/util/config/ |
OptionSetterTest.java | 690 File tmpFile = File.createTempFile("testSetOptionValue_file", "txt"); 692 assertSetOptionValue(optionSource, "file", tmpFile.getAbsolutePath()); 693 assertEquals(tmpFile.getAbsolutePath(), optionSource.mFile.getAbsolutePath()); 695 tmpFile.delete();
|
/tools/tradefederation/core/tests/src/com/android/tradefed/device/ |
TestDeviceFuncTest.java | 135 File tmpFile = WifiHelper.extractWifiUtilApk(); 137 assertWifiApkInstall(tmpFile); 139 FileUtil.deleteFile(tmpFile); 146 void assertWifiApkInstall(File tmpFile) throws DeviceNotAvailableException { 151 assertNull(mTestDevice.installPackage(tmpFile, false)); 156 tmpFile.getName()))); 158 FileUtil.deleteFile(tmpFile); 168 File tmpFile = WifiHelper.extractWifiUtilApk(); 172 FileUtil.copyFile(tmpFile, tmpFileSpaces); 175 FileUtil.deleteFile(tmpFile); [all...] |