Searched defs:offset (Results 1 - 25 of 232) sorted by relevance

12345678910

/libcore/luni/src/main/java/org/w3c/dom/
H A DText.java42 * Breaks this node into two nodes at the specified <code>offset</code>,
44 * will contain all the content up to the <code>offset</code> point. A
46 * after the <code>offset</code> point, is returned. If the original
48 * of the original node. When the <code>offset</code> is equal to the
50 * @param offset The 16-bit unit offset at which to split, starting from
54 * INDEX_SIZE_ERR: Raised if the specified offset is negative or greater
58 public Text splitText(int offset) argument
H A DCharacterData.java68 * @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/ojluni/src/main/java/java/lang/
H A DArrayIndexOutOfBoundsException.java81 public ArrayIndexOutOfBoundsException(int sourceLength, int offset, argument
83 super("length=" + sourceLength + "; regionStart=" + offset
H A DStringIndexOutOfBoundsException.java93 public StringIndexOutOfBoundsException(String s, int offset, int count) { argument
94 this(s.length(), offset, count);
101 public StringIndexOutOfBoundsException(int sourceLength, int offset, argument
103 super("length=" + sourceLength + "; regionStart=" + offset
/libcore/ojluni/src/main/java/java/nio/channels/
H A DGatheringByteChannel.java62 * srcs[offset].remaining()
63 * + srcs[offset+1].remaining()
64 * + ... + srcs[offset+length-1].remaining()</pre></blockquote>
70 * Up to the first <tt>srcs[offset].remaining()</tt> bytes of this sequence
71 * are written from buffer <tt>srcs[offset]</tt>, up to the next
72 * <tt>srcs[offset+1].remaining()</tt> bytes are written from buffer
73 * <tt>srcs[offset+1]</tt>, and so forth, until the entire byte sequence is
92 * @param offset
93 * The offset within the buffer array of the first buffer from
100 * <tt>srcs.length</tt>&nbsp;-&nbsp;<tt>offset</t
127 write(ByteBuffer[] srcs, int offset, int length) argument
[all...]
H A DScatteringByteChannel.java62 * dsts[offset].remaining()
63 * + dsts[offset+1].remaining()
64 * + ... + dsts[offset+length-1].remaining()</pre></blockquote>
70 * Up to the first <tt>dsts[offset].remaining()</tt> bytes of this sequence
71 * are transferred into buffer <tt>dsts[offset]</tt>, up to the next
72 * <tt>dsts[offset+1].remaining()</tt> bytes are transferred into buffer
73 * <tt>dsts[offset+1]</tt>, and so forth, until the entire byte sequence
87 * @param offset
88 * The offset within the buffer array of the first buffer into
95 * <tt>dsts.length</tt>&nbsp;-&nbsp;<tt>offset</t
123 read(ByteBuffer[] dsts, int offset, int length) argument
[all...]
/libcore/ojluni/src/main/java/javax/crypto/spec/
H A DDESedeKeySpec.java67 * <code>key</code>, beginning at <code>offset</code> inclusive,
71 * <code>key[offset]</code> and <code>key[offset+23]</code> inclusive.
74 * 24 bytes of the buffer beginning at <code>offset</code> inclusive
76 * @param offset the offset in <code>key</code>, where the DES-EDE key
81 * <code>offset</code> inclusive, is shorter than 24 bytes
83 public DESedeKeySpec(byte[] key, int offset) throws InvalidKeyException { argument
84 if (key.length - offset < 24) {
88 System.arraycopy(key, offset, thi
114 isParityAdjusted(byte[] key, int offset) argument
[all...]
H A DIvParameterSpec.java58 * bytes in <code>iv</code>, beginning at <code>offset</code>
62 * <code>iv[offset]</code> and <code>iv[offset+len-1]</code> inclusive.
65 * bytes of the buffer beginning at <code>offset</code> inclusive
67 * @param offset the offset in <code>iv</code> where the IV
71 * or {@code (iv.length - offset < len)}
72 * @throws ArrayIndexOutOfBoundsException is thrown if <code>offset</code>
75 public IvParameterSpec(byte[] iv, int offset, int len) { argument
79 if (iv.length - offset < le
[all...]
H A DDESKeySpec.java136 * <code>key</code>, beginning at <code>offset</code> inclusive,
140 * <code>key[offset]</code> and <code>key[offset+7]</code> inclusive.
143 * of the buffer beginning at <code>offset</code> inclusive are copied
145 * @param offset the offset in <code>key</code>, where the DES key
151 * <code>offset</code> inclusive, is shorter than 8 bytes.
153 public DESKeySpec(byte[] key, int offset) throws InvalidKeyException { argument
154 if (key.length - offset < DES_KEY_LEN) {
158 System.arraycopy(key, offset, thi
186 isParityAdjusted(byte[] key, int offset) argument
219 isWeak(byte[] key, int offset) argument
[all...]
H A DGCMParameterSpec.java99 * @param offset the offset in {@code src} where the IV starts
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)) {
128 System.arraycopy(src, offset, i
[all...]
H A DRC2ParameterSpec.java81 * <code>offset</code> inclusive.
83 * <code>iv[offset]</code> and <code>iv[offset+7]</code> inclusive.
87 * of the buffer beginning at <code>offset</code> inclusive
89 * @param offset the offset in <code>iv</code> where the 8-byte IV
93 public RC2ParameterSpec(int effectiveKeyBits, byte[] iv, int offset) { argument
97 if (iv.length - offset < blockSize) {
101 System.arraycopy(iv, offset, this.iv, 0, blockSize);
H A DRC5ParameterSpec.java94 * <code>offset</code> inclusive.
96 * <code>offset</code> inclusive, must be twice the word size.
98 * <code>iv[offset]</code> and <code>iv[offset+2*(wordSize/8)-1]</code>
105 * </code> bytes of the buffer beginning at <code>offset</code>
107 * @param offset the offset in <code>iv</code> where the IV starts.
110 * {@code (iv.length - offset < 2 * (wordSize / 8))}
113 byte[] iv, int offset) {
119 if (iv.length - offset < blockSiz
112 RC5ParameterSpec(int version, int rounds, int wordSize, byte[] iv, int offset) argument
[all...]
H A DSecretKeySpec.java105 * <code>offset</code> inclusive.
108 * those between <code>key[offset]</code> and
109 * <code>key[offset+len-1]</code> inclusive.
122 * <code>offset</code> inclusive are copied to protect
124 * @param offset the offset in <code>key</code> where 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 < le
[all...]
/libcore/ojluni/src/test/java/time/test/java/time/zone/
H A DTestFixedZoneRules.java74 * Test ZoneRules for fixed offset time-zones.
81 private ZoneRules make(ZoneOffset offset) { argument
82 return offset.getRules();
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
H A DChunk.java25 * The "offset" and "length" fields are present so handlers can over-allocate
35 public int offset, length; // position within "data" field in class:Chunk
45 public Chunk(int type, byte[] data, int offset, int length) { argument
48 this.offset = offset;
54 * offset 0 and continue to the current position.
60 this.offset = buf.arrayOffset();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
H A DBrokenInputStream.java31 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/main/java/java/nio/charset/
H A DModifiedUtf8.java63 * Encode {@code s} into {@code dst} starting at offset {@code offset}.
67 public static void encode(byte[] dst, int offset, String s) { argument
73 dst[offset++] = (byte) 0xc0;
74 dst[offset++] = (byte) 0x80;
76 dst[offset++] = (byte) c;
79 dst[offset++] = (byte) ((c >>> 6) | 0xc0);
80 dst[offset++] = (byte) ((c & 0x3f) | 0x80);
82 dst[offset++] = (byte) ((c >>> 12) | 0xe0);
83 dst[offset
118 decode(byte[] in, char[] out, int offset, int length) argument
[all...]
/libcore/luni/src/main/java/libcore/io/
H A DBufferIterator.java27 * Seeks to the absolute position {@code offset}, measured in bytes from the start of the
30 public abstract void seek(int offset); argument
/libcore/luni/src/main/java/libcore/util/
H A DCharsetUtils.java32 public static native byte[] toAsciiBytes(String s, int offset, int length); argument
39 public static native byte[] toIsoLatin1Bytes(String s, int offset, int length); argument
46 public static native byte[] toUtf8Bytes(String s, int offset, int length); argument
52 public static byte[] toBigEndianUtf16Bytes(String s, int offset, int length) { argument
54 int end = offset + length;
56 for (int i = offset; i < end; ++i) {
73 public static native void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars); argument
83 public static native void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars); argument
H A DHexEncoding.java39 public static char[] encode(byte[] data, int offset, int len) { argument
42 byte b = data[offset + i];
121 private static int toDigit(char[] str, int offset) throws IllegalArgumentException { argument
124 int pseudoCodePoint = str[offset];
134 throw new IllegalArgumentException("Illegal char: " + str[offset] +
135 " at offset " + offset);
/libcore/luni/src/test/java/tests/targets/security/
H A DMessageDigestTestMD2.java90 protected void engineUpdate(byte[] input, int offset, int len) { argument
/libcore/ojluni/src/main/java/java/io/
H A DInputStreamReader.java175 * @param offset Offset at which to start storing characters
183 public int read(char cbuf[], int offset, int length) throws IOException { argument
184 return sd.read(cbuf, offset, length);
/libcore/ojluni/src/main/java/java/security/
H A DMessageDigestSpi.java84 * starting at the specified offset.
88 * @param offset the offset to start from in the array of bytes.
91 * {@code offset}.
93 protected abstract void engineUpdate(byte[] input, int offset, int len); argument
157 * @param offset offset to start from in the output buffer
173 protected int engineDigest(byte[] buf, int offset, int len) argument
179 if (buf.length - offset < digest.length)
182 System.arraycopy(digest, 0, buf, offset, diges
[all...]
/libcore/ojluni/src/main/java/javax/crypto/
H A DKeyAgreementSpi.java150 * <code>sharedSecret</code>, beginning at <code>offset</code> inclusive.
164 * @param offset the offset in <code>sharedSecret</code> where the
175 int offset)
174 engineGenerateSecret(byte[] sharedSecret, int offset) argument
H A DMacSpi.java81 * starting at <code>offset</code> inclusive.
84 * @param offset the offset in <code>input</code> where the input starts.
87 protected abstract void engineUpdate(byte[] input, int offset, int len); argument

Completed in 674 milliseconds

12345678910