Searched refs:offset (Results 1 - 25 of 272) sorted by relevance

1234567891011

/libcore/luni/src/test/java/tests/api/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/libcore/io/
H A DMemory.java45 public static int peekInt(byte[] src, int offset, ByteOrder order) { argument
47 return (((src[offset++] & 0xff) << 24) |
48 ((src[offset++] & 0xff) << 16) |
49 ((src[offset++] & 0xff) << 8) |
50 ((src[offset ] & 0xff) << 0));
52 return (((src[offset++] & 0xff) << 0) |
53 ((src[offset++] & 0xff) << 8) |
54 ((src[offset++] & 0xff) << 16) |
55 ((src[offset ] & 0xff) << 24));
59 public static long peekLong(byte[] src, int offset, ByteOrde argument
83 peekShort(byte[] src, int offset, ByteOrder order) argument
91 pokeInt(byte[] dst, int offset, int value, ByteOrder order) argument
105 pokeLong(byte[] dst, int offset, long value, ByteOrder order) argument
131 pokeShort(byte[] dst, int offset, short value, ByteOrder order) argument
171 pokeByteArray(int address, byte[] src, int offset, int count) argument
172 pokeCharArray(int address, char[] src, int offset, int count, boolean swap) argument
173 pokeDoubleArray(int address, double[] src, int offset, int count, boolean swap) argument
174 pokeFloatArray(int address, float[] src, int offset, int count, boolean swap) argument
175 pokeIntArray(int address, int[] src, int offset, int count, boolean swap) argument
176 pokeLongArray(int address, long[] src, int offset, int count, boolean swap) argument
177 pokeShortArray(int address, short[] src, int offset, int count, boolean swap) argument
[all...]
H A DHeapBufferIterator.java29 private final int offset; field in class:HeapBufferIterator
35 HeapBufferIterator(byte[] buffer, int offset, int byteCount, ByteOrder order) { argument
37 this.offset = offset;
42 public void seek(int offset) { argument
43 position = offset;
51 System.arraycopy(buffer, offset + position, dst, dstOffset, byteCount);
56 byte result = buffer[offset + position];
62 int result = Memory.peekInt(buffer, offset + position, order);
69 Memory.unsafeBulkGet(dst, dstOffset, byteCount, buffer, offset
83 iterator(byte[] buffer, int offset, int byteCount, ByteOrder order) argument
[all...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DSSLEngineDataStream.java34 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/java/text/
H A DStringCharacterIterator.java27 int start, end, offset; field in class:StringCharacterIterator
39 start = offset = 0;
64 offset = location;
92 offset = location;
118 if (offset == end) {
121 return string.charAt(offset);
143 && offset == it.offset;
157 offset = start;
158 return string.charAt(offset);
[all...]
H A DRuleBasedBreakIterator.java42 @Override public int following(int offset) { argument
43 validateOffset(offset);
44 return wrapped.following(offset);
48 * check the offset, throw exception if it is invalid
50 private void validateOffset(int offset) { argument
52 if (offset < it.getBeginIndex() || offset > it.getEndIndex()) {
84 @Override public boolean isBoundary(int offset) { argument
85 validateOffset(offset);
86 return wrapped.isBoundary(offset);
89 preceding(int offset) argument
[all...]
/libcore/luni/src/main/java/java/nio/charset/
H A DCharsets.java48 public static native byte[] toAsciiBytes(char[] chars, int offset, int length); argument
54 public static native byte[] toIsoLatin1Bytes(char[] chars, int offset, int length); argument
60 public static native byte[] toUtf8Bytes(char[] chars, int offset, int length); argument
66 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { argument
68 int end = offset + length;
70 for (int i = offset; i < end; ++i) {
86 public static native void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars); argument
95 public static native void isoLatin1BytesToChars(byte[] bytes, int offset, int length, char[] chars); argument
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/
H A DBerOutputStream.java36 /** current offset */
37 protected int offset; field in class:BerOutputStream
46 encoded[offset++] = (byte) tag; //FIXME long form?
55 encoded[offset] = (byte) (numOctets | 0x80);
56 offset++;
59 int numOffset = offset + numOctets - 1;
63 offset += numOctets;
65 encoded[offset++] = (byte) length;
70 System.arraycopy(content, 0, encoded, offset, length);
71 offset
[all...]
/libcore/luni/src/main/java/java/nio/
H A DMemoryBlock.java95 public static MemoryBlock mmap(FileDescriptor fd, long offset, long size, MapMode mapMode) throws IOException { argument
101 if (offset < 0 || size < 0 || offset > Integer.MAX_VALUE || size > Integer.MAX_VALUE) {
102 throw new IllegalArgumentException("offset=" + offset + " size=" + size);
117 int address = (int) Libcore.os.mmap(0L, size, prot, flags, fd, offset);
148 public final void pokeByte(int offset, byte value) { argument
149 Memory.pokeByte(address + offset, value);
152 public final void pokeByteArray(int offset, byte[] src, int srcOffset, int byteCount) { argument
153 Memory.pokeByteArray(address + offset, sr
156 pokeCharArray(int offset, char[] src, int srcOffset, int charCount, boolean swap) argument
160 pokeDoubleArray(int offset, double[] src, int srcOffset, int doubleCount, boolean swap) argument
164 pokeFloatArray(int offset, float[] src, int srcOffset, int floatCount, boolean swap) argument
168 pokeIntArray(int offset, int[] src, int srcOffset, int intCount, boolean swap) argument
172 pokeLongArray(int offset, long[] src, int srcOffset, int longCount, boolean swap) argument
176 pokeShortArray(int offset, short[] src, int srcOffset, int shortCount, boolean swap) argument
180 peekByte(int offset) argument
184 peekByteArray(int offset, byte[] dst, int dstOffset, int byteCount) argument
188 peekCharArray(int offset, char[] dst, int dstOffset, int charCount, boolean swap) argument
192 peekDoubleArray(int offset, double[] dst, int dstOffset, int doubleCount, boolean swap) argument
196 peekFloatArray(int offset, float[] dst, int dstOffset, int floatCount, boolean swap) argument
200 peekIntArray(int offset, int[] dst, int dstOffset, int intCount, boolean swap) argument
204 peekLongArray(int offset, long[] dst, int dstOffset, int longCount, boolean swap) argument
208 peekShortArray(int offset, short[] dst, int dstOffset, int shortCount, boolean swap) argument
212 pokeShort(int offset, short value, ByteOrder order) argument
216 peekShort(int offset, ByteOrder order) argument
220 pokeInt(int offset, int value, ByteOrder order) argument
224 peekInt(int offset, ByteOrder order) argument
228 pokeLong(int offset, long value, ByteOrder order) argument
232 peekLong(int offset, ByteOrder order) argument
[all...]
H A DDoubleArrayBuffer.java36 protected final int offset; field in class:DoubleArrayBuffer
46 DoubleArrayBuffer(int capacity, double[] 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, doubleCount);
H A DFloatArrayBuffer.java36 protected final int offset; field in class:FloatArrayBuffer
46 FloatArrayBuffer(int capacity, float[] 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, floatCount);
H A DIntArrayBuffer.java36 protected final int offset; field in class:IntArrayBuffer
46 IntArrayBuffer(int capacity, int[] 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, intCount);
H A DLongArrayBuffer.java36 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 DShortArrayBuffer.java36 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/org/w3c/dom/
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/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/luni/src/main/java/org/apache/harmony/xml/dom/
H A DCharacterDataImpl.java46 public void deleteData(int offset, int count) throws DOMException { argument
47 buffer.delete(offset, offset + count);
70 public void insertData(int offset, String arg) throws DOMException { argument
72 buffer.insert(offset, arg);
78 public void replaceData(int offset, int count, String arg) argument
81 buffer.replace(offset, offset + count, arg);
91 public String substringData(int offset, int count) throws DOMException { argument
93 return buffer.substring(offset, offse
[all...]
/libcore/luni/src/main/java/java/lang/
H A DStringBuilder.java260 * @param offset
261 * the inclusive offset index.
266 * if {@code offset} and {@code len} do not specify a valid
270 public StringBuilder append(char[] str, int offset, int len) { argument
271 append0(str, offset, len);
365 * at the specified {@code offset}. The {@code boolean} value is converted
369 * @param offset
375 * if {@code offset} is negative or greater than the current
379 public StringBuilder insert(int offset, boolean b) { argument
380 insert0(offset,
399 insert(int offset, char c) argument
419 insert(int offset, int i) argument
439 insert(int offset, long l) argument
459 insert(int offset, float f) argument
480 insert(int offset, double d) argument
500 insert(int offset, Object obj) argument
518 insert(int offset, String str) argument
538 insert(int offset, char[] ch) argument
564 insert(int offset, char[] str, int strOffset, int strLen) argument
586 insert(int offset, CharSequence s) argument
614 insert(int offset, CharSequence s, int start, int end) argument
[all...]
H A DStringIndexOutOfBoundsException.java78 public StringIndexOutOfBoundsException(String s, int offset, int count) { argument
79 this(s.length(), offset, count);
86 public StringIndexOutOfBoundsException(int sourceLength, int offset, argument
88 super("length=" + sourceLength + "; regionStart=" + offset
/libcore/luni/src/main/java/sun/misc/
H A DUnsafe.java56 * Gets the raw byte offset from the start of an object's memory to
61 * @return the offset to the field
77 * @return the offset to the field
82 * Gets the offset from the start of an array object's memory to
86 * @return the offset to the initial element
101 * @return the offset to the field
124 * @return the offset to the field
133 * @param offset offset to the field within <code>obj</code>
140 public native boolean compareAndSwapInt(Object obj, long offset, argument
155 compareAndSwapLong(Object obj, long offset, long expectedValue, long newValue) argument
170 compareAndSwapObject(Object obj, long offset, Object expectedValue, Object newValue) argument
181 getIntVolatile(Object obj, long offset) argument
191 putIntVolatile(Object obj, long offset, int newValue) argument
201 getLongVolatile(Object obj, long offset) argument
211 putLongVolatile(Object obj, long offset, long newValue) argument
221 getObjectVolatile(Object obj, long offset) argument
231 putObjectVolatile(Object obj, long offset, Object newValue) argument
241 getInt(Object obj, long offset) argument
250 putInt(Object obj, long offset, int newValue) argument
255 putOrderedInt(Object obj, long offset, int newValue) argument
264 getLong(Object obj, long offset) argument
273 putLong(Object obj, long offset, long newValue) argument
278 putOrderedLong(Object obj, long offset, long newValue) argument
287 getObject(Object obj, long offset) argument
296 putObject(Object obj, long offset, Object newValue) argument
301 putOrderedObject(Object obj, long offset, Object newValue) argument
[all...]
/libcore/luni/src/main/java/java/net/
H A DDatagramPacket.java48 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...]
/libcore/luni/src/main/java/java/io/
H A DOutputStream.java87 * position {@code offset} to this stream.
91 * @param offset
99 * if {@code offset < 0} or {@code count < 0}, or if
100 * {@code offset + count} is bigger than the length of
103 public void write(byte[] buffer, int offset, int count) throws IOException { argument
104 Arrays.checkOffsetAndCount(buffer.length, offset, count);
105 for (int i = offset; i < offset + count; i++) {
/libcore/luni/src/main/java/java/util/zip/
H A DAdler32.java70 * 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 DCRC32.java71 * 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
H A DInflater.java210 * {@code buf} starting at {@code offset}.
217 public synchronized int inflate(byte[] buf, int offset, int byteCount) throws DataFormatException { argument
218 Arrays.checkOffsetAndCount(buf.length, offset, byteCount);
228 int result = inflateImpl(buf, offset, byteCount, streamHandle);
235 private native int inflateImpl(byte[] buf, int offset, int byteCount, long handle); argument
279 * starting at {@code offset} and continuing for {@code byteCount} bytes. See {@link
282 public synchronized void setDictionary(byte[] dictionary, int offset, int byteCount) { argument
284 Arrays.checkOffsetAndCount(dictionary.length, offset, byteCount);
285 setDictionaryImpl(dictionary, offset, byteCount, streamHandle);
288 private native void setDictionaryImpl(byte[] dictionary, int offset, in argument
302 setInput(byte[] buf, int offset, int byteCount) argument
310 setInputImpl(byte[] buf, int offset, int byteCount, long handle) argument
312 setFileInput(FileDescriptor fd, long offset, int byteCount) argument
319 setFileInputImpl(FileDescriptor fd, long offset, int byteCount, long handle) argument
[all...]

Completed in 452 milliseconds

1234567891011