Home
last modified time | relevance | path

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

/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
DInstructionCodec.java879 Object data = payload.getData(); in FORMAT_FILL_ARRAY_DATA_PAYLOAD() local
886 case 1: out.write((byte[]) data); break; in FORMAT_FILL_ARRAY_DATA_PAYLOAD()
887 case 2: out.write((short[]) data); break; in FORMAT_FILL_ARRAY_DATA_PAYLOAD()
888 case 4: out.write((int[]) data); break; in FORMAT_FILL_ARRAY_DATA_PAYLOAD()
889 case 8: out.write((long[]) data); break; in FORMAT_FILL_ARRAY_DATA_PAYLOAD()
/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/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}
/dalvik/dx/tests/122-switch-with-high-register/
Dinfo.txt1 This test ensures that dx correctly handles switches on data in a high
/dalvik/tools/hprof-conv/
DHprofConv.c199 static int ebAddData(ExpandBuf* pBuf, const void* data, size_t count) in ebAddData() argument
202 memcpy(pBuf->storage + pBuf->curLen, data, count); in ebAddData()
/dalvik/dx/tests/139-lambda-metafactory/
Dexpected.txt685 |[629] class data for Consumer
696 |[631] class data for Foo
720 |[646] class data for Main
851 | class data: 3 items; 43 bytes total
873 | string data: 44 items; 544 bytes total
/dalvik/dx/tests/132-invoke-polymorphic/
Dexpected.txt1283 |[a74] class data for TestInvokePolymorphic
1465 | class data: 1 item; 74 bytes total
1481 | string data: 56 items; 887 bytes total
/dalvik/opcode-gen/
Dbytecode.txt129 op 26 fill-array-data 31t n none continue
/dalvik/dx/tests/135-invoke-custom/
Dexpected.txt6056 |[2214] class data for invokecustom.Super
6076 |[2226] class data for invokecustom.InvokeCustom
6371 | class data: 2 items; 165 bytes total
6393 | string data: 167 items; 2423 bytes total