Home
last modified time | relevance | path

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

12

/dalvik/dx/src/com/android/dex/
DEncodedValue.java26 private final byte[] data; field in EncodedValue
28 public EncodedValue(byte[] data) { in EncodedValue() argument
29 this.data = data; in EncodedValue()
33 return new ByteArrayByteInput(data); in asByteInput()
37 return data; in getBytes()
41 out.write(data); in writeTo()
46 int size = Math.min(data.length, other.data.length); in compareTo()
48 if (data[i] != other.data[i]) { in compareTo()
49 return (data[i] & 0xff) - (other.data[i] & 0xff); in compareTo()
52 return data.length - other.data.length; in compareTo()
[all …]
DDex.java60 private ByteBuffer data; field in Dex
74 public Dex(byte[] data) throws IOException { in Dex() argument
75 this(ByteBuffer.wrap(data)); in Dex()
78 private Dex(ByteBuffer data) throws IOException { in Dex() argument
79 this.data = data; in Dex()
80 this.data.order(ByteOrder.LITTLE_ENDIAN); in Dex()
88 this.data = ByteBuffer.wrap(new byte[byteCount]); in Dex()
89 this.data.order(ByteOrder.LITTLE_ENDIAN); in Dex()
139 this.data = ByteBuffer.wrap(bytesOut.toByteArray()); in loadFrom()
140 this.data.order(ByteOrder.LITTLE_ENDIAN); in loadFrom()
[all …]
/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.java115 public void write(byte[] data) { in write() argument
118 for (byte b : data) { in write()
136 public void write(short[] data) { in write() argument
137 for (short unit : data) { in write()
144 public void write(int[] data) { in write() argument
145 for (int i : data) { in write()
152 public void write(long[] data) { in write() argument
153 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/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.java46 private byte[] data; field in ByteArrayAnnotatedOutput
78 public ByteArrayAnnotatedOutput(byte[] data) { in ByteArrayAnnotatedOutput() argument
79 this(data, false); in ByteArrayAnnotatedOutput()
106 private ByteArrayAnnotatedOutput(byte[] data, boolean stretchy) { in ByteArrayAnnotatedOutput() argument
107 if (data == null) { in ByteArrayAnnotatedOutput()
112 this.data = data; in ByteArrayAnnotatedOutput()
129 return data; in getArray()
143 System.arraycopy(data, 0, result, 0, cursor); in toByteArray()
170 } else if (end > data.length) { in writeByte()
175 data[writeAt] = (byte) value; in writeByte()
[all …]
/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()
79 return data.size() + 6; in byteLength()
/dalvik/dx/junit-tests/com/android/dx/util/
DByteArrayAnnotatedOutputTest.java28 byte[] data = new byte[length]; in testArrayZeroedOut()
29 Arrays.fill(data, (byte) 0xFF); in testArrayZeroedOut()
31 ByteArrayAnnotatedOutput output = new ByteArrayAnnotatedOutput(data); in testArrayZeroedOut()
36 assertEquals("Position " + i + " has not been zeroed out", 0, data[i]); in testArrayZeroedOut()
43 byte[] data = new byte[length]; in testArrayAligned()
44 Arrays.fill(data, (byte) 0xFF); in testArrayAligned()
46 ByteArrayAnnotatedOutput output = new ByteArrayAnnotatedOutput(data); in testArrayAligned()
53 assertEquals("Position " + i + " has not been zeroed out", 0, data[i]); in testArrayAligned()
/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/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()
88 if (data == null) { in addContents()
91 data = new StringDataItem(value); in addContents()
92 stringData.add(data); in addContents()
99 int dataOff = data.getAbsoluteOffset(); in writeTo()
125 return data; in getData()
DCallSiteIdItem.java34 CallSiteItem data; field in CallSiteIdItem
43 this.data = null; in CallSiteIdItem()
70 this.data = callSiteItem; in addContents()
76 int offset = data.getAbsoluteOffset(); in writeTo()
/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()
DDexFile.cpp122 static void dexComputeSHA1Digest(const unsigned char* data, size_t length, in dexComputeSHA1Digest() argument
127 SHA1Update(&context, data, length); in dexComputeSHA1Digest()
266 void dexFileSetupBasicPointers(DexFile* pDexFile, const u1* data) { in dexFileSetupBasicPointers() argument
267 DexHeader *pHeader = (DexHeader*) data; in dexFileSetupBasicPointers()
269 pDexFile->baseAddr = data; in dexFileSetupBasicPointers()
271 pDexFile->pStringIds = (const DexStringId*) (data + pHeader->stringIdsOff); in dexFileSetupBasicPointers()
272 pDexFile->pTypeIds = (const DexTypeId*) (data + pHeader->typeIdsOff); in dexFileSetupBasicPointers()
273 pDexFile->pFieldIds = (const DexFieldId*) (data + pHeader->fieldIdsOff); in dexFileSetupBasicPointers()
274 pDexFile->pMethodIds = (const DexMethodId*) (data + pHeader->methodIdsOff); in dexFileSetupBasicPointers()
275 pDexFile->pProtoIds = (const DexProtoId*) (data + pHeader->protoIdsOff); in dexFileSetupBasicPointers()
[all …]
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()
DDexSwapVerify.cpp921 const u1* data = (const u1*) filePointer(state, offset); in verifyClassDataIsForDef() local
922 DexClassData* classData = dexReadAndVerifyClassData(&data, NULL); in verifyClassDataIsForDef()
1470 const u1* data = item->annotation; in annotationItemTypeIdx() local
1471 return readUnsignedLeb128(&data); in annotationItemTypeIdx()
1624 const u1* data = (const u1*) ptr; in intraVerifyClassDataItem() local
1625 DexClassData* classData = dexReadAndVerifyClassData(&data, state->fileEnd); in intraVerifyClassDataItem()
1640 return (void*) data; in intraVerifyClassDataItem()
1677 const u1* data = (const u1*) ptr; in crossVerifyClassDataItem() local
1678 DexClassData* classData = dexReadAndVerifyClassData(&data, state->fileEnd); in crossVerifyClassDataItem()
1717 return (void*) data; in crossVerifyClassDataItem()
[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()
86 const u4 offset = ((const u1*) pOpt) - data; in dexParseOptData()
102 const u4 offset = ((const u1*) pOpt) - data; in dexParseOptData()
DZipArchive.h72 const char* entryName, ZipEntry* data) { in dexZipFindEntry() argument
73 return FindEntry(pArchive, ZipString(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/dexdump/
DDexDump.cpp362 static void asciify(char* out, const unsigned char* data, size_t len) in asciify() argument
365 if (*data < 0x20) { in asciify()
367 switch (*data) { in asciify()
380 } else if (*data >= 0x80) { in asciify()
383 *out++ = *data; in asciify()
385 data++; in asciify()
1668 const u1* data = *pData; in dumpDifferentialCompressedMap() local
1669 const u1* dataStart = data -1; // format byte already removed in dumpDifferentialCompressedMap()
1674 regWidth = *data++; in dumpDifferentialCompressedMap()
1675 numEntries = *data++; in dumpDifferentialCompressedMap()
[all …]
/dalvik/dx/junit-tests/com/android/dex/
DEncodedValueReaderTest.java121 byte[] data = new byte[bytes.length]; in readerOf()
123 data[i] = (byte) bytes[i]; in readerOf()
125 return new EncodedValueReader(new ByteArrayByteInput(data)); in readerOf()
/dalvik/tools/
Dget-hprof32 FILE_BASE=/data/misc/${FILE_BASE}

12