/libcore/benchmarks/src/benchmarks/ |
H A D | SystemArrayCopyBenchmark.java | 29 final int len = arrayLength; 30 char[] src = new char[len]; 31 char[] dst = new char[len]; 33 System.arraycopy(src, 0, dst, 0, len); 38 final int len = arrayLength; 39 byte[] src = new byte[len]; 40 byte[] dst = new byte[len]; 42 System.arraycopy(src, 0, dst, 0, len); 47 final int len = arrayLength; 48 short[] src = new short[len]; [all...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | CheckedInputStream.java | 67 * Reads into an array of bytes. If <code>len</code> is not zero, the method 72 * @param len the maximum number of bytes read 77 * <code>len</code> is negative, or <code>len</code> is greater than 81 public int read(byte[] buf, int off, int len) throws IOException { argument 82 len = in.read(buf, off, len); 83 if (len != -1) { 84 cksum.update(buf, off, len); 86 return len; [all...] |
H A D | Inflater.java | 81 private int off, len; field in class:Inflater 120 * @param len the length of the input data 123 public void setInput(byte[] b, int off, int len) { argument 127 if (off < 0 || len < 0 || off > b.length - len) { 133 this.len = len; 155 * @param len the length of the data 159 public void setDictionary(byte[] b, int off, int len) { argument 163 if (off < 0 || len < 248 inflate(byte[] b, int off, int len) argument 407 setDictionary(long addr, byte[] b, int off, int len) argument 409 inflateBytes(long addr, byte[] b, int off, int len) argument [all...] |
H A D | CRC32.java | 58 public void update(byte[] b, int off, int len) { argument 62 if (off < 0 || len < 0 || off > b.length - len) { 65 crc = updateBytes(crc, b, off, len); 92 private native static int updateBytes(int crc, byte[] b, int off, int len); argument
|
H A D | Checksum.java | 46 * @param len the number of bytes to use for the update 48 public void update(byte[] b, int off, int len); argument
|
H A D | InflaterInputStream.java | 57 protected int len; field in class:InflaterInputStream 126 * Reads uncompressed data into an array of bytes. If <code>len</code> is not 131 * @param len the maximum number of bytes read 136 * <code>len</code> is negative, or <code>len</code> is greater than 141 public int read(byte[] b, int off, int len) throws IOException { argument 145 } else if (off < 0 || len < 0 || len > b.length - off) { 147 } else if (len == 0) { 152 while ((n = inf.inflate(b, off, len)) [all...] |
/libcore/luni/src/main/native/ |
H A D | readlink.cpp | 29 ssize_t len = readlink(path, &buf[0], buf.size()); local 30 if (len == -1) { 34 if (static_cast<size_t>(len) < buf.size()) { 36 result.assign(&buf[0], len);
|
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
H A D | IvParameterSpec.java | 57 * Creates an IvParameterSpec object using the first <code>len</code> 62 * <code>iv[offset]</code> and <code>iv[offset+len-1]</code> inclusive. 64 * @param iv the buffer with the IV. The first <code>len</code> 69 * @param len the number of IV bytes. 71 * or <code>(iv.length - offset < len)</code> 73 * or <code>len</code> index bytes outside the <code>iv</code>. 75 public IvParameterSpec(byte[] iv, int offset, int len) { argument 79 if (iv.length - offset < len) { 83 if (len < 0) { 84 throw new ArrayIndexOutOfBoundsException("len i [all...] |
H A D | GCMParameterSpec.java | 100 * @param len the number of IV bytes 103 * {@code src} is null, {@code len} or {@code offset} is negative, 104 * or the sum of {@code offset} and {@code len} is greater than the 107 public GCMParameterSpec(int tLen, byte[] src, int offset, int len) { argument 108 init(tLen, src, offset, len); 114 private void init(int tLen, byte[] src, int offset, int len) { argument 122 if ((src == null) ||(len < 0) || (offset < 0) 123 || ((len + offset) > src.length)) { 127 iv = new byte[len]; 128 System.arraycopy(src, offset, iv, 0, len); [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | StringBufferInputStream.java | 96 * Reads up to <code>len</code> bytes of data from this input stream 106 * @param len the maximum number of bytes read. 111 public synchronized int read(byte b[], int off, int len) { argument 114 } else if ((off < 0) || (off > b.length) || (len < 0) || 115 ((off + len) > b.length) || ((off + len) < 0)) { 121 if (pos + len > count) { 122 len = count - pos; 124 if (len <= 0) { 128 int cnt = len; [all...] |
H A D | OutputStream.java | 79 * Writes <code>len</code> bytes from the specified byte array 81 * The general contract for <code>write(b, off, len)</code> is that 84 * byte written and <code>b[off+len-1]</code> is the last byte written 95 * If <code>off</code> is negative, or <code>len</code> is negative, or 96 * <code>off+len</code> is greater than the length of the array 101 * @param len the number of bytes to write. 106 public void write(byte b[], int off, int len) throws IOException { argument 109 } else if ((off < 0) || (off > b.length) || (len < 0) || 110 ((off + len) > b.length) || ((off + len) < [all...] |
H A D | OptionalDataException.java | 55 OptionalDataException(int len) { argument 57 length = len;
|
H A D | BufferedOutputStream.java | 101 * Writes <code>len</code> bytes from the specified byte array 113 * @param len the number of bytes to write. 116 public synchronized void write(byte b[], int off, int len) throws IOException { argument 117 if (len >= buf.length) { 122 out.write(b, off, len); 125 if (len > buf.length - count) { 128 System.arraycopy(b, off, buf, count, len); 129 count += len;
|
H A D | ByteArrayInputStream.java | 148 * Reads up to <code>len</code> bytes of data into an array of bytes 154 * <code>len</code> and <code>count-pos</code>. 167 * @param len the maximum number of bytes read. 173 * <code>len</code> is negative, or <code>len</code> is greater than 176 public synchronized int read(byte b[], int off, int len) { argument 179 } else if (off < 0 || len < 0 || len > b.length - off) { 188 if (len > avail) { 189 len [all...] |
H A D | FilterWriter.java | 73 * @param len Number of characters to be written 77 public void write(char cbuf[], int off, int len) throws IOException { argument 78 out.write(cbuf, off, len); 86 * @param len Number of characters to be written 90 public void write(String str, int off, int len) throws IOException { argument 91 out.write(str, off, len);
|
H A D | PushbackInputStream.java | 143 * Reads up to <code>len</code> bytes of data from this input stream into 145 * that, if fewer than <code>len</code> bytes have been read then it 146 * reads from the underlying input stream. If <code>len</code> is not zero, the method 152 * @param len the maximum number of bytes read. 158 * <code>len</code> is negative, or <code>len</code> is greater than 165 public int read(byte[] b, int off, int len) throws IOException { argument 169 } else if (off < 0 || len < 0 || len > b.length - off) { 171 } else if (len 229 unread(byte[] b, int off, int len) argument [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | NativeDispatcher.java | 38 abstract int read(FileDescriptor fd, long address, int len) argument 49 int pread(FileDescriptor fd, long address, int len, long position) argument 55 abstract long readv(FileDescriptor fd, long address, int len) argument 58 abstract int write(FileDescriptor fd, long address, int len) argument 61 int pwrite(FileDescriptor fd, long address, int len, long position) argument 67 abstract long writev(FileDescriptor fd, long address, int len) argument
|
H A D | DatagramDispatcher.java | 40 int read(FileDescriptor fd, long address, int len) throws IOException { argument 42 return read0(fd, address, len); 45 long readv(FileDescriptor fd, long address, int len) throws IOException { argument 47 return readv0(fd, address, len); 50 int write(FileDescriptor fd, long address, int len) throws IOException { argument 52 return write0(fd, address, len); 55 long writev(FileDescriptor fd, long address, int len) throws IOException { argument 57 return writev0(fd, address, len); 68 static native int read0(FileDescriptor fd, long address, int len) argument 71 static native long readv0(FileDescriptor fd, long address, int len) argument 74 write0(FileDescriptor fd, long address, int len) argument 77 writev0(FileDescriptor fd, long address, int len) argument [all...] |
/libcore/ojluni/src/main/java/sun/security/ssl/ |
H A D | HandshakeInStream.java | 95 public int read(byte b [], int off, int len) throws IOException { argument 98 int n = r.read(b, off, len); 99 if (n != len) { 192 int len = getInt8(); 193 verifyLength(len); 194 byte b[] = new byte[len]; 196 read(b, 0, len); 201 int len = getInt16(); 202 verifyLength(len); 203 byte b[] = new byte[len]; 219 verifyLength(int len) argument [all...] |
/libcore/ojluni/src/main/java/sun/nio/cs/ |
H A D | ArrayDecoder.java | 34 int decode(byte[] src, int off, int len, char[] dst); argument
|
H A D | ArrayEncoder.java | 34 int encode(char[] src, int off, int len, byte[] dst); argument
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Stack.java | 82 int len = size(); 85 removeElementAt(len - 1); 99 int len = size(); 101 if (len == 0) 103 return elementAt(len - 1);
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_ASimpleInputStream.java | 20 public int len; field in class:Support_ASimpleInputStream 37 len = buf.length; 42 len = input.length; 43 buf = new byte[len]; 44 System.arraycopy(input, 0, buf, 0, len); 59 return len - pos; 67 if (pos < len) {
|
/libcore/ojluni/src/main/java/sun/util/locale/ |
H A D | LocaleUtils.java | 55 int len = s1.length(); 56 if (len != s2.length()) { 60 for (int i = 0; i < len; i++) { 89 int len = s.length(); 91 for (; idx < len; idx++) { 96 if (idx == len) { 100 char[] buf = new char[len]; 101 for (int i = 0; i < len; i++) { 109 int len = s.length(); 111 for (; idx < len; id [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | DerInputBuffer.java | 49 DerInputBuffer(byte[] buf, int offset, int len) { argument 50 super(buf, offset, len); 65 int len = available(); 66 if (len <= 0) 68 byte[] retval = new byte[len]; 70 System.arraycopy(buf, pos, retval, 0, len); 125 int len = available(); 128 for (int i = 0; i < len; i++) 133 void truncate(int len) throws IOException { argument 134 if (len > availabl 147 getBigInteger(int len, boolean makePositive) argument 176 getInteger(int len) argument 192 getBitString(int len) argument 254 getUTCTime(int len) argument 269 getGeneralizedTime(int len) argument 286 getTime(int len, boolean generalized) argument [all...] |