/libcore/support/src/test/java/tests/security/ |
MessageDigestTest.java | 90 int read = 0; local 93 while ((read = checkDigestStream.read()) != -1) { 94 checkDigest[index++] = (byte)read; 98 fail("failed to read digest golden data: " + digestAlgorithmName); 105 int read = 0; local 107 while ((read = sourceData.read(buf)) != -1) { 108 digest.update(buf, 0, read); 112 fail("failed to read digest data") [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/ |
MimeBoundaryInputStream.java | 28 * After the stream ends (i.e. read() returns -1) {@link #hasMoreParts()}
64 * before any bytes have been read.
66 int b = read();
109 while (read() != -1) {
114 * @see java.io.InputStream#read()
116 public int read() throws IOException {
method in class:MimeBoundaryInputStream 128 int b1 = s.read();
129 int b2 = s.read();
150 int b = s.read();
165 int prev = s.read();
[all...] |
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/ |
chunk.py | 1 """Simple class to read IFF chunks. 22 the start of each chunk and read from the instance until it reaches 35 data = chunk.read(nbytes) 41 read, close, seek, tell, isatty. 61 self.chunkname = file.read(4) 65 self.chunksize = struct.unpack(strflag+'L', file.read(4))[0] 120 def read(self, size=-1): member in class:Chunk 121 """Read at most size bytes from the chunk. 122 If size is omitted or negative, read until the end 134 data = self.file.read(size [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/ |
chunk.py | 1 """Simple class to read IFF chunks. 22 the start of each chunk and read from the instance until it reaches 35 data = chunk.read(nbytes) 41 read, close, seek, tell, isatty. 61 self.chunkname = file.read(4) 65 self.chunksize = struct.unpack(strflag+'L', file.read(4))[0] 120 def read(self, size=-1): member in class:Chunk 121 """Read at most size bytes from the chunk. 122 If size is omitted or negative, read until the end 134 data = self.file.read(size [all...] |
/system/extras/tests/ext4/ |
set_ext4_err_bit.c | 31 fprintf(stderr, "%s: Cannot lseek to superblock to read\n", me); 35 if (read(fd, sb, SB_SIZE) != SB_SIZE) { 36 fprintf(stderr, "%s: Cannot read superblock\n", me);
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/ |
ReadOnlyException.java | 22 * This exception is thrown when an attempt is made to write to a read-only 25 * about it's read-only state using it's {@code isReadOnly()} method. 40 super("read-only");
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
FatFileSystem.java | 59 * @param readOnly if this FS should be read-lonly 61 * @throws IOException on read error 69 this.bs = BootSector.read(device); 76 this.fat = Fat.read(bs, 0); 80 final Fat tmpFat = Fat.read(bs, i); 92 this.fsiSector = FsInfoSector.read(f32bs); 101 Fat16RootDirectory.read((Fat16BootSector) bs,readOnly); 111 * and returns a fresh {@code FatFileSystem} instance to read or modify 115 * @param readOnly if the {@code FatFileSystem} should be in read-only mode 117 * @throws IOException on read error or if the file system structure coul 120 public static FatFileSystem read(BlockDevice device, boolean readOnly) method in class:FatFileSystem [all...] |
/external/apache-http/src/org/apache/http/impl/io/ |
ChunkedInputStream.java | 50 * transfer coding. After the stream is read to the end, it provides access 54 * gets called. Instead, it will read until the "end" of its chunking on 56 * requests, while not requiring the client to remember to read the entire 110 * <p> Trailer headers are read automcatically at the end of the stream and 117 public int read() throws IOException { method in class:ChunkedInputStream 119 throw new IOException("Attempted read from closed stream."); 131 return in.read(); 135 * Read some bytes from the stream. 142 * @see java.io.InputStream#read(byte[], int, int) 145 public int read (byte[] b, int off, int len) throws IOException method in class:ChunkedInputStream 174 public int read (byte[] b) throws IOException { method in class:ChunkedInputStream [all...] |
/external/chromium_org/media/filters/ |
decrypting_demuxer_stream_unittest.cc | 137 demuxer_stream_->Read(base::Bind(&DecryptingDemuxerStreamTest::BufferReady, 145 EXPECT_CALL(*input_audio_stream_, Read(_)) 153 // Make the read callback pending by saving and not firing it. 156 EXPECT_CALL(*input_audio_stream_, Read(_)) 158 demuxer_stream_->Read(base::Bind(&DecryptingDemuxerStreamTest::BufferReady, 161 // Make sure the Read() triggers a Read() on the input demuxer stream. 168 EXPECT_CALL(*input_audio_stream_, Read(_)) 173 demuxer_stream_->Read(base::Bind(&DecryptingDemuxerStreamTest::BufferReady, 176 // Make sure Read() triggers a Decrypt() on the decryptor [all...] |
blocking_url_protocol.cc | 30 int BlockingUrlProtocol::Read(int size, uint8* data) { 31 // Read errors are unrecoverable. 36 // routines. Instead return 0 for any read at or past EOF. 41 // Blocking read from data source until either: 44 data_source_->Read(read_position_, size, data, base::Bind(
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_memoryio.py | 26 self.assertEqual(buf[:1], bytesIo.read(1)) 27 self.assertEqual(buf[1:5], bytesIo.read(4)) 28 self.assertEqual(buf[5:], bytesIo.read(900)) 29 self.assertEqual(self.EOF, bytesIo.read()) 35 self.assertEqual(buf, bytesIo.read()) 36 self.assertEqual(self.EOF, bytesIo.read()) 42 bytesIo.read(5) 44 self.assertEqual(buf, bytesIo.read()) 47 self.assertEqual(buf[3:], bytesIo.read()) 155 self.assertEqual(memio.read(0), self.EOF [all...] |
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_memoryio.py | 26 self.assertEqual(buf[:1], bytesIo.read(1)) 27 self.assertEqual(buf[1:5], bytesIo.read(4)) 28 self.assertEqual(buf[5:], bytesIo.read(900)) 29 self.assertEqual(self.EOF, bytesIo.read()) 35 self.assertEqual(buf, bytesIo.read()) 36 self.assertEqual(self.EOF, bytesIo.read()) 42 bytesIo.read(5) 44 self.assertEqual(buf, bytesIo.read()) 47 self.assertEqual(buf[3:], bytesIo.read()) 155 self.assertEqual(memio.read(0), self.EOF [all...] |
/external/chromium_org/chrome/browser/chromeos/drive/ |
drive_file_stream_reader.h | 42 // Called from DriveFileStreamReader::Read method. 43 virtual int Read(net::IOBuffer* buffer, int buffer_length, 53 // The read operation implementation for the locally cached files. 58 // |length| is the number of bytes to be read. It must be equal or 65 virtual int Read(net::IOBuffer* buffer, int buffer_length, 73 // Callback for the LocalFileReader::Read. 77 // The number of remaining bytes to be read. 86 // The read operation implementation for the file which is being downloaded. 97 virtual int Read(net::IOBuffer* buffer, int buffer_length, 103 // The data received from the server, but not yet read [all...] |
/external/javassist/sample/preproc/ |
Compiler.java | 91 while ((c = reader.read()) != -1) { 103 while ((c = input.read()) != -1) 112 c = reader.read(); 117 while ((c = reader.read()) != -1) { 132 word[i] = reader.read(); 145 c = reader.read(); 158 reader.read(); // skip 'y' 192 return reader.read(); 205 c = reader.read(); 216 c = reader.read(); 310 public int read() throws IOException { method in class:CommentSkipper [all...] |
/libcore/luni/src/main/java/java/io/ |
LineNumberInputStream.java | 27 * When using {@code read}, line terminator sequences are always translated into 45 * {@code in}. Line numbers are counted for all data read from this stream. 81 * indicates how many bytes can be read before the mark is invalidated. 90 * the number of bytes that can be read from this stream before 112 * @return the byte read or -1 if the end of the filtered stream has been 119 public int read() throws IOException { method in class:LineNumberInputStream 122 currentChar = in.read(); 129 lastChar = in.read(); 143 * Returns the number of bytes actually read or -1 if no bytes have been 144 * read and the end of this stream has been reached 159 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:LineNumberInputStream [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldLineNumberReaderTest.java | 53 * java.io.LineNumberReader#read() 58 int c = lnr.read(); 59 assertEquals("Test 1: Read returned incorrect character;", 61 lnr.read(); 62 assertEquals("Test 2: Read failed to increase the line number;", 67 lnr.read(); 75 * java.io.LineNumberReader#read(char[], int, int) 80 lnr.read(c, 0, 4); 81 assertTrue("Test 1: Read returned incorrect characters.", "0\n1\n" 83 assertEquals("Test 2: Read failed to inc lineNumber" [all...] |
/art/runtime/base/unix_file/ |
null_file_test.cc | 27 TEST_F(NullFileTest, Read) { 30 // You can't read a negative number of bytes... 31 ASSERT_EQ(-EINVAL, f.Read(buf, 0, -1)); 33 ASSERT_EQ(0, f.Read(buf, 128, 0)); 34 ASSERT_EQ(0, f.Read(buf, 128, 128));
|
/device/samsung/manta/ |
releasetools.py | 22 bootloader_img = info.input_zip.read("RADIO/bootloader.img") 30 # target_radio_img = info.target_zip.read("RADIO/radio.img") 31 # source_radio_img = info.source_zip.read("RADIO/radio.img") 47 target_bootloader_img = info.target_zip.read("RADIO/bootloader.img") 49 source_bootloader_img = info.source_zip.read("RADIO/bootloader.img")
|
/external/apache-harmony/archive/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
GZIPInputStreamTest.java | 121 * @tests java.util.zip.GZIPInputStream#read(byte[], int, int) 139 result += inGZIP.read(outBuf, result, outBuf.length - result); 152 inGZIP.read(outBuf, 100, 1); 178 while ((result = gin2.read(test)) != -1) { 181 assertEquals("Should return -1", -1, gin2.read()); 187 while ((result = gin2.read(new byte[200])) != -1) { 190 assertEquals("Should return -1", -1, gin2.read()); 196 while ((result = gin2.read(new byte[200])) != -1) { 199 assertEquals("Should return -1", -1, gin2.read()); 207 while (gin2.read(test) != -1) [all...] |
/external/chromium_org/chromeos/process_proxy/ |
process_output_watcher.cc | 93 // We don't want to necessary read pipe until it is empty so we don't starve 94 // other streams in case data is written faster than we read it. If there is 95 // more than read_buffer_size_ bytes in pipe, it will be read in the next 97 ssize_t bytes_read = HANDLE_EINTR(read(*fd, read_buffer_, read_buffer_size_)); 99 DPLOG(WARNING) << "read from buffer failed";
|
/external/chromium_org/content/common/ |
content_param_traits.h | 35 static bool Read(const Message* m, PickleIterator* iter, param_type* p); 43 static bool Read(const Message* m, PickleIterator* iter, param_type* r); 53 static bool Read(const Message* m, PickleIterator* iter, param_type* r) { 66 // Note: upon read, the event has the lifetime of the message. 67 static bool Read(const Message* m, PickleIterator* iter, param_type* r);
|
/external/chromium_org/media/base/simd/ |
scale_yuv_to_rgb_sse2_x64.asm | 52 ; Read UV pixels. 60 ; Read first Y pixel. 67 ; Read next Y pixel. 87 ; Read U V components. 96 ; Read one Y component.
|
/external/chromium_org/native_client_sdk/src/build_tools/sdk_tools/ |
download.py | 29 # An inner function can only read nonlocal variables, not assign them. We can 48 '''Read from from-stream and generate sha1 and size info. 51 from_stream: An input stream that supports read. 57 (== number of bytes read do far) during the download, and 74 data = from_stream.read(32768)
|
/external/chromium_org/ppapi/cpp/ |
file_io.h | 98 /// of bytes to read. This function might perform a partial read, meaning 123 /// <strong>Caveat:</strong> This Read() is potentially unsafe if you're using 130 /// asynchronous read completes, potentially causing a crash. 132 /// See the other version of Read() which avoids this problem by writing into 137 /// @param[in] buffer The buffer to hold the specified number of bytes read. 138 /// @param[in] bytes_to_read The number of bytes to read from 141 /// completion of Read(). 143 /// @return An The number of bytes read an error code from 145 /// reached. It is valid to call Read() multiple times with a completio [all...] |
/external/chromium_org/remoting/protocol/ |
message_reader.cc | 46 // Don't try to read again if there is another read pending or we 50 int result = socket_->Read( 80 LOG(ERROR) << "Read() returned error " << result; 117 // Start next read if necessary.
|