/dalvik/dx/src/com/android/dex/ |
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 | 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 | 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;
|
/dalvik/dx/tests/117-modified-utf8/com/android/dx/util/ |
H A D | Mutf8Test.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 29 ByteInput in = new ByteArrayByteInput( 31 assertEquals('A', in.readByte()); 32 assertEquals("BC\u0000", Mutf8.decode(in, new char[3])); 33 assertEquals('E', in.readByte());
|
/dalvik/dx/src/com/android/dx/io/instructions/ |
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 37 CodeInput in) throws EOFException { 50 CodeInput in) throws EOFException { 65 CodeInput in) throws EOFException { 84 CodeInput in) throws EOFException { 103 CodeInput in) throws EOFException { 119 CodeInput in) throws EOFException { 120 int baseAddress = in.cursor() - 1; 136 CodeInput in) throw 833 decode(int opcodeUnit, CodeInput in) argument 844 decodeRegisterList( InstructionCodec format, int opcodeUnit, CodeInput in) argument 910 decodeRegisterRange( InstructionCodec format, int opcodeUnit, CodeInput in) argument [all...] |
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...] |
/dalvik/dexgen/src/com/android/dexgen/util/ |
H A D | FileUtils.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 76 FileInputStream in = new FileInputStream(file); 80 int amt = in.read(result, at, length); 88 in.close();
|
H A D | DexJarMaker.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 66 // Ignoring deliberately in order to keep the original exception clear. 84 BufferedInputStream in = new BufferedInputStream(new FileInputStream(source)); 90 while ((curr = in.read()) != -1) {
|
/dalvik/dx/tests/133-source-debug-extension/ |
H A D | run | 6 # you may not use this file except in compliance with the License. 11 # Unless required by applicable law or agreed to in writing, software 17 # Test runs in temporary directory created by test-run. 25 # Extract for SMAP string in DEX and class file. 26 for i in $test_class $test_dex; do
|
/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 65 private static byte[] readStream(InputStream in, ByteArrayOutputStream baos, byte[] readBuffer) argument 69 int amt = in.read(readBuffer); 77 in.close(); 100 InputStream in = element.open(path); 102 byte[] bytes = readStream(in, baos, readBuffer); 108 in.close();
|
/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 202 * result in too many bytes wasted, compact the result. To compact, 234 * merged dex file. Populates maps from old to new indices in the process. 261 // Fill in values with the first value of each dex. 288 private int readIntoMap(Dex.Section in, TableOfContents.Section section, IndexMap indexMap, argument 290 int offset = in != null ? in.getPosition() : -1; 292 T v = read(in, indexMap, index); 305 * sorting in memor 355 read(Dex.Section in, IndexMap indexMap, int index) argument 687 transformAnnotationSets(Dex in, IndexMap indexMap) argument 697 transformAnnotationSetRefLists(Dex in, IndexMap indexMap) argument 707 transformAnnotationDirectories(Dex in, IndexMap indexMap) argument 717 transformStaticValues(Dex in, IndexMap indexMap) argument 731 transformClassDef(Dex in, ClassDef classDef, IndexMap indexMap) argument 838 transformClassData(Dex in, ClassData classData, IndexMap indexMap) argument 867 transformMethods(Dex in, IndexMap indexMap, ClassData.Method[] methods) argument 886 transformCode(Dex in, Code code, IndexMap indexMap) argument 962 transformDebugInfoItem(Dex.Section in, IndexMap indexMap) argument 1054 transformStaticValues(Dex.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 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...] |
H A D | Android.mk | 4 # you may not use this file except in compliance with the License. 9 # Unless required by applicable law or agreed to in writing, software
|
/dalvik/dx/src/com/android/dex/util/ |
H A D | FileUtils.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 71 FileInputStream in = new FileInputStream(file); 74 int amt = in.read(result, at, length); 81 in.close();
|
/dalvik/dexgen/ |
H A D | Android.mk | 4 # you may not use this file except in compliance with the License. 9 # Unless required by applicable law or agreed to in writing, software
|
/dalvik/dx/tests/127-merge-stress/ |
H A D | run | 6 # you may not use this file except in compliance with the License. 11 # Unless required by applicable law or agreed to in writing, software 20 # Find dx.jar from dx in the android dev tree 25 for i in "$dxjar"; do 39 for dex in $candidates; do 48 # extension and this raises an exception in DexMerger as it fails
|
/dalvik/dx/tests/ |
H A D | run-all-tests | 6 # you may not use this file except in compliance with the License. 11 # Unless required by applicable law or agreed to in writing, software 41 case $1 in 138 for test_name in *; do 151 for test_name in *; do 166 for pid in ${test_pids[@]}; do
|
H A D | run-test | 6 # you may not use this file except in compliance with the License. 11 # Unless required by applicable law or agreed to in writing, software 52 case $1 in 103 for td_file in "$td_info" "$td_run" "$td_expected"; do 161 echo "files left in $tmpdir"
|
/dalvik/dx/tests/029-unit-Bits/ |
H A D | run | 6 # you may not use this file except in compliance with the License. 11 # Unless required by applicable law or agreed to in writing, software 23 for i in "$dxtestsjar" "$dxjar" "$junitjar"; do
|
/dalvik/dx/tests/033-unit-IntList/ |
H A D | run | 6 # you may not use this file except in compliance with the License. 11 # Unless required by applicable law or agreed to in writing, software 23 for i in "$dxtestsjar" "$dxjar" "$junitjar"; do
|
/dalvik/dx/tests/116-leb128/ |
H A D | run | 6 # you may not use this file except in compliance with the License. 11 # Unless required by applicable law or agreed to in writing, software 17 # Find dx.jar from dx in the android dev tree 23 for i in "$dxjar" "$junitjar"; do
|
/dalvik/dx/tests/117-modified-utf8/ |
H A D | run | 6 # you may not use this file except in compliance with the License. 11 # Unless required by applicable law or agreed to in writing, software 17 # Find dx.jar from dx in the android dev tree 23 for i in "$dxjar" "$junitjar"; do
|
/dalvik/dx/tests/137-dexmerger-dex38/ |
H A D | run | 6 # you may not use this file except in compliance with the License. 11 # Unless required by applicable law or agreed to in writing, software 20 for CLASS in "${CLASSES[@]}"; do
|
/dalvik/dx/src/com/android/dx/io/ |
H A D | DexIndexPrinter.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 96 Dex.Section in = dex.open(tableOfContents.typeLists.off); 98 int size = in.readInt(); 101 System.out.print(" " + dex.typeNames().get((int) in.readShort())); 104 in.readShort(); // retain alignment
|