/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/Format/ |
Instruction10x.java | 43 public Instruction10x(Opcode opcode, byte[] buffer, int bufferIndex) { 46 assert buffer[bufferIndex] == opcode.value; 47 assert buffer[bufferIndex + 1] == 0x00; 60 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 61 return new Instruction10x(opcode, buffer, bufferIndex);
|
Instruction31c.java | 54 private Instruction31c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 55 super(dexFile, opcode, buffer, bufferIndex); 57 this.regA = buffer[bufferIndex + 1]; 66 protected int getReferencedItemIndex(byte[] buffer, int bufferIndex) { 67 return NumberUtils.decodeInt(buffer, bufferIndex + 2); 79 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 80 return new Instruction31c(dexFile, opcode, buffer, bufferIndex);
|
Instruction22b.java | 57 private Instruction22b(Opcode opcode, byte[] buffer, int bufferIndex) { 60 this.regA = buffer[bufferIndex + 1]; 61 this.regB = buffer[bufferIndex + 2]; 62 this.litC = buffer[bufferIndex + 3]; 89 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 90 return new Instruction22b(opcode, buffer, bufferIndex);
|
Instruction22s.java | 58 private Instruction22s(Opcode opcode, byte[] buffer, int bufferIndex) { 61 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); 62 this.regB = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); 63 this.litC = NumberUtils.decodeShort(buffer, bufferIndex + 2); 89 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 90 return new Instruction22s(opcode, buffer, bufferIndex);
|
Instruction23x.java | 57 private Instruction23x(Opcode opcode, byte[] buffer, int bufferIndex) { 60 this.regA = buffer[bufferIndex + 1]; 61 this.regB = buffer[bufferIndex + 2]; 62 this.regC = buffer[bufferIndex + 3]; 89 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 90 return new Instruction23x(opcode, buffer, bufferIndex);
|
ArrayDataPseudoInstruction.java | 60 public ArrayDataPseudoInstruction(byte[] buffer, int bufferIndex) { 63 byte opcodeByte = buffer[bufferIndex]; 68 byte subopcodeByte = buffer[bufferIndex+1]; 73 this.elementWidth = NumberUtils.decodeUnsignedShort(buffer, bufferIndex+2); 74 int elementCount = NumberUtils.decodeInt(buffer, bufferIndex+4); 76 System.arraycopy(buffer, bufferIndex+8, encodedValues, 0, elementCount * elementWidth); 113 public int bufferIndex; 133 arrayElement.bufferIndex = position; 145 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 149 return new ArrayDataPseudoInstruction(buffer, bufferIndex); [all...] |
Instruction35ms.java | 78 private Instruction35ms(Opcode opcode, byte[] buffer, int bufferIndex) { 81 this.regCount = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); 82 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); 83 this.regD = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 4]); 84 this.regE = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 4]); 85 this.regF = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 5]); 86 this.regG = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 5]); 87 this.methodIndex = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); 131 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 132 return new Instruction35ms(opcode, buffer, bufferIndex); [all...] |
Instruction20bc.java | 60 private Instruction20bc(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 61 super(dexFile, opcode, buffer, bufferIndex); 63 short val = NumberUtils.decodeUnsignedByte(buffer[bufferIndex+1]); 67 protected ReferenceType readReferenceType(Opcode opcode, byte[] buffer, int bufferIndex) { 68 short val = NumberUtils.decodeUnsignedByte(buffer[bufferIndex+1]); 96 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 97 return new Instruction20bc(dexFile, opcode, buffer, bufferIndex);
|
Instruction22t.java | 62 private Instruction22t(Opcode opcode, byte[] buffer, int bufferIndex) { 65 assert buffer[bufferIndex] == opcode.value; 67 regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); 68 regB = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); 69 targetAddressOffset = NumberUtils.decodeShort(buffer, bufferIndex + 2); 108 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 109 return new Instruction22t(opcode, buffer, bufferIndex);
|
Instruction10t.java | 53 private Instruction10t(Opcode opcode, byte[] buffer, int bufferIndex) { 56 assert buffer[bufferIndex] == opcode.value; 58 this.targetAddressOffset = buffer[bufferIndex + 1]; 88 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 89 return new Instruction10t(opcode, buffer, bufferIndex);
|
Instruction11n.java | 60 private Instruction11n(Opcode opcode, byte[] buffer, int bufferIndex) { 63 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); 64 this.litB = NumberUtils.decodeHighSignedNibble(buffer[bufferIndex + 1]); 85 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 86 return new Instruction11n(opcode, buffer, bufferIndex);
|
Instruction12x.java | 55 private Instruction12x(Opcode opcode, byte[] buffer, int bufferIndex) { 57 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); 58 this.regB = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); 79 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 80 return new Instruction12x(opcode, buffer, bufferIndex);
|
Instruction20t.java | 54 private Instruction20t(Opcode opcode, byte[] buffer, int bufferIndex) { 57 assert buffer[bufferIndex] == opcode.value; 59 this.targetAddressOffset = NumberUtils.decodeShort(buffer, bufferIndex+2); 90 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 91 return new Instruction20t(opcode, buffer, bufferIndex);
|
Instruction21h.java | 55 private Instruction21h(Opcode opcode, byte[] buffer, int bufferIndex) { 58 this.regA = buffer[bufferIndex + 1]; 59 this.litB = NumberUtils.decodeShort(buffer, bufferIndex + 2); 81 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 82 return new Instruction21h(opcode, buffer, bufferIndex);
|
Instruction21s.java | 55 private Instruction21s(Opcode opcode, byte[] buffer, int bufferIndex) { 58 this.regA = buffer[bufferIndex + 1]; 59 this.litB = NumberUtils.decodeShort(buffer, bufferIndex + 2); 81 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 82 return new Instruction21s(opcode, buffer, bufferIndex);
|
Instruction22x.java | 58 private Instruction22x(Opcode opcode, byte[] buffer, int bufferIndex) { 61 this.regA = buffer[bufferIndex + 1]; 62 this.regB = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); 84 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 85 return new Instruction22x(opcode, buffer, bufferIndex);
|
Instruction30t.java | 47 private Instruction30t(Opcode opcode, byte[] buffer, int bufferIndex) { 50 assert buffer[bufferIndex] == opcode.value; 52 this.targetAddressOffset = NumberUtils.decodeInt(buffer, bufferIndex+2); 74 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 75 return new Instruction30t(opcode, buffer, bufferIndex);
|
Instruction31i.java | 55 private Instruction31i(Opcode opcode, byte[] buffer, int bufferIndex) { 58 this.regA = (byte)NumberUtils.decodeUnsignedByte(buffer[bufferIndex + 1]); 59 this.litB = NumberUtils.decodeInt(buffer, bufferIndex + 2); 81 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 82 return new Instruction31i(opcode, buffer, bufferIndex);
|
Instruction31t.java | 55 private Instruction31t(Opcode opcode, byte[] buffer, int bufferIndex) { 58 this.regA = buffer[bufferIndex + 1]; 59 this.targetAddressOffset = NumberUtils.decodeInt(buffer, bufferIndex + 2); 86 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 87 return new Instruction31t(opcode, buffer, bufferIndex);
|
Instruction32x.java | 55 private Instruction32x(Opcode opcode, byte[] buffer, int bufferIndex) { 58 this.regA = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); 59 this.regB = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 4); 82 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 83 return new Instruction32x(opcode, buffer, bufferIndex);
|
Instruction51l.java | 55 private Instruction51l(Opcode opcode, byte[] buffer, int bufferIndex) { 58 regA = (byte)NumberUtils.decodeUnsignedByte(buffer[bufferIndex + 1]); 59 litB = NumberUtils.decodeLong(buffer, bufferIndex + 2); 81 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 82 return new Instruction51l(opcode, buffer, bufferIndex);
|
Instruction21t.java | 59 private Instruction21t(Opcode opcode, byte[] buffer, int bufferIndex) { 62 assert buffer[bufferIndex] == opcode.value; 64 regA = buffer[bufferIndex + 1]; 65 targetAddressOffset = NumberUtils.decodeShort(buffer, bufferIndex + 2); 99 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 100 return new Instruction21t(opcode, buffer, bufferIndex);
|
Instruction22c.java | 57 private Instruction22c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 58 super(dexFile, opcode, buffer, bufferIndex); 60 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); 61 this.regB = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); 83 public Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { 84 return new Instruction22c(dexFile, opcode, buffer, bufferIndex);
|
/external/smali/dexlib/src/main/java/org/jf/dexlib/Util/ |
Leb128Utils.java | 91 * @param bufferIndex the index to start writing at 93 public static void writeUnsignedLeb128(int value, byte[] buffer, int bufferIndex) { 98 buffer[bufferIndex] = (byte)((value & 0x7f) | 0x80); 99 bufferIndex++; 105 buffer[bufferIndex] = (byte)(value & 0x7f);
|
/external/smali/util/src/main/java/org/jf/util/ |
IndentingWriter.java | 152 int bufferIndex = 0; 156 buffer[bufferIndex++] = (char)(digit + '0'); 158 buffer[bufferIndex++] = (char)((digit - 10) + 'a'); 164 while (bufferIndex>0) { 165 write(buffer[--bufferIndex]); 170 int bufferIndex = 0; 179 buffer[bufferIndex++] = (char)(digit + '0'); 184 while (bufferIndex>0) { 185 write(buffer[--bufferIndex]);
|