Searched refs:cursor (Results 1 - 17 of 17) 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;
38 public final int cursor() { method in class:BaseCodeCursor
39 return cursor;
44 int mapped = baseAddressMap.get(cursor);
45 return (mapped >= 0) ? mapped : cursor;
54 * Advance the cursor by the indicated amount.
57 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);
58 array[cursor()] = codeUnit;
H A DShortArrayCodeInput.java42 return cursor() < array.length;
48 int value = array[cursor()];
H A DInstructionCodec.java116 int baseAddress = in.cursor() - 1;
125 int relativeTarget = insn.getTargetByte(out.cursor());
133 int baseAddress = in.cursor() - 1;
143 short relativeTarget = insn.getTargetUnit(out.cursor());
189 int baseAddress = in.cursor() - 1;
200 short relativeTarget = insn.getTargetUnit(out.cursor());
320 int baseAddress = in.cursor() - 1;
332 short relativeTarget = insn.getTargetUnit(out.cursor());
407 int baseAddress = in.cursor() - 1;
417 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.java47 /** {@code >= 0;} current output cursor */
48 private int cursor; field in class:ByteArrayAnnotatedOutput
112 this.cursor = 0;
141 byte[] result = new byte[cursor];
142 System.arraycopy(data, 0, result, 0, cursor);
148 return cursor;
153 if (cursor != expectedCursor) {
154 throw new ExceptionWithContext("expected cursor " +
155 expectedCursor + "; actual value: " + cursor);
161 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/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
/dalvik/vm/alloc/
H A DCopying.cpp575 * allocation cursor points into a block of free storage. If the
577 * advance the cursor and return a pointer to the free storage. If
1883 u1 *cursor;
1893 cursor = blockToAddress(heapSource, block);
1894 end = cursor + BLOCK_SIZE;
1895 LOG_SCAV("scavengeBlock start=%p, end=%p", cursor, end);
1899 while (cursor < end) {
1900 u4 word = *(u4 *)cursor;
1902 scavengeObject((Object *)cursor);
1903 size = objectSize((Object *)cursor);
[all...]
/dalvik/vm/reflect/
H A DReflect.h226 const u1* cursor; /* current cursor */ member in struct:EncodedArrayIterator
250 * cursor. This returns primitive values in their corresponding union
257 * @returns true if a value was decoded and the cursor advanced; false if
H A DAnnotation.cpp2253 iterator->cursor = encodedArray->array;
2254 iterator->size = readUleb128(&iterator->cursor);
2268 * cursor. This returns primitive values in their corresponding union
2275 * @returns true if a value was decoded and the cursor advanced; false if
2286 processed = processAnnotationValue(iterator->clazz, &iterator->cursor,

Completed in 353 milliseconds