/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | AbstractPollArrayWrapper.java | 54 int offset = SIZE_POLLFD * i + EVENT_OFFSET; 55 return pollArray.getShort(offset); 59 int offset = SIZE_POLLFD * i + REVENT_OFFSET; 60 return pollArray.getShort(offset); 64 int offset = SIZE_POLLFD * i + FD_OFFSET; 65 return pollArray.getInt(offset); 69 int offset = SIZE_POLLFD * i + EVENT_OFFSET; 70 pollArray.putShort(offset, (short)event); 74 int offset = SIZE_POLLFD * i + REVENT_OFFSET; 75 pollArray.putShort(offset, (shor [all...] |
H A D | NativeObject.java | 64 * whose base is at the additional offset. 66 NativeObject(long address, long offset) { argument 68 this.address = address + offset; 99 * Creates a new native object starting at the given offset from the base 102 * @param offset 103 * The offset from the base of this native object that is to be 108 NativeObject subObject(int offset) { argument 109 return new NativeObject(offset + address); 113 * Reads an address from this native object at the given offset and 116 * @param offset 123 getObject(int offset) argument 150 putObject(int offset, NativeObject ob) argument 175 getByte(int offset) argument 189 putByte(int offset, byte value) argument 202 getShort(int offset) argument 216 putShort(int offset, short value) argument 229 getChar(int offset) argument 243 putChar(int offset, char value) argument 256 getInt(int offset) argument 270 putInt(int offset, int value) argument 283 getLong(int offset) argument 297 putLong(int offset, long value) argument 310 getFloat(int offset) argument 324 putFloat(int offset, float value) argument 337 getDouble(int offset) argument 351 putDouble(int offset, double value) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/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/ojluni/src/main/java/javax/crypto/spec/ |
H A D | DESedeKeySpec.java | 67 * <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 D | GCMParameterSpec.java | 99 * @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 D | IvParameterSpec.java | 58 * 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...] |
/libcore/luni/src/main/java/java/nio/charset/ |
H A D | ModifiedUtf8.java | 63 * 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 D | Memory.java | 46 public static int peekInt(byte[] src, int offset, ByteOrder order) { argument 48 return (((src[offset++] & 0xff) << 24) | 49 ((src[offset++] & 0xff) << 16) | 50 ((src[offset++] & 0xff) << 8) | 51 ((src[offset ] & 0xff) << 0)); 53 return (((src[offset++] & 0xff) << 0) | 54 ((src[offset++] & 0xff) << 8) | 55 ((src[offset++] & 0xff) << 16) | 56 ((src[offset ] & 0xff) << 24)); 60 public static long peekLong(byte[] src, int offset, ByteOrde argument 84 peekShort(byte[] src, int offset, ByteOrder order) argument 92 pokeInt(byte[] dst, int offset, int value, ByteOrder order) argument 106 pokeLong(byte[] dst, int offset, long value, ByteOrder order) argument 132 pokeShort(byte[] dst, int offset, short value, ByteOrder order) argument 225 pokeByteArray(long address, byte[] src, int offset, int count) argument 226 pokeCharArray(long address, char[] src, int offset, int count, boolean swap) argument 227 pokeDoubleArray(long address, double[] src, int offset, int count, boolean swap) argument 228 pokeFloatArray(long address, float[] src, int offset, int count, boolean swap) argument 229 pokeIntArray(long address, int[] src, int offset, int count, boolean swap) argument 230 pokeLongArray(long address, long[] src, int offset, int count, boolean swap) argument 231 pokeShortArray(long address, short[] src, int offset, int count, boolean swap) argument [all...] |
/libcore/luni/src/main/java/libcore/util/ |
H A D | CharsetUtils.java | 32 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
|
/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/ojluni/src/main/java/java/nio/ |
H A D | MappedByteBuffer.java | 87 MappedByteBuffer(int mark, int pos, int lim, int cap, byte[] buf, int offset) { argument 88 super(mark, pos, lim, cap, buf, offset); 107 long offset = address % ps; 108 return (offset >= 0) ? offset : (ps + offset); 141 long offset = mappingOffset(); 142 long length = mappingLength(offset); 143 return isLoaded0(mappingAddress(offset), length, Bits.pageCount(length)); 163 long offset [all...] |
H A D | StringCharBuffer.java | 49 offset + this.position()); 57 int offset) { 58 super(mark, pos, limit, cap, null, offset); 64 position(), limit(), capacity(), offset); 72 return str.charAt(nextGetIndex() + offset); 76 return str.charAt(checkIndex(index) + offset); 80 return str.charAt(index + offset); 102 return str.toString().substring(start + offset, end + offset); 113 offset); 52 StringCharBuffer(CharSequence s, int mark, int pos, int limit, int cap, int offset) argument [all...] |
H A D | ByteBufferAsDoubleBuffer.java | 34 protected final int offset; field in class:ByteBufferAsDoubleBuffer 55 offset = off; 63 int off = (pos << 3) + offset; 74 offset, 84 offset, 89 return (i << 3) + offset; 100 public DoubleBuffer get(double[] dst, int offset, int length) { argument 101 checkBounds(offset, length, dst.length); 104 bb.getUnchecked(ix(position), dst, offset, length); 122 public DoubleBuffer put(double[] src, int offset, in argument [all...] |
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
H A D | Chunk.java | 25 * 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/ojluni/src/main/java/sun/misc/ |
H A D | Unsafe.java | 71 * Gets the raw byte offset from the start of an object's memory to 76 * @return the offset to the field 86 * Gets the offset from the start of an array object's memory to 90 * @return the offset to the initial element 124 * @param offset offset to the field within <code>obj</code> 132 public native boolean compareAndSwapInt(Object obj, long offset, argument 140 * @param offset offset to the field within <code>obj</code> 148 public native boolean compareAndSwapLong(Object obj, long offset, argument 164 compareAndSwapObject(Object obj, long offset, Object expectedValue, Object newValue) argument 176 getIntVolatile(Object obj, long offset) argument 187 putIntVolatile(Object obj, long offset, int newValue) argument 198 getLongVolatile(Object obj, long offset) argument 209 putLongVolatile(Object obj, long offset, long newValue) argument 220 getObjectVolatile(Object obj, long offset) argument 231 putObjectVolatile(Object obj, long offset, Object newValue) argument 242 getInt(Object obj, long offset) argument 252 putInt(Object obj, long offset, int newValue) argument 258 putOrderedInt(Object obj, long offset, int newValue) argument 268 getLong(Object obj, long offset) argument 278 putLong(Object obj, long offset, long newValue) argument 284 putOrderedLong(Object obj, long offset, long newValue) argument 294 getObject(Object obj, long offset) argument 304 putObject(Object obj, long offset, Object newValue) argument 310 putOrderedObject(Object obj, long offset, Object newValue) argument 315 getBoolean(Object obj, long offset) argument 317 putBoolean(Object obj, long offset, boolean newValue) argument 319 getByte(Object obj, long offset) argument 321 putByte(Object obj, long offset, byte newValue) argument 323 getChar(Object obj, long offset) argument 325 putChar(Object obj, long offset, char newValue) argument 327 getShort(Object obj, long offset) argument 329 putShort(Object obj, long offset, short newValue) argument 331 getFloat(Object obj, long offset) argument 333 putFloat(Object obj, long offset, float newValue) argument 335 getDouble(Object obj, long offset) argument 337 putDouble(Object obj, long offset, double newValue) argument 468 getAndAddInt(Object o, long offset, int delta) argument 488 getAndAddLong(Object o, long offset, long delta) argument 508 getAndSetInt(Object o, long offset, int newValue) argument 528 getAndSetLong(Object o, long offset, long newValue) argument 548 getAndSetObject(Object o, long offset, Object newValue) argument [all...] |
H A D | BASE64Encoder.java | 82 protected void encodeAtom(OutputStream outStream, byte data[], int offset, int len) argument 87 a = data[offset]; 95 a = data[offset]; 96 b = data[offset+1]; 103 a = data[offset]; 104 b = data[offset+1]; 105 c = data[offset+2];
|
/libcore/luni/src/main/java/org/apache/harmony/xml/dom/ |
H A D | CharacterDataImpl.java | 46 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/ojluni/src/main/java/java/net/ |
H A D | DatagramPacket.java | 59 int offset; field in class:DatagramPacket 67 * length {@code length}, specifying an offset into the buffer. 73 * @param offset the offset for the buffer 78 public DatagramPacket(byte buf[], int offset, int length) { argument 79 setData(buf, offset, length); 100 * {@code length} with offset {@code ioffset}to the 106 * @param offset the packet data offset. 114 public DatagramPacket(byte buf[], int offset, in argument 143 DatagramPacket(byte buf[], int offset, int length, SocketAddress address) argument 269 setData(byte[] buf, int offset, int length) argument [all...] |
/libcore/ojluni/src/main/java/java/text/ |
H A D | IcuIteratorWrapper.java | 267 * (i.e., the CharacterIterator's starting offset). 269 * @return The offset of the beginning of the text. 277 * (i.e., the CharacterIterator's ending offset). 279 * @return The text's past-the-end offset. 292 * @return The character offset of the boundary position n boundaries away from 318 * Throw IllegalArgumentException unless begin <= offset < end. 320 protected static final void checkOffset(int offset, CharacterIterator text) { argument 321 if (offset < text.getBeginIndex() || offset > text.getEndIndex()) { 322 throw new IllegalArgumentException("offset ou 333 following(int offset) argument 346 preceding(int offset) argument 363 isBoundary(int offset) argument [all...] |
/libcore/ojluni/src/main/java/java/lang/ |
H A D | StringIndexOutOfBoundsException.java | 93 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
|
H A D | ArrayIndexOutOfBoundsException.java | 81 public ArrayIndexOutOfBoundsException(int sourceLength, int offset, argument 83 super("length=" + sourceLength + "; regionStart=" + offset
|
/libcore/ojluni/src/main/java/java/time/ |
H A D | OffsetTime.java | 97 * A time with an offset from UTC/Greenwich in the ISO-8601 calendar system, 101 * viewed as hour-minute-second-offset. 103 * as well as a zone offset. 117 * This is the time of midnight at the start of the day in the maximum offset 125 * This is the time just before midnight at the end of the day in the minimum offset 142 * The offset from UTC/Greenwich. 144 private final ZoneOffset offset; field in class:OffsetTime 152 * The offset will be calculated from the time-zone in the clock. 168 * The offset will be calculated from the specified time-zone. 184 * The offset wil 206 of(LocalTime time, ZoneOffset offset) argument 229 of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) argument 331 OffsetTime(LocalTime time, ZoneOffset offset) argument 342 with(LocalTime time, ZoneOffset offset) argument 562 withOffsetSameLocal(ZoneOffset offset) argument 584 withOffsetSameInstant(ZoneOffset offset) argument [all...] |
/libcore/support/src/test/java/tests/support/ |
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...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | GZIPOutputStream.java | 138 * @param off the start offset of the data 198 * offset. 200 private void writeTrailer(byte[] buf, int offset) throws IOException { argument 201 writeInt((int)crc.getValue(), buf, offset); // CRC-32 of uncompr. data 202 writeInt(def.getTotalIn(), buf, offset + 4); // Number of uncompr. bytes 207 * given offset. 209 private void writeInt(int i, byte[] buf, int offset) throws IOException { argument 210 writeShort(i & 0xffff, buf, offset); 211 writeShort((i >> 16) & 0xffff, buf, offset + 2); 216 * at a given offset 218 writeShort(int s, byte[] buf, int offset) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | WriterTest.java | 104 private int offset; field in class:WriterTest.MockWriter 109 offset = 0; 121 public void write(char[] buffer, int offset, int count) argument 126 if (offset < 0 || count < 0 || offset >= buffer.length) { 129 count = Math.min(count, buffer.length - offset); 130 count = Math.min(count, this.length - this.offset); 132 contents[this.offset + i] = buffer[offset + i]; 134 this.offset [all...] |