/dalvik/vm/ |
D | Bits.h | 33 INLINE u1 get1(unsigned const char* pSrc) in get1() 117 INLINE u1 read1(unsigned const char** ppSrc) in read1() 272 INLINE void set1(u1* buf, u1 val) in set1() 274 *buf = (u1)(val); in set1() 280 INLINE void set2BE(u1* buf, u2 val) in set2BE() 282 *buf++ = (u1)(val >> 8); in set2BE() 283 *buf = (u1)(val); in set2BE() 289 INLINE void set4BE(u1* buf, u4 val) in set4BE() 291 *buf++ = (u1)(val >> 24); in set4BE() 292 *buf++ = (u1)(val >> 16); in set4BE() [all …]
|
D | Debugger.h | 41 u1 set[1]; 98 u1 resultTag; 171 void dvmDbgGetClassInfo(RefTypeId classId, u1* pTypeTag, u4* pStatus, 175 void dvmDbgGetObjectType(ObjectId objectId, u1* pRefTypeTag, 177 u1 dvmDbgGetClassObjectType(RefTypeId refTypeId); 181 u1 dvmDbgGetObjectTag(ObjectId objectId); 185 u1 dvmDbgGetArrayElementTag(ObjectId arrayId); 189 const u1* buf); 211 u1 dvmDbgGetFieldBasicTag(ObjectId objId, FieldId fieldId); 212 u1 dvmDbgGetStaticFieldBasicTag(RefTypeId refTypeId, FieldId fieldId); [all …]
|
D | Profile.cpp | 150 static inline void storeShortLE(u1* buf, u2 val) in storeShortLE() 152 *buf++ = (u1) val; in storeShortLE() 153 *buf++ = (u1) (val >> 8); in storeShortLE() 155 static inline void storeIntLE(u1* buf, u4 val) in storeIntLE() 157 *buf++ = (u1) val; in storeIntLE() 158 *buf++ = (u1) (val >> 8); in storeIntLE() 159 *buf++ = (u1) (val >> 16); in storeIntLE() 160 *buf++ = (u1) (val >> 24); in storeIntLE() 162 static inline void storeLongLE(u1* buf, u8 val) in storeLongLE() 164 *buf++ = (u1) val; in storeLongLE() [all …]
|
D | Ddm.cpp | 39 bool dvmDdmHandlePacket(const u1* buf, int dataLen, u1** pReplyBuf, in dvmDdmHandlePacket() 74 type = get4BE((u1*)dataArray->contents + 0); in dvmDdmHandlePacket() 75 length = get4BE((u1*)dataArray->contents + 4); in dvmDdmHandlePacket() 132 u1* reply; in dvmDdmHandlePacket() 133 reply = (u1*) malloc(length + kChunkHdrLen); in dvmDdmHandlePacket() 140 memcpy(reply+kChunkHdrLen, (const u1*)replyData->contents + offset, length); in dvmDdmHandlePacket() 262 u1 buf[256]; in dvmDdmSendThreadNotification() 291 set2BE((u1*) (outChars++), *chars++); in dvmDdmSendThreadNotification() 323 u1 buf[bufLen]; in dvmDdmSendThreadNameChange() 329 set2BE((u1*) (outChars++), *chars++); in dvmDdmSendThreadNameChange() [all …]
|
/dalvik/vm/jdwp/ |
D | JdwpEvent.h | 29 u1 modKind; /* JdwpModKind */ 31 u1 modKind; 35 u1 modKind; 39 u1 modKind; 43 u1 modKind; 47 u1 modKind; 51 u1 modKind; 55 u1 modKind; 59 u1 modKind; 60 u1 caught; [all …]
|
D | JdwpHandler.cpp | 44 static void jdwpReadLocation(const u1** pBuf, JdwpLocation* pLoc) in jdwpReadLocation() 67 static u8 jdwpReadValue(const u1** pBuf, int width) in jdwpReadValue() 103 const u1* buf, int dataLen, ExpandBuf* pReply, in finishInvoke() 123 u1 typeTag = read1(&buf); in finishInvoke() 137 u1 resultTag; in finishInvoke() 184 static JdwpError handleVM_Version(JdwpState* state, const u1* buf, in handleVM_Version() 192 expandBufAddUtf8String(pReply, (const u1*) tmpBuf); in handleVM_Version() 197 expandBufAddUtf8String(pReply, (const u1*) "1.5.0"); /* e.g. 1.5.0_04 */ in handleVM_Version() 199 expandBufAddUtf8String(pReply, (const u1*) "DalvikVM"); in handleVM_Version() 210 const u1* buf, int dataLen, ExpandBuf* pReply) in handleVM_ClassesBySignature() [all …]
|
D | ExpandBuf.cpp | 31 u1* storage; 46 newBuf->storage = (u1*) malloc(kInitialStorage); in expandBufAlloc() 68 u1* expandBufGetBuffer(ExpandBuf* pBuf) in expandBufGetBuffer() 88 u1* newPtr; in ensureSpace() 96 newPtr = (u1*) realloc(pBuf->storage, pBuf->maxLen); in ensureSpace() 108 u1* expandBufAddSpace(ExpandBuf* pBuf, int gapSize) in expandBufAddSpace() 110 u1* gapStart; in expandBufAddSpace() 123 void expandBufAdd1(ExpandBuf* pBuf, u1 val) in expandBufAdd1() 168 void expandBufAddUtf8String(ExpandBuf* pBuf, const u1* str) in expandBufAddUtf8String()
|
D | Jdwp.h | 50 INLINE FieldId dvmReadFieldId(const u1** pBuf) { return read4BE(pBuf); } in dvmReadFieldId() 51 INLINE MethodId dvmReadMethodId(const u1** pBuf) { return read4BE(pBuf); } in dvmReadMethodId() 52 INLINE ObjectId dvmReadObjectId(const u1** pBuf) { return read8BE(pBuf); } in dvmReadObjectId() 53 INLINE RefTypeId dvmReadRefTypeId(const u1** pBuf) { return read8BE(pBuf); } in dvmReadRefTypeId() 54 INLINE FrameId dvmReadFrameId(const u1** pBuf) { return read8BE(pBuf); } in dvmReadFrameId() 55 INLINE void dvmSetFieldId(u1* buf, FieldId val) { return set4BE(buf, val); } in dvmSetFieldId() 56 INLINE void dvmSetMethodId(u1* buf, MethodId val) { return set4BE(buf, val); } in dvmSetMethodId() 57 INLINE void dvmSetObjectId(u1* buf, ObjectId val) { return set8BE(buf, val); } in dvmSetObjectId() 58 INLINE void dvmSetRefTypeId(u1* buf, RefTypeId val) { return set8BE(buf, val); } in dvmSetRefTypeId() 59 INLINE void dvmSetFrameId(u1* buf, FrameId val) { return set8BE(buf, val); } in dvmSetFrameId() [all …]
|
D | ExpandBuf.h | 35 u1* expandBufGetBuffer(ExpandBuf* pBuf); 49 u1* expandBufAddSpace(ExpandBuf* pBuf, int gapSize); 50 void expandBufAdd1(ExpandBuf* pBuf, u1 val); 54 void expandBufAddUtf8String(ExpandBuf* pBuf, const u1* str);
|
D | JdwpHandler.h | 31 u1 cmdSet; 32 u1 cmd; 42 const u1* buf, int dataLen, ExpandBuf* pReply);
|
/dalvik/libdex/ |
D | Leb128.h | 31 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()
|
D | DexOptData.cpp | 39 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()
|
D | Leb128.cpp | 32 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()
|
D | DexClass.h | 62 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()
|
D | DexClass.cpp | 28 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()
|
D | DexSwapVerify.cpp | 73 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 …]
|
D | DexFile.h | 217 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 …]
|
/dalvik/dx/src/com/android/dx/io/instructions/ |
D | ShortArrayCodeOutput.java | 63 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()
|
D | CodeOutput.java | 31 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/analysis/ |
D | RegisterMap.h | 55 u1 format; /* enum RegisterMapFormat; MUST be first entry */ 56 u1 regWidth; /* bytes per register line, 1+ */ 57 u1 numEntries[2]; /* number of entries */ 60 u1 data[1]; 92 INLINE u1 dvmRegisterMapGetRegWidth(const RegisterMap* pMap) { in dvmRegisterMapGetRegWidth() 124 pMap->numEntries[0] = (u1) numEntries; in dvmRegisterMapSetNumEntries() 137 const u1* dvmRegisterMapGetLine(const RegisterMap* pMap, int addr); 148 INLINE void dvmReleaseRegisterMapLine(const RegisterMap* pMap, const u1* data) in dvmReleaseRegisterMapLine()
|
D | RegisterMap.cpp | 42 static void outputTypeVector(const RegType* regs, int insnRegCount, u1* data); 194 u1 regWidth; in dvmGenerateRegisterMapV() 195 u1* mapData; in dvmGenerateRegisterMapV() 274 assert(mapData - (const u1*) pMap == bufSize); in dvmGenerateRegisterMapV() 373 static void outputTypeVector(const RegType* regs, int insnRegCount, u1* data) in outputTypeVector() 375 u1 val = 0; in outputTypeVector() 401 const u1* rawMap = pMap->data; in dumpRegisterMap() 432 const u1* dataStart = rawMap; in dumpRegisterMap() 433 u1 val = 0; in dumpRegisterMap() 468 const u1* rawMap = pMap->data; in verifyMap() [all …]
|
/dalvik/vm/native/ |
D | sun_misc_Unsafe.cpp | 70 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_compareAndSwapInt() 90 volatile int64_t* address = (volatile int64_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_compareAndSwapLong() 111 int32_t* address = (int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_compareAndSwapObject() 129 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_getIntVolatile() 145 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_putIntVolatile() 160 volatile int64_t* address = (volatile int64_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_getLongVolatile() 176 volatile int64_t* address = (volatile int64_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_putLongVolatile() 192 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_getObjectVolatile() 208 volatile int32_t* address = (volatile int32_t*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_putObjectVolatile() 223 s4* address = (s4*) (((u1*) obj) + offset); in Dalvik_sun_misc_Unsafe_getInt() [all …]
|
D | java_lang_System.cpp | 252 memmove((u1*) dstArray->contents + dstPos, in Dalvik_java_lang_System_arraycopy() 253 (const u1*) srcArray->contents + srcPos, in Dalvik_java_lang_System_arraycopy() 259 move16((u1*) dstArray->contents + dstPos * 2, in Dalvik_java_lang_System_arraycopy() 260 (const u1*) srcArray->contents + srcPos * 2, in Dalvik_java_lang_System_arraycopy() 266 move32((u1*) dstArray->contents + dstPos * 4, in Dalvik_java_lang_System_arraycopy() 267 (const u1*) srcArray->contents + srcPos * 4, in Dalvik_java_lang_System_arraycopy() 276 move32((u1*) dstArray->contents + dstPos * 8, in Dalvik_java_lang_System_arraycopy() 277 (const u1*) srcArray->contents + srcPos * 8, in Dalvik_java_lang_System_arraycopy() 302 move32((u1*)dstArray->contents + dstPos * width, in Dalvik_java_lang_System_arraycopy() 303 (const u1*)srcArray->contents + srcPos * width, in Dalvik_java_lang_System_arraycopy() [all …]
|
/dalvik/vm/alloc/ |
D | CardTable.h | 51 u1 *dvmCardFromAddr(const void *addr); 56 void *dvmAddrFromCard(const u1 *card); 61 bool dvmIsValidCard(const u1 *card);
|
D | CardTable.cpp | 55 u1 *biasedBase; in dvmCardTableStartup() 72 gcHeap->cardTableBase = (u1*)allocBase; in dvmCardTableStartup() 75 biasedBase = (u1 *)((uintptr_t)allocBase - in dvmCardTableStartup() 155 bool dvmIsValidCard(const u1 *cardAddr) in dvmIsValidCard() 158 u1* begin = h->cardTableBase + h->cardTableOffset; in dvmIsValidCard() 159 u1* end = &begin[h->cardTableLength]; in dvmIsValidCard() 167 u1 *dvmCardFromAddr(const void *addr) in dvmCardFromAddr() 169 u1 *biasedBase = gDvm.biasedCardTableBase; in dvmCardFromAddr() 170 u1 *cardAddr = biasedBase + ((uintptr_t)addr >> GC_CARD_SHIFT); in dvmCardFromAddr() 178 void *dvmAddrFromCard(const u1 *cardAddr) in dvmAddrFromCard() [all …]
|