Lines Matching refs:ptr
66 static inline u4 fileOffset(const CheckState* state, const void* ptr) { in fileOffset() argument
67 return ((const u1*) ptr) - state->fileStart; in fileOffset()
521 static void* swapStringIdItem(const CheckState* state, void* ptr) { in swapStringIdItem() argument
522 DexStringId* item = (DexStringId*) ptr; in swapStringIdItem()
531 static void* crossVerifyStringIdItem(const CheckState* state, void* ptr) { in crossVerifyStringIdItem() argument
532 const DexStringId* item = (const DexStringId*) ptr; in crossVerifyStringIdItem()
554 static void* swapTypeIdItem(const CheckState* state, void* ptr) { in swapTypeIdItem() argument
555 DexTypeId* item = (DexTypeId*) ptr; in swapTypeIdItem()
564 static void* crossVerifyTypeIdItem(const CheckState* state, void* ptr) { in crossVerifyTypeIdItem() argument
565 const DexTypeId* item = (const DexTypeId*) ptr; in crossVerifyTypeIdItem()
588 static void* swapProtoIdItem(const CheckState* state, void* ptr) { in swapProtoIdItem() argument
589 DexProtoId* item = (DexProtoId*) ptr; in swapProtoIdItem()
645 static void* crossVerifyProtoIdItem(const CheckState* state, void* ptr) { in crossVerifyProtoIdItem() argument
646 const DexProtoId* item = (const DexProtoId*) ptr; in crossVerifyProtoIdItem()
738 static void* swapFieldIdItem(const CheckState* state, void* ptr) { in swapFieldIdItem() argument
739 DexFieldId* item = (DexFieldId*) ptr; in swapFieldIdItem()
750 static void* crossVerifyFieldIdItem(const CheckState* state, void* ptr) { in crossVerifyFieldIdItem() argument
751 const DexFieldId* item = (const DexFieldId*) ptr; in crossVerifyFieldIdItem()
810 static void* swapMethodIdItem(const CheckState* state, void* ptr) { in swapMethodIdItem() argument
811 DexMethodId* item = (DexMethodId*) ptr; in swapMethodIdItem()
822 static void* crossVerifyMethodIdItem(const CheckState* state, void* ptr) { in crossVerifyMethodIdItem() argument
823 const DexMethodId* item = (const DexMethodId*) ptr; in crossVerifyMethodIdItem()
876 static void* swapClassDefItem(const CheckState* state, void* ptr) { in swapClassDefItem() argument
877 DexClassDef* item = (DexClassDef*) ptr; in swapClassDefItem()
948 static void* crossVerifyClassDefItem(const CheckState* state, void* ptr) { in crossVerifyClassDefItem() argument
949 const DexClassDef* item = (const DexClassDef*) ptr; in crossVerifyClassDefItem()
1129 static void* swapAnnotationsDirectoryItem(const CheckState* state, void* ptr) { in swapAnnotationsDirectoryItem() argument
1130 DexAnnotationsDirectoryItem* item = (DexAnnotationsDirectoryItem*) ptr; in swapAnnotationsDirectoryItem()
1259 void* ptr) { in crossVerifyAnnotationsDirectoryItem() argument
1260 const DexAnnotationsDirectoryItem* item = (const DexAnnotationsDirectoryItem*) ptr; in crossVerifyAnnotationsDirectoryItem()
1298 static void* swapTypeList(const CheckState* state, void* ptr) in swapTypeList() argument
1300 DexTypeList* pTypeList = (DexTypeList*) ptr; in swapTypeList()
1320 static void* swapAnnotationSetRefList(const CheckState* state, void* ptr) { in swapAnnotationSetRefList() argument
1321 DexAnnotationSetRefList* list = (DexAnnotationSetRefList*) ptr; in swapAnnotationSetRefList()
1341 void* ptr) { in crossVerifyAnnotationSetRefList() argument
1342 const DexAnnotationSetRefList* list = (const DexAnnotationSetRefList*) ptr; in crossVerifyAnnotationSetRefList()
1359 static void* swapAnnotationSetItem(const CheckState* state, void* ptr) { in swapAnnotationSetItem() argument
1360 DexAnnotationSetItem* set = (DexAnnotationSetItem*) ptr; in swapAnnotationSetItem()
1386 static void* crossVerifyAnnotationSetItem(const CheckState* state, void* ptr) { in crossVerifyAnnotationSetItem() argument
1387 const DexAnnotationSetItem* set = (const DexAnnotationSetItem*) ptr; in crossVerifyAnnotationSetItem()
1534 static void* intraVerifyClassDataItem(const CheckState* state, void* ptr) { in intraVerifyClassDataItem() argument
1535 const u1* data = (const u1*) ptr; in intraVerifyClassDataItem()
1587 static void* crossVerifyClassDataItem(const CheckState* state, void* ptr) { in crossVerifyClassDataItem() argument
1588 const u1* data = (const u1*) ptr; in crossVerifyClassDataItem()
1643 const u1* ptr = handlersBase + offset; in setHandlerOffsAndVerify() local
1644 int size = readAndVerifySignedLeb128(&ptr, fileEnd, &okay); in setHandlerOffsAndVerify()
1668 readAndVerifyUnsignedLeb128(&ptr, fileEnd, &okay); in setHandlerOffsAndVerify()
1677 u4 addr = readAndVerifyUnsignedLeb128(&ptr, fileEnd, &okay); in setHandlerOffsAndVerify()
1691 u4 addr = readAndVerifyUnsignedLeb128(&ptr, fileEnd, &okay); in setHandlerOffsAndVerify()
1704 offset = ptr - handlersBase; in setHandlerOffsAndVerify()
1787 static void* swapCodeItem(const CheckState* state, void* ptr) { in swapCodeItem() argument
1788 DexCode* item = (DexCode*) ptr; in swapCodeItem()
1829 ptr = insns; in swapCodeItem()
1839 ptr = swapTriesAndCatches(state, item); in swapCodeItem()
1842 return ptr; in swapCodeItem()
1846 static void* intraVerifyStringDataItem(const CheckState* state, void* ptr) { in intraVerifyStringDataItem() argument
1848 const u1* data = (const u1*) ptr; in intraVerifyStringDataItem()
1947 static void* intraVerifyDebugInfoItem(const CheckState* state, void* ptr) { in intraVerifyDebugInfoItem() argument
1949 const u1* data = (const u1*) ptr; in intraVerifyDebugInfoItem()
2325 static void* intraVerifyEncodedArrayItem(const CheckState* state, void* ptr) { in intraVerifyEncodedArrayItem() argument
2326 return (void*) verifyEncodedArray(state, (const u1*) ptr, false); in intraVerifyEncodedArrayItem()
2330 static void* intraVerifyAnnotationItem(const CheckState* state, void* ptr) { in intraVerifyAnnotationItem() argument
2331 const u1* data = (const u1*) ptr; in intraVerifyAnnotationItem()
2351 static void* crossVerifyAnnotationItem(const CheckState* state, void* ptr) { in crossVerifyAnnotationItem() argument
2352 const u1* data = (const u1*) ptr; in crossVerifyAnnotationItem()
2366 typedef void* ItemVisitorFunction(const CheckState* state, void* ptr);
2383 u1* ptr = (u1*) filePointer(state, newOffset); in iterateSectionWithOptionalUpdate() local
2386 ptr = (u1*) filePointer(state, offset); in iterateSectionWithOptionalUpdate()
2390 if (*ptr != '\0') { in iterateSectionWithOptionalUpdate()
2391 ALOGE("Non-zero padding 0x%02x @ %x", *ptr, offset); in iterateSectionWithOptionalUpdate()
2394 ptr++; in iterateSectionWithOptionalUpdate()
2400 u1* newPtr = (u1*) func(state, ptr); in iterateSectionWithOptionalUpdate()
2417 state->previousItem = ptr; in iterateSectionWithOptionalUpdate()
2513 const u1* ptr = (const u1*) filePointer(state, lastOffset); in swapEverythingButHeaderAndMap() local
2515 if (*ptr != '\0') { in swapEverythingButHeaderAndMap()
2517 *ptr, lastOffset); in swapEverythingButHeaderAndMap()
2521 ptr++; in swapEverythingButHeaderAndMap()