/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
RandomAccessFileTest.java | 36 java.io.RandomAccessFile raf; field in class:RandomAccessFileTest 54 RandomAccessFile raf = new java.io.RandomAccessFile(f, "rw"); local 55 raf.write(20); 56 raf.seek(0); 57 assertEquals("Incorrect int read/written", 20, raf.read()); 58 raf.close(); 60 raf = new java.io.RandomAccessFile(f, "rwd"); 61 raf.write(20); 62 raf.seek(0); 63 assertEquals("Incorrect int read/written", 20, raf.read()) 92 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 111 RandomAccessFile raf = null; local 154 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 168 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 180 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 192 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 208 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "r"); local 223 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "r"); local 236 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 252 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 264 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 276 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 288 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 301 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 315 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 331 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 349 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 362 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 379 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 392 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 405 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 417 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 431 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 443 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 456 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 470 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 514 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 671 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 685 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 697 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 711 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 726 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 739 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 754 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 767 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 780 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 793 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 806 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 820 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 833 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 848 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 890 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "r"); local 909 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "r"); local 924 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "r"); local 937 RandomAccessFile raf = new RandomAccessFile(f, "r"); local 954 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 992 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "r"); local 1011 RandomAccessFile raf = new RandomAccessFile(f, "rw"); local [all...] |
OpenRandomFileTest.java | 45 RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); local 46 raf.close(); 55 RandomAccessFile raf = new RandomAccessFile(fileName, "rw"); local 56 raf.close();
|
FileDescriptorTest.java | 73 RandomAccessFile raf = new RandomAccessFile(f, "r"); local 74 fd = raf.getFD(); 76 raf.close();
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldRandomAccessFileTest.java | 37 java.io.RandomAccessFile raf; field in class:OldRandomAccessFileTest 53 RandomAccessFile raf = null; local 57 raf = new java.io.RandomAccessFile(tmpFile, "r"); 70 raf = new java.io.RandomAccessFile(tmpFile, "rwd"); 74 raf.close(); 76 raf = new java.io.RandomAccessFile(tmpFile, "rws"); 80 raf.close(); 82 raf = new java.io.RandomAccessFile(tmpFile, "rw"); 86 raf.close(); 90 raf = new java.io.RandomAccessFile(tmpFile, "i") 107 RandomAccessFile raf = null; local 171 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 183 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 205 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 217 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 235 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 254 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 296 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "r"); local 322 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 384 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 421 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 467 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 513 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 550 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 587 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 633 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 679 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 725 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 759 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 802 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 863 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 890 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 918 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 943 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 971 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 1007 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 1057 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 1098 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local 1167 RandomAccessFile raf = new java.io.RandomAccessFile(fileName, "rw"); local [all...] |
RandomAccessFileTest.java | 39 RandomAccessFile raf = new RandomAccessFile(file, "rw"); local 41 raf.seek(Long.MAX_VALUE); 48 RandomAccessFile raf = new RandomAccessFile(file, "rw"); local 50 raf.setLength(Long.MAX_VALUE); 57 RandomAccessFile raf = new RandomAccessFile(file, "rw"); local 58 raf.setLength(0); 61 raf.setLength(moreThanFourGig);
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/ |
FileDisk.java | 42 private final RandomAccessFile raf; field in class:FileDisk 63 this.raf = new RandomAccessFile(file, modeString); 64 this.fc = raf.getChannel(); 67 public FileDisk(RandomAccessFile raf, FileChannel fc, boolean readOnly) { 69 this.raf = raf; 74 private FileDisk(RandomAccessFile raf, boolean readOnly) { 76 this.raf = raf; 77 this.fc = raf.getChannel() 92 final RandomAccessFile raf = local [all...] |
/external/emma/core/java12/com/vladium/emma/data/ |
DataFactory.java | 332 RandomAccessFileInputStream (final RandomAccessFile raf, final int bufSize) 335 super (new UCFileInputStream (raf.getFD ()), bufSize); 372 RandomAccessFileOutputStream (final RandomAccessFile raf, final int bufSize) 375 super (new UCFileOutputStream (raf.getFD ()), bufSize); 413 RandomAccessFile raf = null; local 416 raf = new RandomAccessFile (file, "r"); 419 final long length = raf.length (); 432 raf.seek (FILE_HEADER_LENGTH); 445 if (trace2) log.trace2 (method, "[" + file + "]: position " + raf.getFilePointer ()); 448 entryLength = raf.readLong () 519 RandomAccessFile raf = null; local [all...] |
/dalvik/tools/dexdeps/src/com/android/dexdeps/ |
Main.java | 58 RandomAccessFile raf = openInputFile(fileName); local 59 DexData dexData = new DexData(raf); 71 raf.close(); 95 RandomAccessFile raf; local 97 raf = openInputFileAsZip(fileName); 98 if (raf == null) { 100 raf = new RandomAccessFile(inputFile, "r"); 103 return raf; 155 RandomAccessFile raf = new RandomAccessFile(tempFile, "rw"); local 169 raf.write(copyBuf, 0, actual) [all...] |
DexData.java | 42 public DexData(RandomAccessFile raf) { 43 mDexFile = raf;
|
/libcore/luni/src/main/java/java/util/zip/ |
ZipFile.java | 101 private RandomAccessFile raf; field in class:ZipFile 149 raf = new RandomAccessFile(filename, "r"); 179 RandomAccessFile localRaf = raf; 182 raf = null; 193 if (raf == null) { 273 RandomAccessFile localRaf = raf; 352 // No need to synchronize raf here -- we only do this when we first open the zip file. 353 long scanOffset = raf.length() - ENDHDR; 355 throw new ZipException("File too short to be a zip file: " + raf.length()); 358 raf.seek(0) [all...] |
/art/test/068-classloader/src/ |
FancyLoader.java | 142 RandomAccessFile raf; local 145 raf = new RandomAccessFile(path, "r"); 153 fileData = new byte[(int) raf.length()]; 154 raf.readFully(fileData); 159 raf.close();
|
/dalvik/tests/068-classloader/src/ |
FancyLoader.java | 142 RandomAccessFile raf; local 145 raf = new RandomAccessFile(path, "r"); 153 fileData = new byte[(int) raf.length()]; 154 raf.readFully(fileData); 159 raf.close();
|
/frameworks/base/core/java/android/os/ |
RecoverySystem.java | 154 RandomAccessFile raf = new RandomAccessFile(packageFile, "r"); local 162 raf.seek(fileLen - 6); 164 raf.readFully(footer); 174 raf.seek(fileLen - (commentSize + 22)); 175 raf.readFully(eocd); 276 raf.seek(0); 286 int read = raf.read(buffer, 0, size); 313 raf.close();
|
/frameworks/base/services/java/com/android/server/ |
LockSettingsService.java | 301 RandomAccessFile raf = new RandomAccessFile(getLockPatternFilename(userId), "r"); local 302 final byte[] stored = new byte[(int) raf.length()]; 303 int got = raf.read(stored, 0, stored.length); 304 raf.close(); 330 RandomAccessFile raf = new RandomAccessFile(getLockPasswordFilename(userId), "r"); local 331 final byte[] stored = new byte[(int) raf.length()]; 332 int got = raf.read(stored, 0, stored.length); 333 raf.close(); 378 RandomAccessFile raf = new RandomAccessFile(name, "rw"); local 381 raf.setLength(0) [all...] |
/packages/experimental/RpcPerformance/src/com/android/rpc_performance/ |
ProviderPerfActivity.java | 287 RandomAccessFile raf = null; local 293 raf = new RandomAccessFile(filename, "rw"); 294 raf.write(buf); 295 raf.close(); 296 raf = null; 299 raf = new RandomAccessFile(filename, "r"); 302 raf.seek(0); 303 raf.read(buf); 312 try { if (raf != null) raf.close(); } catch (IOException e) { 317 RandomAccessFile raf = null; local [all...] |
/external/jmonkeyengine/engine/src/desktop/com/jme3/app/state/ |
MjpegFileWriter.java | 89 RandomAccessFile raf = new RandomAccessFile(aviFile, "rw"); local 90 raf.seek(4); 91 raf.write(intBytes(swapInt((int) size - 8))); 92 raf.seek(aviMovieOffset + 4); 93 raf.write(intBytes(swapInt((int) (size - 8 - aviMovieOffset - indexlistBytes.length)))); 94 raf.close();
|
/external/guava/guava/src/com/google/common/io/ |
Files.java | 661 RandomAccessFile raf = 666 MappedByteBuffer mbb = map(raf, mode, size); 670 Closeables.close(raf, threw); 674 private static MappedByteBuffer map(RandomAccessFile raf, MapMode mode, 676 FileChannel channel = raf.getChannel();
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
KnownHosts.java | 779 RandomAccessFile raf = new RandomAccessFile(knownHosts, "rw"); local 781 long len = raf.length(); 785 raf.seek(len - 1); 786 int last = raf.read(); 789 raf.write('\n'); 793 raf.write(StringEncoder.GetBytes(new String(entry))); 794 raf.close();
|
/packages/experimental/StrictModeTest/src/com/android/strictmodetest/ |
StrictModeActivity.java | 421 RandomAccessFile raf = null; local 427 //raf = new RandomAccessFile(filename, "rw"); 428 //raf.write(buf); 429 //raf.close(); 430 //raf = null; 433 raf = new RandomAccessFile(filename, "r"); 434 raf.seek(0); 435 raf.read(buf); 439 try { if (raf != null) raf.close(); } catch (IOException e) { [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
org.eclipse.equinox.p2.publisher_1.1.2.v20100824-2220.jar | |
/libcore/luni/src/test/java/libcore/java/nio/ |
BufferTest.java | 30 RandomAccessFile raf = new RandomAccessFile(f, "rw"); local 31 raf.setLength(size); 32 FileChannel ch = raf.getChannel(); 43 RandomAccessFile raf = new RandomAccessFile("/dev/zero", "r"); local 45 MappedByteBuffer mbb = raf.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, 65536); 59 raf.close(); 68 RandomAccessFile raf = new RandomAccessFile("/dev/zero", "rw"); local 70 MappedByteBuffer mbb = raf.getChannel() 90 raf.close();
|
/libcore/benchmarks/src/benchmarks/regression/ |
ByteBufferBenchmark.java | 65 RandomAccessFile raf = new RandomAccessFile(tmpFile, "rw"); local 66 raf.setLength(8192*8); 67 FileChannel fc = raf.getChannel();
|
/external/emma/core/java12/com/vladium/emma/instr/ |
InstrProcessorST.java | 806 RandomAccessFile raf = null; local [all...] |
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/org.eclipse.pde.build_3.6.1.R36x_v20100823/ |
pdebuild.jar | |
/prebuilts/devtools/tools/lib/ |
jobb.jar | |