Home
last modified time | relevance | path

Searched refs:bufferIndex (Results 1 – 25 of 57) sorted by relevance

123

/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/Format/
DInstruction35mi.java78 private Instruction35mi(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction35mi() argument
81 this.regCount = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); in Instruction35mi()
82 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); in Instruction35mi()
83 this.regD = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 4]); in Instruction35mi()
84 this.regE = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 4]); in Instruction35mi()
85 this.regF = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 5]); in Instruction35mi()
86 this.regG = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 5]); in Instruction35mi()
87 this.inlineIndex = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); in Instruction35mi()
131 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
132 return new Instruction35mi(opcode, buffer, bufferIndex); in makeInstruction()
DInstruction35ms.java78 private Instruction35ms(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction35ms() argument
81 this.regCount = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); in Instruction35ms()
82 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); in Instruction35ms()
83 this.regD = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 4]); in Instruction35ms()
84 this.regE = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 4]); in Instruction35ms()
85 this.regF = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 5]); in Instruction35ms()
86 this.regG = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 5]); in Instruction35ms()
87 this.vtableIndex = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); in Instruction35ms()
131 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
132 return new Instruction35ms(opcode, buffer, bufferIndex); in makeInstruction()
DArrayDataPseudoInstruction.java60 public ArrayDataPseudoInstruction(byte[] buffer, int bufferIndex) { in ArrayDataPseudoInstruction() argument
63 byte opcodeByte = buffer[bufferIndex]; in ArrayDataPseudoInstruction()
68 byte subopcodeByte = buffer[bufferIndex+1]; in ArrayDataPseudoInstruction()
73 this.elementWidth = NumberUtils.decodeUnsignedShort(buffer, bufferIndex+2); in ArrayDataPseudoInstruction()
74 int elementCount = NumberUtils.decodeInt(buffer, bufferIndex+4); in ArrayDataPseudoInstruction()
76 System.arraycopy(buffer, bufferIndex+8, encodedValues, 0, elementCount * elementWidth); in ArrayDataPseudoInstruction()
113 public int bufferIndex; field in ArrayDataPseudoInstruction.ArrayElement
133 arrayElement.bufferIndex = position; in getElements()
145 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
149 return new ArrayDataPseudoInstruction(buffer, bufferIndex); in makeInstruction()
DInstruction35c.java79 protected Instruction35c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction35c() argument
80 super(dexFile, opcode, buffer, bufferIndex); in Instruction35c()
82 this.regCount = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); in Instruction35c()
83 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); in Instruction35c()
84 this.regD = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 4]); in Instruction35c()
85 this.regE = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 4]); in Instruction35c()
86 this.regF = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 5]); in Instruction35c()
87 this.regG = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 5]); in Instruction35c()
166 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
167 return new Instruction35c(dexFile, opcode, buffer, bufferIndex); in makeInstruction()
DInstruction22t.java62 private Instruction22t(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction22t() argument
65 assert buffer[bufferIndex] == opcode.value; in Instruction22t()
67 regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); in Instruction22t()
68 regB = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); in Instruction22t()
69 targetAddressOffset = NumberUtils.decodeShort(buffer, bufferIndex + 2); in Instruction22t()
108 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
109 return new Instruction22t(opcode, buffer, bufferIndex); in makeInstruction()
DInstruction20bc.java60 private Instruction20bc(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction20bc() argument
61 super(dexFile, opcode, buffer, bufferIndex); in Instruction20bc()
63 short val = NumberUtils.decodeUnsignedByte(buffer[bufferIndex+1]); in Instruction20bc()
67 protected ReferenceType readReferenceType(Opcode opcode, byte[] buffer, int bufferIndex) { in readReferenceType() argument
68 short val = NumberUtils.decodeUnsignedByte(buffer[bufferIndex+1]); in readReferenceType()
96 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
97 return new Instruction20bc(dexFile, opcode, buffer, bufferIndex); in makeInstruction()
DPackedSwitchDataPseudoInstruction.java62 public PackedSwitchDataPseudoInstruction(byte[] buffer, int bufferIndex) { in PackedSwitchDataPseudoInstruction() argument
65 byte opcodeByte = buffer[bufferIndex]; in PackedSwitchDataPseudoInstruction()
69 byte subopcodeByte = buffer[bufferIndex+1]; in PackedSwitchDataPseudoInstruction()
74 int targetCount = NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); in PackedSwitchDataPseudoInstruction()
75 this.firstKey = NumberUtils.decodeInt(buffer, bufferIndex + 4); in PackedSwitchDataPseudoInstruction()
79 targets[i] = NumberUtils.decodeInt(buffer, bufferIndex + 8 + 4*i); in PackedSwitchDataPseudoInstruction()
151 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
155 return new PackedSwitchDataPseudoInstruction(buffer, bufferIndex); in makeInstruction()
DSparseSwitchDataPseudoInstruction.java70 public SparseSwitchDataPseudoInstruction(byte[] buffer, int bufferIndex) { in SparseSwitchDataPseudoInstruction() argument
73 byte opcodeByte = buffer[bufferIndex]; in SparseSwitchDataPseudoInstruction()
77 byte subopcodeByte = buffer[bufferIndex+1]; in SparseSwitchDataPseudoInstruction()
82 int targetCount = NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); in SparseSwitchDataPseudoInstruction()
87 keys[i] = NumberUtils.decodeInt(buffer, bufferIndex + 4 + i*4); in SparseSwitchDataPseudoInstruction()
88 targets[i] = NumberUtils.decodeInt(buffer, bufferIndex + 4 + targetCount*4 + i*4); in SparseSwitchDataPseudoInstruction()
170 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
174 return new SparseSwitchDataPseudoInstruction(buffer, bufferIndex); in makeInstruction()
DInstruction22b.java57 private Instruction22b(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction22b() argument
60 this.regA = buffer[bufferIndex + 1]; in Instruction22b()
61 this.regB = buffer[bufferIndex + 2]; in Instruction22b()
62 this.litC = buffer[bufferIndex + 3]; in Instruction22b()
89 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
90 return new Instruction22b(opcode, buffer, bufferIndex); in makeInstruction()
DInstruction23x.java57 private Instruction23x(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction23x() argument
60 this.regA = buffer[bufferIndex + 1]; in Instruction23x()
61 this.regB = buffer[bufferIndex + 2]; in Instruction23x()
62 this.regC = buffer[bufferIndex + 3]; in Instruction23x()
89 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
90 return new Instruction23x(opcode, buffer, bufferIndex); in makeInstruction()
DInstruction3rmi.java71 private Instruction3rmi(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction3rmi() argument
74 this.regCount = (byte)NumberUtils.decodeUnsignedByte(buffer[bufferIndex + 1]); in Instruction3rmi()
75 this.inlineIndex = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); in Instruction3rmi()
76 this.startReg = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 4); in Instruction3rmi()
103 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
104 return new Instruction3rmi(opcode, buffer, bufferIndex); in makeInstruction()
DInstruction22s.java58 private Instruction22s(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction22s() argument
61 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); in Instruction22s()
62 this.regB = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); in Instruction22s()
63 this.litC = NumberUtils.decodeShort(buffer, bufferIndex + 2); in Instruction22s()
89 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
90 return new Instruction22s(opcode, buffer, bufferIndex); in makeInstruction()
DInstruction52c.java62 private Instruction52c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction52c() argument
63 super(dexFile, opcode, buffer, bufferIndex); in Instruction52c()
65 this.regA = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 6); in Instruction52c()
66 this.regB = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 8); in Instruction52c()
90 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
91 return new Instruction52c(dexFile, opcode, buffer, bufferIndex); in makeInstruction()
DInstruction10x.java43 public Instruction10x(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction10x() argument
46 assert (buffer[bufferIndex] & 0xFF) == opcode.value; in Instruction10x()
47 assert buffer[bufferIndex + 1] == 0x00; in Instruction10x()
60 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
61 return new Instruction10x(opcode, buffer, bufferIndex); in makeInstruction()
DInstruction22cs.java62 private Instruction22cs(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction22cs() argument
65 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); in Instruction22cs()
66 this.regB = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); in Instruction22cs()
67 this.fieldOffset = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); in Instruction22cs()
93 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
94 return new Instruction22cs(opcode, buffer, bufferIndex); in makeInstruction()
DInstruction21t.java59 private Instruction21t(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction21t() argument
62 assert buffer[bufferIndex] == opcode.value; in Instruction21t()
64 regA = buffer[bufferIndex + 1]; in Instruction21t()
65 targetAddressOffset = NumberUtils.decodeShort(buffer, bufferIndex + 2); in Instruction21t()
99 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
100 return new Instruction21t(opcode, buffer, bufferIndex); in makeInstruction()
DInstruction3rms.java71 private Instruction3rms(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction3rms() argument
74 this.regCount = (byte)NumberUtils.decodeUnsignedByte(buffer[bufferIndex + 1]); in Instruction3rms()
75 this.vtableIndex = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); in Instruction3rms()
76 this.startReg = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 4); in Instruction3rms()
103 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
104 return new Instruction3rms(opcode, buffer, bufferIndex); in makeInstruction()
DInstruction22c.java58 private Instruction22c(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction22c() argument
59 super(dexFile, opcode, buffer, bufferIndex); in Instruction22c()
61 this.regA = NumberUtils.decodeLowUnsignedNibble(buffer[bufferIndex + 1]); in Instruction22c()
62 this.regB = NumberUtils.decodeHighUnsignedNibble(buffer[bufferIndex + 1]); in Instruction22c()
102 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
103 return new Instruction22c(dexFile, opcode, buffer, bufferIndex); in makeInstruction()
DInstruction30t.java47 private Instruction30t(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction30t() argument
50 assert buffer[bufferIndex] == opcode.value; in Instruction30t()
52 this.targetAddressOffset = NumberUtils.decodeInt(buffer, bufferIndex+2); in Instruction30t()
74 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
75 return new Instruction30t(opcode, buffer, bufferIndex); in makeInstruction()
DInstruction10t.java53 private Instruction10t(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction10t() argument
56 assert buffer[bufferIndex] == opcode.value; in Instruction10t()
58 this.targetAddressOffset = buffer[bufferIndex + 1]; in Instruction10t()
88 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
89 return new Instruction10t(opcode, buffer, bufferIndex); in makeInstruction()
DInstruction22x.java58 private Instruction22x(Opcode opcode, byte[] buffer, int bufferIndex) { in Instruction22x() argument
61 this.regA = buffer[bufferIndex + 1]; in Instruction22x()
62 this.regB = (short)NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); in Instruction22x()
84 …ublic Instruction makeInstruction(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in makeInstruction() argument
85 return new Instruction22x(opcode, buffer, bufferIndex); in makeInstruction()
/external/smali/util/src/main/java/org/jf/util/
DIndentingWriter.java162 int bufferIndex = 0; in printUnsignedLongAsHex() local
166 buffer[bufferIndex++] = (char)(digit + '0'); in printUnsignedLongAsHex()
168 buffer[bufferIndex++] = (char)((digit - 10) + 'a'); in printUnsignedLongAsHex()
174 while (bufferIndex>0) { in printUnsignedLongAsHex()
175 write(buffer[--bufferIndex]); in printUnsignedLongAsHex()
180 int bufferIndex = 0; in printSignedIntAsDec() local
189 buffer[bufferIndex++] = (char)(digit + '0'); in printSignedIntAsDec()
194 while (bufferIndex>0) { in printSignedIntAsDec()
195 write(buffer[--bufferIndex]); in printSignedIntAsDec()
/external/smali/dexlib/src/main/java/org/jf/dexlib/Code/
DInstructionWithReference.java52 …rotected InstructionWithReference(DexFile dexFile, Opcode opcode, byte[] buffer, int bufferIndex) { in InstructionWithReference() argument
55 this.referenceType = readReferenceType(opcode, buffer, bufferIndex); in InstructionWithReference()
56 int itemIndex = getReferencedItemIndex(buffer, bufferIndex); in InstructionWithReference()
60 protected int getReferencedItemIndex(byte[] buffer, int bufferIndex) { in getReferencedItemIndex() argument
61 return NumberUtils.decodeUnsignedShort(buffer, bufferIndex + 2); in getReferencedItemIndex()
72 protected ReferenceType readReferenceType(Opcode opcode, byte[] buffer, int bufferIndex) { in readReferenceType() argument
/external/icu4c/i18n/
Ducoleitr.cpp59 int32_t bufferIndex; member
73 bufferIndex = 0; in RCEBuffer()
86 return bufferIndex <= 0; in empty()
91 if (bufferIndex >= bufferSize) { in put()
104 buffer[bufferIndex].ce = ce; in put()
105 buffer[bufferIndex].low = ixLow; in put()
106 buffer[bufferIndex].high = ixHigh; in put()
108 bufferIndex += 1; in put()
113 if (bufferIndex > 0) { in get()
114 return &buffer[--bufferIndex]; in get()
[all …]
/external/chromium_org/third_party/icu/source/i18n/
Ducoleitr.cpp59 int32_t bufferIndex; member
73 bufferIndex = 0; in RCEBuffer()
86 return bufferIndex <= 0; in empty()
91 if (bufferIndex >= bufferSize) { in put()
104 buffer[bufferIndex].ce = ce; in put()
105 buffer[bufferIndex].low = ixLow; in put()
106 buffer[bufferIndex].high = ixHigh; in put()
108 bufferIndex += 1; in put()
113 if (bufferIndex > 0) { in get()
114 return &buffer[--bufferIndex]; in get()
[all …]

123