Home
last modified time | relevance | path

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

/dalvik/dx/src/com/android/dx/util/
DByteArrayAnnotatedOutput.java49 private int cursor; field in ByteArrayAnnotatedOutput
113 this.cursor = 0; in ByteArrayAnnotatedOutput()
142 byte[] result = new byte[cursor]; in toByteArray()
143 System.arraycopy(data, 0, result, 0, cursor); in toByteArray()
150 return cursor; in getCursor()
156 if (cursor != expectedCursor) { in assertCursor()
158 expectedCursor + "; actual value: " + cursor); in assertCursor()
165 int writeAt = cursor; in writeByte()
176 cursor = end; in writeByte()
182 int writeAt = cursor; in writeShort()
[all …]
DByteArray.java291 private int cursor; field in ByteArray.MyInputStream
297 cursor = 0; in MyInputStream()
303 if (cursor >= size) { in read()
307 int result = getUnsignedByte0(cursor); in read()
308 cursor++; in read()
318 int maxLength = size - cursor; in read()
323 System.arraycopy(bytes, cursor + start, arr, offset, length); in read()
324 cursor += length; in read()
330 return size - cursor; in available()
335 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/io/instructions/
DBaseCodeCursor.java27 private int cursor; field in BaseCodeCursor
34 this.cursor = 0; in BaseCodeCursor()
39 public final int cursor() { in cursor() method in BaseCodeCursor
40 return cursor; in cursor()
46 int mapped = baseAddressMap.get(cursor); in baseAddressForCursor()
47 return (mapped >= 0) ? mapped : cursor; in baseAddressForCursor()
60 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()
59 array[cursor()] = codeUnit; in write()
DShortArrayCodeInput.java43 return cursor() < array.length; in hasMore()
50 int value = array[cursor()]; in read()
DCodeCursor.java29 public int cursor(); in cursor() method
DInstructionCodec.java128 int baseAddress = in.cursor() - 1; in FORMAT_10T()
138 int relativeTarget = insn.getTargetByte(out.cursor()); in FORMAT_10T()
147 int baseAddress = in.cursor() - 1; in FORMAT_20T()
158 short relativeTarget = insn.getTargetUnit(out.cursor()); in FORMAT_20T()
209 int baseAddress = in.cursor() - 1; in FORMAT_21T()
221 short relativeTarget = insn.getTargetUnit(out.cursor()); in FORMAT_21T()
352 int baseAddress = in.cursor() - 1; in FORMAT_22T()
365 short relativeTarget = insn.getTargetUnit(out.cursor()); in FORMAT_22T()
447 int baseAddress = in.cursor() - 1; in FORMAT_30T()
458 int relativeTarget = insn.getTarget(out.cursor()); in FORMAT_30T()
[all …]
DDecodedInstruction.java89 decoded[in.cursor()] = DecodedInstruction.decode(in); in decodeAll()
/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/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/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