/dalvik/dx/src/com/android/dx/util/ |
H A D | Leb128Utils.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 32 * Gets the number of bytes in the unsigned LEB128 encoding of the 35 * @param value the value in question 36 * @return its write size, in bytes 53 * Gets the number of bytes in the signed LEB128 encoding of the 56 * @param value the value in question 57 * @return its write size, in bytes 80 * Reads an signed integer from {@code in}. 82 public static int readSignedLeb128(ByteInput in) { argument 110 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 22 * Modified UTF-8 as described in the dex file format spec. 30 * Decodes bytes from {@code in} into {@code out} until a delimiter 0x00 is 33 public static String decode(ByteInput in, char[] out) throws UTFDataFormatException { argument 36 char a = (char) (in.readByte() & 0xff); 44 int b = in.readByte() & 0xff; 50 int b = in.readByte() & 0xff; 51 int c = in.readByte() & 0xff;
|
/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 128 * Merging dex files uses pessimistic sizes that naturally leave gaps in the 186 private void copy(InputStream in, OutputStream out) throws IOException { argument 189 while ((count = in.read(buffer)) != -1) { 192 in.close();
|
/dalvik/hit/src/com/android/hit/ |
H A D | ClassInstance.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 public final void loadFieldData(DataInputStream in, int numBytes) argument 36 in.readFully(mFieldValues); 164 StringBuilder result = new StringBuilder("Referenced in field(s):");
|
H A D | HprofParser.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 61 * When a sub-tag of this type appears in a HPROF_HEAP_DUMP or 65 * may appear in a single HEAP_DUMP[_SEGMENT]. 95 public HprofParser(DataInputStream in) { argument 96 mInput = in; 105 DataInputStream in = mInput; 107 mIdSize = in.readInt(); 110 in.readLong(); // Timestamp, ignored for now 113 int tag = in [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/vm/ |
H A D | Misc.h | 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 49 union { u4 in; float out; } conv; member in union:__anon28 50 conv.in = val; 54 union { float in; u4 out; } conv; member in union:__anon29 55 conv.in = val; 83 * Print a hex dump at VERBOSE level. This does nothing in non-debug builds. 120 * Fill in a DebugOutputTarget struct. 137 * Return a newly-allocated string in which all occurrences of '.' have 138 * been changed to '/'. If we find a '/' in th [all...] |
H A D | Debugger.cpp | 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 59 debugger, and include the list in the GC root set. This ensures that 82 performing operations on Threads. Exceptions to this rule are noted in 155 /* keep track of type, in case we need to distinguish them someday */ 163 * the low 4 bits in our hash. 180 * Determine if an id is already in the list. 226 ALOGI("ignoring registerObject request in thread=%d", 245 * If speed is an issue we can encode the registry index in the high 307 * have added the object to the registry -- but in som 930 copyValuesToBE(u1* out, const u1* in, int count, int width) argument 959 copyValuesFromBE(u1* out, const u1* in, int count, int width) argument [all...] |
/dalvik/dx/src/com/android/dx/dex/ |
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 117 private void readMap(DexBuffer.Section in) throws IOException { argument 118 int mapSize = in.readInt(); 121 short type = in.readShort(); 122 in.readShort(); // unused 124 int size = in.readInt(); 125 int offset = in.readInt();
|
/dalvik/dx/src/com/android/dx/io/ |
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 44 protected final ByteInput in; field in class:EncodedValueReader 46 public EncodedValueReader(ByteInput in) { argument 47 this.in = in; 50 public EncodedValueReader(EncodedValue in) { argument 51 this(in.asByteInput()); 55 int size = Leb128Utils.readUnsignedLeb128(in); 64 int typeIndex = Leb128Utils.readUnsignedLeb128(in); 137 readIndex(ByteInput in, int byteCount) argument [all...] |
H A D | DexBuffer.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 49 * The bytes of a dex file in memory for reading and writing. All int offsets 139 * Creates a new dex buffer of the dex in {@code in}, and closes {@code in}. 141 public DexBuffer(InputStream in) throws IOException { argument 142 loadFrom(in); 156 throw new DexException("Expected " + DexFormat.DEX_IN_JAR_NAME + " in " + file); 165 private void loadFrom(InputStream in) throw argument [all...] |
/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 34 CodeInput in) throws EOFException { 47 CodeInput in) throws EOFException { 62 CodeInput in) throws EOFException { 81 CodeInput in) throws EOFException { 100 CodeInput in) throws EOFException { 116 CodeInput in) throws EOFException { 117 int baseAddress = in.cursor() - 1; 133 CodeInput in) throw 757 decode(int opcodeUnit, CodeInput in) argument 768 decodeRegisterList( InstructionCodec format, int opcodeUnit, CodeInput in) argument 833 decodeRegisterRange( InstructionCodec format, int opcodeUnit, CodeInput in) argument [all...] |
/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/src/com/android/dx/merge/ |
H A D | IndexMap.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 36 * Maps the index offsets from one dex file to those in another. For example, if 37 * you have string #5 in the old dex file, its position in the new dex file is 245 copyBytes(in, out, size); 300 private void copyBytes(ByteInput in, ByteOutput out, int size) { argument 302 out.writeByte(in.readByte());
|
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 190 * result in too many bytes wasted, compact the result. To compact, 221 * merged dex file. Populates maps from old to new indices in the process. 296 * sorting in memory. 330 DexBuffer.Section in = source.open(section.off); 332 int offset = in.getPosition(); 333 T value = read(in, indexMap, 0); 340 abstract T read(DexBuffer.Section in, IndexMap indexMap, int index); argument 381 @Override String read(DexBuffer.Section in, IndexMa 613 transformAnnotationSets(DexBuffer in, IndexMap indexMap) argument 623 transformAnnotationDirectories(DexBuffer in, IndexMap indexMap) argument 633 transformStaticValues(DexBuffer in, IndexMap indexMap) argument 647 transformClassDef(DexBuffer in, ClassDef classDef, IndexMap indexMap) argument 676 transformAnnotationDirectory( DexBuffer in, DexBuffer.Section directoryIn, IndexMap indexMap) argument 748 transformClassData(DexBuffer in, ClassData classData, IndexMap indexMap) argument 777 transformMethods(DexBuffer in, IndexMap indexMap, ClassData.Method[] methods) argument 796 transformCode(DexBuffer in, Code code, IndexMap indexMap) argument 875 transformDebugInfoItem(DexBuffer.Section in, IndexMap indexMap) argument 967 transformStaticValues(DexBuffer.Section in, IndexMap indexMap) argument [all...] |
/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 144 * Get the amount of data currently in the buffer. 196 static int ebReadString(ExpandBuf* pBuf, FILE* in) argument 203 ic = getc(in); 204 if (feof(in) || ferror(in)) { 221 static int ebReadData(ExpandBuf* pBuf, FILE* in, size_t count, int eofExpected) argument 228 actual = fread(pBuf->storage + pBuf->curLen, 1, count, in); 230 if (eofExpected && feof(in) 573 filterData(FILE* in, FILE* out) argument 676 FILE* in = stdin; local [all...] |