/dalvik/dx/src/com/android/dx/cf/direct/ |
H A D | DirectClassFile.java | 322 * @param offset offset into {@link #bytes} for the start of the 327 public TypeList makeTypeList(int offset, int size) { argument 336 return new DcfTypeList(bytes, offset, size, pool, observer); 542 "at offset " + Hex.u4(at)); 573 * @param offset offset into {@link #bytes} for the start of the 579 public DcfTypeList(ByteArray bytes, int offset, int size, argument 585 bytes = bytes.slice(offset, offset [all...] |
/dalvik/dx/src/com/android/dx/command/dump/ |
H A D | BaseDumper.java | 67 /** the offset of the next byte to dump */ 126 public void parsed(ByteArray bytes, int offset, int len, String human) { argument 127 offset = bytes.underlyingOffset(offset, getBytes()); 131 if (offset < at) { 132 println("<dump skipped backwards to " + Hex.u4(offset) + ">"); 133 at = offset; 134 } else if (offset > at) { 135 String hex = rawBytes ? hexDump(at, offset - at) : ""; 136 print(twoColumns(hex, "<skipped to " + Hex.u4(offset) 146 startParsingMember(ByteArray bytes, int offset, String name, String descriptor) argument 152 endParsingMember(ByteArray bytes, int offset, String name, String descriptor, Member member) argument 173 setAt(ByteArray arr, int offset) argument 263 hexDump(int offset, int len) argument [all...] |
/dalvik/dx/src/com/android/dx/dex/file/ |
H A D | ClassDataItem.java | 327 protected void place0(Section addedTo, int offset) { argument
|
/dalvik/dx/src/com/android/dx/util/ |
H A D | ByteArray.java | 102 * Returns the offset into the given array represented by the given 103 * offset into this instance. 105 * @param offset offset into this instance 107 * @return corresponding offset into {@code bytes} 111 public int underlyingOffset(int offset, byte[] bytes) { argument 116 return start + offset; 120 * Gets the {@code signed byte} value at a particular offset. 122 * @param off {@code >= 0, < size();} offset to fetch 123 * @return {@code signed byte} at that offset 206 getBytes(byte[] out, int offset) argument 314 read(byte[] arr, int offset, int length) argument [all...] |
H A D | ByteArrayAnnotatedOutput.java | 280 public void write(byte[] bytes, int offset, int length) { argument 283 int bytesEnd = offset + length; 286 if (((offset | length | end) < 0) || (bytesEnd > bytes.length)) { 289 offset + "..!" + end); 299 System.arraycopy(bytes, offset, data, writeAt, length);
|
/dalvik/vm/ |
H A D | UtfString.c | 67 dvmFindFieldOffset(gDvm.classJavaLangString, "offset", "I"); 82 LOGE("InlineNative: String.value offset = %d, expected %d\n", 87 LOGE("InlineNative: String.count offset = %d, expected %d\n", 92 LOGE("InlineNative: String.offset offset = %d, expected %d\n", 97 LOGE("InlineNative: String.hashCode offset = %d, expected %d\n", 249 int offset, len; local 252 offset = dvmGetFieldInt((Object*) strObj, STRING_FIELDOFF_OFFSET); 254 return dvmComputeUtf16Hash((u2*) chars->contents + offset, len); 318 /* leave offset se 391 int len, byteLen, offset; local 436 int len, offset; local 477 int offset; local [all...] |
H A D | Ddm.c | 79 chunkOffsetOff = dvmFindFieldOffset(chunkClass, "offset", "I"); 103 unsigned int offset, length, type; local 106 offset = kChunkHdrLen; 107 if (offset+length > (unsigned int) dataLen) { 116 dvmCallMethod(self, dispatch, NULL, &callRes, type, dataArray, offset, 137 * We could avoid this by returning type/data/offset/length and having 146 offset = dvmGetFieldInt(chunk, chunkOffsetOff); 149 LOGV("DDM reply: type=0x%08x data=%p offset=%d length=%d\n", 150 type, replyData, offset, length); 154 if (offset [all...] |
H A D | InlineNative.c | 130 int count, offset; local 143 offset = dvmGetFieldInt((Object*) arg0, STRING_FIELDOFF_OFFSET); 147 pResult->i = ((const u2*) chars->contents)[arg1 + offset]; 416 * to search is described by "chars", "offset", and "count". 434 int offset = dvmGetFieldInt(strObj, STRING_FIELDOFF_OFFSET); local 437 // (u4) strObj, ch, start, offset, count); 439 /* factor out the offset */ 440 chars += offset;
|
H A D | Misc.c | 40 * If "mode" is kHexDumpLocal, we start at offset zero, and show a full 55 unsigned int offset; /* offset to show while printing */ local 62 offset = 0; 64 offset = (int) addr; 71 gap = (int) offset & 0x0f; 73 unsigned int lineOffset = offset & ~0x0f; 131 offset += count;
|
H A D | Thread.c | 387 * Cache the vtable offset for "run()". 3553 int offset = dvmFindFieldOffset(gDvm.classJavaLangThreadGroup, local 3555 if (offset < 0) { 3558 nameStr = (StringObject*) dvmGetFieldObject(groupObj, offset);
|
/dalvik/vm/alloc/TEST/HeapBitmapTest/ |
H A D | main.c | 346 run_xor(ssize_t offset, size_t step) argument 355 if (offset >= 0) { 356 base = (uintptr_t)HEAP_BASE + offset; 358 base = (uintptr_t)HEAP_BASE + (uintptr_t)HEAP_SIZE + offset;
|
/dalvik/vm/analysis/ |
H A D | DexVerify.c | 227 * Verify an array data table. "curOffset" is the offset of the fill-array-data 246 "VFY: invalid array data start: at %d, data offset %d, count %d\n", 251 /* offset to array data table is a relative branch-style offset */ 257 "VFY: unaligned array data table: at %d, data offset %d\n", 270 "VFY: invalid array data end: at %d, data offset %d, end %d, " 406 "VFY: bad field index %d (max %d) at offset 0x%04x\n", 519 * offset. 521 int offset = -1; local 523 if (dvmGetBranchTarget(meth, insnFlags, i, &offset, [all...] |
H A D | VerifySubs.c | 103 u4 offset; local 142 offset = dexGetFirstHandlerOffset(pCode); 145 dexCatchIteratorInit(&iterator, pCode, offset); 166 offset = dexCatchIteratorGetEndOffset(&iterator, pCode); 173 * Verify a switch table. "curOffset" is the offset of the switch 185 s4 offset, absOffset; local 196 "VFY: invalid switch start: at %d, switch offset %d, count %d\n", 201 /* offset to switch table is a relative branch-style offset */ 207 "VFY: unaligned switch table: at %d, switch offset 297 int offset, absOffset; local [all...] |
/dalvik/vm/compiler/codegen/arm/Thumb/ |
H A D | Gen.c | 141 int offset = offsetof(StackSaveArea, xtra.currentPc); local 142 res = loadConstant(cUnit, rDPC, (int) (cUnit->method->insns + mir->offset)); 144 newLIR2(cUnit, kThumbSubRI8, rAddr, sizeof(StackSaveArea) - offset); 167 int offset = offsetof(InterpState, retval); local 174 storeWordDisp(cUnit, rGLUE, offset, reg0); 182 int offset = offsetof(InterpState, retval); local 189 storeWordDisp(cUnit, rGLUE, offset, reglo); 192 storeWordDisp(cUnit, rGLUE, offset + 4, reghi); 201 int offset = offsetof(InterpState, retval); local 212 newLIR3(cUnit, kThumbStrRRI5, reg0, rGLUE, offset >> [all...] |
/dalvik/vm/compiler/codegen/arm/Thumb2/ |
H A D | Gen.c | 156 int offset = offsetof(StackSaveArea, xtra.currentPc); local 158 res = loadConstant(cUnit, rDPC, (int) (cUnit->method->insns + mir->offset)); 160 sizeof(StackSaveArea) - offset); 205 genNullCheck(cUnit, rlSrc.sRegLow, r1, mir->offset, NULL); 229 loadConstant(cUnit, r3, (int) (cUnit->method->insns + mir->offset)); 232 loadConstant(cUnit, r4PC, (int)(cUnit->method->insns + mir->offset + 265 genNullCheck(cUnit, rlSrc.sRegLow, r1, mir->offset, NULL); 285 loadConstant(cUnit, r3, (int) (cUnit->method->insns + mir->offset)); 296 (int) (cUnit->method->insns + mir->offset +
|
/dalvik/vm/compiler/ |
H A D | Frontend.c | 206 int offset) 245 if (offset == 0 && dalvikOpCode == OP_RETURN_VOID) { 551 LOGD("--------\nCompiler: Building trace for %s, offset 0x%x\n", 563 insn->offset = curOffset; 634 curOffset = lastInsn->offset; 749 const u2 *switchData = desc->method->insns + lastInsn->offset + 761 desc->method->insns + lastInsn->offset; 774 caseChain->startOffset = lastInsn->offset + targets[i]; 783 caseChain->startOffset = lastInsn->offset + lastInsn->width; 828 if (targetOffset >= curBB->firstMIRInsn->offset 205 analyzeInlineTarget(DecodedInstruction *dalvikInsn, int attributes, int offset) argument [all...] |
H A D | CompilerIR.h | 74 int offset; member in struct:LIR 120 unsigned int offset; member in struct:MIR 173 int dataOffset; // starting offset of literal pool
|
/dalvik/vm/interp/ |
H A D | Jit.c | 253 int i, addr, offset; local 259 offset = (int)((u2*)addr - stackSave->method->insns); 263 addr, offset, dexGetOpcodeName(decInsn->opCode)); 664 * lastPC, len, offset are all from the preceding invoke instruction 666 static void insertMoveResult(const u2 *lastPC, int len, int offset, argument 681 interpState->trace[currTraceRun].frag.startOffset = offset + len; 730 int offset; local 756 offset = lastPC - interpState->method->insns; 757 assert((unsigned) offset < 765 interpState->trace[currTraceRun].frag.startOffset = offset; [all...] |
/dalvik/vm/oo/ |
H A D | ObjectInlines.h | 37 * Field access functions. Pass in the word offset from Field->byteOffset. 50 INLINE JValue* dvmFieldPtr(const Object* obj, int offset) { argument 51 return ((JValue*)BYTE_OFFSET(obj, offset)); 54 INLINE bool dvmGetFieldBoolean(const Object* obj, int offset) { argument 55 return ((JValue*)BYTE_OFFSET(obj, offset))->z; 57 INLINE s1 dvmGetFieldByte(const Object* obj, int offset) { argument 58 return ((JValue*)BYTE_OFFSET(obj, offset))->b; 60 INLINE s2 dvmGetFieldShort(const Object* obj, int offset) { argument 61 return ((JValue*)BYTE_OFFSET(obj, offset))->s; 63 INLINE u2 dvmGetFieldChar(const Object* obj, int offset) { argument 66 dvmGetFieldInt(const Object* obj, int offset) argument 69 dvmGetFieldLong(const Object* obj, int offset) argument 72 dvmGetFieldFloat(const Object* obj, int offset) argument 75 dvmGetFieldDouble(const Object* obj, int offset) argument 78 dvmGetFieldObject(const Object* obj, int offset) argument 81 dvmGetFieldBooleanVolatile(const Object* obj, int offset) argument 85 dvmGetFieldByteVolatile(const Object* obj, int offset) argument 89 dvmGetFieldShortVolatile(const Object* obj, int offset) argument 93 dvmGetFieldCharVolatile(const Object* obj, int offset) argument 97 dvmGetFieldIntVolatile(const Object* obj, int offset) argument 101 dvmGetFieldFloatVolatile(const Object* obj, int offset) argument 107 dvmGetFieldLongVolatile(const Object* obj, int offset) argument 113 dvmGetFieldDoubleVolatile(const Object* obj, int offset) argument 120 dvmGetFieldObjectVolatile(const Object* obj, int offset) argument 125 dvmSetFieldBoolean(Object* obj, int offset, bool val) argument 128 dvmSetFieldByte(Object* obj, int offset, s1 val) argument 131 dvmSetFieldShort(Object* obj, int offset, s2 val) argument 134 dvmSetFieldChar(Object* obj, int offset, u2 val) argument 137 dvmSetFieldInt(Object* obj, int offset, s4 val) argument 140 dvmSetFieldFloat(Object* obj, int offset, float val) argument 143 dvmSetFieldLong(Object* obj, int offset, s8 val) argument 146 dvmSetFieldDouble(Object* obj, int offset, double val) argument 149 dvmSetFieldObject(Object* obj, int offset, Object* val) argument 156 dvmSetFieldIntVolatile(Object* obj, int offset, s4 val) argument 160 dvmSetFieldBooleanVolatile(Object* obj, int offset, bool val) argument 163 dvmSetFieldByteVolatile(Object* obj, int offset, s1 val) argument 166 dvmSetFieldShortVolatile(Object* obj, int offset, s2 val) argument 169 dvmSetFieldCharVolatile(Object* obj, int offset, u2 val) argument 172 dvmSetFieldFloatVolatile(Object* obj, int offset, float val) argument 177 dvmSetFieldLongVolatile(Object* obj, int offset, s8 val) argument 182 dvmSetFieldDoubleVolatile(Object* obj, int offset, double val) argument 187 dvmSetFieldObjectVolatile(Object* obj, int offset, Object* val) argument [all...] |
/dalvik/libdex/ |
H A D | DexFile.c | 516 LOGV("Good opt header, DEX offset is %d, flags=0x%02x\n", 663 int offset; local 665 offset = pLookup->table[idx].classDescriptorOffset; 666 if (offset == 0) 672 str = (const char*) (pDexFile->baseAddr + offset); 707 u4 offset; local 712 offset = dexGetFirstHandlerOffset(pCode); 715 offset = 0; 720 dexCatchIteratorInit(&iterator, pCode, offset); 721 offset [all...] |
H A D | DexSwapVerify.c | 89 * Return the file offset of the given pointer. 96 * Return a pointer for the given file offset. 98 static inline void* filePointer(const CheckState* state, u4 offset) { argument 99 return (void*) (state->fileStart + offset); 116 LOGW("Bad offset range for %s: 0x%x..0x%x\n", label, 173 * Swap a field that is known to hold an absolute DEX file offset. Note: 174 * This does not check to see that the swapped offset points within the 413 SWAP_OFFSET4(item->offset); 417 } else if (lastOffset >= item->offset) { 419 lastOffset, item->offset); 924 verifyClassDataIsForDef(const CheckState* state, u4 offset, u4 definerIdx) argument 953 verifyAnnotationsDirectoryIsForDef(const CheckState* state, u4 offset, u4 definerIdx) argument 1650 u4 offset = firstOffset; local 2385 iterateSectionWithOptionalUpdate(CheckState* state, u4 offset, u4 count, ItemVisitorFunction* func, u4 alignment, u4* nextOffset, int mapType) argument 2445 iterateSection(CheckState* state, u4 offset, u4 count, ItemVisitorFunction* func, u4 alignment, u4* nextOffset) argument 2455 checkBoundsAndIterateSection(CheckState* state, u4 offset, u4 count, u4 expectedOffset, u4 expectedCount, ItemVisitorFunction* func, u4 alignment, u4* nextOffset) argument 2477 iterateDataSection(CheckState* state, u4 offset, u4 count, ItemVisitorFunction* func, u4 alignment, u4* nextOffset, int mapType) argument [all...] |
/dalvik/vm/alloc/ |
H A D | MarkSweep.c | 418 size_t offset; local 422 offset = gDvm.offJavaLangRefReference_pendingNext; 424 dvmSetFieldObject(ref, offset, ref); 427 Object *head = dvmGetFieldObject(*list, offset); 428 dvmSetFieldObject(ref, offset, head); 429 dvmSetFieldObject(*list, offset, ref); 440 size_t offset; local 444 offset = gDvm.offJavaLangRefReference_pendingNext; 445 head = dvmGetFieldObject(*list, offset); 450 Object *next = dvmGetFieldObject(head, offset); 671 size_t offset = gDvm.offJavaLangRefReference_referent; local [all...] |
/dalvik/vm/mterp/out/ |
H A D | InterpC-allstubs.c | 289 * Get 16 bits from the specified offset of the program counter. We always 322 * trace can be generated correctly. If we don't do this, the offset 1088 ref = FETCH(1); /* field offset */ \ 1133 ref = FETCH(1); /* field offset */ \ 1774 s4 offset; local 1779 offset = FETCH(1) | (((s4) FETCH(2)) << 16); 1780 ILOGV("|fill-array-data v%d +0x%04x", vsrc1, offset); 1781 arrayData = pc + offset; // offset in 16-bit units 1842 s4 offset local 1858 s4 offset = FETCH(1); /* low-order 16 bits */ local 1877 s4 offset; local 1908 s4 offset; local [all...] |
H A D | InterpC-portstd.c | 289 * Get 16 bits from the specified offset of the program counter. We always 322 * trace can be generated correctly. If we don't do this, the offset 1070 ref = FETCH(1); /* field offset */ \ 1115 ref = FETCH(1); /* field offset */ \ 1885 s4 offset; local 1890 offset = FETCH(1) | (((s4) FETCH(2)) << 16); 1891 ILOGV("|fill-array-data v%d +0x%04x", vsrc1, offset); 1892 arrayData = pc + offset; // offset in 16-bit units 1953 s4 offset local 1969 s4 offset = FETCH(1); /* low-order 16 bits */ local 1988 s4 offset; local 2019 s4 offset; local [all...] |
/dalvik/dexdump/ |
H A D | DexDump.c | 127 int offset = 0; local 132 while (targetLen > 1 && str[offset] == '[') { 133 offset++; 136 arrayDepth = offset; 140 str = primitiveTypeLabel(str[offset]); 141 offset = 0; 145 if (targetLen >= 2 && str[offset] == 'L' && 146 str[offset+targetLen-1] == ';') 149 offset++; 158 char ch = str[offset 1556 int offset = data - (u1*) pDexFile->pOptHeader; local [all...] |