Home
last modified time | relevance | path

Searched refs:u1 (Results 1 – 25 of 41) 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()
86 const u4 offset = ((const u1*) pOpt) - data; in dexParseOptData()
92 const u1* pOptData = (const u1*) (pOpt + 2); in dexParseOptData()
102 const u4 offset = ((const u1*) pOpt) - data; in dexParseOptData()
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()
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.cpp28 static bool verifyUlebs(const u1* pData, const u1* pLimit, u4 count) { in verifyUlebs()
41 bool dexReadAndVerifyClassDataHeader(const u1** pData, const u1* pLimit, in dexReadAndVerifyClassDataHeader()
62 bool dexReadAndVerifyClassDataField(const u1** pData, const u1* pLimit, in dexReadAndVerifyClassDataField()
83 bool dexReadAndVerifyClassDataMethod(const u1** pData, const u1* pLimit, in dexReadAndVerifyClassDataMethod()
103 DexClassData* dexReadAndVerifyClassData(const u1** pData, const u1* pLimit) { in dexReadAndVerifyClassData()
124 u1* ptr = ((u1*) result) + sizeof(DexClassData); in dexReadAndVerifyClassData()
DDexSwapVerify.cpp46 const u1* fileStart;
47 const u1* fileEnd; // points to fileStart + fileLen
68 return ((const u1*) ptr) - state->fileStart; in fileOffset()
109 const u1* _startPtr = (const u1*) filePointer(state, (_start)); \
110 const u1* _endPtr = (const u1*) filePointer(state, (_end)); \
140 const u1* _start = (const u1*) (_ptr); \
141 const u1* _end = _start + ((_count) * (_elemSize)); \
921 const u1* data = (const u1*) filePointer(state, offset); in verifyClassDataIsForDef()
1102 static u1* swapFieldAnnotations(const CheckState* state, u4 count, u1* addr) { in swapFieldAnnotations()
1126 return (u1*) item; in swapFieldAnnotations()
[all …]
DDexFile.h71 typedef uint8_t u1; typedef
279 u1 magic[8]; /* includes version number */
281 u1 signature[kSHA1DigestLen]; /* SHA-1 hash */
458 u1 bleargh;
528 u1 visibility;
529 u1 annotation[1]; /* data in encoded_annotation format */
538 u1 array[1]; /* data in encoded_array format */
569 u1 magic[8]; /* includes version number */
616 const u1* baseAddr;
635 DexFile* dexFileParse(const u1* data, size_t length, int flags);
[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()
DInstrUtils.h95 typedef u1 InstructionWidth;
100 typedef u1 OpcodeFlags;
121 u1* formats; /* InstructionFormat elements */
122 u1* indexTypes; /* InstructionIndexType elements */
DDexFile.cpp107 const u1* ptr = pDexFile->baseAddr + pStringId->stringDataOff; in dexStringAndSizeById()
244 (u1*)pString - pDexFile->baseAddr, in dexCreateClassLookup()
245 (u1*)pClassDef - pDexFile->baseAddr, &numProbes); in dexCreateClassLookup()
266 void dexFileSetupBasicPointers(DexFile* pDexFile, const u1* data) { in dexFileSetupBasicPointers()
286 DexFile* dexFileParse(const u1* data, size_t length, int flags) in dexFileParse()
290 const u1* magic; in dexFileParse()
479 const u1* start = (const u1*) pHeader; in dexComputeChecksum()
514 const u1* handlerData = dexGetCatchHandlerData(pCode); in dexGetDexCodeSize()
520 return (handlerData - (u1*) pCode) + offset; in dexGetDexCodeSize()
DSysUtil.cpp260 (u1*)addr >= (u1*)pMap->baseAddr + pMap->baseLength) in sysChangeMapAccess()
263 addr, pMap->baseAddr, (u1*)pMap->baseAddr + pMap->baseLength); in sysChangeMapAccess()
272 u1* alignAddr = (u1*) ((uintptr_t) addr & ~(SYSTEM_PAGE_SIZE-1)); in sysChangeMapAccess()
273 size_t alignLength = length + ((u1*) addr - alignAddr); in sysChangeMapAccess()
339 buf = (const void*) (((const u1*) buf) + actual); in sysWriteFully()
DDexUtf.h85 u1 c = (u1) **pUtf8Ptr; in dexIsValidMemberNameUtf8()
DDexDebugInfo.cpp33 const u1** pStream) { in readStringIdx()
49 const u1** pStream) { in readTypeIdx()
97 const u1* stream, in dexDecodeDebugInfo0()
159 u1 opcode = *stream++; in dexDecodeDebugInfo0()
268 const u1* stream = dexGetDebugInfoStream(pDexFile, pCode); in dexDecodeDebugInfo()
DDexUtf.cpp216 u1 c = (u1) *s; in isValidTypeDescriptorOrClassName()
DDexOptData.h34 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile);
DDexCatch.h48 const u1* pEncodedData;
66 const u1* pEncodedData) in dexCatchIteratorInitToPointer()
/dalvik/dx/src/com/android/dx/io/instructions/
DShortArrayCodeOutput.java65 public void write(short u0, short u1) { in write() argument
67 write(u1); in write()
72 public void write(short u0, short u1, short u2) { in write() argument
74 write(u1); in write()
80 public void write(short u0, short u1, short u2, short u3) { in write() argument
82 write(u1); in write()
89 public void write(short u0, short u1, short u2, short u3, short u4) { in write() argument
91 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/dexdump/
DDexDump.cpp468 const u4* pOpt = (const u4*) ((u1*) pOptHeader + pOptHeader->optOffset); in dumpOptDirectory()
512 const u1* pEncodedData; in dumpClassDef()
961 printf("%06zx:", ((u1*)insns - pDexFile->baseAddr) + insnIdx*2); in dumpInstruction()
969 const u1* bytePtr = (const u1*) &insns[insnIdx+i]; in dumpInstruction()
978 u2 instr = get2LE((const u1*) &insns[insnIdx]); in dumpInstruction()
1010 pDecInsn->vA, (s4)pDecInsn->vB, (u1)pDecInsn->vB); in dumpInstruction()
1062 pDecInsn->vA, pDecInsn->vB, (s4)pDecInsn->vC, (u1)pDecInsn->vC); in dumpInstruction()
1199 startAddr = ((u1*)pCode - pDexFile->baseAddr); in dumpBytecodes()
1221 instr = get2LE((const u1*)insns); in dumpBytecodes()
1223 insnWidth = 4 + get2LE((const u1*)(insns+1)) * 2; in dumpBytecodes()
[all …]
/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/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/dexgen/src/com/android/dexgen/rop/cst/
DCstByte.java72 return "byte{0x" + Hex.u1(value) + " / " + value + '}'; in toString()
/dalvik/dx/src/com/android/dx/rop/cst/
DCstByte.java72 return "byte{0x" + Hex.u1(value) + " / " + value + '}'; in toString()
/dalvik/dx/src/com/android/dx/rop/code/
DRegOps.java390 return "unknown-" + Hex.u1(opcode); in opName()
/dalvik/dexgen/src/com/android/dexgen/rop/code/
DRegOps.java372 return "unknown-" + Hex.u1(opcode); in opName()

12