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

/dalvik/dx/src/com/android/dx/io/instructions/
H A DBaseCodeCursor.java27 private int cursor; field in class:BaseCodeCursor
34 this.cursor = 0;
39 public final int cursor() { method in class:BaseCodeCursor
40 return cursor;
46 int mapped = baseAddressMap.get(cursor);
47 return (mapped >= 0) ? mapped : cursor;
57 * Advance the cursor by the indicated amount.
60 cursor += amount;
H A DCodeCursor.java24 * Gets the cursor. The cursor is the offset in code units from
29 public int cursor(); method in interface:CodeCursor
32 * Gets the base address associated with the current cursor. This
33 * differs from the cursor value when explicitly set (by {@link
H A DShortArrayCodeOutput.java45 int cursor = cursor();
47 if (cursor == array.length) {
51 short[] result = new short[cursor];
52 System.arraycopy(array, 0, result, 0, cursor);
59 array[cursor()] = codeUnit;
H A DShortArrayCodeInput.java43 return cursor() < array.length;
50 int value = array[cursor()];
H A DInstructionCodec.java128 int baseAddress = in.cursor() - 1;
138 int relativeTarget = insn.getTargetByte(out.cursor());
147 int baseAddress = in.cursor() - 1;
158 short relativeTarget = insn.getTargetUnit(out.cursor());
209 int baseAddress = in.cursor() - 1;
221 short relativeTarget = insn.getTargetUnit(out.cursor());
352 int baseAddress = in.cursor() - 1;
365 short relativeTarget = insn.getTargetUnit(out.cursor());
447 int baseAddress = in.cursor() - 1;
458 int relativeTarget = insn.getTarget(out.cursor());
[all...]
H A DDecodedInstruction.java89 decoded[in.cursor()] = DecodedInstruction.decode(in);
/dalvik/dx/src/com/android/dx/util/
H A DByteArrayAnnotatedOutput.java48 /** {@code >= 0;} current output cursor */
49 private int cursor; field in class:ByteArrayAnnotatedOutput
113 this.cursor = 0;
142 byte[] result = new byte[cursor];
143 System.arraycopy(data, 0, result, 0, cursor);
150 return cursor;
156 if (cursor != expectedCursor) {
157 throw new ExceptionWithContext("expected cursor " +
158 expectedCursor + "; actual value: " + cursor);
165 int writeAt = cursor;
[all...]
H A DByteArray.java249 * with the cursor starting at the beginning of this instance's data.
262 * with the cursor starting at the beginning of this instance's data.
274 * Helper interface that allows one to get the cursor (of a stream).
278 * Gets the current cursor.
280 * @return {@code 0..size();} the cursor
290 /** 0..size; the cursor */
291 private int cursor; field in class:ByteArray.MyInputStream
297 cursor = 0;
303 if (cursor >= size) {
307 int result = getUnsignedByte0(cursor);
[all...]
/dalvik/dexgen/src/com/android/dexgen/util/
H A DByteArrayAnnotatedOutput.java44 /** {@code >= 0;} current output cursor */
45 private int cursor; field in class:ByteArrayAnnotatedOutput
100 this.cursor = 0;
129 byte[] result = new byte[cursor];
130 System.arraycopy(data, 0, result, 0, cursor);
136 return cursor;
141 if (cursor != expectedCursor) {
142 throw new ExceptionWithContext("expected cursor " +
143 expectedCursor + "; actual value: " + cursor);
149 int writeAt = cursor;
[all...]
H A DByteArray.java252 * with the cursor starting at the beginning of this instance's data.
265 * with the cursor starting at the beginning of this instance's data.
277 * Helper interface that allows one to get the cursor (of a stream).
281 * Gets the current cursor.
283 * @return {@code 0..size();} the cursor
293 /** 0..size; the cursor */
294 private int cursor; field in class:ByteArray.MyInputStream
300 cursor = 0;
305 if (cursor >= size) {
309 int result = getUnsignedByte0(cursor);
[all...]
/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DSection.java150 int cursor = out.getCursor();
153 fileOffset = cursor;
154 } else if (fileOffset != cursor) {
156 ", at " + cursor +
163 } else if (cursor != 0) {
269 * called by {@link #writeTo} after aligning the cursor of
271 * offset matches the actual cursor {@code out} or that the
273 * assigned to {@code out}'s cursor.
/dalvik/dx/src/com/android/dx/dex/file/
H A DSection.java149 int cursor = out.getCursor();
152 fileOffset = cursor;
153 } else if (fileOffset != cursor) {
155 ", at " + cursor +
162 } else if (cursor != 0) {
268 * called by {@link #writeTo} after aligning the cursor of
270 * offset matches the actual cursor {@code out} or that the
272 * assigned to {@code out}'s cursor.
/dalvik/libdex/
H A DDexProto.cpp484 pIterator->cursor = 0;
497 int cursor = pIterator->cursor; local
500 if (cursor >= parameterCount) {
504 u4 idx = dexTypeListGetIdx(pIterator->parameters, cursor);
505 pIterator->cursor++;
H A DDexProto.h200 * pointer to a prototype and its parts, along with a cursor.
206 int cursor; member in struct:DexParameterIterator

Completed in 238 milliseconds