/dalvik/dx/src/com/android/dex/ |
H A D | Dex.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 48 * The bytes of a dex file in memory for reading and writing. All int offsets 93 * Creates a new dex buffer of the dex in {@code in}, and closes {@code in}. 95 public Dex(InputStream in) throws IOException { argument 97 loadFrom(in); 99 in.close(); 116 throw new DexException("Expected " + DexFormat.DEX_IN_JAR_NAME + " in " 130 loadFrom(InputStream in) argument 790 private final Dex.Section in = open(tableOfContents.classDefs.off); field in class:Dex.ClassDefIterator [all...] |
H A D | EncodedValueCodec.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 123 public static int readSignedInt(ByteInput in, int zwidth) { argument 126 result = (result >>> 8) | ((in.readByte() & 0xff) << 24); 138 public static int readUnsignedInt(ByteInput in, int zwidth, boolean fillOnRight) { argument 142 result = (result >>> 8) | ((in.readByte() & 0xff) << 24); 147 result = (result >>> 8) | ((in.readByte() & 0xff) << 24); 158 public static long readSignedLong(ByteInput in, int zwidth) { argument 161 result = (result >>> 8) | ((in.readByte() & 0xffL) << 56); 173 public static long readUnsignedLong(ByteInput in, in argument [all...] |
H A D | EncodedValueReader.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 47 protected final ByteInput in; field in class:EncodedValueReader 52 public EncodedValueReader(ByteInput in) { argument 53 this.in = in; 56 public EncodedValueReader(EncodedValue in) { argument 57 this(in.asByteInput()); 66 public EncodedValueReader(ByteInput in, int knownType) { argument 67 this.in 71 EncodedValueReader(EncodedValue in, int knownType) argument [all...] |
H A D | Leb128.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 31 * Gets the number of bytes in the unsigned LEB128 encoding of the 34 * @param value the value in question 35 * @return its write size, in bytes 52 * Reads an signed integer from {@code in}. 54 public static int readSignedLeb128(ByteInput in) { argument 61 cur = in.readByte() & 0xff; 80 * Reads an unsigned integer from {@code in}. 82 public static int readUnsignedLeb128(ByteInput in) { argument [all...] |
H A D | Mutf8.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 23 * Modified UTF-8 as described in the dex file format spec. 31 * Decodes bytes from {@code in} into {@code out} until a delimiter 0x00 is 34 public static String decode(ByteInput in, char[] out) throws UTFDataFormatException { argument 37 char a = (char) (in.readByte() & 0xff); 45 int b = in.readByte() & 0xff; 51 int b = in.readByte() & 0xff; 52 int c = in.readByte() & 0xff;
|
H A D | TableOfContents.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 123 private void readMap(Dex.Section in) throws IOException { argument 124 int mapSize = in.readInt(); 127 short type = in.readShort(); 128 in.readShort(); // unused 130 int size = in.readInt(); 131 int offset = in.readInt();
|
/dalvik/dx/src/com/android/dx/io/instructions/ |
H A D | DecodedInstruction.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 33 * match the names given in the Dalvik instruction format 55 * though it is stored in an {@code int}. 69 public static DecodedInstruction decode(CodeInput in) throws EOFException { argument 70 int opcodeUnit = in.read(); 74 return format.decode(opcodeUnit, in); 85 ShortArrayCodeInput in = new ShortArrayCodeInput(encodedInstructions); 88 while (in.hasMore()) { 89 decoded[in [all...] |
H A D | InstructionCodec.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 35 CodeInput in) throws EOFException { 50 CodeInput in) throws EOFException { 67 CodeInput in) throws EOFException { 88 CodeInput in) throws EOFException { 109 CodeInput in) throws EOFException { 127 CodeInput in) throws EOFException { 128 int baseAddress = in.cursor() - 1; 146 CodeInput in) throw 902 decode(int opcodeUnit, CodeInput in) argument 913 decodeRegisterList( InstructionCodec format, int opcodeUnit, CodeInput in) argument 979 decodeRegisterRange( InstructionCodec format, int opcodeUnit, CodeInput in) argument [all...] |
/dalvik/dx/src/com/android/dx/merge/ |
H A D | DexMerger.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 201 * result in too many bytes wasted, compact the result. To compact, 233 * merged dex file. Populates maps from old to new indices in the process. 260 // Fill in values with the first value of each dex. 287 private int readIntoMap(Dex.Section in, TableOfContents.Section section, IndexMap indexMap, argument 289 int offset = in != null ? in.getPosition() : -1; 291 T v = read(in, indexMap, index); 304 * sorting in memor 354 read(Dex.Section in, IndexMap indexMap, int index) argument 686 transformAnnotationSets(Dex in, IndexMap indexMap) argument 696 transformAnnotationSetRefLists(Dex in, IndexMap indexMap) argument 706 transformAnnotationDirectories(Dex in, IndexMap indexMap) argument 716 transformStaticValues(Dex in, IndexMap indexMap) argument 730 transformClassDef(Dex in, ClassDef classDef, IndexMap indexMap) argument 837 transformClassData(Dex in, ClassData classData, IndexMap indexMap) argument 866 transformMethods(Dex in, IndexMap indexMap, ClassData.Method[] methods) argument 885 transformCode(Dex in, Code code, IndexMap indexMap) argument 961 transformDebugInfoItem(Dex.Section in, IndexMap indexMap) argument 1053 transformStaticValues(Dex.Section in, IndexMap indexMap) argument [all...] |
/dalvik/dx/src/com/android/dx/ssa/ |
H A D | Dominators.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 27 * See A Fast Algorithm for Finding Dominators in a Flowgraph 30 * This implementation runs in time O(n log n). The time bound 33 * overheads are high enough that the current method is faster in all but the 80 * to avoid calling a large amount of code in the constructor.) 113 * @param in Basic block whose DFS info we are path compressing. 115 private void compress(SsaBasicBlock in) { argument 116 DFSInfo bbInfo = info[in.getIndex()]; 122 worklist.add(in); [all...] |
/dalvik/dx/src/com/android/multidex/ |
H A D | Path.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 64 private static byte[] readStream(InputStream in, ByteArrayOutputStream baos, byte[] readBuffer) argument 68 int amt = in.read(readBuffer); 76 in.close(); 99 InputStream in = element.open(path); 101 byte[] bytes = readStream(in, baos, readBuffer); 107 in.close();
|
/dalvik/dx/tests/098-dex-jsr-ret-throw/ |
H A D | ViewDebug$ViewServer.class | ... run () String[] params
String command
java.io.BufferedReader in
java.io.IOException e
java.io. ... |
/dalvik/dx/tests/115-merge/com/android/dx/merge/ |
H A D | DexMergeTest.java | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 129 * Merging dex files uses pessimistic sizes that naturally leave gaps in the 190 private void copy(InputStream in, OutputStream out) throws IOException { argument 193 while ((count = in.read(buffer)) != -1) { 196 in.close();
|
/dalvik/tools/hprof-conv/ |
H A D | HprofConv.c | 5 * you may not use this file except in compliance with the License. 10 * Unless required by applicable law or agreed to in writing, software 158 * Get the amount of data currently in the buffer. 210 static int ebReadString(ExpandBuf* pBuf, FILE* in) argument 217 ic = getc(in); 218 if (feof(in) || ferror(in)) { 235 static int ebReadData(ExpandBuf* pBuf, FILE* in, size_t count, int eofExpected) argument 242 actual = fread(pBuf->storage + pBuf->curLen, 1, count, in); 244 if (eofExpected && feof(in) 604 filterData(FILE* in, FILE* out, int flags) argument 711 FILE* in = NULL; local [all...] |