Lines Matching refs:addr
1068 static u1* swapFieldAnnotations(const CheckState* state, u4 count, u1* addr) { in swapFieldAnnotations() argument
1069 DexFieldAnnotationsItem* item = (DexFieldAnnotationsItem*) addr; in swapFieldAnnotations()
1097 static u1* swapMethodAnnotations(const CheckState* state, u4 count, u1* addr) { in swapMethodAnnotations() argument
1098 DexMethodAnnotationsItem* item = (DexMethodAnnotationsItem*) addr; in swapMethodAnnotations()
1127 u1* addr) { in swapParameterAnnotations() argument
1128 DexParameterAnnotationsItem* item = (DexParameterAnnotationsItem*) addr; in swapParameterAnnotations()
1164 u1* addr = (u1*) (item + 1); in swapAnnotationsDirectoryItem() local
1167 addr = swapFieldAnnotations(state, item->fieldsSize, addr); in swapAnnotationsDirectoryItem()
1168 if (addr == NULL) { in swapAnnotationsDirectoryItem()
1174 addr = swapMethodAnnotations(state, item->methodsSize, addr); in swapAnnotationsDirectoryItem()
1175 if (addr == NULL) { in swapAnnotationsDirectoryItem()
1181 addr = swapParameterAnnotations(state, item->parametersSize, addr); in swapAnnotationsDirectoryItem()
1182 if (addr == NULL) { in swapAnnotationsDirectoryItem()
1187 return addr; in swapAnnotationsDirectoryItem()
1193 const u1* addr, u4 definingClass) { in crossVerifyFieldAnnotations() argument
1194 const DexFieldAnnotationsItem* item = (DexFieldAnnotationsItem*) addr; in crossVerifyFieldAnnotations()
1213 u4 count, const u1* addr, u4 definingClass) { in crossVerifyMethodAnnotations() argument
1214 const DexMethodAnnotationsItem* item = (DexMethodAnnotationsItem*) addr; in crossVerifyMethodAnnotations()
1233 u4 count, const u1* addr, u4 definingClass) { in crossVerifyParameterAnnotations() argument
1235 (DexParameterAnnotationsItem*) addr; in crossVerifyParameterAnnotations()
1294 const u1* addr = (const u1*) (item + 1); in crossVerifyAnnotationsDirectoryItem() local
1297 addr = crossVerifyFieldAnnotations(state, item->fieldsSize, addr, in crossVerifyAnnotationsDirectoryItem()
1299 if (addr == NULL) { in crossVerifyAnnotationsDirectoryItem()
1305 addr = crossVerifyMethodAnnotations(state, item->methodsSize, addr, in crossVerifyAnnotationsDirectoryItem()
1307 if (addr == NULL) { in crossVerifyAnnotationsDirectoryItem()
1313 addr = crossVerifyParameterAnnotations(state, item->parametersSize, in crossVerifyAnnotationsDirectoryItem()
1314 addr, definingClass); in crossVerifyAnnotationsDirectoryItem()
1315 if (addr == NULL) { in crossVerifyAnnotationsDirectoryItem()
1320 return (void*) addr; in crossVerifyAnnotationsDirectoryItem()
1703 u4 addr = readAndVerifyUnsignedLeb128(&ptr, fileEnd, &okay); in setHandlerOffsAndVerify() local
1710 if (addr >= code->insnsSize) { in setHandlerOffsAndVerify()
1711 ALOGE("Invalid addr: %#x", addr); in setHandlerOffsAndVerify()
1717 u4 addr = readAndVerifyUnsignedLeb128(&ptr, fileEnd, &okay); in setHandlerOffsAndVerify() local
1724 if (addr >= code->insnsSize) { in setHandlerOffsAndVerify()
1725 ALOGE("Invalid catch_all_addr: %#x", addr); in setHandlerOffsAndVerify()
2829 int dexSwapAndVerify(u1* addr, int len) in dexSwapAndVerify() argument
2842 pHeader = (DexHeader*) addr; in dexSwapAndVerify()
2886 state.fileStart = addr; in dexSwapAndVerify()
2887 state.fileEnd = addr + len; in dexSwapAndVerify()
2921 DexMapList* pDexMap = (DexMapList*) (addr + pHeader->mapOff); in dexSwapAndVerify()
2926 dexFileSetupBasicPointers(&dexFile, addr); in dexSwapAndVerify()
2955 int dexSwapAndVerifyIfNecessary(u1* addr, int len) in dexSwapAndVerifyIfNecessary() argument
2957 if (memcmp(addr, DEX_OPT_MAGIC, 4) == 0) { in dexSwapAndVerifyIfNecessary()
2962 if (memcmp(addr, DEX_MAGIC, 4) == 0) { in dexSwapAndVerifyIfNecessary()
2964 return dexSwapAndVerify(addr, len); in dexSwapAndVerifyIfNecessary()
2968 addr[0], addr[1], addr[2], addr[3]); in dexSwapAndVerifyIfNecessary()