/libcore/luni/src/test/java/libcore/java/util/logging/ |
H A D | OldErrorManagerTest.java | 60 public synchronized void write(byte[] buffer, int offset, int len) { argument 61 linesWritten.append(new String(buffer, offset, len));
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
H A D | KeyAgreementSpiTest.java | 65 protected int engineGenerateSecret(byte[] sharedSecret, int offset) argument 67 return super.engineGenerateSecret(sharedSecret, offset);
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/support/ |
H A D | MyKeyAgreementSpi.java | 59 protected int engineGenerateSecret(byte[] sharedSecret, int offset) argument
|
H A D | MyMacSpi.java | 61 protected void engineUpdate(byte[] input, int offset, int len) { argument 62 if (offset >= 0 && len >= 0) {
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_ASimpleWriter.java | 55 public void write(char[] src, int offset, int count) throws IOException { argument 59 if (offset < 0 || count < 0 || (offset + count) > buf.length) { 63 System.arraycopy(src, offset, buf, pos, count);
|
H A D | Support_OutputStream.java | 68 public void write(byte buffer[], int offset, int count) throws IOException { argument 72 if (offset < 0 || count < 0 || (offset + count) > buffer.length) { 75 for (int i = offset; i < offset + count; i++) {
|
H A D | Support_StringReader.java | 132 * stores them at <code>offset</code> in the character array 138 * @param offset 139 * offset in buf to store the read characters 148 public int read(char buf[], int offset, int count) throws IOException { argument 150 if (0 <= offset && offset <= buf.length && 0 <= count 151 && count <= buf.length - offset) { 159 str.getChars(pos, end, buf, offset);
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
H A D | DdmServer.java | 96 nativeSendChunk(chunk.type, chunk.data, chunk.offset, chunk.length); 101 int offset, int length); 139 private static Chunk dispatch(int type, byte[] data, int offset, int length) argument 170 Chunk chunk = new Chunk(type, data, offset, length); 100 nativeSendChunk(int type, byte[] data, int offset, int length) argument
|
/libcore/luni/src/main/java/java/io/ |
H A D | BufferedInputStream.java | 247 * byte array {@code buffer} starting at offset {@code offset}. Returns the 258 * if {@code offset < 0} or {@code byteCount < 0}, or if 259 * {@code offset + byteCount} is greater than the size of 266 public synchronized int read(byte[] buffer, int offset, int byteCount) throws IOException { argument 273 Arrays.checkOffsetAndCount(buffer.length, offset, byteCount); 286 System.arraycopy(localBuf, pos, buffer, offset, copylength); 291 offset += copylength; 304 read = localIn.read(buffer, offset, required); 321 System.arraycopy(localBuf, pos, buffer, offset, rea [all...] |
H A D | BufferedReader.java | 247 * at {@code offset} in the character array {@code buffer}. Returns the 256 * @param offset 265 * if {@code offset < 0} or {@code length < 0}, or if 266 * {@code offset + length} is greater than the size of 272 public int read(char[] buffer, int offset, int length) throws IOException { argument 275 Arrays.checkOffsetAndCount(buffer.length, offset, length); 285 System.arraycopy(buf, pos, buffer, offset, count); 287 offset += count; 310 int count = in.read(buffer, offset, outstanding);
|
H A D | ByteArrayOutputStream.java | 180 * offset {@code index} to this stream. 184 * @param offset 191 * if {@code offset < 0} or {@code len < 0}, or if 192 * {@code offset + len} is greater than the length of 196 public synchronized void write(byte[] buffer, int offset, int len) { argument 197 Arrays.checkOffsetAndCount(buffer.length, offset, len); 202 System.arraycopy(buffer, offset, buf, this.count, len);
|
H A D | CharArrayReader.java | 64 * read the buffer is set to {@code offset}. 68 * @param offset 73 * if {@code offset < 0} or {@code length < 0}, or if 74 * {@code offset} is greater than the size of {@code buf} . 76 public CharArrayReader(char[] buf, int offset, int length) { argument 79 * of offset and length, it doesn't consider buffer's length. And to be 81 * (offset + length) overflows. 83 if (offset < 0 || offset > buf.length || length < 0 || offset 209 read(char[] buffer, int offset, int len) argument [all...] |
H A D | CharArrayWriter.java | 152 * Writes {@code count} characters starting at {@code offset} in {@code c} 157 * @param offset 162 * if {@code offset < 0} or {@code len < 0}, or if 163 * {@code offset + len} is bigger than the size of {@code c}. 166 public void write(char[] buffer, int offset, int len) { argument 167 Arrays.checkOffsetAndCount(buffer.length, offset, len); 170 System.arraycopy(buffer, offset, this.buf, this.count, len); 192 * Writes {@code count} characters starting at {@code offset} from 198 * if {@code offset < 0} or {@code count < 0}, or if 199 * {@code offset 203 write(String str, int offset, int count) argument [all...] |
H A D | DataInput.java | 116 * array {@code dst} starting at {@code offset}. If {@code byteCount} is zero, then this 125 * @param offset 126 * the offset in {@code dst} at which to store the bytes. 133 * if {@code offset < 0} or {@code byteCount < 0}, or 134 * {@code offset + byteCount > dst.length}. 140 public abstract void readFully(byte[] dst, int offset, int byteCount) throws IOException; argument
|
H A D | DataInputStream.java | 64 * the byte array {@code buffer} starting at {@code offset}. Returns the 70 * @param offset 83 public final int read(byte[] buffer, int offset, int length) throws IOException { argument 84 return in.read(buffer, offset, length); 119 public final void readFully(byte[] dst, int offset, int byteCount) throws IOException { argument 120 Streams.readFully(in, dst, offset, byteCount);
|
H A D | DataOutput.java | 45 * offset {@code index}. 49 * @param offset 56 public abstract void write(byte[] buffer, int offset, int count) throws IOException; argument
|
H A D | DataOutputStream.java | 80 * {@code offset} to the target stream. 84 * @param offset 94 public void write(byte[] buffer, int offset, int count) throws IOException { argument 98 out.write(buffer, offset, count);
|
H A D | LineNumberReader.java | 136 * them in the character array {@code buffer} starting at {@code offset}. 146 * @param offset 157 public int read(char[] buffer, int offset, int count) throws IOException { argument 159 int read = super.read(buffer, offset, count); 164 char ch = buffer[offset + i];
|
H A D | OutputStreamWriter.java | 241 * Writes {@code count} characters starting at {@code offset} in {@code buf} 248 * @param offset 253 * if {@code offset < 0} or {@code count < 0}, or if 254 * {@code offset + count} is greater than the size of 261 public void write(char[] buffer, int offset, int count) throws IOException { argument 264 Arrays.checkOffsetAndCount(buffer.length, offset, count); 265 CharBuffer chars = CharBuffer.wrap(buffer, offset, count); 291 * Writes {@code count} characters starting at {@code offset} in {@code str} 298 * @param offset 306 * if {@code offset < 311 write(String str, int offset, int count) argument [all...] |
H A D | PipedInputStream.java | 259 * byte array {@code bytes} starting at {@code offset}. Blocks until at 270 * if {@code offset < 0} or {@code byteCount < 0}, or if {@code 271 * offset + byteCount} is greater than the size of {@code bytes}. 282 public synchronized int read(byte[] bytes, int offset, int byteCount) throws IOException { argument 283 Arrays.checkOffsetAndCount(bytes.length, offset, byteCount); 326 System.arraycopy(buffer, out, bytes, offset, length); 344 System.arraycopy(buffer, out, bytes, offset + totalCopied, length);
|
H A D | PipedReader.java | 202 * in the character array {@code buffer} starting at {@code offset}. If 213 * @param offset 221 * if {@code offset < 0} or {@code count < 0}, or if {@code 222 * offset + count} is greater than the size of {@code buffer}. 231 public synchronized int read(char[] buffer, int offset, int count) throws IOException { argument 238 Arrays.checkOffsetAndCount(buffer.length, offset, count); 271 System.arraycopy(this.buffer, out, buffer, offset, copyLength); 294 System.arraycopy(this.buffer, out, buffer, offset + charsCopied, copyLength); 390 synchronized void receive(char[] chars, int offset, int count) throws IOException { argument 391 Arrays.checkOffsetAndCount(chars.length, offset, coun [all...] |
H A D | PushbackInputStream.java | 151 * the byte array {@code buffer} starting at {@code offset}. Bytes are read 158 * @param offset 166 * if {@code offset < 0} or {@code length < 0}, or if 167 * {@code offset + length} is greater than the length of 176 public int read(byte[] buffer, int offset, int length) throws IOException { argument 180 Arrays.checkOffsetAndCount(buffer.length, offset, length); 181 int copiedBytes = 0, copyLength = 0, newOffset = offset; 259 * subset is defined by the start position {@code offset} within 262 * stream is {@code buffer[offset]}, then {@code buffer[1]} and so on. 271 * @param offset 283 unread(byte[] buffer, int offset, int length) argument [all...] |
H A D | PushbackReader.java | 159 * byte array {@code buffer} starting at {@code offset}. Characters are 167 * @param offset 175 * if {@code offset < 0} or {@code count < 0}, or if 176 * {@code offset + count} is greater than the length of 183 public int read(char[] buffer, int offset, int count) throws IOException { argument 186 Arrays.checkOffsetAndCount(buffer.length, offset, count); 190 int newOffset = offset; 276 * The subset is defined by the start position {@code offset} within 279 * stream is {@code buffer[offset]}, then {@code buffer[1]} and so on. 289 * @param offset 304 unread(char[] buffer, int offset, int length) argument [all...] |
H A D | StringReader.java | 135 * them at {@code offset} in the character array {@code buf}. Returns the 141 * @param offset 149 * if {@code offset < 0} or {@code len < 0}, or if 150 * {@code offset + len} is greater than the size of {@code buf}. 155 public int read(char[] buf, int offset, int len) throws IOException { argument 158 Arrays.checkOffsetAndCount(buf.length, offset, len); 166 str.getChars(pos, end, buf, offset);
|
/libcore/luni/src/main/java/java/net/ |
H A D | DatagramPacket.java | 48 private int offset = 0; field in class:DatagramPacket 65 * {@code length} bytes with a specified buffer offset. 69 * @param offset 70 * the offset of the byte array where the bytes is written. 74 public DatagramPacket(byte[] data, int offset, int length) { argument 75 setData(data, offset, length); 82 * length} bytes from the byte array position {@code offset} are sent. 86 * @param offset 87 * the offset of {@code data} where to read from. 95 public DatagramPacket(byte[] data, int offset, in argument 180 setData(byte[] data, int offset, int byteCount) argument 286 DatagramPacket(byte[] data, int offset, int length, SocketAddress sockAddr) argument [all...] |