/dalvik/libdex/ |
D | DexFile.h | 73 typedef uint32_t u4; typedef 280 u4 checksum; /* adler32 checksum */ 282 u4 fileSize; /* length of entire file */ 283 u4 headerSize; /* offset to start of next section */ 284 u4 endianTag; 285 u4 linkSize; 286 u4 linkOff; 287 u4 mapOff; 288 u4 stringIdsSize; 289 u4 stringIdsOff; [all …]
|
D | DexClass.h | 29 u4 staticFieldsSize; 30 u4 instanceFieldsSize; 31 u4 directMethodsSize; 32 u4 virtualMethodsSize; 37 u4 fieldIdx; /* index to a field_id_item */ 38 u4 accessFlags; 43 u4 methodIdx; /* index to a method_id_item */ 44 u4 accessFlags; 45 u4 codeOff; /* file offset to a code_item */ 77 DexField* pField, u4* lastIndex); [all …]
|
D | DexDataMap.h | 27 u4 count; /* number of items currently in the map */ 28 u4 max; /* maximum number of items that may be held */ 29 u4* offsets; /* array of item offsets */ 36 DexDataMap* dexDataMapAlloc(u4 maxCount); 47 void dexDataMapAdd(DexDataMap* map, u4 offset, u2 type); 53 int dexDataMapGet(DexDataMap* map, u4 offset); 60 bool dexDataMapVerify(DexDataMap* map, u4 offset, u2 type); 65 DEX_INLINE bool dexDataMapVerify0Ok(DexDataMap* map, u4 offset, u2 type) { in dexDataMapVerify0Ok()
|
D | DexSwapVerify.cpp | 48 u4 fileLen; 59 u4* pDefinedClassBits; 67 static inline u4 fileOffset(const CheckState* state, const void* ptr) { in fileOffset() 74 static inline void* filePointer(const CheckState* state, u4 offset) { in filePointer() 142 u4 _dummy; \ 167 #_field, (u4)(_field), #_limit, (u4)(_limit)); \ 186 #_field, (u4)(_field), #_limit, (u4)(_limit)); \ 209 static bool verifyFieldDefiner(const CheckState* state, u4 definingClass, in verifyFieldDefiner() 210 u4 fieldIdx) { in verifyFieldDefiner() 216 static bool verifyMethodDefiner(const CheckState* state, u4 definingClass, in verifyMethodDefiner() [all …]
|
D | DexOptData.cpp | 37 u4 dexComputeOptChecksum(const DexOptHeader* pOptHeader) in dexComputeOptChecksum() 45 return (u4) adler32(adler, start, end - start); in dexComputeOptChecksum() 53 const u4* pOpt = (const u4*) pOptStart; in dexParseOptData() 54 u4 optLength = (const u1*) pOptEnd - (const u1*) pOptStart; in dexParseOptData() 86 const u4 offset = ((const u1*) pOpt) - data; in dexParseOptData() 91 u4 size = *(pOpt + 1); in dexParseOptData() 98 u4 roundedSize = (size + 8 + 7) & ~7; in dexParseOptData() 99 const u4* pNextOpt = pOpt + (roundedSize / sizeof(u4)); in dexParseOptData() 102 const u4 offset = ((const u1*) pOpt) - data; in dexParseOptData()
|
D | DexDebugInfo.h | 30 typedef int (*DexDebugNewPositionCb)(void *cnxt, u4 address, u4 lineNum); 36 typedef void (*DexDebugNewLocalCb)(void *cnxt, u2 reg, u4 startAddress, 37 u4 endAddress, const char *name, const char *descriptor, 50 u4 protoIdx, 51 u4 accessFlags,
|
D | DexCatch.h | 31 u4 typeIdx; /* type index of the caught exception type */ 32 u4 address; /* handler address */ 38 u4 dexGetFirstHandlerOffset(const DexCode* pCode); 41 u4 dexGetHandlersSize(const DexCode* pCode); 50 u4 countRemaining; 83 const DexCode* pCode, u4 offset) in dexCatchIteratorInit() 99 u4 typeIdx = readUnsignedLeb128(&pIterator->pEncodedData); in dexCatchIteratorNext() 110 u4 dexCatchIteratorGetEndOffset(DexCatchIterator* pIterator, 115 u4 address); 121 const DexCode* pCode, u4 address) { in dexFindCatchHandler() [all …]
|
D | DexDataMap.cpp | 27 DexDataMap* dexDataMapAlloc(u4 maxCount) { in dexDataMapAlloc() 35 const u4 sizeOfItems = (u4) (sizeof(u4) + sizeof(u2)); in dexDataMapAlloc() 49 map->offsets = (u4*) (map + 1); in dexDataMapAlloc() 71 void dexDataMapAdd(DexDataMap* map, u4 offset, u2 type) { in dexDataMapAdd() 91 int dexDataMapGet(DexDataMap* map, u4 offset) { in dexDataMapGet() 97 u4* offsets = map->offsets; in dexDataMapGet() 101 u4 guess = offsets[guessIdx]; in dexDataMapGet() 122 bool dexDataMapVerify(DexDataMap* map, u4 offset, u2 type) { in dexDataMapVerify()
|
D | DexCatch.cpp | 26 u4 dexGetFirstHandlerOffset(const DexCode* pCode) { in dexGetFirstHandlerOffset() 40 u4 dexGetHandlersSize(const DexCode* pCode) { in dexGetHandlersSize() 53 u4 address) { in dexFindCatchHandlerOffset0() 61 u4 start = pTry->startAddr; in dexFindCatchHandlerOffset0() 68 u4 end = start + pTry->insnCount; in dexFindCatchHandlerOffset0() 85 u4 dexCatchIteratorGetEndOffset(DexCatchIterator* pIterator, in dexCatchIteratorGetEndOffset() 89 return (u4) (pIterator->pEncodedData - dexGetCatchHandlerData(pCode)); in dexCatchIteratorGetEndOffset()
|
D | InstrUtils.h | 136 u4 vA; 137 u4 vB; 139 u4 vC; 140 u4 arg[5]; /* vC/D/E/F/G in invoke or filled-new-array */ 150 assert((u4) opcode < kNumPackedOpcodes); in dexGetWidthFromOpcode() 166 assert((u4) opcode < kNumPackedOpcodes); in dexGetFlagsFromOpcode() 183 assert((u4) opcode < kNumPackedOpcodes); in dexGetFormatFromOpcode() 192 assert((u4) opcode < kNumPackedOpcodes); in dexGetIndexTypeFromOpcode()
|
D | DexDebugInfo.cpp | 34 u4 stringIdx = readUnsignedLeb128(pStream); in readStringIdx() 50 u4 typeIdx = readUnsignedLeb128(pStream); in readTypeIdx() 68 static void emitLocalCbIfLive(void *cnxt, int reg, u4 endAddress, in emitLocalCbIfLive() 93 u4 protoIdx, in dexDecodeDebugInfo0() 94 u4 accessFlags, in dexDecodeDebugInfo0() 101 u4 line = readUnsignedLeb128(&stream); in dexDecodeDebugInfo0() 102 u4 parametersSize = readUnsignedLeb128(&stream); in dexDecodeDebugInfo0() 104 u4 address = 0; in dexDecodeDebugInfo0() 263 u4 protoIdx, in dexDecodeDebugInfo() 264 u4 accessFlags, in dexDecodeDebugInfo()
|
D | DexFile.cpp | 104 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx, in dexStringAndSizeById() 105 u4* utf16Size) { in dexStringAndSizeById() 162 static u4 classDescriptorHash(const char* str) in classDescriptorHash() 164 u4 hash = 1; in classDescriptorHash() 181 u4 hash = classDescriptorHash(classDescriptor); in classLookupAdd() 346 u4 adler = dexComputeChecksum(pHeader); in dexFileParse() 442 u4 hash; in dexFindClass() 477 u4 dexComputeChecksum(const DexHeader* pHeader) in dexComputeChecksum() 484 return (u4) adler32(adler, start + nonSum, pHeader->fileSize - nonSum); in dexComputeChecksum() 496 u4 handlersSize; in dexGetDexCodeSize() [all …]
|
D | DexUtf.h | 73 extern u4 DEX_MEMBER_VALID_LOW_ASCII[4]; 88 u4 wordIdx = c >> 5; in dexIsValidMemberNameUtf8() 89 u4 bitIdx = c & 0x1f; in dexIsValidMemberNameUtf8()
|
D | DexClass.cpp | 28 static bool verifyUlebs(const u1* pData, const u1* pLimit, u4 count) { in verifyUlebs() 63 DexField* pField, u4* lastIndex) { in dexReadAndVerifyClassDataField() 84 DexMethod* pMethod, u4* lastIndex) { in dexReadAndVerifyClassDataMethod() 105 u4 lastIndex; in dexReadAndVerifyClassData() 126 u4 i; in dexReadAndVerifyClassData()
|
D | DexProto.cpp | 139 u4 paramCount = (typeList == NULL) ? 0 : typeList->size; in dexProtoGetMethodDescriptor() 140 u4 i; in dexProtoGetMethodDescriptor() 143 u4 idx = dexTypeListGetIdx(typeList, i); in dexProtoGetMethodDescriptor() 155 u4 idx = dexTypeListGetIdx(typeList, i); in dexProtoGetMethodDescriptor() 296 u4 idx1 = dexTypeListGetIdx(typeList1, i); in protoCompare() 297 u4 idx2 = dexTypeListGetIdx(typeList2, i); in protoCompare() 496 u4 dexParameterIteratorNextIndex(DexParameterIterator* pIterator) { in dexParameterIteratorNextIndex() 504 u4 idx = dexTypeListGetIdx(pIterator->parameters, cursor); in dexParameterIteratorNextIndex() 516 u4 idx = dexParameterIteratorNextIndex(pIterator); in dexParameterIteratorNextDescriptor()
|
D | Leb128.h | 133 DEX_INLINE u1* writeUnsignedLeb128(u1* ptr, u4 data) in writeUnsignedLeb128() 152 DEX_INLINE int unsignedLeb128Size(u4 data) in unsignedLeb128Size()
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
D | HeaderItem.java | 79 Hex.u4(file.getFileSize())); in writeTo() 80 out.annotate(4, "header_size: " + Hex.u4(HEADER_SIZE)); in writeTo() 81 out.annotate(4, "endian_tag: " + Hex.u4(ENDIAN_TAG)); in writeTo() 84 out.annotate(4, "map_off: " + Hex.u4(mapOff)); in writeTo() 116 out.annotate(4, "data_size: " + Hex.u4(dataSize)); in writeTo() 117 out.annotate(4, "data_off: " + Hex.u4(dataOff)); in writeTo()
|
D | ClassDefItem.java | 190 out.annotate(4, " class_idx: " + Hex.u4(classIdx)); in writeTo() 193 out.annotate(4, " superclass_idx: " + Hex.u4(superIdx) + in writeTo() 196 out.annotate(4, " interfaces_off: " + Hex.u4(interOff)); in writeTo() 204 out.annotate(4, " source_file_idx: " + Hex.u4(sourceFileIdx) + in writeTo() 207 out.annotate(4, " annotations_off: " + Hex.u4(annoOff)); in writeTo() 208 out.annotate(4, " class_data_off: " + Hex.u4(dataOff)); in writeTo() 210 Hex.u4(staticValuesOff)); in writeTo()
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | HeaderItem.java | 71 Hex.u4(file.getFileSize())); in writeTo() 72 out.annotate(4, "header_size: " + Hex.u4(SizeOf.HEADER_ITEM)); in writeTo() 73 out.annotate(4, "endian_tag: " + Hex.u4(DexFormat.ENDIAN_TAG)); in writeTo() 76 out.annotate(4, "map_off: " + Hex.u4(mapOff)); in writeTo() 108 out.annotate(4, "data_size: " + Hex.u4(dataSize)); in writeTo() 109 out.annotate(4, "data_off: " + Hex.u4(dataOff)); in writeTo()
|
D | ClassDefItem.java | 187 out.annotate(4, " class_idx: " + Hex.u4(classIdx)); in writeTo() 190 out.annotate(4, " superclass_idx: " + Hex.u4(superIdx) + in writeTo() 193 out.annotate(4, " interfaces_off: " + Hex.u4(interOff)); in writeTo() 201 out.annotate(4, " source_file_idx: " + Hex.u4(sourceFileIdx) + in writeTo() 204 out.annotate(4, " annotations_off: " + Hex.u4(annoOff)); in writeTo() 205 out.annotate(4, " class_data_off: " + Hex.u4(dataOff)); in writeTo() 207 Hex.u4(staticValuesOff)); in writeTo()
|
D | ProtoIdItem.java | 148 out.annotate(4, " shorty_idx: " + Hex.u4(shortyIdx) + in writeTo() 150 out.annotate(4, " return_type_idx: " + Hex.u4(returnIdx) + in writeTo() 152 out.annotate(4, " parameters_off: " + Hex.u4(paramsOff)); in writeTo()
|
/dalvik/dexdump/ |
D | DexDump.cpp | 102 static inline u4 get4LE(unsigned char const* pSrc) in get4LE() 216 static const char* quotedVisibility(u4 accessFlags) in quotedVisibility() 231 static int countOnes(u4 val) in countOnes() 256 static char* createAccessFlagStr(u4 flags, AccessFor forWhat) in createAccessFlagStr() 468 const u4* pOpt = (const u4*) ((u1*) pOptHeader + pOptHeader->optOffset); in dumpOptDirectory() 482 u4 size = *(pOpt+1); in dumpOptDirectory() 501 pOpt += size / sizeof(u4); in dumpOptDirectory() 570 u4 triesSize = pCode->triesSize; in dumpCatches() 580 u4 i; in dumpCatches() 584 u4 start = pTry->startAddr; in dumpCatches() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
D | HexParser.java | 106 "offset " + Hex.u4(outAt)); in parse() 128 Hex.u4(outAt)); in parse() 133 "offset " + Hex.u4(outAt)); in parse()
|
/dalvik/dx/src/com/android/dx/util/ |
D | HexParser.java | 106 "offset " + Hex.u4(outAt)); in parse() 128 Hex.u4(outAt)); in parse() 133 "offset " + Hex.u4(outAt)); in parse()
|
/dalvik/docs/ |
D | porting-proto.c.txt | 34 typedef uint32_t u4; 78 s4 ilsr32(s4 x, s4 count) { return ((u4)x) >> (count & 0x1f); } // unsigned 216 u4 const_43e00000(u4 highword) { return 0x43e00000; } 217 u4 const_c3e00000(u4 highword) { return 0xc3e00000; } 218 u4 const_ffc00000(u4 highword) { return 0xffc00000; } 219 u4 const_41dfffff(u4 highword) { return 0x41dfffff; } 220 u4 const_c1e00000(u4 highword) { return 0xc1e00000; }
|