Home
last modified time | relevance | path

Searched refs:u4 (Results 1 – 25 of 104) sorted by relevance

12345

/dalvik/libdex/
DDexFile.h67 typedef uint32_t u4; typedef
255 u4 checksum; /* adler32 checksum */
257 u4 fileSize; /* length of entire file */
258 u4 headerSize; /* offset to start of next section */
259 u4 endianTag;
260 u4 linkSize;
261 u4 linkOff;
262 u4 mapOff;
263 u4 stringIdsSize;
264 u4 stringIdsOff;
[all …]
DDexClass.h29 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 …]
DDexDataMap.h27 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()
DDexDebugInfo.h30 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,
DDexCatch.h31 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 …]
DDexCatch.cpp26 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()
DDexOptData.cpp37 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()
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()
DDexSwapVerify.cpp49 u4 fileLen;
58 u4* pDefinedClassBits;
66 static inline u4 fileOffset(const CheckState* state, const void* ptr) { in fileOffset()
73 static inline void* filePointer(const CheckState* state, u4 offset) { in filePointer()
165 #_field, (u4)(_field), #_limit, (u4)(_limit)); \
184 #_field, (u4)(_field), #_limit, (u4)(_limit)); \
207 static bool verifyFieldDefiner(const CheckState* state, u4 definingClass, in verifyFieldDefiner()
208 u4 fieldIdx) { in verifyFieldDefiner()
214 static bool verifyMethodDefiner(const CheckState* state, u4 definingClass, in verifyMethodDefiner()
215 u4 methodIdx) { in verifyMethodDefiner()
[all …]
DDexDataMap.cpp28 DexDataMap* dexDataMapAlloc(u4 maxCount) { in dexDataMapAlloc()
39 if (!safe_mul(&size, maxCount, sizeof(u4) + sizeof(u2)) || in dexDataMapAlloc()
52 map->offsets = (u4*) (map + 1); in dexDataMapAlloc()
74 void dexDataMapAdd(DexDataMap* map, u4 offset, u2 type) { in dexDataMapAdd()
94 int dexDataMapGet(DexDataMap* map, u4 offset) { in dexDataMapGet()
100 u4* offsets = map->offsets; in dexDataMapGet()
104 u4 guess = offsets[guessIdx]; in dexDataMapGet()
125 bool dexDataMapVerify(DexDataMap* map, u4 offset, u2 type) { in dexDataMapVerify()
DInstrUtils.h130 u4 vA;
131 u4 vB;
133 u4 vC;
134 u4 arg[5]; /* vC/D/E/F/G in invoke or filled-new-array */
144 assert((u4) opcode < kNumPackedOpcodes); in dexGetWidthFromOpcode()
160 assert((u4) opcode < kNumPackedOpcodes); in dexGetFlagsFromOpcode()
177 assert((u4) opcode < kNumPackedOpcodes); in dexGetFormatFromOpcode()
186 assert((u4) opcode < kNumPackedOpcodes); in dexGetIndexTypeFromOpcode()
DDexUtf.h73 extern u4 DEX_MEMBER_VALID_LOW_ASCII[4];
88 u4 wordIdx = c >> 5; in dexIsValidMemberNameUtf8()
89 u4 bitIdx = c & 0x1f; in dexIsValidMemberNameUtf8()
DDexDebugInfo.cpp86 u4 stringIdx = readUnsignedLeb128(pStream); in readStringIdx()
102 u4 typeIdx = readUnsignedLeb128(pStream); in readTypeIdx()
120 static void emitLocalCbIfLive(void *cnxt, int reg, u4 endAddress, in emitLocalCbIfLive()
145 u4 protoIdx, in dexDecodeDebugInfo0()
146 u4 accessFlags, in dexDecodeDebugInfo0()
153 u4 insnsSize = pCode->insnsSize; in dexDecodeDebugInfo0()
154 u4 line = readUnsignedLeb128(&stream); in dexDecodeDebugInfo0()
155 u4 parametersSize = readUnsignedLeb128(&stream); in dexDecodeDebugInfo0()
157 u4 address = 0; in dexDecodeDebugInfo0()
316 u4 protoIdx, in dexDecodeDebugInfo()
[all …]
DDexClass.cpp28 static bool verifyUlebs(const u1* pData, const u1* pLimit, u4 count) { in verifyUlebs()
30 u4 i; in verifyUlebs()
64 DexField* pField, u4* lastIndex) { in dexReadAndVerifyClassDataField()
85 DexMethod* pMethod, u4* lastIndex) { in dexReadAndVerifyClassDataMethod()
106 u4 lastIndex; in dexReadAndVerifyClassData()
127 u4 i; in dexReadAndVerifyClassData()
DDexFile.cpp105 const char* dexStringAndSizeById(const DexFile* pDexFile, u4 idx, in dexStringAndSizeById()
106 u4* utf16Size) { in dexStringAndSizeById()
163 static u4 classDescriptorHash(const char* str) in classDescriptorHash()
165 u4 hash = 1; in classDescriptorHash()
184 u4 hash = classDescriptorHash(classDescriptor); in classLookupAdd()
349 u4 adler = dexComputeChecksum(pHeader); in dexFileParse()
445 u4 hash; in dexFindClass()
480 u4 dexComputeChecksum(const DexHeader* pHeader) in dexComputeChecksum()
487 return (u4) adler32(adler, start + nonSum, pHeader->fileSize - nonSum); in dexComputeChecksum()
499 u4 handlersSize; in dexGetDexCodeSize()
[all …]
DDexProto.cpp139 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()
DDexOptData.h40 u4 dexComputeOptChecksum(const DexOptHeader* pOptHeader);
DLeb128.h133 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/
DHeaderItem.java79 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()
DClassDefItem.java190 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/
DHeaderItem.java71 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()
DClassDefItem.java188 out.annotate(4, " class_idx: " + Hex.u4(classIdx)); in writeTo()
191 out.annotate(4, " superclass_idx: " + Hex.u4(superIdx) + in writeTo()
194 out.annotate(4, " interfaces_off: " + Hex.u4(interOff)); in writeTo()
202 out.annotate(4, " source_file_idx: " + Hex.u4(sourceFileIdx) + in writeTo()
205 out.annotate(4, " annotations_off: " + Hex.u4(annoOff)); in writeTo()
206 out.annotate(4, " class_data_off: " + Hex.u4(dataOff)); in writeTo()
208 Hex.u4(staticValuesOff)); in writeTo()
/dalvik/dexgen/src/com/android/dexgen/util/
DHexParser.java106 "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/
DHexParser.java106 "offset " + Hex.u4(outAt)); in parse()
128 Hex.u4(outAt)); in parse()
133 "offset " + Hex.u4(outAt)); in parse()
/dalvik/docs/
Dporting-proto.c.txt34 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; }
/dalvik/dexdump/
DDexDump.cpp94 static inline u4 get4LE(unsigned char const* pSrc) in get4LE()
215 static const char* quotedVisibility(u4 accessFlags) in quotedVisibility()
230 static int countOnes(u4 val) in countOnes()
255 static char* createAccessFlagStr(u4 flags, AccessFor forWhat) in createAccessFlagStr()
467 const u4* pOpt = (const u4*) ((u1*) pOptHeader + pOptHeader->optOffset); in dumpOptDirectory()
481 u4 size = *(pOpt+1); in dumpOptDirectory()
500 pOpt += size / sizeof(u4); in dumpOptDirectory()
569 u4 triesSize = pCode->triesSize; in dumpCatches()
579 u4 i; in dumpCatches()
583 u4 start = pTry->startAddr; in dumpCatches()
[all …]

12345