Searched defs:data (Results 1 - 21 of 21) sorted by relevance

/dalvik/dx/src/com/android/dex/
H A DEncodedValue.java26 private final byte[] data; field in class:EncodedValue
28 public EncodedValue(byte[] data) { argument
29 this.data = data;
33 return new ByteArrayByteInput(data);
37 return data;
41 out.write(data);
46 int size = Math.min(data.length, other.data.length);
48 if (data[
[all...]
H A DDex.java60 private ByteBuffer data; field in class:Dex
71 * Creates a new dex that reads from {@code data}. It is an error to modify
72 * {@code data} after using it to create a dex buffer.
74 public Dex(byte[] data) throws IOException { argument
75 this(ByteBuffer.wrap(data));
78 private Dex(ByteBuffer data) throws IOException { argument
79 this.data = data;
80 this.data.order(ByteOrder.LITTLE_ENDIAN);
88 this.data
330 private final ByteBuffer data; field in class:Dex.Section
333 Section(String name, ByteBuffer data) argument
[all...]
/dalvik/dx/src/com/android/dx/cf/attrib/
H A DRawAttribute.java26 /** {@code non-null;} attribute data */
27 private final ByteArray data; field in class:RawAttribute
31 * #data}
39 * @param data {@code non-null;} attribute data
42 public RawAttribute(String name, ByteArray data, ConstantPool pool) { argument
45 if (data == null) {
46 throw new NullPointerException("data == null");
49 this.data = data;
62 RawAttribute(String name, ByteArray data, int offset, int length, ConstantPool pool) argument
[all...]
/dalvik/libdex/
H A DLeb128.h133 DEX_INLINE u1* writeUnsignedLeb128(u1* ptr, u4 data) argument
136 u1 out = data & 0x7f;
137 if (out != data) {
139 data >>= 7;
152 DEX_INLINE int unsignedLeb128Size(u4 data) argument
157 data >>= 7;
159 } while (data != 0);
H A DZipArchive.h72 const char* entryName, ZipEntry* data) {
73 return FindEntry(pArchive, ZipString(entryName), data);
71 dexZipFindEntry(const ZipArchiveHandle pArchive, const char* entryName, ZipEntry* data) argument
H A DDexCatch.cpp32 const u1* data = baseData; local
34 readUnsignedLeb128(&data);
36 return data - baseData;
45 const u1* data = dexGetCatchHandlerData(pCode); local
47 return readUnsignedLeb128(&data);
H A DDexOptData.cpp18 * Functions to parse and manipulate the additional data tables added
27 * Check to see if a given data pointer is a valid double-word-aligned
49 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile) argument
51 const void* pOptStart = data + pDexFile->pOptHeader->optOffset;
52 const void* pOptEnd = data + length;
57 * Make sure the opt data start is in range and aligned. This may
60 * if the opt data header got corrupted, pOpt might not be
64 ALOGE("Bogus opt data start pointer");
68 /* Make sure that the opt data length is a whole number of words. */
70 ALOGE("Unaligned opt data are
[all...]
H A Dsha1.cpp25 void SHA1Update(SHA1_CTX* context, unsigned char* data,
28 void SHA1Update(SHA1_CTX* context, unsigned char* data,
78 #define SHA1HANDSOFF /*Copies data before messing with it.*/
210 /* Run your data through this. */
212 void SHA1Update(SHA1_CTX* context, const unsigned char* data, argument
223 memcpy(&context->buffer[j], data, (i = 64-j));
226 SHA1Transform(context->state, &data[i]);
232 memcpy(&context->buffer[j], &data[i], len - i);
H A DDexFile.cpp122 static void dexComputeSHA1Digest(const unsigned char* data, size_t length, argument
127 SHA1Update(&context, data, length);
263 * Set up the basic raw data pointers of a DexFile. This function isn't
266 void dexFileSetupBasicPointers(DexFile* pDexFile, const u1* data) { argument
267 DexHeader *pHeader = (DexHeader*) data;
269 pDexFile->baseAddr = data;
271 pDexFile->pStringIds = (const DexStringId*) (data + pHeader->stringIdsOff);
272 pDexFile->pTypeIds = (const DexTypeId*) (data + pHeader->typeIdsOff);
273 pDexFile->pFieldIds = (const DexFieldId*) (data + pHeader->fieldIdsOff);
274 pDexFile->pMethodIds = (const DexMethodId*) (data
286 dexFileParse(const u1* data, size_t length, int flags) argument
[all...]
H A DDexSwapVerify.cpp351 * in the data section.
377 u4 dataItemCount = 0; // Total count of items in the data section.
412 * This sanity check on the data section items ensures that
414 * the data section.
417 ALOGE("Unrealistically many items in the data section: "
502 ALOGE("Unable to allocate data map (size %#x)", dataItemCount);
921 const u1* data = (const u1*) filePointer(state, offset); local
922 DexClassData* classData = dexReadAndVerifyClassData(&data, NULL);
1310 * the definer of the first item in the data. */
1470 const u1* data local
1624 const u1* data = (const u1*) ptr; local
1677 const u1* data = (const u1*) ptr; local
1940 const u1* data = (const u1*) ptr; local
2041 const u1* data = (const u1*) ptr; local
2190 const u1* data = *pData; local
2206 verifyEncodedArray(const CheckState* state, const u1* data, bool crossVerify) argument
2236 verifyEncodedValue(const CheckState* state, const u1* data, bool crossVerify) argument
2374 verifyEncodedAnnotation(const CheckState* state, const u1* data, bool crossVerify) argument
2448 const u1* data = (const u1*) ptr; local
[all...]
/dalvik/dx/src/com/android/dx/dex/file/
H A DCallSiteIdItem.java34 CallSiteItem data; field in class:CallSiteIdItem
43 this.data = null;
70 this.data = callSiteItem;
76 int offset = data.getAbsoluteOffset();
H A DStringIdItem.java32 /** {@code null-ok;} associated string data object, if known */
33 private StringDataItem data; field in class:StringIdItem
46 this.data = null;
88 if (data == null) {
89 // The string data hasn't yet been added, so add it.
91 data = new StringDataItem(value);
92 stringData.add(data);
99 int dataOff = data.getAbsoluteOffset();
119 * Gets the associated data object for this instance, if known.
121 * @return {@code null-ok;} the associated data objec
[all...]
/dalvik/dx/src/com/android/dx/io/instructions/
H A DCodeOutput.java61 public void write(byte[] data); argument
66 public void write(short[] data); argument
71 public void write(int[] data); argument
76 public void write(long[] data); argument
H A DFillArrayDataPayloadDecodedInstruction.java25 /** data array */
26 private final Object data; field in class:FillArrayDataPayloadDecodedInstruction
36 * type of the data array.
39 int opcode, Object data, int size, int elementWidth) {
42 this.data = data;
51 int opcode, byte[] data) {
52 this(format, opcode, data, data.length, 1);
59 int opcode, short[] data) {
38 FillArrayDataPayloadDecodedInstruction(InstructionCodec format, int opcode, Object data, int size, int elementWidth) argument
50 FillArrayDataPayloadDecodedInstruction(InstructionCodec format, int opcode, byte[] data) argument
58 FillArrayDataPayloadDecodedInstruction(InstructionCodec format, int opcode, short[] data) argument
66 FillArrayDataPayloadDecodedInstruction(InstructionCodec format, int opcode, int[] data) argument
74 FillArrayDataPayloadDecodedInstruction(InstructionCodec format, int opcode, long[] data) argument
[all...]
H A DShortArrayCodeOutput.java41 * Gets the array. The returned array contains exactly the data
115 public void write(byte[] data) { argument
118 for (byte b : data) {
136 public void write(short[] data) { argument
137 for (short unit : data) {
144 public void write(int[] data) { argument
145 for (int i : data) {
152 public void write(long[] data) { argument
153 for (long l : data) {
/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DStringIdItem.java34 /** {@code null-ok;} associated string data object, if known */
35 private StringDataItem data; field in class:StringIdItem
48 this.data = null;
89 if (data == null) {
90 // The string data hasn't yet been added, so add it.
92 data = new StringDataItem(value);
93 stringData.add(data);
100 int dataOff = data.getAbsoluteOffset();
120 * Gets the associated data object for this instance, if known.
122 * @return {@code null-ok;} the associated data objec
[all...]
/dalvik/dexgen/src/com/android/dexgen/util/
H A DByteArrayAnnotatedOutput.java24 * Implementation of {@link AnnotatedOutput} which stores the written data
41 /** {@code non-null;} the data itself */
42 private byte[] data; field in class:ByteArrayAnnotatedOutput
67 * given array is the only one that will be used to store data. In
72 * @param data {@code non-null;} data array to use for output
74 public ByteArrayAnnotatedOutput(byte[] data) { argument
75 this(data, false);
90 * @param data {@code non-null;} data arra
93 ByteArrayAnnotatedOutput(byte[] data, boolean stretchy) argument
[all...]
/dalvik/dx/src/com/android/dx/util/
H A DByteArrayAnnotatedOutput.java28 * Implementation of {@link AnnotatedOutput} which stores the written data
45 /** {@code non-null;} the data itself */
46 private byte[] data; field in class:ByteArrayAnnotatedOutput
71 * given array is the only one that will be used to store data. In
76 * @param data {@code non-null;} data array to use for output
78 public ByteArrayAnnotatedOutput(byte[] data) { argument
79 this(data, false);
103 * @param data {@code non-null;} data arra
106 ByteArrayAnnotatedOutput(byte[] data, boolean stretchy) argument
[all...]
/dalvik/tools/hprof-conv/
H A DHprofConv.c18 * Strip Android-specific records out of hprof data, back-converting from
20 * Android hprof data to be handled by widely-available tools (like "jhat").
147 * Return a pointer to the data buffer.
149 * The pointer may change as data is added to the buffer, so this value
158 * Get the amount of data currently in the buffer.
197 * Add data to the buffer after ensuring it can hold it.
199 static int ebAddData(ExpandBuf* pBuf, const void* data, size_t count) argument
202 memcpy(pBuf->storage + pBuf->curLen, data, count);
230 * Read some data, adding it to the expanding buffer.
232 * This will ensure that the buffer has enough space to hold the new data
[all...]
/dalvik/dexdump/
H A DDexDump.cpp363 * Copy character data from "data" to "out", converting non-ASCII values
369 static void asciify(char* out, const unsigned char* data, size_t len) argument
372 if (*data < 0x20) {
374 switch (*data) {
387 } else if (*data >= 0x80) {
390 *out++ = *data;
392 data++;
484 * length, then the data. Chunks start on 64-bit boundaries.
527 fprintf(stderr, "Trouble reading class data\
1675 const u1* data = *pData; local
1713 const u1* data = *pData; local
1819 const u1* data = (u1*) pClassPool + classOffsets[idx]; local
1967 const u1* data = *pData; local
1983 const u1* data = *pData; local
2008 const u1* data = pDexFile->baseAddr + ids[index].callSiteOff; local
[all...]
/dalvik/dx/etc/
H A Djasmin.jarMETA-INF/ META-INF/MANIFEST.MF jas/ jas/AnnotDefAttr.class AnnotDefAttr.java package jas ...

Completed in 2797 milliseconds