Home
last modified time | relevance | path

Searched refs:Leb128 (Results 1 – 10 of 10) sorted by relevance

/dalvik/dx/tests/116-leb128/com/android/dx/util/
DLeb128UtilsTest.java20 import com.android.dex.Leb128;
28 assertEquals(0, Leb128.readUnsignedLeb128(new ByteArrayByteInput((byte) 0))); in testDecodeUnsignedLeb()
29 assertEquals(1, Leb128.readUnsignedLeb128(new ByteArrayByteInput((byte) 1))); in testDecodeUnsignedLeb()
30 assertEquals(127, Leb128.readUnsignedLeb128(new ByteArrayByteInput((byte) 0x7f))); in testDecodeUnsignedLeb()
31 assertEquals(16256, Leb128.readUnsignedLeb128( in testDecodeUnsignedLeb()
47 assertEquals(0, Leb128.readSignedLeb128(new ByteArrayByteInput((byte) 0))); in testDecodeSignedLeb()
48 assertEquals(1, Leb128.readSignedLeb128(new ByteArrayByteInput((byte) 1))); in testDecodeSignedLeb()
49 assertEquals(-1, Leb128.readSignedLeb128(new ByteArrayByteInput((byte) 0x7f))); in testDecodeSignedLeb()
50 assertEquals(0x3c, Leb128.readSignedLeb128(new ByteArrayByteInput((byte) 0x3c))); in testDecodeSignedLeb()
51 assertEquals(-128, Leb128.readSignedLeb128( in testDecodeSignedLeb()
[all …]
/dalvik/dx/src/com/android/dx/dex/file/
DStringDataItem.java19 import com.android.dex.Leb128;
53 return Leb128.unsignedLeb128Size(utf16Size) in writeSize()
76 out.annotate(Leb128.unsignedLeb128Size(utf16Size), in writeTo0()
DEncodedMethod.java19 import com.android.dex.Leb128;
183 out.annotate(Leb128.unsignedLeb128Size(diff), in encode()
185 out.annotate(Leb128.unsignedLeb128Size(accessFlags), in encode()
188 out.annotate(Leb128.unsignedLeb128Size(codeOff), in encode()
DDebugInfoDecoder.java19 import com.android.dex.Leb128;
233 int offsetIndex = Leb128.readUnsignedLeb128(bs); in readStringIndex()
253 line = Leb128.readUnsignedLeb128(bs); in decode0()
254 int szParams = Leb128.readUnsignedLeb128(bs); in decode0()
299 int reg = Leb128.readUnsignedLeb128(bs); in decode0()
311 int reg = Leb128.readUnsignedLeb128(bs); in decode0()
324 int reg = Leb128.readUnsignedLeb128(bs); in decode0()
350 int reg = Leb128.readUnsignedLeb128(bs); in decode0()
380 address += Leb128.readUnsignedLeb128(bs); in decode0()
384 line += Leb128.readSignedLeb128(bs); in decode0()
DEncodedField.java19 import com.android.dex.Leb128;
145 out.annotate(Leb128.unsignedLeb128Size(diff), in encode()
147 out.annotate(Leb128.unsignedLeb128Size(accessFlags), in encode()
/dalvik/dx/src/com/android/dex/
DEncodedValueReader.java100 return Leb128.readUnsignedLeb128(in); in readArray()
119 annotationType = Leb128.readUnsignedLeb128(in); in readAnnotation()
120 return Leb128.readUnsignedLeb128(in); in readAnnotation()
133 return Leb128.readUnsignedLeb128(in); in readAnnotationName()
DLeb128.java26 public final class Leb128 { class
27 private Leb128() { in Leb128() method in Leb128
DDex.java378 return Leb128.readUnsignedLeb128(this); in readUleb128()
382 return Leb128.readUnsignedLeb128(this) - 1; in readUleb128p1()
386 return Leb128.readSignedLeb128(this); in readSleb128()
671 Leb128.writeUnsignedLeb128(this, i); in writeUleb128()
679 Leb128.writeSignedLeb128(this, i); in writeSleb128()
/dalvik/dx/src/com/android/dx/merge/
DIndexMap.java46 import com.android.dex.Leb128;
369 Leb128.writeUnsignedLeb128(out, adjustType(reader.getAnnotationType())); in transformAnnotation()
370 Leb128.writeUnsignedLeb128(out, fieldCount); in transformAnnotation()
372 Leb128.writeUnsignedLeb128(out, adjustString(reader.readAnnotationName())); in transformAnnotation()
379 Leb128.writeUnsignedLeb128(out, size); in transformArray()
/dalvik/dx/src/com/android/dx/util/
DByteArrayAnnotatedOutput.java19 import com.android.dex.Leb128;
252 Leb128.writeUnsignedLeb128(this, value); in writeUleb128()
263 Leb128.writeSignedLeb128(this, value); in writeSleb128()