• Home
  • Raw
  • Download

Lines Matching refs:addr

1062 static u1* swapFieldAnnotations(const CheckState* state, u4 count, u1* addr) {  in swapFieldAnnotations()  argument
1063 DexFieldAnnotationsItem* item = (DexFieldAnnotationsItem*) addr; in swapFieldAnnotations()
1091 static u1* swapMethodAnnotations(const CheckState* state, u4 count, u1* addr) { in swapMethodAnnotations() argument
1092 DexMethodAnnotationsItem* item = (DexMethodAnnotationsItem*) addr; in swapMethodAnnotations()
1121 u1* addr) { in swapParameterAnnotations() argument
1122 DexParameterAnnotationsItem* item = (DexParameterAnnotationsItem*) addr; in swapParameterAnnotations()
1158 u1* addr = (u1*) (item + 1); in swapAnnotationsDirectoryItem() local
1161 addr = swapFieldAnnotations(state, item->fieldsSize, addr); in swapAnnotationsDirectoryItem()
1162 if (addr == NULL) { in swapAnnotationsDirectoryItem()
1168 addr = swapMethodAnnotations(state, item->methodsSize, addr); in swapAnnotationsDirectoryItem()
1169 if (addr == NULL) { in swapAnnotationsDirectoryItem()
1175 addr = swapParameterAnnotations(state, item->parametersSize, addr); in swapAnnotationsDirectoryItem()
1176 if (addr == NULL) { in swapAnnotationsDirectoryItem()
1181 return addr; in swapAnnotationsDirectoryItem()
1187 const u1* addr, u4 definingClass) { in crossVerifyFieldAnnotations() argument
1188 const DexFieldAnnotationsItem* item = (DexFieldAnnotationsItem*) addr; in crossVerifyFieldAnnotations()
1207 u4 count, const u1* addr, u4 definingClass) { in crossVerifyMethodAnnotations() argument
1208 const DexMethodAnnotationsItem* item = (DexMethodAnnotationsItem*) addr; in crossVerifyMethodAnnotations()
1227 u4 count, const u1* addr, u4 definingClass) { in crossVerifyParameterAnnotations() argument
1229 (DexParameterAnnotationsItem*) addr; in crossVerifyParameterAnnotations()
1288 const u1* addr = (const u1*) (item + 1); in crossVerifyAnnotationsDirectoryItem() local
1291 addr = crossVerifyFieldAnnotations(state, item->fieldsSize, addr, in crossVerifyAnnotationsDirectoryItem()
1293 if (addr == NULL) { in crossVerifyAnnotationsDirectoryItem()
1299 addr = crossVerifyMethodAnnotations(state, item->methodsSize, addr, in crossVerifyAnnotationsDirectoryItem()
1301 if (addr == NULL) { in crossVerifyAnnotationsDirectoryItem()
1307 addr = crossVerifyParameterAnnotations(state, item->parametersSize, in crossVerifyAnnotationsDirectoryItem()
1308 addr, definingClass); in crossVerifyAnnotationsDirectoryItem()
1309 if (addr == NULL) { in crossVerifyAnnotationsDirectoryItem()
1314 return (void*) addr; in crossVerifyAnnotationsDirectoryItem()
1691 u4 addr = readAndVerifyUnsignedLeb128(&ptr, fileEnd, &okay); in setHandlerOffsAndVerify() local
1698 if (addr >= code->insnsSize) { in setHandlerOffsAndVerify()
1699 ALOGE("Invalid addr: %#x", addr); in setHandlerOffsAndVerify()
1705 u4 addr = readAndVerifyUnsignedLeb128(&ptr, fileEnd, &okay); in setHandlerOffsAndVerify() local
1712 if (addr >= code->insnsSize) { in setHandlerOffsAndVerify()
1713 ALOGE("Invalid catch_all_addr: %#x", addr); in setHandlerOffsAndVerify()
2817 int dexSwapAndVerify(u1* addr, int len) in dexSwapAndVerify() argument
2830 pHeader = (DexHeader*) addr; in dexSwapAndVerify()
2874 state.fileStart = addr; in dexSwapAndVerify()
2875 state.fileEnd = addr + len; in dexSwapAndVerify()
2909 DexMapList* pDexMap = (DexMapList*) (addr + pHeader->mapOff); in dexSwapAndVerify()
2914 dexFileSetupBasicPointers(&dexFile, addr); in dexSwapAndVerify()
2943 int dexSwapAndVerifyIfNecessary(u1* addr, int len) in dexSwapAndVerifyIfNecessary() argument
2945 if (memcmp(addr, DEX_OPT_MAGIC, 4) == 0) { in dexSwapAndVerifyIfNecessary()
2950 if (memcmp(addr, DEX_MAGIC, 4) == 0) { in dexSwapAndVerifyIfNecessary()
2952 return dexSwapAndVerify(addr, len); in dexSwapAndVerifyIfNecessary()
2956 addr[0], addr[1], addr[2], addr[3]); in dexSwapAndVerifyIfNecessary()