Searched refs:ptr (Results 1 – 10 of 10) sorted by relevance
/dalvik/libdex/ |
D | Leb128.h | 32 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 …]
|
D | Leb128.cpp | 34 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()
|
D | DexClass.cpp | 125 u1* ptr = ((u1*) result) + sizeof(DexClassData); in dexReadAndVerifyClassData() local 136 result->staticFields = (DexField*) ptr; in dexReadAndVerifyClassData() 137 ptr += header.staticFieldsSize * sizeof(DexField); in dexReadAndVerifyClassData() 143 result->instanceFields = (DexField*) ptr; in dexReadAndVerifyClassData() 144 ptr += header.instanceFieldsSize * sizeof(DexField); in dexReadAndVerifyClassData() 150 result->directMethods = (DexMethod*) ptr; in dexReadAndVerifyClassData() 151 ptr += header.directMethodsSize * sizeof(DexMethod); in dexReadAndVerifyClassData() 157 result->virtualMethods = (DexMethod*) ptr; in dexReadAndVerifyClassData()
|
D | DexOptData.cpp | 31 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()
|
D | DexSwapVerify.cpp | 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() [all …]
|
D | SysUtil.cpp | 44 void* ptr; in sysCreateAnonShmem() local 46 ptr = mmap(NULL, length, PROT_READ | PROT_WRITE, in sysCreateAnonShmem() 48 if (ptr == MAP_FAILED) { in sysCreateAnonShmem() 54 return ptr; in sysCreateAnonShmem()
|
D | DexFile.cpp | 108 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff; in dexStringAndSizeById() local 110 *utf16Size = readUnsignedLeb128(&ptr); in dexStringAndSizeById() 111 return (const char*) ptr; in dexStringAndSizeById()
|
D | DexFile.h | 653 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff; in dexGetStringData() local 656 while (*(ptr++) > 0x7f) /* empty */ ; in dexGetStringData() 658 return (const char*) ptr; in dexGetStringData()
|
/dalvik/tools/dmtracedump/ |
D | TraceDump.c | 2645 DiffEntry* ptr = diffs; in createDiff() local 2654 ptr->method1 = methods1[i]; in createDiff() 2655 ptr->method2 = methods2[match]; in createDiff() 2657 uint64_t e1 = ptr->method1->elapsedExclusive; in createDiff() 2658 uint64_t e2 = ptr->method2->elapsedExclusive; in createDiff() 2660 ptr->differenceExclusive = e2 - e1; in createDiff() 2661 ptr->differenceExclusivePercentage = ((double)e2 / (double)e1) * 100.0; in createDiff() 2664 uint64_t i1 = ptr->method1->elapsedInclusive; in createDiff() 2665 uint64_t i2 = ptr->method2->elapsedInclusive; in createDiff() 2667 ptr->differenceInclusive = i2 - i1; in createDiff() [all …]
|
/dalvik/dexdump/ |
D | DexDump.cpp | 1533 static inline const u1* align32(const u1* ptr) in align32() argument 1535 return (u1*) (((uintptr_t) ptr + 3) & ~0x03); in align32() 1656 const u1* ptr; in dumpRegisterMaps() local 1666 ptr = pClassPool; in dumpRegisterMaps() 1667 numClasses = get4LE(ptr); in dumpRegisterMaps() 1668 ptr += sizeof(u4); in dumpRegisterMaps() 1669 classOffsets = (const u4*) ptr; in dumpRegisterMaps()
|