Lines Matching refs:u1
73 const u1* fileStart;
74 const u1* fileEnd; // points to fileStart + fileLen
93 return ((const u1*) ptr) - state->fileStart; in fileOffset()
134 const u1* _startPtr = (const u1*) filePointer(state, (_start)); \
135 const u1* _endPtr = (const u1*) filePointer(state, (_end)); \
165 const u1* _start = (const u1*) (_ptr); \
166 const u1* _end = _start + ((_count) * (_elemSize)); \
937 const u1* data = (const u1*) filePointer(state, offset); in verifyClassDataIsForDef()
1068 static u1* swapFieldAnnotations(const CheckState* state, u4 count, u1* addr) { in swapFieldAnnotations()
1091 return (u1*) item; in swapFieldAnnotations()
1097 static u1* swapMethodAnnotations(const CheckState* state, u4 count, u1* addr) { in swapMethodAnnotations()
1120 return (u1*) item; in swapMethodAnnotations()
1126 static u1* swapParameterAnnotations(const CheckState* state, u4 count, in swapParameterAnnotations()
1127 u1* addr) { in swapParameterAnnotations()
1150 return (u1*) item; in swapParameterAnnotations()
1164 u1* addr = (u1*) (item + 1); in swapAnnotationsDirectoryItem()
1192 static const u1* crossVerifyFieldAnnotations(const CheckState* state, u4 count, in crossVerifyFieldAnnotations()
1193 const u1* addr, u4 definingClass) { in crossVerifyFieldAnnotations()
1207 return (const u1*) item; in crossVerifyFieldAnnotations()
1212 static const u1* crossVerifyMethodAnnotations(const CheckState* state, in crossVerifyMethodAnnotations()
1213 u4 count, const u1* addr, u4 definingClass) { in crossVerifyMethodAnnotations()
1227 return (const u1*) item; in crossVerifyMethodAnnotations()
1232 static const u1* crossVerifyParameterAnnotations(const CheckState* state, in crossVerifyParameterAnnotations()
1233 u4 count, const u1* addr, u4 definingClass) { in crossVerifyParameterAnnotations()
1248 return (const u1*) item; in crossVerifyParameterAnnotations()
1294 const u1* addr = (const u1*) (item + 1); in crossVerifyAnnotationsDirectoryItem()
1407 const u1* data = item->annotation; in annotationItemTypeIdx()
1561 const u1* data = (const u1*) ptr; in intraVerifyClassDataItem()
1614 const u1* data = (const u1*) ptr; in crossVerifyClassDataItem()
1662 const u1* fileEnd = state->fileEnd; in setHandlerOffsAndVerify()
1663 const u1* handlersBase = dexGetCatchHandlerData(code); in setHandlerOffsAndVerify()
1669 const u1* ptr = handlersBase + offset; in setHandlerOffsAndVerify()
1739 const u1* encodedHandlers = dexGetCatchHandlerData(code); in swapTriesAndCatches()
1740 const u1* encodedPtr = encodedHandlers; in swapTriesAndCatches()
1809 return (u1*) encodedHandlers + endOffset; in swapTriesAndCatches()
1873 const u1* fileEnd = state->fileEnd; in intraVerifyStringDataItem()
1874 const u1* data = (const u1*) ptr; in intraVerifyStringDataItem()
1890 u1 byte1 = *(data++); in intraVerifyStringDataItem()
1928 u1 byte2 = *(data++); in intraVerifyStringDataItem()
1933 u1 byte3 = *(data++); in intraVerifyStringDataItem()
1949 u1 byte2 = *(data++); in intraVerifyStringDataItem()
1974 const u1* fileEnd = state->fileEnd; in intraVerifyDebugInfoItem()
1975 const u1* data = (const u1*) ptr; in intraVerifyDebugInfoItem()
2016 u1 opcode = *(data++); in intraVerifyDebugInfoItem()
2115 static const u1* verifyEncodedValue(const CheckState* state, const u1* data,
2117 static const u1* verifyEncodedAnnotation(const CheckState* state,
2118 const u1* data, bool crossVerify);
2122 static u4 readUnsignedLittleEndian(const CheckState* state, const u1** pData, in readUnsignedLittleEndian()
2124 const u1* data = *pData; in readUnsignedLittleEndian()
2140 static const u1* verifyEncodedArray(const CheckState* state, in verifyEncodedArray()
2141 const u1* data, bool crossVerify) { in verifyEncodedArray()
2163 static const u1* verifyEncodedValue(const CheckState* state, in verifyEncodedValue()
2164 const u1* data, bool crossVerify) { in verifyEncodedValue()
2167 u1 headerByte = *(data++); in verifyEncodedValue()
2283 static const u1* verifyEncodedAnnotation(const CheckState* state, in verifyEncodedAnnotation()
2284 const u1* data, bool crossVerify) { in verifyEncodedAnnotation()
2285 const u1* fileEnd = state->fileEnd; in verifyEncodedAnnotation()
2352 return (void*) verifyEncodedArray(state, (const u1*) ptr, false); in intraVerifyEncodedArrayItem()
2357 const u1* data = (const u1*) ptr; in intraVerifyAnnotationItem()
2378 const u1* data = (const u1*) ptr; in crossVerifyAnnotationItem()
2409 u1* ptr = (u1*) filePointer(state, newOffset); in iterateSectionWithOptionalUpdate()
2412 ptr = (u1*) filePointer(state, offset); in iterateSectionWithOptionalUpdate()
2426 u1* newPtr = (u1*) func(state, ptr); in iterateSectionWithOptionalUpdate()
2539 const u1* ptr = (const u1*) filePointer(state, lastOffset); in swapEverythingButHeaderAndMap()
2639 intraVerifyClassDataItem, sizeof(u1), &lastOffset, in swapEverythingButHeaderAndMap()
2650 intraVerifyStringDataItem, sizeof(u1), &lastOffset, in swapEverythingButHeaderAndMap()
2656 intraVerifyDebugInfoItem, sizeof(u1), &lastOffset, in swapEverythingButHeaderAndMap()
2662 intraVerifyAnnotationItem, sizeof(u1), &lastOffset, in swapEverythingButHeaderAndMap()
2668 intraVerifyEncodedArrayItem, sizeof(u1), &lastOffset, in swapEverythingButHeaderAndMap()
2771 crossVerifyClassDataItem, sizeof(u1), NULL); in crossVerifyEverything()
2799 const u1* magic = pHeader->magic; in dexHasValidMagic()
2800 const u1* version = &magic[4]; in dexHasValidMagic()
2829 int dexSwapAndVerify(u1* addr, int len) in dexSwapAndVerify()
2875 adler = adler32(adler, ((const u1*) pHeader) + nonSum, in dexSwapAndVerify()
2955 int dexSwapAndVerifyIfNecessary(u1* addr, int len) in dexSwapAndVerifyIfNecessary()