Home
last modified time | relevance | path

Searched refs:u1 (Results 1 – 25 of 44) sorted by relevance

12

/dalvik/libdex/
DLeb128.h31 DEX_INLINE int readUnsignedLeb128(const u1** pStream) { in readUnsignedLeb128()
32 const u1* ptr = *pStream; in readUnsignedLeb128()
66 DEX_INLINE int readSignedLeb128(const u1** pStream) { in readSignedLeb128()
67 const u1* ptr = *pStream; in readSignedLeb128()
113 int readAndVerifyUnsignedLeb128(const u1** pStream, const u1* limit,
125 int readAndVerifySignedLeb128(const u1** pStream, const u1* limit, bool* okay);
133 DEX_INLINE u1* writeUnsignedLeb128(u1* ptr, u4 data) in writeUnsignedLeb128()
136 u1 out = data & 0x7f; in writeUnsignedLeb128()
DDexOptData.cpp39 const u1* start = (const u1*) pOptHeader + pOptHeader->depsOffset; in dexComputeOptChecksum()
40 const u1* end = (const u1*) pOptHeader + in dexComputeOptChecksum()
49 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile) in dexParseOptData()
54 u4 optLength = (const u1*) pOptEnd - (const u1*) pOptStart; in dexParseOptData()
87 ((const u1*) pOpt) - data); in dexParseOptData()
92 const u1* pOptData = (const u1*) (pOpt + 2); in dexParseOptData()
103 size, ((const u1*) pOpt) - data); in dexParseOptData()
DLeb128.cpp32 int readAndVerifyUnsignedLeb128(const u1** pStream, const u1* limit, in readAndVerifyUnsignedLeb128()
34 const u1* ptr = *pStream; in readAndVerifyUnsignedLeb128()
54 int readAndVerifySignedLeb128(const u1** pStream, const u1* limit, in readAndVerifySignedLeb128()
56 const u1* ptr = *pStream; in readAndVerifySignedLeb128()
DDexClass.h62 bool dexReadAndVerifyClassDataHeader(const u1** pData, const u1* pLimit,
76 bool dexReadAndVerifyClassDataField(const u1** pData, const u1* pLimit,
90 bool dexReadAndVerifyClassDataMethod(const u1** pData, const u1* pLimit,
103 DexClassData* dexReadAndVerifyClassData(const u1** pData, const u1* pLimit);
121 DEX_INLINE void dexReadClassDataHeader(const u1** pData, in dexReadClassDataHeader()
136 DEX_INLINE void dexReadClassDataField(const u1** pData, DexField* pField, in dexReadClassDataField()
152 DEX_INLINE void dexReadClassDataMethod(const u1** pData, DexMethod* pMethod, in dexReadClassDataMethod()
DDexClass.cpp28 static bool verifyUlebs(const u1* pData, const u1* pLimit, u4 count) { in verifyUlebs()
42 bool dexReadAndVerifyClassDataHeader(const u1** pData, const u1* pLimit, in dexReadAndVerifyClassDataHeader()
63 bool dexReadAndVerifyClassDataField(const u1** pData, const u1* pLimit, in dexReadAndVerifyClassDataField()
84 bool dexReadAndVerifyClassDataMethod(const u1** pData, const u1* pLimit, in dexReadAndVerifyClassDataMethod()
104 DexClassData* dexReadAndVerifyClassData(const u1** pData, const u1* pLimit) { in dexReadAndVerifyClassData()
125 u1* ptr = ((u1*) result) + sizeof(DexClassData); in dexReadAndVerifyClassData()
DDexSwapVerify.cpp73 const u1* fileStart;
74 const u1* fileEnd; // points to fileStart + fileLen
93 return ((const u1*) ptr) - state->fileStart; in fileOffset()
134 const u1* _startPtr = (const u1*) filePointer(state, (_start)); \
135 const u1* _endPtr = (const u1*) filePointer(state, (_end)); \
165 const u1* _start = (const u1*) (_ptr); \
166 const u1* _end = _start + ((_count) * (_elemSize)); \
937 const u1* data = (const u1*) filePointer(state, offset); in verifyClassDataIsForDef()
1068 static u1* swapFieldAnnotations(const CheckState* state, u4 count, u1* addr) { in swapFieldAnnotations()
1091 return (u1*) item; in swapFieldAnnotations()
[all …]
DDexCatch.cpp31 const u1* baseData = dexGetCatchHandlerData(pCode); in dexGetFirstHandlerOffset()
32 const u1* data = baseData; in dexGetFirstHandlerOffset()
45 const u1* data = dexGetCatchHandlerData(pCode); in dexGetHandlersSize()
DDexFile.h217 u1 magic[8]; /* includes version number */
219 u1 signature[kSHA1DigestLen]; /* SHA-1 hash */
364 u1 bleargh;
434 u1 visibility;
435 u1 annotation[1]; /* data in encoded_annotation format */
444 u1 array[1]; /* data in encoded_array format */
475 u1 magic[8]; /* includes version number */
522 const u1* baseAddr;
541 DexFile* dexFileParse(const u1* data, size_t length, int flags);
557 int dexSwapAndVerify(u1* addr, int len);
[all …]
DInstrUtils.h89 typedef u1 InstructionWidth;
94 typedef u1 OpcodeFlags;
115 u1* formats; /* InstructionFormat elements */
116 u1* indexTypes; /* InstructionIndexType elements */
DDexUtf.h85 u1 c = (u1) **pUtf8Ptr; in dexIsValidMemberNameUtf8()
DSysUtil.cpp247 (u1*)addr >= (u1*)pMap->baseAddr + pMap->baseLength) in sysChangeMapAccess()
250 addr, pMap->baseAddr, (u1*)pMap->baseAddr + pMap->baseLength); in sysChangeMapAccess()
259 u1* alignAddr = (u1*) ((uintptr_t) addr & ~(SYSTEM_PAGE_SIZE-1)); in sysChangeMapAccess()
260 size_t alignLength = length + ((u1*) addr - alignAddr); in sysChangeMapAccess()
327 buf = (const void*) (((const u1*) buf) + actual); in sysWriteFully()
DDexFile.cpp108 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff; in dexStringAndSizeById()
247 (u1*)pString - pDexFile->baseAddr, in dexCreateClassLookup()
248 (u1*)pClassDef - pDexFile->baseAddr, &numProbes); in dexCreateClassLookup()
269 void dexFileSetupBasicPointers(DexFile* pDexFile, const u1* data) { in dexFileSetupBasicPointers()
289 DexFile* dexFileParse(const u1* data, size_t length, int flags) in dexFileParse()
293 const u1* magic; in dexFileParse()
482 const u1* start = (const u1*) pHeader; in dexComputeChecksum()
517 const u1* handlerData = dexGetCatchHandlerData(pCode); in dexGetDexCodeSize()
523 return (handlerData - (u1*) pCode) + offset; in dexGetDexCodeSize()
DDexOptData.h34 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile);
DDexUtf.cpp216 u1 c = (u1) *s; in isValidTypeDescriptorOrClassName()
DDexDebugInfo.cpp85 const u1** pStream) { in readStringIdx()
101 const u1** pStream) { in readTypeIdx()
149 const u1* stream, in dexDecodeDebugInfo0()
212 u1 opcode = *stream++; in dexDecodeDebugInfo0()
321 const u1* stream = dexGetDebugInfoStream(pDexFile, pCode); in dexDecodeDebugInfo()
DDexCatch.h48 const u1* pEncodedData;
66 const u1* pEncodedData) in dexCatchIteratorInitToPointer()
/dalvik/dx/src/com/android/dx/io/instructions/
DShortArrayCodeOutput.java63 public void write(short u0, short u1) { in write() argument
65 write(u1); in write()
69 public void write(short u0, short u1, short u2) { in write() argument
71 write(u1); in write()
76 public void write(short u0, short u1, short u2, short u3) { in write() argument
78 write(u1); in write()
84 public void write(short u0, short u1, short u2, short u3, short u4) { in write() argument
86 write(u1); in write()
DCodeOutput.java31 public void write(short u0, short u1); in write() argument
36 public void write(short u0, short u1, short u2); in write() argument
41 public void write(short u0, short u1, short u2, short u3); in write() argument
46 public void write(short u0, short u1, short u2, short u3, short u4); in write() argument
/dalvik/vm/
DCommon.h85 typedef uint8_t u1; typedef
106 u1 z;
118 u1 _z[3];
119 u1 z;
/dalvik/dexdump/
DDexDump.cpp467 const u4* pOpt = (const u4*) ((u1*) pOptHeader + pOptHeader->optOffset); in dumpOptDirectory()
511 const u1* pEncodedData; in dumpClassDef()
857 printf("%06x:", ((u1*)insns - pDexFile->baseAddr) + insnIdx*2); in dumpInstruction()
864 const u1* bytePtr = (const u1*) &insns[insnIdx+i]; in dumpInstruction()
873 u2 instr = get2LE((const u1*) &insns[insnIdx]); in dumpInstruction()
903 pDecInsn->vA, (s4)pDecInsn->vB, (u1)pDecInsn->vB); in dumpInstruction()
955 pDecInsn->vA, pDecInsn->vB, (s4)pDecInsn->vC, (u1)pDecInsn->vC); in dumpInstruction()
1070 startAddr = ((u1*)pCode - pDexFile->baseAddr); in dumpBytecodes()
1092 instr = get2LE((const u1*)insns); in dumpBytecodes()
1094 insnWidth = 4 + get2LE((const u1*)(insns+1)) * 2; in dumpBytecodes()
[all …]
/dalvik/dexgen/src/com/android/dexgen/util/
DHex.java116 public static String u1(int v) { in u1() method in Hex
276 case 2: astr = Hex.u1(outOffset); break; in dump()
286 sb.append(Hex.u1(arr[offset])); in dump()
/dalvik/dx/src/com/android/dx/util/
DHex.java116 public static String u1(int v) { in u1() method in Hex
276 case 2: astr = Hex.u1(outOffset); break; in dump()
286 sb.append(Hex.u1(arr[offset])); in dump()
/dalvik/dx/src/com/android/dx/rop/cst/
DCstByte.java72 return "byte{0x" + Hex.u1(value) + " / " + value + '}'; in toString()
/dalvik/dexgen/src/com/android/dexgen/rop/cst/
DCstByte.java72 return "byte{0x" + Hex.u1(value) + " / " + value + '}'; in toString()
/dalvik/dexlist/
DDexList.cpp159 const u1* pEncodedData; in dumpClass()
220 pDexFile = dexFileParse((u1*)map.addr, map.length, kDexParseDefault); in process()

12