/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...] |
/dalvik/dx/src/com/android/dx/io/instructions/ |
ShortArrayCodeInput.java | 26 /** source array to read from */ 46 public int read() throws EOFException { method in class:ShortArrayCodeInput 58 int short0 = read(); 59 int short1 = read(); 66 long short0 = read(); 67 long short1 = read(); 68 long short2 = read(); 69 long short3 = read();
|
/external/dexmaker/src/dx/java/com/android/dx/io/instructions/ |
ShortArrayCodeInput.java | 26 /** source array to read from */ 46 public int read() throws EOFException { method in class:ShortArrayCodeInput 58 int short0 = read(); 59 int short1 = read(); 66 long short0 = read(); 67 long short1 = read(); 68 long short2 = read(); 69 long short3 = read();
|
/libcore/luni/src/main/java/java/sql/ |
DataTruncation.java | 36 private boolean read = false; field in class:DataTruncation 62 * @param read 63 * {@code true} if the truncation occurred on a read operation, 70 public DataTruncation(int index, boolean parameter, boolean read, 75 this.read = read; 91 * @param read 92 * true if the truncation occurred on a read operation, false 103 public DataTruncation(int index, boolean parameter, boolean read, 105 super(THE_REASON, read ? THE_SQLSTATE_READ : THE_SQLSTATE_WRITE [all...] |
/development/tools/btsnooz/ |
btsnooz.cpp | 36 int read = 0; local 39 read = readLog(std::cin, buffer); 44 read = readLog(ff, buffer); 48 if (read == 0) { 53 std::cerr << std::setw(8) << read << " bytes of base64 data read\n"; 55 read = base64Decode(buffer); 56 if (read <= 0) { 61 std::cerr << std::setw(8) << read << " bytes of compressed data decoded\n"; 64 read = inflate(buffer, uncompressed) [all...] |
/frameworks/base/obex/javax/obex/ |
ObexPacket.java | 35 * @param is the input stream to read from. 36 * @return the OBEX packet read. 37 * @throws IOException if an IO exception occurs during read. 39 public static ObexPacket read(InputStream is) throws IOException { method in class:ObexPacket 40 int headerId = is.read(); 41 return read(headerId, is); 45 * Read the remainder of an OBEX packet, with a specified headerId. 46 * @param headerId the headerId already read from the stream. 47 * @param is the stream to read from, assuming 1 byte have already been read 51 public static ObexPacket read(int headerId, InputStream is) throws IOException { method in class:ObexPacket [all...] |
/packages/apps/Email/provider_src/com/android/email/ |
PeekableInputStream.java | 25 * and a subsequent read will still return the peeked byte. 37 public int read() throws IOException { method in class:PeekableInputStream 39 return mIn.read(); 48 mPeekedByte = read(); 55 public int read(byte[] b, int offset, int length) throws IOException { method in class:PeekableInputStream 57 return mIn.read(b, offset, length); 61 int r = mIn.read(b, offset + 1, length - 1); 71 public int read(byte[] b) throws IOException { method in class:PeekableInputStream 72 return read(b, 0, b.length);
|
FixedLengthInputStream.java | 23 * A filtering InputStream that stops allowing reads after the given length has been read. This 24 * is used to allow a client to read directly from an underlying protocol stream without reading 25 * past where the protocol handler intended the client to read. 43 public int read() throws IOException { method in class:FixedLengthInputStream 46 return mIn.read(); 53 public int read(byte[] b, int offset, int length) throws IOException { method in class:FixedLengthInputStream 55 int d = mIn.read(b, offset, Math.min(mLength - mCount, length)); 68 public int read(byte[] b) throws IOException { method in class:FixedLengthInputStream 69 return read(b, 0, b.length);
|
/packages/services/Telephony/src/com/android/phone/common/mail/ |
PeekableInputStream.java | 25 * and a subsequent read will still return the peeked byte. 37 public int read() throws IOException { method in class:PeekableInputStream 39 return mIn.read(); 48 mPeekedByte = read(); 55 public int read(byte[] b, int offset, int length) throws IOException { method in class:PeekableInputStream 57 return mIn.read(b, offset, length); 61 int r = mIn.read(b, offset + 1, length - 1); 71 public int read(byte[] b) throws IOException { method in class:PeekableInputStream 72 return read(b, 0, b.length);
|
/external/guava/guava-gwt/test-super/com/google/common/testing/super/com/google/common/testing/ |
FakeTickerTest.java | 36 assertEquals(0, ticker.read()); 38 assertEquals(10, ticker.read()); 40 assertEquals(1000010L, ticker.read()); 50 assertEquals(0, ticker.read()); 51 assertEquals(10, ticker.read()); 52 assertEquals(20, ticker.read()); 57 assertEquals(0, ticker.read()); 58 assertEquals(1000000, ticker.read()); 59 assertEquals(2000000, ticker.read()); 64 assertEquals(0, ticker.read()); [all...] |
/external/proguard/src/proguard/io/ |
DataEntryReader.java | 28 * determines what to do with the read data, if anything. 37 public void read(DataEntry dataEntry) throws IOException; method in interface:DataEntryReader
|
/libcore/luni/src/main/java/java/io/ |
ObjectInput.java | 28 * Indicates the number of bytes of primitive data that can be read without 51 * @return the byte read or -1 if the end of this stream has been reached. 55 public int read() throws IOException; method in interface:ObjectInput 59 * while waiting for input. Returns the number of bytes read, 65 public int read(byte[] buffer) throws IOException; method in interface:ObjectInput 70 * waiting for input. Returns the number of bytes read or -1 if the end of this stream has been 76 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException; method in interface:ObjectInput 81 * @return the object read.
|
Reader.java | 29 * needs to be subclassed, and at least the {@link #read(char[], int, int)} and 80 * indicates how many characters can be read before the mark is invalidated. 88 * the number of characters that can be read before the mark is 117 * @return the character read or -1 if the end of the reader has been 122 public int read() throws IOException { method in class:Reader 125 if (read(charArray, 0, 1) != -1) { 135 * actually read or -1 if the end of the reader has been reached. 140 public int read(char[] buffer) throws IOException { method in class:Reader 141 return read(buffer, 0, buffer.length); 147 * of characters actually read or -1 if the end of the reader has bee 153 public abstract int read(char[] buffer, int offset, int count) throws IOException; method in class:Reader [all...] |
LineNumberReader.java | 23 * time {@code '\r'}, {@code '\n'} or {@code "\r\n"} is read. The class has an 75 * indicates how many characters can be read before the mark is invalidated. 82 * the number of characters that can be read from this stream 108 * @return the character read or -1 if the end of the source reader has been 115 public int read() throws IOException { method in class:LineNumberReader 117 int ch = super.read(); 119 ch = super.read(); 137 * Returns the number of characters actually read or -1 if no characters 138 * have been read and the end of this reader has been reached. 148 public int read(char[] buffer, int offset, int count) throws IOException method in class:LineNumberReader 150 int read = super.read(buffer, offset, count); local [all...] |
/external/clang/test/OpenMP/ |
atomic_read_codegen.c | 80 #pragma omp atomic read 84 #pragma omp atomic read 88 #pragma omp atomic read 92 #pragma omp atomic read 96 #pragma omp atomic read 100 #pragma omp atomic read 104 #pragma omp atomic read 108 #pragma omp atomic read 112 #pragma omp atomic read 116 #pragma omp atomic read [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/util/ |
ExceptionCatchingInputStream.java | 10 * An {@link java.io.InputStream} that catches {@link java.io.IOException}s during read and skip calls and stores them 71 public int read(byte[] buffer) throws IOException { method in class:ExceptionCatchingInputStream 72 int read; local 74 read = wrapped.read(buffer); 77 read = -1; 79 return read; 83 public int read(byte[] buffer, int byteOffset, int byteCount) throws IOException { method in class:ExceptionCatchingInputStream 84 int read; local 86 read = wrapped.read(buffer, byteOffset, byteCount) 112 public int read() throws IOException { method in class:ExceptionCatchingInputStream [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldSequenceInputStreamTest.java | 56 si.read(); 57 assertEquals("Test 1: Incorrect char read;", 58 s1.charAt(1), (char) si.read()); 63 assertEquals("Test 2: Incorrect char read;", 64 s1.charAt(2), (char) si.read()); 71 si.read(); 79 si.read(); 80 si.read(); 84 si.read(); 93 assertEquals("Test 6: Incorrect char read;", [all...] |
/cts/tests/tests/content/src/android/content/res/cts/ |
AssetFileDescriptor_AutoCloseInputStreamTest.java | 62 assertEquals(FILE_DATA[0], mInput.read()); 64 assertEquals(FILE_DATA[1], mInput.read()); 66 assertEquals(FILE_DATA[5], mInput.read()); 68 assertEquals(FILE_END, mInput.read()); 74 assertEquals(FILE_DATA[i], mInput.read()); 76 assertEquals(FILE_END, mInput.read()); 83 assertEquals(FILE_DATA[i], mInput.read()); 85 assertEquals(FILE_END, mInput.read()); 91 assertEquals(3, mInput.read(buf, 0, 3)); 92 assertEquals(3, mInput.read(buf, 3, 3)) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/io/ |
TeeInputStream.java | 8 * An input stream which copies anything read through it to another stream. 20 * @param output output stream to copy any input read to. 28 public int read(byte[] buf) method in class:TeeInputStream 31 return read(buf, 0, buf.length); 34 public int read(byte[] buf, int off, int len) method in class:TeeInputStream 37 int i = input.read(buf, off, len); 47 public int read() method in class:TeeInputStream 50 int i = input.read();
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
AutoCloseInputStream.java | 32 * releasing resources once the last byte has been read) do not do that. 52 * This method is automatically called by the read methods when the end 72 * @throws IOException if the stream could not be read or closed 74 public int read() throws IOException { method in class:AutoCloseInputStream 75 int n = in.read(); 88 * @return number of bytes read, or -1 if no more bytes are available 89 * @throws IOException if the stream could not be read or closed 91 public int read(byte[] b) throws IOException { method in class:AutoCloseInputStream 92 int n = in.read(b); 106 * @param len maximum number of bytes to read 110 public int read(byte[] b, int off, int len) throws IOException { method in class:AutoCloseInputStream [all...] |
ProxyInputStream.java | 30 * methods being called, such as read(byte[]) to read(byte[], int, int). 48 * Invokes the delegate's <code>read()</code> method. 49 * @return the byte read or -1 if the end of stream 52 public int read() throws IOException { method in class:ProxyInputStream 53 return in.read(); 57 * Invokes the delegate's <code>read(byte[])</code> method. 58 * @param bts the buffer to read the bytes into 59 * @return the number of bytes read or -1 if the end of stream 62 public int read(byte[] bts) throws IOException method in class:ProxyInputStream 74 public int read(byte[] bts, int st, int end) throws IOException { method in class:ProxyInputStream [all...] |
ProxyReader.java | 30 * methods being called, such as read(char[]) to read(char[], int, int). 48 * Invokes the delegate's <code>read()</code> method. 49 * @return the character read or -1 if the end of stream 52 public int read() throws IOException { method in class:ProxyReader 53 return in.read(); 57 * Invokes the delegate's <code>read(char[])</code> method. 58 * @param chr the buffer to read the characters into 59 * @return the number of characters read or -1 if the end of stream 62 public int read(char[] chr) throws IOException method in class:ProxyReader 74 public int read(char[] chr, int st, int end) throws IOException { method in class:ProxyReader [all...] |
TeeInputStream.java | 24 * InputStream proxy that transparently writes a copy of all bytes read 40 * The output stream that will receive a copy of all bytes read from the 53 * and copies all read bytes to the given {@link OutputStream}. The given 57 * @param branch output stream that will receive a copy of all bytes read 65 * and copies all read bytes to the given {@link OutputStream}. The given 70 * @param branch output stream that will receive a copy of all bytes read 103 * @throws IOException if the stream could not be read (or written) 105 public int read() throws IOException { method in class:TeeInputStream 106 int ch = super.read(); 114 * Reads bytes from the proxied input stream and writes the read byte 123 public int read(byte[] bts, int st, int end) throws IOException { method in class:TeeInputStream 139 public int read(byte[] bts) throws IOException { method in class:TeeInputStream [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/ |
RootInputStream.java | 44 * @param in the stream to read from. 52 * (the number of <code>\r\n</code> read so far plus 1). 62 * call to {@link #read()}, {@link #read(byte[]) or 63 * {@link #read(byte[], int, int)} will return 71 * @see java.io.InputStream#read() 73 public int read() throws IOException { method in class:RootInputStream 78 int b = is.read(); 88 * @see java.io.InputStream#read(byte[], int, int) 90 public int read(byte[] b, int off, int len) throws IOException method in class:RootInputStream 108 public int read(byte[] b) throws IOException { method in class:RootInputStream [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/util/ |
PartialInputStream.java | 39 public int read() throws IOException { method in class:PartialInputStream 41 return super.read(); 46 public int read(byte b[]) throws IOException { method in class:PartialInputStream 47 return read(b, 0, b.length); 50 public int read(byte b[], int off, int len) throws IOException { method in class:PartialInputStream 52 return super.read(b, off, len); //To change body of overridden methods use File | Settings | File Templates.
|