Home
last modified time | relevance | path

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

12345

/dalvik/libdex/
DDexFile.h218 u4 checksum; /* adler32 checksum */
220 u4 fileSize; /* length of entire file */
221 u4 headerSize; /* offset to start of next section */
222 u4 endianTag;
223 u4 linkSize;
224 u4 linkOff;
225 u4 mapOff;
226 u4 stringIdsSize;
227 u4 stringIdsOff;
228 u4 typeIdsSize;
[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 static u4 endianSwapU4(u4 value) { in endianSwapU4()
75 u4 fileLen;
84 u4* pDefinedClassBits;
92 static inline u4 fileOffset(const CheckState* state, const void* ptr) { in fileOffset()
99 static inline void* filePointer(const CheckState* state, u4 offset) { in filePointer()
191 #_field, (u4)(_field), #_limit, (u4)(_limit)); \
210 #_field, (u4)(_field), #_limit, (u4)(_limit)); \
233 static bool verifyFieldDefiner(const CheckState* state, u4 definingClass, in verifyFieldDefiner()
234 u4 fieldIdx) { in verifyFieldDefiner()
240 static bool verifyMethodDefiner(const CheckState* state, u4 definingClass, 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/vm/
DProfile.h128 u4 cpuClockDiff = 0; \
129 u4 wallClockDiff = 0; \
140 u4 cpuClockDiff = 0; \
141 u4 wallClockDiff = 0; \
152 u4 cpuClockDiff = 0; \
153 u4 wallClockDiff = 0; \
162 void dvmMethodTraceReadClocks(Thread* self, u4* cpuClockDiff,
163 u4* wallClockDiff);
165 u4 cpuClockDiff, u4 wallClockDiff);
/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; }

12345