/dalvik/dx/src/com/android/dex/ |
H A D | EncodedValue.java | 26 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 D | Dex.java | 60 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/io/instructions/ |
H A D | FillArrayDataPayloadDecodedInstruction.java | 25 /** 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 D | CodeOutput.java | 61 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 D | ShortArrayCodeOutput.java | 41 * 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/dx/src/com/android/dx/cf/attrib/ |
H A D | RawAttribute.java | 26 /** {@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/dx/junit-tests/com/android/dx/util/ |
H A D | ByteArrayAnnotatedOutputTest.java | 28 byte[] data = new byte[length]; 29 Arrays.fill(data, (byte) 0xFF); 31 ByteArrayAnnotatedOutput output = new ByteArrayAnnotatedOutput(data); 36 assertEquals("Position " + i + " has not been zeroed out", 0, data[i]); 43 byte[] data = new byte[length]; 44 Arrays.fill(data, (byte) 0xFF); 46 ByteArrayAnnotatedOutput output = new ByteArrayAnnotatedOutput(data); 53 assertEquals("Position " + i + " has not been zeroed out", 0, data[i]);
|
/dalvik/libdex/ |
H A D | DexOptData.h | 18 * Functions to parse and manipulate the additional data tables added 28 * Parse the optimized data tables in the given dex file. 30 * @param data pointer to the start of the entire dex file 34 bool dexParseOptData(const u1* data, size_t length, DexFile* pDexFile); 37 * Compute the checksum of the optimized data tables pointed at by the given
|
H A D | DexCatch.cpp | 32 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 D | sha1.h | 16 void SHA1Update(SHA1_CTX* context, const unsigned char* data,
|
H A D | Leb128.h | 133 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 D | DexOptData.cpp | 18 * 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 D | ZipArchive.h | 72 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 D | DexFile.cpp | 122 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 D | DexSwapVerify.cpp | 351 * 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/util/ |
H A D | ByteArrayAnnotatedOutput.java | 28 * 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/dexgen/src/com/android/dexgen/util/ |
H A D | ByteArrayAnnotatedOutput.java | 24 * 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/dexgen/src/com/android/dexgen/dex/file/ |
H A D | Statistics.java | 29 /** {@code non-null;} data about each type of item */ 46 Data data = dataMap.get(typeName); 48 if (data == null) { 51 data.add(item); 81 for (Data data : dataMap.values()) { 82 sortedData.put(data.name, data); 85 for (Data data : sortedData.values()) { 86 data.writeAnnotation(out); 97 for (Data data [all...] |
H A D | StringIdItem.java | 34 /** {@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/dx/src/com/android/dx/dex/file/ |
H A D | Statistics.java | 28 /** {@code non-null;} data about each type of item */ 45 Data data = dataMap.get(typeName); 47 if (data == null) { 50 data.add(item); 80 for (Data data : dataMap.values()) { 81 sortedData.put(data.name, data); 84 for (Data data : sortedData.values()) { 85 data.writeAnnotation(out); 96 for (Data data [all...] |
H A D | StringIdItem.java | 32 /** {@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...] |
H A D | CallSiteIdItem.java | 34 CallSiteItem data; field in class:CallSiteIdItem 43 this.data = null; 70 this.data = callSiteItem; 76 int offset = data.getAbsoluteOffset();
|
/dalvik/tools/ |
H A D | get-hprof | 24 FILE_BASE=`adb shell ls -l '/data/misc/heap-dump*.hprof' | tail -1 | \ 32 FILE_BASE=/data/misc/${FILE_BASE}
|
/dalvik/dexdump/ |
H A D | DexDump.cpp | 363 * 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/junit-tests/com/android/dex/ |
H A D | EncodedValueReaderTest.java | 121 byte[] data = new byte[bytes.length]; 123 data[i] = (byte) bytes[i]; 125 return new EncodedValueReader(new ByteArrayByteInput(data));
|