HomeSort by relevance Sort by last modified time
    Searched defs:read (Results 701 - 725 of 1637) sorted by null

<<21222324252627282930>>

  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/util/
FileDisk.java 52 * @param readOnly if the file should be opened in read-only mode, which
53 * will result in a read-only {@code FileDisk} instance
110 public void read(long devOffset, ByteBuffer dest) throws IOException { method in class:FileDisk
118 final int read = fc.read(dest, devOffset); local
119 if (read < 0) throw new IOException();
120 toRead -= read;
121 devOffset += read;
RamDisk.java 50 * @param in the stream to read the disk image from
52 * @throws IOException on read or decompression error
60 int read = zis.read(buffer); local
63 while (read >= 0) {
64 total += read;
65 bos.write(buffer, 0, read);
66 read = zis.read(buffer);
70 "read only " + total + " bytes"); //NOI18
116 public void read(long devOffset, ByteBuffer dest) throws IOException { method in class:RamDisk
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
WriteExternalStorageTest.java 91 // Write a value and make sure we can read it back
203 * secondary storage devices, but it becomes read-only access above them.
264 * Secondary external storage mount points must always be read-only, per
306 final File read = buildGiftForPackage(getContext(), PACKAGE_READ); local
307 read.getParentFile().mkdirs();
308 read.createNewFile();
309 assertFileReadWriteAccess(read);
311 writeInt(read, 101);
312 assertEquals(101, readInt(read));
  /external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/
InflaterInputStreamTest.java 71 while ((result = inflatIP.read()) != -1) {
90 inflatIP.read(byteArray, 0, 5);// only suppose to read in 5 bytes
107 while ((result = inflatIP.read()) != -1) {
167 * @tests java.util.zip.InflaterInputStream#read()
180 while ((result = inflatIP.read()) != -1) {
194 * @tests java.util.zip.InflaterInputStream#read(byte [], int, int)
204 result = inflatIP.read(null, 0, 1);
210 assertEquals(0, inflatIP.read(b, 0, 0));
213 result = inflatIP.read(b, 5, 2); //offset highe
    [all...]
DeflaterInputStreamTest.java 42 assertEquals(120, dis.read());
44 assertEquals(22, dis.read(buf, 0, 1024));
46 assertEquals(-1, dis.read());
72 dis.read(buf, 0, 1024);
105 * @tests DeflaterInputStream#read()
110 assertEquals(120, dis.read());
112 assertEquals(156, dis.read());
114 assertEquals(243, dis.read());
118 dis.read();
126 * @tests DeflaterInputStream#read(byte[],int,int
    [all...]
  /external/javassist/src/main/javassist/bytecode/
MethodInfo.java 86 read(in);
111 read(src, methodname, classnameMap); method
499 private void read(MethodInfo src, String methodname, Map classnames) method in class:MethodInfo
520 private void read(DataInputStream in) throws IOException { method in class:MethodInfo
527 attribute.add(AttributeInfo.read(constPool, in));
  /libcore/luni/src/test/java/libcore/java/io/
OldInputStreamReaderTest.java 74 reader.read(new char[3], -1, 0);
80 reader.read(new char[3], 0, -1);
86 reader.read(new char[3], 4, 0);
92 reader.read(new char[3], 3, 1);
98 reader.read(new char[3], 1, 3);
104 reader.read(new char[3], 0, 4);
111 reader.read(null, 0, 0);
117 assertEquals(0, reader.read(new char[3], 3, 0));
119 assertEquals(0, reader.read(chars, 0, 0));
121 assertEquals(3, reader.read(chars, 0, 3))
    [all...]
  /external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/jar/
JarFileTest.java 224 int nextByte = is.read();
367 // try to read class file header
368 is.read(b, 0, 1024);
370 assertEquals("Invalid bytes were read", (byte) 0xCA, b[0]);
371 assertEquals("Invalid bytes were read", (byte) 0xFE, b[1]);
372 assertEquals("Invalid bytes were read", (byte) 0xBA, b[2]);
373 assertEquals("Invalid bytes were read", (byte) 0xBE, b[3]);
388 in.read();
396 in.read();
398 assertEquals(-1, in.read());
422 int read = in.read(buffer, 0, Math.min(numBytes, 1024)); local
    [all...]
  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/
RandomAccessFileTest.java 57 assertEquals("Incorrect int read/written", 20, raf.read());
63 assertEquals("Incorrect int read/written", 20, raf.read());
69 assertEquals("Incorrect int read/written", 20, raf.read());
200 * @tests java.io.RandomAccessFile#read()
203 // Test for method int java.io.RandomAccessFile.read()
209 assertEquals("Incorrect bytes returned from read",
210 fileString.charAt(0), raf.read());
912 int read = raf.read(rbuf,0,0); local
927 int read = raf.read(rbuf); local
    [all...]
OutputStreamWriterTest.java 419 int b = in.read();
442 int outCount = reader.read(outChars);
476 + MINIMAL_CHARSETS[i], expected, isr.read());
523 int expected = 0, read = 0, j = 0; local
525 if (j == read) {
526 read = isr.read(largeBuffer);
627 isr.read(buf, 0, buf.length);
669 isr.read(buf, 0, buf.length);
681 int c = isr.read();
    [all...]
PipedInputStreamTest.java 78 * @test java.io.PipedInputStream#read()
89 pis.read();
122 // for a read before returning
171 * @tests java.io.PipedInputStream#read()
186 assertEquals("read returned incorrect byte", pw.bytes[0], (byte) pis
187 .read());
191 * @tests java.io.PipedInputStream#read(byte[], int, int)
207 pis.read(buf, 0, 400);
209 assertEquals("read returned incorrect byte[]", pw.bytes[i], buf[i]);
214 * @tests java.io.PipedInputStream#read(byte[], int, int
    [all...]
ByteArrayInputStreamTest.java 85 is.read();
87 is.read(); // Should be able to read from a closed stream
98 is.read(buf1, 0, buf1.length);
100 is.read(buf2, 0, buf2.length);
114 * @tests ByteArrayInputStream#read()
118 int c = isr.read();
120 assertTrue("read returned incorrect char", c == fileString.charAt(0));
124 * @tests ByteArrayInputStream#read(byte[], int, int)
130 is.read(buf1, 0, buf1.length)
    [all...]
CharArrayReaderTest.java 44 int c = cr.read();
56 cr.read();
57 fail("Failed to throw exception on read from closed stream");
73 cr.read();
75 assertEquals("Failed to mark correct position", 'W', cr.read());
87 * @tests java.io.CharArrayReader#read()
91 assertEquals("Read returned incorrect char", 'H', cr.read());
93 assertTrue("Incorrect double byte char", cr.read() == '\u8765');
97 * @tests java.io.CharArrayReader#read(char[], int, int
    [all...]
DataOutputStreamTest.java 65 dis.read(rbuf, 0, 150);
78 dis.read(rbuf, 0, 150);
91 int c = dis.read();
128 dis.read(rbuf, 0, fileString.length());
PushbackReaderTest.java 42 pbr.read(buf, 0, 5);
66 pbr.read();
95 * @tests java.io.PushbackReader#read()
98 // Test for method int java.io.PushbackReader.read()
101 pbr.read();
102 c = (char) pbr.read();
103 assertTrue("Failed to read char: " + c, c == pbString.charAt(1));
106 assertTrue("Wrong double byte character", reader.read() == '\u8765');
108 fail("IOException during read test : " + e.getMessage());
113 * @tests java.io.PushbackReader#read(char[], int, int
    [all...]
  /cts/tests/src/android/opengl/cts/
CompressedTextureLoader.java 143 is.read(headerData);
145 throw new RuntimeException("Unable to read data");
212 private static ByteBuffer read(InputStream is, int dataSize) { method in class:CompressedTextureLoader
219 is.read(ioBuffer, 0, chunkSize);
221 throw new RuntimeException("Unable to read data");
254 ByteBuffer dataBuffer = read(is, dataSize);
350 is.read(headerData);
352 throw new RuntimeException("Unable to read data");
432 ByteBuffer dataBuffer = read(is, dataSize);
  /tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
BootSector.java 74 public static BootSector read(BlockDevice device) throws IOException { method in class:BootSector
77 device.read(0, bb);
117 result.read();
FatLfnDirectory.java 108 final ClusterChainDirectory storage = read(entry, fat);
421 private static ClusterChainDirectory read(FatDirectoryEntry entry, Fat fat) method
434 result.read();
  /bionic/libc/kernel/common/linux/nfsd/
xdr.h 141 struct nfsd_readargs read; member in union:nfsd_xdrstore
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/
TestResultsBackupHelper.java 97 data.read(rawBytes, 0, data.size());
  /cts/tests/tests/media/src/android/media/cts/
AudioRecordTest.java 149 mAudioRecord.read(byteData, 0, BUFFER_SIZE);
164 mAudioRecord.read(shortData, 0, BUFFER_SIZE);
179 mAudioRecord.read(byteBuffer, BUFFER_SIZE);
202 mAudioRecord.read(byteData, 0, BUFFER_SIZE);
  /cts/tests/tests/os/src/android/os/cts/
ParcelFileDescriptorPeer.java 124 public int read() throws RemoteException { method in class:ParcelFileDescriptorPeer
126 return new FileInputStream(mLocal.getFileDescriptor()).read();
  /development/ndk/platforms/android-3/include/linux/nfsd/
xdr.h 130 struct nfsd_readargs read; member in union:nfsd_xdrstore
  /development/ndk/sources/android/libportable/arch-mips/
filefd.c 36 * which make it possible to read kernel data structures via the
37 * read system call. See man pages for:
433 int WRAP(read)(int fd, void *buf, size_t count) function
452 rv = REAL(read)(fd, buf, count);
455 /* The read() of a signalfd() file descriptor needs to be mapped. */
460 rv = REAL(read)(fd, buf, count);
466 rv = REAL(read)(fd, buf, count);
  /external/apache-http/src/org/apache/http/impl/io/
AbstractSessionInputBuffer.java 103 l = this.instream.read(this.buffer, off, len);
117 public int read() throws IOException { method in class:AbstractSessionInputBuffer
128 public int read(final byte[] b, int off, int len) throws IOException { method in class:AbstractSessionInputBuffer
148 public int read(final byte[] b) throws IOException { method in class:AbstractSessionInputBuffer
152 return read(b, 0, b.length);
177 // the entire line is preset in the read buffer

Completed in 472 milliseconds

<<21222324252627282930>>