/dalvik/libcore/support/src/test/java/tests/support/ |
H A D | Support_StringReader.java | 132 * stores them at <code>offset</code> in the character array 138 * @param offset 139 * offset in buf to store the read characters 148 public int read(char buf[], int offset, int count) throws IOException { argument 150 if (0 <= offset && offset <= buf.length && 0 <= count 151 && count <= buf.length - offset) { 159 str.getChars(pos, end, buf, offset);
|
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);
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/ |
H A D | INetworkSystem.java | 72 public int read(FileDescriptor aFD, byte[] data, int offset, int count, argument 75 public int readDirect(FileDescriptor aFD, int address, int offset, int count, argument 78 public int write(FileDescriptor fd, byte[] data, int offset, int count) argument 81 public int writeDirect(FileDescriptor fd, int address, int offset, int count) argument 96 public int sendDatagram(FileDescriptor fd, byte[] data, int offset, argument 100 public int sendDatagramDirect(FileDescriptor fd, int address, int offset, argument 105 byte[] data, int offset, int length, int receiveTimeout, 109 int address, int offset, int length, int receiveTimeout, 113 byte[] data, int offset, int length, int receiveTimeout, 117 DatagramPacket packet, int address, int offset, in 104 receiveDatagram(FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) argument 108 receiveDatagramDirect(FileDescriptor aFD, DatagramPacket packet, int address, int offset, int length, int receiveTimeout, boolean peek) argument 112 recvConnectedDatagram(FileDescriptor aFD, DatagramPacket packet, byte[] data, int offset, int length, int receiveTimeout, boolean peek) argument 116 recvConnectedDatagramDirect(FileDescriptor aFD, DatagramPacket packet, int address, int offset, int length, int receiveTimeout, boolean peek) argument 123 sendConnectedDatagram(FileDescriptor fd, byte[] data, int offset, int length, boolean bindToDevice) argument 126 sendConnectedDatagramDirect(FileDescriptor fd, int address, int offset, int length, boolean bindToDevice) argument 143 receiveStream(FileDescriptor aFD, byte[] data, int offset, int count, int timeout) argument 146 sendStream(FileDescriptor fd, byte[] data, int offset, int count) argument 175 sendDatagram2(FileDescriptor fd, byte[] data, int offset, int length, int port, InetAddress inetAddress) argument [all...] |
/dalvik/vm/oo/ |
H A D | Object.h | 426 * For concrete virtual methods, this is the offset of the method 429 * For abstract methods in an interface class, this is the offset 527 * This field indicates the byte offset from the beginning of the 593 * Find a field and return the byte offset from the object pointer. Only 609 * Field access functions. Pass in the word offset from Field->byteOffset. 619 INLINE JValue* dvmFieldPtr(const Object* obj, int offset) { argument 620 return ((JValue*)BYTE_OFFSET(obj, offset)); 623 INLINE bool dvmGetFieldBoolean(const Object* obj, int offset) { argument 624 return ((JValue*)BYTE_OFFSET(obj, offset))->z; 626 INLINE s1 dvmGetFieldByte(const Object* obj, int offset) { argument 629 dvmGetFieldShort(const Object* obj, int offset) argument 632 dvmGetFieldChar(const Object* obj, int offset) argument 635 dvmGetFieldInt(const Object* obj, int offset) argument 638 dvmGetFieldLong(const Object* obj, int offset) argument 641 dvmGetFieldFloat(const Object* obj, int offset) argument 644 dvmGetFieldDouble(const Object* obj, int offset) argument 647 dvmGetFieldObject(const Object* obj, int offset) argument 651 dvmSetFieldBoolean(Object* obj, int offset, bool val) argument 654 dvmSetFieldByte(Object* obj, int offset, s1 val) argument 657 dvmSetFieldShort(Object* obj, int offset, s2 val) argument 660 dvmSetFieldChar(Object* obj, int offset, u2 val) argument 663 dvmSetFieldInt(Object* obj, int offset, s4 val) argument 666 dvmSetFieldLong(Object* obj, int offset, s8 val) argument 669 dvmSetFieldFloat(Object* obj, int offset, float val) argument 672 dvmSetFieldDouble(Object* obj, int offset, double val) argument 675 dvmSetFieldObject(Object* obj, int offset, Object* val) argument [all...] |
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/ |
H A D | BerInputStream.java | 54 * Next read must place data into the buffer from this offset 56 protected int offset = 0; field in class:BerInputStream 83 * @param offset - 84 * the encoding offset 91 public BerInputStream(byte[] encoded, int offset, int expectedLength) argument 95 this.offset = offset; 101 && (offset + expectedLength) != (this.offset + this.length)) { 137 System.arraycopy(buffer, 0, newBuffer, 0, offset); [all...] |
/dalvik/dx/src/com/android/dx/util/ |
H A D | ByteArray.java | 102 * Returns the offset into the given array represented by the given 103 * offset into this instance. 105 * @param offset offset into this instance 107 * @return corresponding offset into <code>bytes</code> 111 public int underlyingOffset(int offset, byte[] bytes) { argument 116 return start + offset; 120 * Gets the <code>signed byte</code> value at a particular offset. 122 * @param off <code>>= 0, < size(); offset to fetch 123 * @return <code>signed byte</code> at that offset 206 getBytes(byte[] out, int offset) argument 314 read(byte[] arr, int offset, int length) argument [all...] |
/dalvik/libcore/crypto/src/main/java/javax/crypto/spec/ |
H A D | DESKeySpec.java | 111 * specified key data starting at <code>offset</code>. 115 * @param offset 116 * the offset to start at. 118 * if the length of the specified key data starting at offset is 121 public DESKeySpec(byte[] key, int offset) argument 126 if (key.length - offset < DES_KEY_LEN) { 131 System.arraycopy(key, offset, this.key, 0, DES_KEY_LEN); 146 * Returns whether the specified key data starting at <code>offset</code> is 151 * @param offset 152 * the offset t 159 isParityAdjusted(byte[] key, int offset) argument 198 isWeak(byte[] key, int offset) argument [all...] |
/dalvik/libcore/luni/src/main/java/java/io/ |
H A D | OutputStreamWriter.java | 214 * Writes {@code count} characters starting at {@code offset} in {@code buf} 221 * @param offset 226 * if {@code offset < 0} or {@code count < 0}, or if 227 * {@code offset + count} is greater than the size of 235 public void write(char[] buf, int offset, int count) throws IOException { argument 242 // used (offset | count) < 0 instead of (offset < 0) || (count < 0) 247 if ((offset | count) < 0 || offset > buf.length - count) { 251 CharBuffer chars = CharBuffer.wrap(buf, offset, coun 314 write(String str, int offset, int count) argument [all...] |
H A D | PushbackInputStream.java | 165 * the byte array {@code buffer} starting at {@code offset}. Bytes are read 172 * @param offset 180 * if {@code offset < 0} or {@code length < 0}, or if 181 * {@code offset + length} is greater than the length of 191 public int read(byte[] buffer, int offset, int length) throws IOException { argument 202 // removed redundant check, used (offset | length) < 0 203 // instead of (offset < 0) || (length < 0) to safe one operation 204 if ((offset | length) < 0 || length > buffer.length - offset) { 209 int copiedBytes = 0, copyLength = 0, newOffset = offset; 314 unread(byte[] buffer, int offset, int length) argument [all...] |
H A D | PushbackReader.java | 163 * byte array {@code buffer} starting at {@code offset}. Characters are 171 * @param offset 179 * if {@code offset < 0} or {@code count < 0}, or if 180 * {@code offset + count} is greater than the length of 188 public int read(char[] buffer, int offset, int count) throws IOException { argument 197 // made implicit null check explicit, used (offset | count) < 0 198 // instead of (offset < 0) || (count < 0) to safe one operation 202 if ((offset | count) < 0 || offset > buffer.length - count) { 209 int newOffset = offset; 329 unread(char[] buffer, int offset, int count) argument [all...] |
H A D | BufferedInputStream.java | 272 * byte array {@code buffer} starting at offset {@code offset}. Returns the 281 * @param offset 288 * if {@code offset < 0} or {@code length < 0}, or if 289 * {@code offset + length} is greater than the size of 297 public synchronized int read(byte[] buffer, int offset, int length) argument 307 // made implicit null check explicit, used (offset | length) < 0 308 // instead of (offset < 0) || (length < 0) to safe one operation 312 if ((offset | length) < 0 || offset > buffe [all...] |
H A D | FilterInputStream.java | 159 * byte array {@code buffer} starting at {@code offset}. Returns the number 166 * @param offset 178 public int read(byte[] buffer, int offset, int count) throws IOException { argument 179 return in.read(buffer, offset, count);
|
H A D | FilterReader.java | 130 * in the byte array {@code buffer} starting at {@code offset}. Returns the 136 * @param offset 148 public int read(char[] buffer, int offset, int count) throws IOException { argument 150 return in.read(buffer, offset, count);
|
/dalvik/libcore/nio/src/main/java/java/nio/ |
H A D | HeapByteBuffer.java | 38 protected final int offset; field in class:HeapByteBuffer 48 HeapByteBuffer(byte[] backingArray, int capacity, int offset) { argument 51 this.offset = offset; 53 if (offset + capacity > backingArray.length) { 73 System.arraycopy(backingArray, offset + position, dest, off, len); 82 return backingArray[offset + position++]; 89 return backingArray[offset + index]; 164 int baseOffset = offset + index; 181 int baseOffset = offset [all...] |
H A D | ReadOnlyDoubleArrayBuffer.java | 37 .capacity(), other.backingArray, other.offset); 94 return new ReadOnlyDoubleArrayBuffer(remaining(), backingArray, offset
|
H A D | ReadOnlyFloatArrayBuffer.java | 36 .capacity(), other.backingArray, other.offset); 92 return new ReadOnlyFloatArrayBuffer(remaining(), backingArray, offset
|
H A D | ReadOnlyIntArrayBuffer.java | 36 .capacity(), other.backingArray, other.offset); 92 return new ReadOnlyIntArrayBuffer(remaining(), backingArray, offset
|
H A D | ReadOnlyLongArrayBuffer.java | 36 .capacity(), other.backingArray, other.offset); 92 return new ReadOnlyLongArrayBuffer(remaining(), backingArray, offset
|
H A D | ReadOnlyShortArrayBuffer.java | 36 .capacity(), other.backingArray, other.offset); 92 return new ReadOnlyShortArrayBuffer(remaining(), backingArray, offset
|
H A D | ReadWriteHeapByteBuffer.java | 36 other.backingArray, other.capacity(), other.offset); 61 System.arraycopy(backingArray, position + offset, backingArray, offset, 82 return offset; 93 backingArray[offset + position++] = b; 101 backingArray[offset + index] = b; 122 System.arraycopy(src, off, backingArray, offset 200 backingArray, remaining(), offset + position);
|
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/atomic/ |
H A D | AtomicReferenceFieldUpdater.java | 141 private final long offset; field in class:AtomicReferenceFieldUpdater.AtomicReferenceFieldUpdaterImpl 163 offset = unsafe.objectFieldOffset(field); 171 return unsafe.compareAndSwapObject(obj, offset, expect, update); 179 return unsafe.compareAndSwapObject(obj, offset, expect, update); 187 unsafe.putObjectVolatile(obj, offset, newValue); 193 return (V)unsafe.getObjectVolatile(obj, offset);
|
/dalvik/libcore/auth/src/main/java/javax/security/auth/ |
H A D | PrivateCredentialPermission.java | 62 // current offset 63 private transient int offset; field in class:PrivateCredentialPermission 105 for (int ii = 0; ii < offset; ii++) { 112 set[offset++] = element; 177 for (int ii = 0; ii < offset; ii++) { 184 set[offset++] = element; 212 String[][] s = new String[offset][2]; 238 for (int i = 0; i < offset; i++) { 256 return credentialClass.equals(that.credentialClass) && (offset == that.offset) [all...] |
/dalvik/dx/src/com/android/dx/cf/direct/ |
H A D | MemberListParser.java | 41 /** offset in the byte array of the classfile to the start of the list */ 42 private final int offset; field in class:MemberListParser 47 /** >= -1; the end offset of this list in the byte array of the 59 * @param offset offset in <code>bytes</code> to the start of the list 63 int offset, AttributeFactory attributeFactory) { 68 if (offset < 0) { 69 throw new IllegalArgumentException("offset < 0"); 78 this.offset = offset; 62 MemberListParser(DirectClassFile cf, CstType definer, int offset, AttributeFactory attributeFactory) argument [all...] |
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/support/ |
H A D | MyMacSpi.java | 61 protected void engineUpdate(byte[] input, int offset, int len) { argument 62 if (offset >= 0 && len >= 0) {
|
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/internal/ |
H A D | MappedByteBufferFactory.java | 53 long size, int offset) throws Exception { 57 new Integer((int) size), new Integer(offset), 52 getBuffer(PlatformAddress addr, int mapmode, long size, int offset) argument
|