Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 9 of 9) sorted by relevance

/dalvik/libdex/
DLeb128.h32 const u1* ptr = *pStream; in readUnsignedLeb128() local
33 int result = *(ptr++); in readUnsignedLeb128()
36 int cur = *(ptr++); in readUnsignedLeb128()
39 cur = *(ptr++); in readUnsignedLeb128()
42 cur = *(ptr++); in readUnsignedLeb128()
50 cur = *(ptr++); in readUnsignedLeb128()
57 *pStream = ptr; in readUnsignedLeb128()
67 const u1* ptr = *pStream; in readSignedLeb128() local
68 int result = *(ptr++); in readSignedLeb128()
73 int cur = *(ptr++); in readSignedLeb128()
[all …]
DLeb128.cpp34 const u1* ptr = *pStream; in readAndVerifyUnsignedLeb128() local
38 || (((*pStream - ptr) == 5) && (ptr[4] > 0x0f))) { in readAndVerifyUnsignedLeb128()
56 const u1* ptr = *pStream; in readAndVerifySignedLeb128() local
60 || (((*pStream - ptr) == 5) && (ptr[4] > 0x0f))) { in readAndVerifySignedLeb128()
DDexClass.cpp124 u1* ptr = ((u1*) result) + sizeof(DexClassData); in dexReadAndVerifyClassData() local
135 result->staticFields = (DexField*) ptr; in dexReadAndVerifyClassData()
136 ptr += header.staticFieldsSize * sizeof(DexField); in dexReadAndVerifyClassData()
142 result->instanceFields = (DexField*) ptr; in dexReadAndVerifyClassData()
143 ptr += header.instanceFieldsSize * sizeof(DexField); in dexReadAndVerifyClassData()
149 result->directMethods = (DexMethod*) ptr; in dexReadAndVerifyClassData()
150 ptr += header.directMethodsSize * sizeof(DexMethod); in dexReadAndVerifyClassData()
156 result->virtualMethods = (DexMethod*) ptr; in dexReadAndVerifyClassData()
DDexSwapVerify.cpp67 static inline u4 fileOffset(const CheckState* state, const void* ptr) { in fileOffset() argument
68 return ((const u1*) ptr) - state->fileStart; in fileOffset()
531 static void* swapStringIdItem(const CheckState* state, void* ptr) { in swapStringIdItem() argument
532 DexStringId* item = (DexStringId*) ptr; in swapStringIdItem()
541 static void* crossVerifyStringIdItem(const CheckState* state, void* ptr) { in crossVerifyStringIdItem() argument
542 const DexStringId* item = (const DexStringId*) ptr; in crossVerifyStringIdItem()
564 static void* swapTypeIdItem(const CheckState* state, void* ptr) { in swapTypeIdItem() argument
565 DexTypeId* item = (DexTypeId*) ptr; in swapTypeIdItem()
574 static void* crossVerifyTypeIdItem(const CheckState* state, void* ptr) { in crossVerifyTypeIdItem() argument
575 const DexTypeId* item = (const DexTypeId*) ptr; in crossVerifyTypeIdItem()
[all …]
DDexOptData.cpp31 static bool isValidPointer(const void* ptr, const void* start, const void* end) in isValidPointer() argument
33 return (ptr >= start) && (ptr < end) && (((uintptr_t) ptr & 7) == 0); in isValidPointer()
DSysUtil.cpp56 void* ptr; in sysCreateAnonShmem() local
58 ptr = mmap(NULL, length, PROT_READ | PROT_WRITE, in sysCreateAnonShmem()
60 if (ptr == MAP_FAILED) { in sysCreateAnonShmem()
66 return ptr; in sysCreateAnonShmem()
DDexFile.cpp107 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff; in dexStringAndSizeById() local
109 *utf16Size = readUnsignedLeb128(&ptr); in dexStringAndSizeById()
110 return (const char*) ptr; in dexStringAndSizeById()
DDexFile.h710 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff; in dexGetStringData() local
713 while (*(ptr++) > 0x7f) /* empty */ ; in dexGetStringData()
715 return (const char*) ptr; in dexGetStringData()
/dalvik/dexdump/
DDexDump.cpp1776 const u1* ptr; in dumpRegisterMaps() local
1786 ptr = pClassPool; in dumpRegisterMaps()
1787 numClasses = get4LE(ptr); in dumpRegisterMaps()
1788 ptr += sizeof(u4); in dumpRegisterMaps()
1789 classOffsets = (const u4*) ptr; in dumpRegisterMaps()