/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/ |
D | PlatformAddress.java | 72 public PlatformAddress offsetBytes(int offset) { in offsetBytes() argument 73 return PlatformAddressFactory.on(osaddr + offset, size - offset); in offsetBytes() 107 public final void setAddress(int offset, PlatformAddress address) { in setAddress() argument 108 osMemory.setAddress(osaddr + offset, address.osaddr); in setAddress() 111 public final PlatformAddress getAddress(int offset) { in getAddress() argument 112 int addr = getInt(offset); in getAddress() 116 public final void setByte(int offset, byte value) { in setByte() argument 117 memorySpy.rangeCheck(this, offset, SIZEOF_JBYTE); in setByte() 118 osMemory.setByte(osaddr + offset, value); in setByte() 121 public final void setByteArray(int offset, byte[] bytes, int bytesOffset, in setByteArray() argument [all …]
|
D | OSFileSystem.java | 104 private native long seekImpl(int fd, long offset, int whence); in seekImpl() argument 106 public long seek(int fileDescriptor, long offset, int whence) in seek() argument 108 long pos = seekImpl(fileDescriptor, offset, whence); in seek() 119 int offset, int length); in readDirectImpl() argument 121 public long readDirect(int fileDescriptor, int address, int offset, in readDirect() argument 123 long bytesRead = readDirectImpl(fileDescriptor, address, offset, length); in readDirect() 131 int offset, int length); in writeDirectImpl() argument 133 public long writeDirect(int fileDescriptor, int address, int offset, in writeDirect() argument 135 long bytesWritten = writeDirectImpl(fileDescriptor, address, offset, in writeDirect() 146 private native long readImpl(int fileDescriptor, byte[] bytes, int offset, in readImpl() argument [all …]
|
/dalvik/libcore/nio/src/main/java/org/apache/harmony/nio/ |
D | Util.java | 48 public static void assertArrayIndex(Object[] array, int offset, int length) { in assertArrayIndex() argument 49 if (offset < 0 || length < 0) { in assertArrayIndex() 53 if ((long) offset + (long) length > array.length) { in assertArrayIndex() 59 public static void assertArrayIndex(boolean[] array, int offset, int length) { in assertArrayIndex() argument 60 if (offset < 0 || length < 0) { in assertArrayIndex() 64 if ((long) offset + (long) length > array.length) { in assertArrayIndex() 70 public static void assertArrayIndex(byte[] array, int offset, int length) { in assertArrayIndex() argument 71 if (offset < 0 || length < 0) { in assertArrayIndex() 75 if ((long) offset + (long) length > array.length) { in assertArrayIndex() 81 public static void assertArrayIndex(short[] array, int offset, int length) { in assertArrayIndex() argument [all …]
|
/dalvik/libcore/security/src/main/java/org/apache/harmony/security/asn1/ |
D | BerOutputStream.java | 42 protected int offset; field in BerOutputStream 59 encoded[offset++] = (byte) tag; //FIXME long form? in encodeTag() 68 encoded[offset] = (byte) (numOctets | 0x80); in encodeTag() 69 offset++; in encodeTag() 72 int numOffset = offset + numOctets - 1; in encodeTag() 76 offset += numOctets; in encodeTag() 78 encoded[offset++] = (byte) length; in encodeTag() 83 System.arraycopy(content, 0, encoded, offset, length); in encodeANY() 84 offset += length; in encodeANY() 90 encoded[offset] = (byte) bStr.unusedBits; in encodeBitString() [all …]
|
/dalvik/libcore/text/src/main/java/java/text/ |
D | StringCharacterIterator.java | 29 int start, end, offset; field in StringCharacterIterator 42 start = offset = 0; in StringCharacterIterator() 68 offset = location; in StringCharacterIterator() 98 offset = location; in StringCharacterIterator() 126 if (offset == end) { in current() 129 return string.charAt(offset); in current() 152 && offset == it.offset; in equals() 167 offset = start; in first() 168 return string.charAt(offset); in first() 198 return offset; in getIndex() [all …]
|
D | BreakIterator.java | 447 public boolean isBoundary(int offset) { in isBoundary() argument 448 return wrapped.isBoundary(offset); in isBoundary() 461 public int preceding(int offset) { in preceding() argument 462 return wrapped.preceding(offset); in preceding() 510 public abstract int following(int offset); in following() argument 617 protected static long getLong(byte[] buf, int offset) { in getLong() argument 621 if (offset < 0 || buf.length - offset < LONG_LENGTH) { in getLong() 625 for (int i = offset; i < offset + LONG_LENGTH; i++) { in getLong() 647 protected static int getInt(byte[] buf, int offset) { in getInt() argument 651 if (offset < 0 || buf.length - INT_LENGTH < offset) { in getInt() [all …]
|
D | RuleBasedBreakIterator.java | 64 public int following(int offset) { in following() argument 65 validateOffset(offset); in following() 66 return wrapped.following(offset); in following() 72 private void validateOffset(int offset) { in validateOffset() argument 74 if (offset < it.getBeginIndex() || offset >= it.getEndIndex()) { in validateOffset() 147 public boolean isBoundary(int offset) { in isBoundary() argument 148 validateOffset(offset); in isBoundary() 149 return wrapped.isBoundary(offset); in isBoundary() 158 public int preceding(int offset) { in preceding() argument 159 validateOffset(offset); in preceding() [all …]
|
/dalvik/dx/src/com/android/dx/cf/code/ |
D | BytecodeArray.java | 151 int offset = Bits.findFirst(workSet, 0); in processWorkSet() local 152 if (offset < 0) { in processWorkSet() 155 Bits.clear(workSet, offset); in processWorkSet() 156 parseInstruction(offset, visitor); in processWorkSet() 157 visitor.setPreviousOffset(offset); in processWorkSet() 211 public int parseInstruction(int offset, Visitor visitor) { in parseInstruction() argument 217 int opcode = bytes.getUnsignedByte(offset); in parseInstruction() 223 visitor.visitNoArgs(opcode, offset, 1, Type.VOID); in parseInstruction() 227 visitor.visitConstant(ByteOps.LDC, offset, 1, in parseInstruction() 232 visitor.visitConstant(ByteOps.LDC, offset, 1, in parseInstruction() [all …]
|
D | BasicBlocker.java | 118 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument 119 visitCommon(offset, length, true); in visitInvalid() 123 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument 127 visitCommon(offset, length, false); in visitNoArgs() 128 targetLists[offset] = IntList.EMPTY; in visitNoArgs() 132 visitCommon(offset, length, false); in visitNoArgs() 133 visitThrowing(offset, length, false); in visitNoArgs() 159 visitCommon(offset, length, true); in visitNoArgs() 160 visitThrowing(offset, length, true); in visitNoArgs() 169 visitCommon(offset, length, true); in visitNoArgs() [all …]
|
/dalvik/vm/mterp/c/ |
D | OP_GOTO_32.c | 3 s4 offset = FETCH(1); /* low-order 16 bits */ in HANDLE_OPCODE() local 4 offset |= ((s4) FETCH(2)) << 16; /* high-order 16 bits */ in HANDLE_OPCODE() 6 if (offset < 0) in HANDLE_OPCODE() 7 ILOGV("|goto/32 -0x%08x", -offset); in HANDLE_OPCODE() 9 ILOGV("|goto/32 +0x%08x", offset); in HANDLE_OPCODE() 11 if (offset <= 0) /* allowed to branch to self */ in HANDLE_OPCODE() 12 PERIODIC_CHECKS(kInterpEntryInstr, offset); in HANDLE_OPCODE() 13 FINISH(offset); in HANDLE_OPCODE()
|
D | OP_GOTO_16.c | 3 s4 offset = (s2) FETCH(1); /* sign-extend next code unit */ in HANDLE_OPCODE() local 5 if (offset < 0) in HANDLE_OPCODE() 6 ILOGV("|goto/16 -0x%04x", -offset); in HANDLE_OPCODE() 8 ILOGV("|goto/16 +0x%04x", offset); in HANDLE_OPCODE() 10 if (offset < 0) in HANDLE_OPCODE() 11 PERIODIC_CHECKS(kInterpEntryInstr, offset); in HANDLE_OPCODE() 12 FINISH(offset); in HANDLE_OPCODE()
|
D | OP_SPARSE_SWITCH.c | 5 s4 offset; in HANDLE_OPCODE() local 8 offset = FETCH(1) | (((s4) FETCH(2)) << 16); in HANDLE_OPCODE() 10 switchData = pc + offset; // offset in 16-bit units in HANDLE_OPCODE() 23 offset = dvmInterpHandleSparseSwitch(switchData, testVal); in HANDLE_OPCODE() 24 ILOGV("> branch taken (0x%04x)\n", offset); in HANDLE_OPCODE() 25 if (offset <= 0) /* uncommon */ in HANDLE_OPCODE() 26 PERIODIC_CHECKS(kInterpEntryInstr, offset); in HANDLE_OPCODE() 27 FINISH(offset); in HANDLE_OPCODE()
|
D | OP_PACKED_SWITCH.c | 5 s4 offset; in HANDLE_OPCODE() local 8 offset = FETCH(1) | (((s4) FETCH(2)) << 16); in HANDLE_OPCODE() 10 switchData = pc + offset; // offset in 16-bit units in HANDLE_OPCODE() 23 offset = dvmInterpHandlePackedSwitch(switchData, testVal); in HANDLE_OPCODE() 24 ILOGV("> branch taken (0x%04x)\n", offset); in HANDLE_OPCODE() 25 if (offset <= 0) /* uncommon */ in HANDLE_OPCODE() 26 PERIODIC_CHECKS(kInterpEntryInstr, offset); in HANDLE_OPCODE() 27 FINISH(offset); in HANDLE_OPCODE()
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | StdAttributeFactory.java | 82 int offset, int length, ParseObserver observer) { in parse0() argument 86 return deprecated(cf, offset, length, observer); in parse0() 89 return enclosingMethod(cf, offset, length, observer); in parse0() 92 return innerClasses(cf, offset, length, observer); in parse0() 95 return runtimeInvisibleAnnotations(cf, offset, length, in parse0() 99 return runtimeVisibleAnnotations(cf, offset, length, in parse0() 103 return synthetic(cf, offset, length, observer); in parse0() 106 return signature(cf, offset, length, observer); in parse0() 109 return sourceFile(cf, offset, length, observer); in parse0() 115 return constantValue(cf, offset, length, observer); in parse0() [all …]
|
D | CodeObserver.java | 68 public void visitInvalid(int opcode, int offset, int length) { in visitInvalid() argument 69 observer.parsed(bytes, offset, length, header(offset)); in visitInvalid() 73 public void visitNoArgs(int opcode, int offset, int length, Type type) { in visitNoArgs() argument 74 observer.parsed(bytes, offset, length, header(offset)); in visitNoArgs() 78 public void visitLocal(int opcode, int offset, int length, in visitLocal() argument 94 observer.parsed(bytes, offset, length, in visitLocal() 95 header(offset) + (argComment ? " // " : " ") + in visitLocal() 100 public void visitConstant(int opcode, int offset, int length, in visitConstant() argument 104 visitNoArgs(opcode, offset, length, null); in visitConstant() 109 visitLiteralInt(opcode, offset, length, value); in visitConstant() [all …]
|
/dalvik/libcore/luni/src/main/java/java/lang/ |
D | StringBuilder.java | 281 public StringBuilder append(char[] str, int offset, int len) { in append() argument 282 append0(str, offset, len); in append() 396 public StringBuilder insert(int offset, boolean b) { in insert() argument 397 insert0(offset, b ? "true" : "false"); //$NON-NLS-1$ //$NON-NLS-2$ in insert() 417 public StringBuilder insert(int offset, char c) { in insert() argument 418 insert0(offset, c); in insert() 438 public StringBuilder insert(int offset, int i) { in insert() argument 439 insert0(offset, Integer.toString(i)); in insert() 459 public StringBuilder insert(int offset, long l) { in insert() argument 460 insert0(offset, Long.toString(l)); in insert() [all …]
|
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
D | SSLEngineDataStream.java | 39 private int offset; field in SSLEngineDataStream 47 protected void setSourceBuffers(ByteBuffer[] srcs, int offset, int length) { in setSourceBuffers() argument 49 this.offset = offset; in setSourceBuffers() 50 this.limit = offset+length; in setSourceBuffers() 53 for (int i=offset; i<limit; i++) { in setSourceBuffers() 80 for (; offset<limit; offset++) { in getData() 81 while (srcs[offset].hasRemaining()) { in getData() 82 res[pos++] = srcs[offset].get(); in getData()
|
/dalvik/libcore/suncompat/src/main/java/sun/misc/ |
D | Unsafe.java | 152 public native boolean compareAndSwapInt(Object obj, long offset, in compareAndSwapInt() argument 167 public native boolean compareAndSwapLong(Object obj, long offset, in compareAndSwapLong() argument 182 public native boolean compareAndSwapObject(Object obj, long offset, in compareAndSwapObject() argument 193 public native int getIntVolatile(Object obj, long offset); in getIntVolatile() argument 203 public native void putIntVolatile(Object obj, long offset, int newValue); in putIntVolatile() argument 213 public native long getLongVolatile(Object obj, long offset); in getLongVolatile() argument 223 public native void putLongVolatile(Object obj, long offset, long newValue); in putLongVolatile() argument 233 public native Object getObjectVolatile(Object obj, long offset); in getObjectVolatile() argument 243 public native void putObjectVolatile(Object obj, long offset, in putObjectVolatile() argument 253 public native int getInt(Object obj, long offset); in getInt() argument [all …]
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | OffsettedItem.java | 44 private int offset; field in OffsettedItem 80 this.offset = -1; in OffsettedItem() 189 if (offset < 0) { in getRelativeOffset() 193 return offset; in getRelativeOffset() 204 if (offset < 0) { in getAbsoluteOffset() 208 return addedTo.getAbsoluteOffset(offset); in getAbsoluteOffset() 222 public final int place(Section addedTo, int offset) { in place() argument 227 if (offset < 0) { in place() 236 offset = (offset + mask) & ~mask; in place() 239 this.offset = offset; in place() [all …]
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/ |
D | Socks4Message.java | 185 private int getInt16(int offset) { in getInt16() argument 186 return (((buffer[offset] & 0xFF) << 8) + (buffer[offset + 1] & 0xFF)); in getInt16() 192 private int getInt32(int offset) { in getInt32() argument 193 return ((buffer[offset + 3] & 0xFF) in getInt32() 194 + ((buffer[offset + 2] & 0xFF) << 8) in getInt32() 195 + ((buffer[offset + 1] & 0xFF) << 16) + ((buffer[offset + 0] & 0xFF) << 24)); in getInt32() 202 private String getString(int offset, int maxLength) { in getString() argument 203 int index = offset; in getString() 211 result = new String(buffer, offset, index - offset, "ISO8859_1"); //$NON-NLS-1$ in getString() 228 private void setInt16(int offset, int value) { in setInt16() argument [all …]
|
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/dom/ |
D | CharacterDataImpl.java | 47 public void deleteData(int offset, int count) throws DOMException { in deleteData() argument 48 buffer.delete(offset, offset + count); in deleteData() 64 public void insertData(int offset, String arg) throws DOMException { in insertData() argument 66 buffer.insert(offset, arg); in insertData() 72 public void replaceData(int offset, int count, String arg) in replaceData() argument 75 buffer.replace(offset, offset + count, arg); in replaceData() 85 public String substringData(int offset, int count) throws DOMException { in substringData() argument 87 return buffer.substring(offset, offset + count); in substringData()
|
/dalvik/libcore/luni/src/main/java/java/io/ |
D | BufferedWriter.java | 195 public void write(char[] cbuf, int offset, int count) throws IOException { in write() argument 208 if ((offset | count) < 0 || offset > cbuf.length - count) { in write() 213 out.write(cbuf, offset, count); in write() 221 System.arraycopy(cbuf, offset, this.buf, pos, available); in write() 228 offset += available; in write() 231 out.write(cbuf, offset, available); in write() 235 System.arraycopy(cbuf, offset, this.buf, pos, available); in write() 289 public void write(String str, int offset, int count) throws IOException { in write() argument 297 if (offset > str.length() - count || offset < 0) { in write() 302 str.getChars(offset, offset + count, chars, 0); in write() [all …]
|
/dalvik/vm/native/ |
D | sun_misc_Unsafe.c | 82 s8 offset = GET_ARG_LONG(args, 2); in Dalvik_sun_misc_Unsafe_compareAndSwapInt() local 85 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_compareAndSwapInt() 102 s8 offset = GET_ARG_LONG(args, 2); in Dalvik_sun_misc_Unsafe_compareAndSwapLong() local 105 volatile int64_t* address = (volatile int64_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_compareAndSwapLong() 123 s8 offset = GET_ARG_LONG(args, 2); in Dalvik_sun_misc_Unsafe_compareAndSwapObject() local 126 int32_t* address = (int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_compareAndSwapObject() 143 s8 offset = GET_ARG_LONG(args, 2); in Dalvik_sun_misc_Unsafe_getIntVolatile() local 144 volatile s4* address = (volatile s4*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_getIntVolatile() 157 s8 offset = GET_ARG_LONG(args, 2); in Dalvik_sun_misc_Unsafe_putIntVolatile() local 159 volatile s4* address = (volatile s4*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_putIntVolatile() [all …]
|
/dalvik/libcore/xml/src/test/java/tests/api/org/xml/sax/support/ |
D | BrokenInputStream.java | 31 private int offset; field in BrokenInputStream 33 public BrokenInputStream(InputStream stream, int offset) { in BrokenInputStream() argument 37 this.offset = offset; in BrokenInputStream() 42 if (offset == 0) { in read() 46 offset--; in read()
|
/dalvik/libcore/nio/src/main/java/java/nio/ |
D | DirectByteBuffer.java | 57 protected final int offset; field in DirectByteBuffer 71 DirectByteBuffer(SafeAddress address, int capacity, int offset) { in DirectByteBuffer() argument 78 if ((baseSize >= 0) && ((offset + capacity) > baseSize)) { in DirectByteBuffer() 84 this.offset = offset; in DirectByteBuffer() 101 getBaseAddress().getByteArray(offset+position, dest, off, len); in get() 110 return getBaseAddress().getByte(offset + position++); in get() 117 return getBaseAddress().getByte(offset + index); in get() 125 double result = getBaseAddress().getDouble(offset + position, order); in getDouble() 134 return getBaseAddress().getDouble(offset + index, order); in getDouble() 142 float result = getBaseAddress().getFloat(offset + position, order); in getFloat() [all …]
|