Home
last modified time | relevance | path

Searched refs:data (Results 1 – 25 of 31) sorted by relevance

12

/dalvik/dx/src/com/android/dx/io/instructions/
DFillArrayDataPayloadDecodedInstruction.java26 private final Object data; field in FillArrayDataPayloadDecodedInstruction
39 int opcode, Object data, int size, int elementWidth) { in FillArrayDataPayloadDecodedInstruction() argument
42 this.data = data; in FillArrayDataPayloadDecodedInstruction()
51 int opcode, byte[] data) { in FillArrayDataPayloadDecodedInstruction() argument
52 this(format, opcode, data, data.length, 1); in FillArrayDataPayloadDecodedInstruction()
59 int opcode, short[] data) { in FillArrayDataPayloadDecodedInstruction() argument
60 this(format, opcode, data, data.length, 2); in FillArrayDataPayloadDecodedInstruction()
67 int opcode, int[] data) { in FillArrayDataPayloadDecodedInstruction() argument
68 this(format, opcode, data, data.length, 4); in FillArrayDataPayloadDecodedInstruction()
75 int opcode, long[] data) { in FillArrayDataPayloadDecodedInstruction() argument
[all …]
DShortArrayCodeOutput.java107 public void write(byte[] data) { in write() argument
110 for (byte b : data) { in write()
127 public void write(short[] data) { in write() argument
128 for (short unit : data) { in write()
134 public void write(int[] data) { in write() argument
135 for (int i : data) { in write()
141 public void write(long[] data) { in write() argument
142 for (long l : data) { in write()
DCodeOutput.java61 public void write(byte[] data); in write() argument
66 public void write(short[] data); in write() argument
71 public void write(int[] data); in write() argument
76 public void write(long[] data); in write() argument
/dalvik/dx/src/com/android/dx/cf/attrib/
DRawAttribute.java27 private final ByteArray data; field in RawAttribute
42 public RawAttribute(String name, ByteArray data, ConstantPool pool) { in RawAttribute() argument
45 if (data == null) { in RawAttribute()
49 this.data = data; in RawAttribute()
62 public RawAttribute(String name, ByteArray data, int offset, in RawAttribute() argument
64 this(name, data.slice(offset, offset + length), pool); in RawAttribute()
73 return data; in getData()
78 return data.size() + 6; in byteLength()
/dalvik/dexgen/src/com/android/dexgen/util/
DByteArrayAnnotatedOutput.java42 private byte[] data; field in ByteArrayAnnotatedOutput
74 public ByteArrayAnnotatedOutput(byte[] data) { in ByteArrayAnnotatedOutput() argument
75 this(data, false); in ByteArrayAnnotatedOutput()
93 private ByteArrayAnnotatedOutput(byte[] data, boolean stretchy) { in ByteArrayAnnotatedOutput() argument
94 if (data == null) { in ByteArrayAnnotatedOutput()
99 this.data = data; in ByteArrayAnnotatedOutput()
116 return data; in getArray()
130 System.arraycopy(data, 0, result, 0, cursor); in toByteArray()
154 } else if (end > data.length) { in writeByte()
159 data[writeAt] = (byte) value; in writeByte()
[all …]
/dalvik/dx/src/com/android/dx/util/
DByteArrayAnnotatedOutput.java45 private byte[] data; field in ByteArrayAnnotatedOutput
77 public ByteArrayAnnotatedOutput(byte[] data) { in ByteArrayAnnotatedOutput() argument
78 this(data, false); in ByteArrayAnnotatedOutput()
105 private ByteArrayAnnotatedOutput(byte[] data, boolean stretchy) { in ByteArrayAnnotatedOutput() argument
106 if (data == null) { in ByteArrayAnnotatedOutput()
111 this.data = data; in ByteArrayAnnotatedOutput()
128 return data; in getArray()
142 System.arraycopy(data, 0, result, 0, cursor); in toByteArray()
166 } else if (end > data.length) { in writeByte()
171 data[writeAt] = (byte) value; in writeByte()
[all …]
/dalvik/dx/src/com/android/dx/dex/file/
DStatistics.java45 Data data = dataMap.get(typeName); in add() local
47 if (data == null) { in add()
50 data.add(item); in add()
80 for (Data data : dataMap.values()) { in writeAnnotation()
81 sortedData.put(data.name, data); in writeAnnotation()
84 for (Data data : sortedData.values()) { in writeAnnotation()
85 data.writeAnnotation(out); in writeAnnotation()
96 for (Data data : dataMap.values()) { in toHuman()
97 sortedData.put(data.name, data); in toHuman()
100 for (Data data : sortedData.values()) { in toHuman()
[all …]
DStringIdItem.java33 private StringDataItem data; field in StringIdItem
46 this.data = null; in StringIdItem()
87 if (data == null) { in addContents()
90 data = new StringDataItem(value); in addContents()
91 stringData.add(data); in addContents()
98 int dataOff = data.getAbsoluteOffset(); in writeTo()
124 return data; in getData()
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DStatistics.java46 Data data = dataMap.get(typeName); in add() local
48 if (data == null) { in add()
51 data.add(item); in add()
81 for (Data data : dataMap.values()) { in writeAnnotation()
82 sortedData.put(data.name, data); in writeAnnotation()
85 for (Data data : sortedData.values()) { in writeAnnotation()
86 data.writeAnnotation(out); in writeAnnotation()
97 for (Data data : dataMap.values()) { in toHuman()
98 sortedData.put(data.name, data); in toHuman()
101 for (Data data : sortedData.values()) { in toHuman()
[all …]
DStringIdItem.java35 private StringDataItem data; field in StringIdItem
48 this.data = null; in StringIdItem()
89 if (data == null) { in addContents()
92 data = new StringDataItem(value); in addContents()
93 stringData.add(data); in addContents()
100 int dataOff = data.getAbsoluteOffset(); in writeTo()
126 return data; in getData()
/dalvik/libdex/
DLeb128.h133 DEX_INLINE u1* writeUnsignedLeb128(u1* ptr, u4 data) in writeUnsignedLeb128() argument
136 u1 out = data & 0x7f; in writeUnsignedLeb128()
137 if (out != data) { in writeUnsignedLeb128()
139 data >>= 7; in writeUnsignedLeb128()
152 DEX_INLINE int unsignedLeb128Size(u4 data) in unsignedLeb128Size() argument
157 data >>= 7; in unsignedLeb128Size()
159 } while (data != 0); in unsignedLeb128Size()
DDexCatch.cpp32 const u1* data = baseData; in dexGetFirstHandlerOffset() local
34 readUnsignedLeb128(&data); in dexGetFirstHandlerOffset()
36 return data - baseData; in dexGetFirstHandlerOffset()
45 const u1* data = dexGetCatchHandlerData(pCode); in dexGetHandlersSize() local
47 return readUnsignedLeb128(&data); in dexGetHandlersSize()
DDexFile.cpp123 static void dexComputeSHA1Digest(const unsigned char* data, size_t length, in dexComputeSHA1Digest() argument
128 SHA1Update(&context, data, length); in dexComputeSHA1Digest()
269 void dexFileSetupBasicPointers(DexFile* pDexFile, const u1* data) { in dexFileSetupBasicPointers() argument
270 DexHeader *pHeader = (DexHeader*) data; in dexFileSetupBasicPointers()
272 pDexFile->baseAddr = data; in dexFileSetupBasicPointers()
274 pDexFile->pStringIds = (const DexStringId*) (data + pHeader->stringIdsOff); in dexFileSetupBasicPointers()
275 pDexFile->pTypeIds = (const DexTypeId*) (data + pHeader->typeIdsOff); in dexFileSetupBasicPointers()
276 pDexFile->pFieldIds = (const DexFieldId*) (data + pHeader->fieldIdsOff); in dexFileSetupBasicPointers()
277 pDexFile->pMethodIds = (const DexMethodId*) (data + pHeader->methodIdsOff); in dexFileSetupBasicPointers()
278 pDexFile->pProtoIds = (const DexProtoId*) (data + pHeader->protoIdsOff); in dexFileSetupBasicPointers()
[all …]
DDexOptData.cpp49 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile) in dexParseOptData() argument
51 const void* pOptStart = data + pDexFile->pOptHeader->optOffset; in dexParseOptData()
52 const void* pOptEnd = data + length; in dexParseOptData()
87 ((const u1*) pOpt) - data); in dexParseOptData()
103 size, ((const u1*) pOpt) - data); in dexParseOptData()
DDexSwapVerify.cpp937 const u1* data = (const u1*) filePointer(state, offset); in verifyClassDataIsForDef() local
938 DexClassData* classData = dexReadAndVerifyClassData(&data, NULL); in verifyClassDataIsForDef()
1407 const u1* data = item->annotation; in annotationItemTypeIdx() local
1408 return readUnsignedLeb128(&data); in annotationItemTypeIdx()
1561 const u1* data = (const u1*) ptr; in intraVerifyClassDataItem() local
1562 DexClassData* classData = dexReadAndVerifyClassData(&data, state->fileEnd); in intraVerifyClassDataItem()
1577 return (void*) data; in intraVerifyClassDataItem()
1614 const u1* data = (const u1*) ptr; in crossVerifyClassDataItem() local
1615 DexClassData* classData = dexReadAndVerifyClassData(&data, state->fileEnd); in crossVerifyClassDataItem()
1654 return (void*) data; in crossVerifyClassDataItem()
[all …]
DZipArchive.h72 const char* entryName, ZipEntry* data) { in dexZipFindEntry() argument
73 return FindEntry(pArchive, entryName, data); in dexZipFindEntry()
DDexOptData.h34 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile);
Dsha1.h16 void SHA1Update(SHA1_CTX* context, const unsigned char* data,
/dalvik/tools/dmtracedump/
DTraceDump.c586 int findNextChar(const char* data, int len, char lookFor) in findNextChar() argument
588 const char* start = data; in findNextChar()
591 if (*data == lookFor) in findNextChar()
592 return data - start; in findNextChar()
594 data++; in findNextChar()
606 int countLinesToToken(const char* data, int len) in countLinesToToken() argument
611 while (*data != TOKEN_CHAR) { in countLinesToToken()
612 next = findNextChar(data, len, '\n'); in countLinesToToken()
616 data += next+1; in countLinesToToken()
628 int checkToken(const char* data, int len, const char* cmpStr) in checkToken() argument
[all …]
Ddumpdir.sh3 FILES=`ls $1/*.data | sed "s/^\\(.*\\).data$/\\1/"`
/dalvik/dexdump/
DDexDump.cpp361 static void asciify(char* out, const unsigned char* data, size_t len) in asciify() argument
364 if (*data < 0x20) { in asciify()
366 switch (*data) { in asciify()
379 } else if (*data >= 0x80) { in asciify()
382 *out++ = *data; in asciify()
384 data++; in asciify()
1548 const u1* data = *pData; in dumpDifferentialCompressedMap() local
1549 const u1* dataStart = data -1; // format byte already removed in dumpDifferentialCompressedMap()
1554 regWidth = *data++; in dumpDifferentialCompressedMap()
1555 numEntries = *data++; in dumpDifferentialCompressedMap()
[all …]
/dalvik/tools/
Dget-hprof32 FILE_BASE=/data/misc/${FILE_BASE}
/dalvik/dx/tests/122-switch-with-high-register/
Dinfo.txt1 This test ensures that dx correctly handles switches on data in a high
/dalvik/hit/src/com/android/hit/
DArrayInstance.java29 byte[] data) { in ArrayInstance() argument
34 mData = data; in ArrayInstance()
DHprofParser.java537 byte[] data = new byte[totalBytes]; in loadObjectArrayDump()
540 mInput.readFully(data); in loadObjectArrayDump()
543 numElements, data); in loadObjectArrayDump()
560 byte[] data = new byte[totalBytes]; in loadPrimitiveArrayDump()
562 mInput.readFully(data); in loadPrimitiveArrayDump()
565 data); in loadPrimitiveArrayDump()

12