/libcore/luni/src/main/java/java/nio/ |
H A D | LongArrayBuffer.java | 36 protected final int offset; field in class:LongArrayBuffer 46 LongArrayBuffer(int capacity, long[] backingArray, int offset) { argument 49 this.offset = offset; 57 return backingArray[offset + position++]; 63 return backingArray[offset + index]; 71 System.arraycopy(backingArray, offset + position, dst, dstOffset, longCount);
|
H A D | MappedByteBuffer.java | 54 MappedByteBuffer(MemoryBlock block, int capacity, int offset, MapMode mapMode) { argument 58 wrapped = new ReadOnlyDirectByteBuffer(block, capacity, offset); 60 wrapped = new ReadWriteDirectByteBuffer(block, capacity, offset);
|
H A D | ShortArrayBuffer.java | 36 protected final int offset; field in class:ShortArrayBuffer 46 ShortArrayBuffer(int capacity, short[] backingArray, int offset) { argument 49 this.offset = offset; 57 return backingArray[offset + position++]; 63 return backingArray[offset + index]; 71 System.arraycopy(backingArray, offset + position, dst, dstOffset, shortCount);
|
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | ModifiedUtf8.java | 35 public static String decode(byte[] in, char[] out, int offset, int utfSize) throws UTFDataFormatException { argument 38 if ((out[s] = (char) in[offset + count++]) < '\u0080') { 44 int b = in[offset + count++]; 53 int b = in[offset + count++]; 54 int c = in[offset + count++]; 94 * byte array {@code dst}, starting at the given {@code offset}. 96 public static void encode(byte[] dst, int offset, String s) { argument 101 dst[offset++] = (byte) ch; 103 dst[offset++] = (byte) (0xc0 | (0x1f & (ch >> 6))); 104 dst[offset [all...] |
/libcore/luni/src/main/java/java/security/ |
H A D | MessageDigestSpi.java | 56 * @param offset 61 * if {@code offset} or {@code len} are not valid in respect to 64 protected abstract void engineUpdate(byte[] input, int offset, int len); argument 79 int offset = input.arrayOffset(); 82 engineUpdate(tmp, offset+position, limit - position); 108 * @param offset 116 * if {@code offset} or {@code len} are not valid in respect to 120 protected int engineDigest(byte[] buf, int offset, int len) throws DigestException { argument 125 if (offset < 0) { 127 throw new DigestException("offset < [all...] |
/libcore/luni/src/main/java/java/util/zip/ |
H A D | Adler32.java | 70 * starting from {@code offset} and reading {@code byteCount} bytes of data. 72 public void update(byte[] buf, int offset, int byteCount) { argument 73 Arrays.checkOffsetAndCount(buf.length, offset, byteCount); 74 adler = updateImpl(buf, offset, byteCount, adler); 77 private native long updateImpl(byte[] buf, int offset, int byteCount, long adler1); argument
|
H A D | CRC32.java | 71 * starting from {@code offset} and reading {@code byteCount} bytes of data. 73 public void update(byte[] buf, int offset, int byteCount) { argument 74 Arrays.checkOffsetAndCount(buf.length, offset, byteCount); 76 crc = updateImpl(buf, offset, byteCount, crc); 79 private native long updateImpl(byte[] buf, int offset, int byteCount, long crc1); argument
|
/libcore/luni/src/main/java/javax/crypto/ |
H A D | KeyAgreementSpi.java | 71 * sharedSecred} at {@code offset}. 75 * @param offset 76 * the offset in the buffer. 83 protected abstract int engineGenerateSecret(byte[] sharedSecret, int offset) argument
|
H A D | MacSpi.java | 75 * buffer {@code input} from the specified {@code offset} and length {@code 80 * @param offset 81 * the offset in the buffer. 85 protected abstract void engineUpdate(byte[] input, int offset, int len); argument 102 int offset = input.arrayOffset(); 105 engineUpdate(bInput, offset + position, limit - position);
|
/libcore/luni/src/main/java/javax/crypto/spec/ |
H A D | DESKeySpec.java | 107 * specified key data starting at <code>offset</code>. 111 * @param offset 112 * the offset to start at. 114 * if the length of the specified key data starting at offset is 117 public DESKeySpec(byte[] key, int offset) throws InvalidKeyException { argument 121 if (key.length - offset < DES_KEY_LEN) { 125 System.arraycopy(key, offset, this.key, 0, DES_KEY_LEN); 140 * Returns whether the specified key data starting at <code>offset</code> is 145 * @param offset 146 * the offset t 153 isParityAdjusted(byte[] key, int offset) argument 190 isWeak(byte[] key, int offset) argument [all...] |
H A D | RC2ParameterSpec.java | 75 * <code>offset</code> must be at least 8 bytes which are copied to protect 82 * @param offset 83 * the offset in the initialization vector to start at. 86 * <code>offset</code> is shorter than 8 bytes. 88 public RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset) { argument 92 if (iv.length - offset < 8) { 93 throw new IllegalArgumentException("iv.length - offset < 8"); 97 System.arraycopy(iv, offset, this.iv, 0, 8);
|
H A D | RC5ParameterSpec.java | 90 * and an offset. 93 * <code>offset + (2 * (wordSize / 8))</code> bytes. The bytes starting at 94 * <code>offset</code> are copied to protect them against modification. 104 * @param offset 105 * the offset in the initialization vector. 108 * <code>offset + (2 * (wordSize / 8))</code>. 110 * if <code>offset</code> is negative. 112 public RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv, int offset) { argument 116 if (offset < 0) { 117 throw new ArrayIndexOutOfBoundsException("offset < [all...] |
H A D | SecretKeySpec.java | 75 * specified buffer <code>key</code> starting at <code>offset</code> with 80 * @param offset 81 * the offset. 88 * is empty or <code>offset</code> and <code>len</code> do not 91 * if <code>offset</code> or <code>len</code> is negative. 93 public SecretKeySpec(byte[] key, int offset, int len, String algorithm) { argument 100 if (len < 0 || offset < 0) { 101 throw new ArrayIndexOutOfBoundsException("len < 0 || offset < 0"); 103 if (key.length - offset < len) { 111 System.arraycopy(key, offset, thi [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | BufferIterator.java | 27 * Seeks to the absolute position {@code offset}, measured in bytes from the start. 29 public abstract void seek(int offset); argument
|
/libcore/luni/src/main/java/libcore/net/http/ |
H A D | FixedLengthInputStream.java | 39 @Override public int read(byte[] buffer, int offset, int count) throws IOException { argument 40 Arrays.checkOffsetAndCount(buffer.length, offset, count); 45 int read = in.read(buffer, offset, Math.min(count, bytesRemaining)); 51 cacheWrite(buffer, offset, read);
|
H A D | FixedLengthOutputStream.java | 35 @Override public void write(byte[] buffer, int offset, int count) throws IOException { argument 37 Arrays.checkOffsetAndCount(buffer.length, offset, count); 41 socketOut.write(buffer, offset, count);
|
H A D | RetryableOutputStream.java | 54 @Override public synchronized void write(byte[] buffer, int offset, int count) argument 57 Arrays.checkOffsetAndCount(buffer.length, offset, count); 61 content.write(buffer, offset, count);
|
H A D | UnknownLengthHttpInputStream.java | 35 @Override public int read(byte[] buffer, int offset, int count) throws IOException { argument 36 Arrays.checkOffsetAndCount(buffer.length, offset, count); 41 int read = in.read(buffer, offset, count); 47 cacheWrite(buffer, offset, read);
|
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | SSLEngineAppData.java | 56 protected int placeTo(ByteBuffer[] dsts, int offset, int length) { argument 64 for (int i=offset; i<offset+length; i++) {
|
H A D | SSLEngineDataStream.java | 34 private int offset; field in class:SSLEngineDataStream 42 protected void setSourceBuffers(ByteBuffer[] srcs, int offset, int length) { argument 44 this.offset = offset; 45 this.limit = offset+length; 48 for (int i=offset; i<limit; i++) { 75 for (; offset<limit; offset++) { 76 while (srcs[offset].hasRemaining()) { 77 res[pos++] = srcs[offset] [all...] |
/libcore/luni/src/main/java/org/w3c/dom/ |
H A D | CharacterData.java | 68 * @param offset Start offset of substring to extract. 70 * @return The specified substring. If the sum of <code>offset</code> and 74 * INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is 81 public String substringData(int offset, argument 97 * Insert a string at the specified 16-bit unit offset. 98 * @param offset The character offset at which to insert. 101 * INDEX_SIZE_ERR: Raised if the specified <code>offset</code> is 106 public void insertData(int offset, argument 125 deleteData(int offset, int count) argument 148 replaceData(int offset, int count, String arg) argument [all...] |
/libcore/luni/src/test/java/tests/api/org/xml/sax/support/ |
H A D | BrokenInputStream.java | 31 private int offset; field in class:BrokenInputStream 33 public BrokenInputStream(InputStream stream, int offset) { argument 37 this.offset = offset; 42 if (offset == 0) { 46 offset--;
|
/libcore/luni/src/test/java/tests/targets/security/ |
H A D | MessageDigestTestMD2.java | 93 protected void engineUpdate(byte[] input, int offset, int len) { argument
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_ASimpleReader.java | 56 public int read(char[] dest, int offset, int count) throws IOException { argument 63 System.arraycopy(buf, pos, dest, offset, readable);
|
H A D | Support_StringWriter.java | 99 * Writes <code>count</code> characters starting at <code>offset</code> 104 * @param offset 105 * offset in buf to retrieve characters 110 * If offset or count are outside of bounds. 113 public void write(char[] buf, int offset, int count) { argument 115 if (0 <= offset && offset <= buf.length && 0 <= count 116 && count <= buf.length - offset) { 118 this.buf.append(buf, offset, count); 158 * <code>offset</cod 172 write(String str, int offset, int count) argument [all...] |