/libcore/luni/src/main/java/sun/misc/ |
H A D | Unsafe.java | 56 * 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/native/ |
H A D | libcore_net_RawSocket.cpp | 96 * Assumes that the caller has validated the offset & byteCount values. 100 jbyteArray packet, jint offset, jint byteCount) 136 err = NET_FAILURE_RETRY(fd, sendto(intFd, byteArray.get() + offset, 148 * Assumes that the caller has validated the offset & byteCount values. 151 jbyteArray packet, jint offset, jint byteCount, jint port, 165 packetData += offset; 98 RawSocket_sendPacket(JNIEnv* env, jclass, jobject fileDescriptor, jstring interfaceName, jshort protocolType, jbyteArray destMac, jbyteArray packet, jint offset, jint byteCount) argument 150 RawSocket_recvPacket(JNIEnv* env, jclass, jobject fileDescriptor, jbyteArray packet, jint offset, jint byteCount, jint port, jint timeout_millis) argument
|
/libcore/luni/src/test/java/libcore/java/io/ |
H A D | OldFilterReaderTest.java | 58 public int read(char[] buffer, int offset, int count) throws IOException { argument
|
H A D | OldFilterWriterTest.java | 48 public void write(char[] buffer, int offset, int count) throws IOException { argument 56 public void write(String str, int offset, int count) throws IOException { argument
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
H A D | MessageDigest1Test.java | 71 // offset + len > buf.length 77 // offset + len > Integer.MAX_VALUE 82 // offset<0 and len<0 are passed to provider 83 final int offset = -1; 89 assertEquals("offset", offset, arg1); 94 md.update(bytes, offset, len); 161 // offset + len > buf.length 167 // offset + len > Integer.MAX_VALUE 172 // offset< 317 engineUpdate(byte[] input, int offset, int len) argument [all...] |
/libcore/support/src/test/java/libcore/java/io/ |
H A D | NullPrintStream.java | 60 public void write(byte[] buffer, int offset, int length) {} argument
|
/libcore/luni/src/main/java/java/io/ |
H A D | PrintWriter.java | 584 * offset} to the target. 591 * @param offset 596 * if {@code offset < 0} or {@code count < 0}, or if {@code 597 * offset + count} is greater than the length of {@code buf}. 600 public void write(char[] buf, int offset, int count) { argument 601 doWrite(buf, offset, count); 619 private final void doWrite(char[] buf, int offset, int count) { argument 623 out.write(buf, offset, count); 646 * offset} to the target. 650 * @param offset 659 write(String str, int offset, int count) argument [all...] |
H A D | RandomAccessFile.java | 185 * as this file's file pointer offset (see {@link #getFilePointer()}). Any 186 * changes made to this file's file pointer offset are also visible in the 215 * @return the current offset in bytes from the beginning of the file. 390 * array {@code dst} starting at {@code offset}. If {@code byteCount} is zero, then this 399 * @param offset 400 * the offset in {@code dst} at which to store the bytes. 407 * if {@code offset < 0} or {@code byteCount < 0}, or 408 * {@code offset + byteCount > dst.length}. 414 public final void readFully(byte[] dst, int offset, int byteCount) throws IOException { argument 415 Arrays.checkOffsetAndCount(dst.length, offset, byteCoun 599 seek(long offset) argument [all...] |
/libcore/luni/src/main/java/java/lang/ |
H A D | AbstractStringBuilder.java | 120 final void append0(char[] chars, int offset, int length) { argument 121 Arrays.checkOffsetAndCount(chars.length, offset, length); 126 System.arraycopy(chars, offset, value, count, length); 683 * character starts at the specified offset and moves towards the end. 688 * the starting offset. 749 * character starts at the specified offset and moves towards the beginning. 754 * the starting offset. 880 * Returns the index that is offset {@code codePointOffset} code points from 884 * the index to calculate the offset from.
|
H A D | HexStringParser.java | 162 int offset = getOffset(strIntegerPart, strDecimalPart); 163 checkedAddExponent(offset); 204 private void checkedAddExponent(long offset) { argument 205 long result = exponent + offset; 207 if (expSign * Long.signum(offset) > 0 && expSign * Long.signum(result) < 0) { 289 * Calculates the offset between the normalized number and unnormalized
|
H A D | Integer.java | 369 private static int parse(String string, int offset, int radix, boolean negative) throws NumberFormatException { argument 372 while (offset < length) { 373 int digit = Character.digit(string.charAt(offset++), radix);
|
H A D | Long.java | 356 private static long parse(String string, int offset, int radix, boolean negative) { argument 359 while (offset < length) { 360 int digit = Character.digit(string.charAt(offset++), radix);
|
/libcore/luni/src/main/java/java/net/ |
H A D | Socks4Message.java | 182 * Get a String from the buffer at the offset given. The method reads until 185 private String getString(int offset, int maxLength) { argument 186 int index = offset; 191 return new String(buffer, offset, index - offset, Charsets.ISO_8859_1); 202 * Put a string into the buffer at the offset given. 204 private void setString(int offset, int maxLength, String theString) { argument 207 System.arraycopy(stringBytes, 0, buffer, offset, length); 208 buffer[offset + length] = 0;
|
/libcore/luni/src/main/java/java/nio/ |
H A D | Buffer.java | 125 * Returns the offset into the array returned by {@code array} of the first 129 * {@code buffer.array()[offset + buffer.arrayOffset()} to access element {@code offset} 135 * @return the offset 170 int checkGetBounds(int bytesPerElement, int length, int offset, int count) { argument 172 if ((offset | count) < 0 || offset > length || length - offset < count) { 173 throw new IndexOutOfBoundsException("offset=" + offset 182 checkPutBounds(int bytesPerElement, int length, int offset, int count) argument [all...] |
H A D | DatagramChannelImpl.java | 303 public long read(ByteBuffer[] targets, int offset, int length) throws IOException { argument 304 Arrays.checkOffsetAndCount(targets.length, offset, length); 308 int totalCount = FileChannelImpl.calculateTotalRemaining(targets, offset, length, true); 319 int index = offset; 369 public long write(ByteBuffer[] sources, int offset, int length) throws IOException { argument 370 Arrays.checkOffsetAndCount(sources.length, offset, length); 374 int count = FileChannelImpl.calculateTotalRemaining(sources, offset, length, false); 379 for (int val = offset; val < length + offset; val++) { 387 int val = offset; [all...] |
H A D | FileChannelImpl.java | 243 int offset = (int) (position - alignment); 244 MemoryBlock block = MemoryBlock.mmap(fd, alignment, size + offset, mapMode); 245 return new MappedByteBufferAdapter(block, (int) size, offset, mapMode); 336 public long read(ByteBuffer[] buffers, int offset, int length) throws IOException { argument 337 Arrays.checkOffsetAndCount(buffers.length, offset, length); 340 return transferIoVec(new IoVec(buffers, offset, length, IoVec.Direction.READV)); 417 MutableLong offset = new MutableLong(position); 418 long rc = Libcore.os.sendfile(outFd, fd, offset, count); 501 public long write(ByteBuffer[] buffers, int offset, int length) throws IOException { argument 502 Arrays.checkOffsetAndCount(buffers.length, offset, lengt 513 calculateTotalRemaining(ByteBuffer[] buffers, int offset, int length, boolean copyingIn) argument [all...] |
H A D | MappedByteBufferAdapter.java | 54 public MappedByteBufferAdapter(MemoryBlock block, int capacity, int offset, MapMode mode) { argument 55 super(block, capacity, offset, mode);
|
H A D | MemoryBlock.java | 95 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...] |
/libcore/luni/src/main/java/java/security/ |
H A D | Signature.java | 331 * @param offset 340 * if {@code offset} or {@code len} are not valid in respect to 343 public final int sign(byte[] outbuf, int offset, int len) argument 345 if (outbuf == null || offset < 0 || len < 0 || 346 offset + len > outbuf.length) { 352 return engineSign(outbuf, offset, len); 380 * offset} with {@code length} bytes can be verified using the public key or 389 * @param offset 399 * if {@code offset} or {@code length} are not valid in respect 402 public final boolean verify(byte[] signature, int offset, in argument [all...] |
/libcore/luni/src/main/java/java/text/ |
H A D | AttributedString.java | 57 private int begin, end, offset; field in class:AttributedString.AttributedIterator 67 offset = 0; 78 offset = begin; 113 if (offset == end) { 116 return attrString.text.charAt(offset); 123 offset = begin; 124 return attrString.text.charAt(offset); 151 return offset; 210 if (offset >= range.start && offset < rang [all...] |
H A D | MessageFormat.java | 397 int offset = position.getIndex(); 398 if (offset >= length) { 403 while ((ch = template.charAt(offset++)) != '}' && ch != ',') { 410 if (arg < 0 || offset >= length) { 414 offset--; 415 position.setIndex(offset); 856 int offset = position.getIndex(); 860 if (!string.startsWith(sub, offset)) { 861 position.setErrorIndex(offset); 864 offset 1040 setFormat(int offset, Format format) argument [all...] |
/libcore/luni/src/main/java/java/util/ |
H A D | AbstractList.java | 163 private int offset; field in class:AbstractList.SubAbstractList 178 SubAbstractList<E> list, int offset, int length) { 181 start = offset; 239 offset = start; 247 fullList.add(location + offset, object); 262 boolean result = fullList.addAll(location + offset, 278 boolean result = fullList.addAll(offset + size, collection); 292 return fullList.get(location + offset); 309 .listIterator(location + offset), this, offset, 177 SubAbstractListIterator(ListIterator<E> it, SubAbstractList<E> list, int offset, int length) argument [all...] |
H A D | Arrays.java | 1724 * Checks that the range described by {@code offset} and {@code count} doesn't exceed 1729 public static void checkOffsetAndCount(int arrayLength, int offset, int count) { argument 1730 if ((offset | count) < 0 || offset > arrayLength || arrayLength - offset < count) { 1731 throw new ArrayIndexOutOfBoundsException(arrayLength, offset,
|
/libcore/luni/src/main/java/java/util/zip/ |
H A D | Deflater.java | 211 public synchronized int deflate(byte[] buf, int offset, int byteCount) { argument 212 return deflateImpl(buf, offset, byteCount, flushParm); 228 public synchronized int deflate(byte[] buf, int offset, int byteCount, int flush) { argument 232 return deflateImpl(buf, offset, byteCount, flush); 235 private synchronized int deflateImpl(byte[] buf, int offset, int byteCount, int flush) { argument 237 Arrays.checkOffsetAndCount(buf.length, offset, byteCount); 241 return deflateImpl(buf, offset, byteCount, streamHandle, flush); 244 private native int deflateImpl(byte[] buf, int offset, int byteCount, long handle, int flushParm); argument 380 public synchronized void setDictionary(byte[] buf, int offset, int byteCount) { argument 382 Arrays.checkOffsetAndCount(buf.length, offset, byteCoun 386 setDictionaryImpl(byte[] buf, int offset, int byteCount, long handle) argument 400 setInput(byte[] buf, int offset, int byteCount) argument 414 setInputImpl(byte[] buf, int offset, int byteCount, long handle) argument [all...] |
H A D | Inflater.java | 210 * {@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...] |