/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
BufferedInputStreamTest.java | 50 str.read(); 63 str.read(); 73 // Ensure buffer gets filled by evaluating one read 74 is.read(); 78 // Read the remaining buffered characters, no IOException should 81 is.read(); 83 // is.read should now throw an exception because it will have to 85 is.read(); 86 fail("Exception should have been triggered by read()"); 150 public int read() { [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/util/ |
LittleEndien.java | 37 * <code>LittleEndien</code> is a class to read littleendien stored data 39 * assume they come from a LittleEndien input stream. Currently used to read .ms3d and .3ds files. 50 * @param in The input stream to read from. 57 public int read() throws IOException { method in class:LittleEndien 58 return in.read(); 62 public int read(byte[] buf) throws IOException { method in class:LittleEndien 63 return in.read(buf); 67 public int read(byte[] buf, int off, int len) throws IOException { method in class:LittleEndien 68 return in.read(buf, off, len); 72 return (in.read() & 0xff) | ((in.read() & 0xff) << 8) [all...] |
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
HprofBinaryToAscii.java | 45 * Reads single file from arguments and attempts to read it as 101 * Read and return an HprofData from a vanilla binary hprof file. 107 return read(inputStream); 114 * Read a file looking for text header terminated by two newlines, 115 * then proceed to read binary hprof data. 122 while ((ch = inputStream.read()) != -1) { 123 if (ch == '\n' && inputStream.read() == '\n') { 124 return read(inputStream); 134 * Read binary hprof data from the provided input stream and 137 private static HprofData read(InputStream inputStream) throws IOException method in class:HprofBinaryToAscii [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldReaderTest.java | 37 assertEquals("Wrong return value!", 4, simple.read(buf)); 39 assertEquals("Wrong stuff read!", "Bla ", String.valueOf(buf)); 40 simple.read(buf); 42 assertEquals("Wrong stuff read!", "bla,", String.valueOf(buf)); 45 simple.read(buf); 55 assertEquals("Wrong return value!", 4, simple.read(buf)); 56 assertEquals("Wrong stuff read!", "Bla ", new String(buf)); 57 simple.read(buf); 58 assertEquals("Wrong stuff read!", "bla,", new String(buf)); 61 simple.read(buf) 116 @Override public int read(char[] buf, int offset, int count) { method in class:OldReaderTest.MockReader [all...] |
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
ExternalStorageTest.java | 73 * Verify we can read only our gifts. 80 final File read = buildGiftForPackage(getContext(), PACKAGE_READ); local 81 assertFileNoAccess(read);
|
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ |
ReadExternalStorageTest.java | 47 * Verify that above our package directories we always have read only 76 * Verify we can read all gifts. 83 final File read = buildGiftForPackage(getContext(), PACKAGE_READ); local 84 assertFileReadWriteAccess(read); 85 assertEquals(101, readInt(read));
|
/cts/tests/tests/os/src/android/os/cts/ |
ParcelFileDescriptor_AutoCloseInputStreamTest.java | 30 assertEquals(0, in.read()); 35 in.read();
|
/development/tools/idegen/src/ |
Files.java | 30 int read; local 33 while ((read = in.read(buffer)) > -1) { 34 builder.append(buffer, 0, read);
|
/device/generic/goldfish/opengl/shared/OpenglCodecCommon/ |
SocketStream.cpp | 134 const unsigned char *SocketStream::read( void *buf, size_t *inout_len) function in class:SocketStream
|
/external/apache-harmony/crypto/src/test/api/java/org/apache/harmony/crypto/tests/javax/crypto/ |
CipherInputStreamTest.java | 33 * @tests javax.crypto.CipherInputStream#read(byte[] b, int off, int len) 39 stream.read(new byte[1], 1, 0);
|
/external/apache-http/src/org/apache/http/impl/io/ |
IdentityInputStream.java | 74 public int read() throws IOException { method in class:IdentityInputStream 78 return this.in.read(); 82 public int read(final byte[] b, int off, int len) throws IOException { method in class:IdentityInputStream 86 return this.in.read(b, off, len);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
ConstructedOctetStream.java | 20 public int read(byte[] b, int off, int len) throws IOException method in class:ConstructedOctetStream 44 int numRead = _currentStream.read(b, off + totalRead, len - totalRead); 70 public int read() method in class:ConstructedOctetStream 93 int b = _currentStream.read();
|
DefiniteLengthInputStream.java | 42 public int read() method in class:DefiniteLengthInputStream 50 int b = _in.read(); 65 public int read(byte[] buf, int off, int len) method in class:DefiniteLengthInputStream 74 int numRead = _in.read(buf, off, toRead);
|
IndefiniteLengthInputStream.java | 22 _b1 = in.read(); 23 _b2 = in.read(); 51 public int read(byte[] b, int off, int len) method in class:IndefiniteLengthInputStream 57 return super.read(b, off, len); 65 int numRead = _in.read(b, off + 2, len - 2); 76 _b1 = _in.read(); 77 _b2 = _in.read(); 88 public int read() method in class:IndefiniteLengthInputStream 96 int b = _in.read();
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/io/ |
DigestInputStream.java | 22 public int read() method in class:DigestInputStream 25 int b = in.read(); 34 public int read( method in class:DigestInputStream 40 int n = in.read(b, off, len);
|
MacInputStream.java | 22 public int read() method in class:MacInputStream 25 int b = in.read(); 34 public int read( method in class:MacInputStream 40 int n = in.read(b, off, len);
|
/external/chromium_org/chrome/browser/media/ |
webrtc_log_uploader_unittest.cc | 26 int read = base::ReadFileToString(test_list_path_, &contents); local 27 EXPECT_GT(read, 0); 28 if (read <= 0)
|
/external/chromium_org/chrome/common/ |
partial_circular_buffer.cc | 64 uint32 PartialCircularBuffer::Read(void* buffer, uint32 buffer_size) { 70 uint32 read = 0; local 72 // Read from beginning part. 80 read += to_read; 83 // We've read all the beginning part, set the position to the middle part. 88 if (read >= buffer_size) { 89 DCHECK_EQ(read, buffer_size); 90 return read; 92 if (read >= to_eow) { 93 DCHECK_EQ(read, to_eow) [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
TempFile.js | 133 read: function(callback) 152 WebInspector.log("Failed to read from temp file: " + error.message,
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/common/system/ |
zip_mock.py | 46 def read(self, filename): member in class:MockZip
|
zipfileset.py | 62 def read(self, filename): member in class:ZipFileSet 64 return self._zip_file.read(filename)
|
/external/chromium_org/third_party/libpng/ |
pngrio.c | 26 /* Read the data from whatever input you are using. The default routine 30 * to read more then 64K on a 16 bit machine. 40 png_error(png_ptr, "Call to NULL read function"); 69 png_error(png_ptr, "Read Error"); 105 png_size_t read, remaining, err; local 110 read = MIN(NEAR_BUF_SIZE, remaining); 112 if ( !ReadFile((HANDLE)(io_ptr), buf, read, &err, NULL) ) 115 err = fread(buf, (png_size_t)1, read, io_ptr); 117 png_memcpy(data, buf, read); /* copy far buffer to near buffer */ 118 if (err != read) [all...] |
/external/chromium_org/third_party/skia/src/core/ |
SkBuffer.cpp | 37 bool SkRBufferWithSizeCheck::read(void* buffer, size_t size) { function in class:SkRBufferWithSizeCheck
|
SkFlate.cpp | 82 size_t read = src->read(&inputBuffer, kBufferSize); local 83 if (read == 0) 86 flateData.avail_in = read;
|
/external/chromium_org/third_party/tlslite/tlslite/ |
FileObject.py | 84 def read(self, size=-1): member in class:FileObject 87 # Read until EOF 103 # Read until size bytes or EOF seen, whichever comes first 130 # Read until \n or EOF, whichever comes first 164 # Read until size bytes or \n or EOF seen, whichever comes first
|