/libcore/luni/src/test/java/libcore/java/nio/charset/ |
H A D | OldCharset_SingleByteAbstractTest.java | 114 // int len = expected.length; 115 // if (actual.length < len) len = actual.length; 116 // for (int i = 0; i < len; i++) { 132 int len = expected.length; 133 if (actual.length < len) len = actual.length; 134 for (int i = 0; i < len; i++) { 167 // int len = expected.length; 168 // if (actual.length < len) le [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | FilterReader.java | 73 public int read(char cbuf[], int off, int len) throws IOException { argument 74 return in.read(cbuf, off, len);
|
H A D | PipedReader.java | 208 synchronized void receive(char c[], int off, int len) throws IOException { argument 209 while (--len >= 0) { 279 * Reads up to <code>len</code> characters of data from this piped 280 * stream into an array of characters. Less than <code>len</code> characters 282 * <code>len</code> exceeds the pipe's buffer size. This method 287 * @param len the maximum number of characters read. 296 public synchronized int read(char cbuf[], int off, int len) throws IOException { argument 306 if ((off < 0) || (off > cbuf.length) || (len < 0) || 307 ((off + len) > cbuf.length) || ((off + len) < [all...] |
H A D | RandomAccessFile.java | 331 * @param len the number of bytes to read. 334 private int readBytes(byte b[], int off, int len) throws IOException { argument 335 ioTracker.trackIo(len, IoTracker.Mode.READ); 336 return IoBridge.read(fd, b, off, len); 340 * Reads up to {@code len} bytes of data from this file into an 352 * @param len the maximum number of bytes read. 361 * {@code len} is negative, or {@code len} is greater than 364 public int read(byte b[], int off, int len) throws IOException { argument 365 return readBytes(b, off, len); 421 readFully(byte b[], int off, int len) argument 488 writeBytes(byte b[], int off, int len) argument 517 write(byte b[], int off, int len) argument [all...] |
H A D | ObjectInput.java | 77 * @param len the maximum number of bytes read 82 public int read(byte b[], int off, int len) throws IOException; argument
|
H A D | ObjectOutput.java | 71 * @param len the number of bytes that are written 74 public void write(byte b[], int off, int len) throws IOException; argument
|
H A D | OutputStreamWriter.java | 202 * @param len Number of characters to write 206 public void write(char cbuf[], int off, int len) throws IOException { argument 207 se.write(cbuf, off, len); 215 * @param len Number of characters to write 219 public void write(String str, int off, int len) throws IOException { argument 220 se.write(str, off, len);
|
H A D | Reader.java | 98 int len = target.remaining(); 99 char[] cbuf = new char[len]; 100 int n = read(cbuf, 0, len); 150 * @param len Maximum number of characters to read 157 abstract public int read(char cbuf[], int off, int len) throws IOException; argument
|
H A D | PipedInputStream.java | 223 * @param len the maximum number of bytes received 228 synchronized void receive(byte b[], int off, int len) throws IOException { argument 231 int bytesToTransfer = len; 351 * Reads up to <code>len</code> bytes of data from this piped input 352 * stream into an array of bytes. Less than <code>len</code> bytes 354 * <code>len</code> exceeds the pipe's buffer size. 355 * If <code>len </code> is zero, then no bytes are read and 0 is returned; 362 * @param len the maximum number of bytes read. 368 * <code>len</code> is negative, or <code>len</cod 374 read(byte b[], int off, int len) argument [all...] |
H A D | DataOutputStream.java | 93 * Writes <code>len</code> bytes from the specified byte array 96 * incremented by <code>len</code>. 100 * @param len the number of bytes to write. 104 public synchronized void write(byte b[], int off, int len) argument 107 out.write(b, off, len); 108 incCount(len); 274 int len = s.length(); 275 for (int i = 0 ; i < len ; i++) { 278 incCount(len); 294 int len [all...] |
/libcore/ojluni/src/main/java/java/security/ |
H A D | SignatureSpi.java | 124 * @param len the number of bytes to use, starting at offset 129 protected abstract void engineUpdate(byte[] b, int off, int len) argument 155 int len = input.remaining(); 156 byte[] b = new byte[JCAUtil.getTempArraySize(len)]; 157 while (len > 0) { 158 int chunk = Math.min(len, b.length); 161 len -= chunk; 207 * @param len number of bytes within {@code outbuf} allotted for the 220 * process the input data provided, or if {@code len} is less 225 protected int engineSign(byte[] outbuf, int offset, int len) argument [all...] |
/libcore/ojluni/src/main/java/java/sql/ |
H A D | Blob.java | 188 * value; <code>len</code> bytes from the given byte array are written. 207 * @param len the number of bytes to be written to the <code>BLOB</code> 217 int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException; argument 250 * object represents to be <code>len</code> bytes in length. 258 * @param len the length, in bytes, to which the <code>BLOB</code> value 261 * <code>BLOB</code> value or if len is less than 0 266 void truncate(long len) throws SQLException; argument
|
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | InflaterOutputStream.java | 213 * @param len number of bytes to decompress from {@code b} 215 * {@code len < 0}, or if {@code len > b.length - off} 221 public void write(byte[] b, int off, int len) throws IOException { argument 226 } else if (off < 0 || len < 0 || len > b.length - off) { 228 } else if (len == 0) { 241 if (len < 1) { 245 part = (len < 512 ? len [all...] |
H A D | ZipCoder.java | 48 int len = (int)(length * cd.maxCharsPerByte()); 49 char[] ca = new char[len]; 50 if (len == 0) 79 int len = (int)(ca.length * ce.maxBytesPerChar()); 80 byte[] ba = new byte[len]; 81 if (len == 0) 115 String toStringUTF8(byte[] ba, int len) { argument 117 return toString(ba, len); 120 return utf8.toString(ba, len);
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | RegexpPool.java | 92 int len = re.length() - 1; 98 len++; 100 if (len <= 0) 106 && (!p.exact || i == len)) { 109 if (i >= len) 116 for (i = len; --i >= 0 && p != null;) { 166 int len = re.length(); 170 while (len > 1) 171 p = p.add(re.charAt(--len)); 174 if (re.charAt(len [all...] |
H A D | Resource.java | 97 int len; 100 len = getContentLength(); 110 if (len == -1) len = Integer.MAX_VALUE; 112 while (pos < len) { 115 bytesToRead = Math.min(len - pos, b.length + 1024); 130 if (len != Integer.MAX_VALUE) {
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | Base64.java | 238 int len = 0; 240 len = 4 * ((srclen + 2) / 3); 243 len = 4 * (srclen / 3) + (n == 0 ? 0 : n + 1); 246 len += (len - 1) / linemax * newline.length; 247 return len; 261 int len = outLength(src.length); // dst array size 262 byte[] dst = new byte[len]; 289 int len = outLength(src.length); // dst array size 290 if (dst.length < len) 788 write(byte[] b, int off, int len) argument 891 read(byte[] b, int off, int len) argument [all...] |
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | OldAndroidGZIPStreamTest.java | 99 int len, totalLen = 0; 101 while ((len = in.read(buf)) > 0) { 102 contents.write(buf, 0, len); 103 totalLen += len;
|
/libcore/ojluni/src/main/native/ |
H A D | Adler32.c | 52 jarray b, jint off, jint len) 56 adler = adler32(adler, buf + off, len); 64 jlong address, jint off, jint len) 68 adler = adler32(adler, buf + off, len); 51 Java_java_util_zip_Adler32_updateBytes(JNIEnv *env, jclass cls, jint adler, jarray b, jint off, jint len) argument 63 Java_java_util_zip_Adler32_updateByteBuffer(JNIEnv *env, jclass cls, jint adler, jlong address, jint off, jint len) argument
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
H A D | MySignature1.java | 80 protected void engineUpdate(byte[] b, int off, int len) argument 83 if (off < 0 || off > b.length || off > len) { 86 if (len < 0 || len > b.length) { 87 throw new IllegalArgumentException("incorrect parameter len");
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
H A D | ChunkHandler.java | 92 public static String getString(ByteBuffer buf, int len) { argument 93 char[] data = new char[len]; 94 for (int i = 0; i < len; i++) 103 int len = str.length(); 104 for (int i = 0; i < len; i++)
|
/libcore/ojluni/src/main/java/javax/crypto/spec/ |
H A D | SecretKeySpec.java | 104 * <code>len</code> bytes of <code>key</code>, starting at 109 * <code>key[offset+len-1]</code> inclusive. 121 * <code>len</code> bytes of the array beginning at 126 * @param len the length of the key material. 135 * i.e. {@code key.length-offset<len}. 137 * <code>offset</code> or <code>len</code> index bytes outside the 140 public SecretKeySpec(byte[] key, int offset, int len, String algorithm) { argument 147 if (key.length-offset < len) { 151 if (len < 0) { 152 throw new ArrayIndexOutOfBoundsException("len i [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | DerInputStream.java | 91 * @param len how long a chunk of the buffer to use, 94 public DerInputStream(byte[] data, int offset, int len) throws IOException { argument 95 init(data, offset, len, true); 108 * @param len how long a chunk of the buffer to use, 113 public DerInputStream(byte[] data, int offset, int len, argument 115 init(data, offset, len, allowIndefiniteLength); 121 private void init(byte[] data, int offset, int len, argument 123 if ((offset+2 > data.length) || (offset+len > data.length)) { 131 byte[] inData = new byte[len]; 132 System.arraycopy(data, offset, inData, 0, len); 157 subStream(int len, boolean do_skip) argument [all...] |
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | UnixPath.java | 96 private static String normalize(String input, int len, int off) { argument 97 if (len == 0) 99 int n = len; 152 int len = bb.position(); 153 if (len != ba.length) 154 ba = Arrays.copyOf(ba, len); 286 int len = path.length - lastOffset; 287 byte[] result = new byte[len]; 288 System.arraycopy(path, lastOffset, result, 0, len); 301 int len [all...] |
/libcore/ojluni/src/main/java/sun/util/locale/ |
H A D | UnicodeLocaleExtension.java | 114 int len = s.length(); 115 return (len >= 3) && (len <= 8) && LocaleUtils.isAlphaNumericString(s); 125 int len = s.length(); 126 return (len >= 3) && (len <= 8) && LocaleUtils.isAlphaNumericString(s);
|