Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 14 of 14) sorted by relevance

/dalvik/dx/src/com/android/dx/io/instructions/
DBaseCodeCursor.java27 private int cursor; field in BaseCodeCursor
34 this.cursor = 0; in BaseCodeCursor()
38 public final int cursor() { in cursor() method in BaseCodeCursor
39 return cursor; in cursor()
44 int mapped = baseAddressMap.get(cursor); in baseAddressForCursor()
45 return (mapped >= 0) ? mapped : cursor; in baseAddressForCursor()
57 cursor += amount; in advance()
DShortArrayCodeOutput.java45 int cursor = cursor(); in getArray() local
47 if (cursor == array.length) { in getArray()
51 short[] result = new short[cursor]; in getArray()
52 System.arraycopy(array, 0, result, 0, cursor); in getArray()
58 array[cursor()] = codeUnit; in write()
DShortArrayCodeInput.java42 return cursor() < array.length; in hasMore()
48 int value = array[cursor()]; in read()
DCodeCursor.java29 public int cursor(); in cursor() method
DInstructionCodec.java116 int baseAddress = in.cursor() - 1; in FORMAT_10T()
125 int relativeTarget = insn.getTargetByte(out.cursor()); in FORMAT_10T()
133 int baseAddress = in.cursor() - 1; in FORMAT_20T()
143 short relativeTarget = insn.getTargetUnit(out.cursor()); in FORMAT_20T()
189 int baseAddress = in.cursor() - 1; in FORMAT_21T()
200 short relativeTarget = insn.getTargetUnit(out.cursor()); in FORMAT_21T()
320 int baseAddress = in.cursor() - 1; in FORMAT_22T()
332 short relativeTarget = insn.getTargetUnit(out.cursor()); in FORMAT_22T()
407 int baseAddress = in.cursor() - 1; in FORMAT_30T()
417 int relativeTarget = insn.getTarget(out.cursor()); in FORMAT_30T()
[all …]
DDecodedInstruction.java89 decoded[in.cursor()] = DecodedInstruction.decode(in); in decodeAll()
/dalvik/dx/src/com/android/dx/util/
DByteArrayAnnotatedOutput.java48 private int cursor; field in ByteArrayAnnotatedOutput
112 this.cursor = 0; in ByteArrayAnnotatedOutput()
141 byte[] result = new byte[cursor]; in toByteArray()
142 System.arraycopy(data, 0, result, 0, cursor); in toByteArray()
148 return cursor; in getCursor()
153 if (cursor != expectedCursor) { in assertCursor()
155 expectedCursor + "; actual value: " + cursor); in assertCursor()
161 int writeAt = cursor; in writeByte()
172 cursor = end; in writeByte()
177 int writeAt = cursor; in writeShort()
[all …]
DByteArray.java294 private int cursor; field in ByteArray.MyInputStream
300 cursor = 0; in MyInputStream()
305 if (cursor >= size) { in read()
309 int result = getUnsignedByte0(cursor); in read()
310 cursor++; in read()
319 int maxLength = size - cursor; in read()
324 System.arraycopy(bytes, cursor + start, arr, offset, length); in read()
325 cursor += length; in read()
330 return size - cursor; in available()
334 mark = cursor; in mark()
[all …]
/dalvik/dexgen/src/com/android/dexgen/util/
DByteArrayAnnotatedOutput.java45 private int cursor; field in ByteArrayAnnotatedOutput
100 this.cursor = 0; in ByteArrayAnnotatedOutput()
129 byte[] result = new byte[cursor]; in toByteArray()
130 System.arraycopy(data, 0, result, 0, cursor); in toByteArray()
136 return cursor; in getCursor()
141 if (cursor != expectedCursor) { in assertCursor()
143 expectedCursor + "; actual value: " + cursor); in assertCursor()
149 int writeAt = cursor; in writeByte()
160 cursor = end; in writeByte()
165 int writeAt = cursor; in writeShort()
[all …]
DByteArray.java294 private int cursor; field in ByteArray.MyInputStream
300 cursor = 0; in MyInputStream()
305 if (cursor >= size) { in read()
309 int result = getUnsignedByte0(cursor); in read()
310 cursor++; in read()
319 int maxLength = size - cursor; in read()
324 System.arraycopy(bytes, cursor + start, arr, offset, length); in read()
325 cursor += length; in read()
330 return size - cursor; in available()
334 mark = cursor; in mark()
[all …]
/dalvik/dx/src/com/android/dx/dex/file/
DSection.java149 int cursor = out.getCursor(); in writeTo() local
152 fileOffset = cursor; in writeTo()
153 } else if (fileOffset != cursor) { in writeTo()
155 ", at " + cursor + in writeTo()
162 } else if (cursor != 0) { in writeTo()
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DSection.java150 int cursor = out.getCursor(); in writeTo() local
153 fileOffset = cursor; in writeTo()
154 } else if (fileOffset != cursor) { in writeTo()
156 ", at " + cursor + in writeTo()
163 } else if (cursor != 0) { in writeTo()
/dalvik/libdex/
DDexProto.cpp484 pIterator->cursor = 0; in dexParameterIteratorInit()
497 int cursor = pIterator->cursor; in dexParameterIteratorNextIndex() local
500 if (cursor >= parameterCount) { in dexParameterIteratorNextIndex()
504 u4 idx = dexTypeListGetIdx(pIterator->parameters, cursor); in dexParameterIteratorNextIndex()
505 pIterator->cursor++; in dexParameterIteratorNextIndex()
DDexProto.h206 int cursor; member