Home
last modified time | relevance | path

Searched refs:value (Results 1 – 25 of 107) sorted by relevance

12345

/dalvik/dx/src/com/android/dx/rop/cst/
DCstByte.java36 public static CstByte make(byte value) { in make() argument
37 return new CstByte(value); in make()
48 public static CstByte make(int value) { in make() argument
49 byte cast = (byte) value; in make()
51 if (cast != value) { in make()
53 value); in make()
64 private CstByte(byte value) { in CstByte() argument
65 super(value); in CstByte()
71 int value = getIntBits(); in toString() local
72 return "byte{0x" + Hex.u1(value) + " / " + value + '}'; in toString()
DCstShort.java37 public static CstShort make(short value) { in make() argument
38 return new CstShort(value); in make()
49 public static CstShort make(int value) { in make() argument
50 short cast = (short) value; in make()
52 if (cast != value) { in make()
54 value); in make()
65 private CstShort(short value) { in CstShort() argument
66 super(value); in CstShort()
72 int value = getIntBits(); in toString() local
73 return "short{0x" + Hex.u2(value) + " / " + value + '}'; in toString()
DCstChar.java36 public static CstChar make(char value) { in make() argument
37 return new CstChar(value); in make()
48 public static CstChar make(int value) { in make() argument
49 char cast = (char) value; in make()
51 if (cast != value) { in make()
53 value); in make()
64 private CstChar(char value) { in CstChar() argument
65 super(value); in CstChar()
71 int value = getIntBits(); in toString() local
72 return "char{0x" + Hex.u2(value) + " / " + value + '}'; in toString()
DCstBoolean.java39 public static CstBoolean make(boolean value) { in make() argument
40 return value ? VALUE_TRUE : VALUE_FALSE; in make()
50 public static CstBoolean make(int value) { in make() argument
51 if (value == 0) { in make()
53 } else if (value == 1) { in make()
56 throw new IllegalArgumentException("bogus value: " + value); in make()
65 private CstBoolean(boolean value) { in CstBoolean() argument
66 super(value ? 1 : 0); in CstBoolean()
DCstLong.java39 public static CstLong make(long value) { in make() argument
44 return new CstLong(value); in make()
52 private CstLong(long value) { in CstLong() argument
53 super(value); in CstLong()
59 long value = getLongBits(); in toString() local
60 return "long{0x" + Hex.u8(value) + " / " + value + '}'; in toString()
DCstInteger.java58 public static CstInteger make(int value) { in make() argument
64 int idx = (value & 0x7fffffff) % cache.length; in make()
67 if ((obj != null) && (obj.getValue() == value)) { in make()
71 obj = new CstInteger(value); in make()
81 private CstInteger(int value) { in CstInteger() argument
82 super(value); in CstInteger()
88 int value = getIntBits(); in toString() local
89 return "int{0x" + Hex.u4(value) + " / " + value + '}'; in toString()
/dalvik/dexgen/src/com/android/dexgen/rop/cst/
DCstChar.java36 public static CstChar make(char value) { in make() argument
37 return new CstChar(value); in make()
48 public static CstChar make(int value) { in make() argument
49 char cast = (char) value; in make()
51 if (cast != value) { in make()
53 value); in make()
64 private CstChar(char value) { in CstChar() argument
65 super(value); in CstChar()
71 int value = getIntBits(); in toString() local
72 return "char{0x" + Hex.u2(value) + " / " + value + '}'; in toString()
DCstByte.java36 public static CstByte make(byte value) { in make() argument
37 return new CstByte(value); in make()
48 public static CstByte make(int value) { in make() argument
49 byte cast = (byte) value; in make()
51 if (cast != value) { in make()
53 value); in make()
64 private CstByte(byte value) { in CstByte() argument
65 super(value); in CstByte()
71 int value = getIntBits(); in toString() local
72 return "byte{0x" + Hex.u1(value) + " / " + value + '}'; in toString()
DCstShort.java37 public static CstShort make(short value) { in make() argument
38 return new CstShort(value); in make()
49 public static CstShort make(int value) { in make() argument
50 short cast = (short) value; in make()
52 if (cast != value) { in make()
54 value); in make()
65 private CstShort(short value) { in CstShort() argument
66 super(value); in CstShort()
72 int value = getIntBits(); in toString() local
73 return "short{0x" + Hex.u2(value) + " / " + value + '}'; in toString()
DCstBoolean.java39 public static CstBoolean make(boolean value) { in make() argument
40 return value ? VALUE_TRUE : VALUE_FALSE; in make()
50 public static CstBoolean make(int value) { in make() argument
51 if (value == 0) { in make()
53 } else if (value == 1) { in make()
56 throw new IllegalArgumentException("bogus value: " + value); in make()
65 private CstBoolean(boolean value) { in CstBoolean() argument
66 super(value ? 1 : 0); in CstBoolean()
DCstLong.java39 public static CstLong make(long value) { in make() argument
44 return new CstLong(value); in make()
52 private CstLong(long value) { in CstLong() argument
53 super(value); in CstLong()
59 long value = getLongBits(); in toString() local
60 return "long{0x" + Hex.u8(value) + " / " + value + '}'; in toString()
DCstInteger.java58 public static CstInteger make(int value) { in make() argument
64 int idx = (value & 0x7fffffff) % cache.length; in make()
67 if ((obj != null) && (obj.getValue() == value)) { in make()
71 obj = new CstInteger(value); in make()
81 private CstInteger(int value) { in CstInteger() argument
82 super(value); in CstInteger()
88 int value = getIntBits(); in toString() local
89 return "int{0x" + Hex.u4(value) + " / " + value + '}'; in toString()
/dalvik/dexgen/src/com/android/dexgen/rop/annotation/
DNameValuePair.java31 private final Constant value; field in NameValuePair
39 public NameValuePair(CstUtf8 name, Constant value) { in NameValuePair() argument
44 if (value == null) { in NameValuePair()
49 if (value instanceof CstUtf8) { in NameValuePair()
50 throw new IllegalArgumentException("bad value: " + value); in NameValuePair()
54 this.value = value; in NameValuePair()
59 return name.toHuman() + ":" + value; in toString()
64 return name.hashCode() * 31 + value.hashCode(); in hashCode()
76 && value.equals(otherPair.value); in equals()
92 return value.compareTo(other.value); in compareTo()
[all …]
/dalvik/dx/src/com/android/dx/rop/annotation/
DNameValuePair.java30 private final Constant value; field in NameValuePair
38 public NameValuePair(CstString name, Constant value) { in NameValuePair() argument
43 if (value == null) { in NameValuePair()
48 this.value = value; in NameValuePair()
53 return name.toHuman() + ":" + value; in toString()
58 return name.hashCode() * 31 + value.hashCode(); in hashCode()
70 && value.equals(otherPair.value); in equals()
86 return value.compareTo(other.value); in compareTo()
104 return value; in getValue()
/dalvik/dx/src/com/android/dx/dex/file/
DStringDataItem.java30 private final CstString value; field in StringDataItem
37 public StringDataItem(CstString value) { in StringDataItem() argument
38 super(1, writeSize(value)); in StringDataItem()
40 this.value = value; in StringDataItem()
49 private static int writeSize(CstString value) { in writeSize() argument
50 int utf16Size = value.getUtf16Size(); in writeSize()
54 + value.getUtf8Size() + 1; in writeSize()
72 ByteArray bytes = value.getBytes(); in writeTo0()
73 int utf16Size = value.getUtf16Size(); in writeTo0()
78 out.annotate(bytes.size() + 1, value.toQuoted()); in writeTo0()
[all …]
DStringIdItem.java30 private final CstString value; field in StringIdItem
40 public StringIdItem(CstString value) { in StringIdItem() argument
41 if (value == null) { in StringIdItem()
45 this.value = value; in StringIdItem()
57 return value.equals(otherString.value); in equals()
63 return value.hashCode(); in hashCode()
69 return value.compareTo(otherString.value); in compareTo()
90 data = new StringDataItem(value); in addContents()
101 out.annotate(0, indexString() + ' ' + value.toQuoted(100)); in writeTo()
114 return value; in getValue()
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DStringDataItem.java30 private final CstUtf8 value; field in StringDataItem
37 public StringDataItem(CstUtf8 value) { in StringDataItem() argument
38 super(1, writeSize(value)); in StringDataItem()
40 this.value = value; in StringDataItem()
49 private static int writeSize(CstUtf8 value) { in writeSize() argument
50 int utf16Size = value.getUtf16Size(); in writeSize()
54 + value.getUtf8Size() + 1; in writeSize()
72 ByteArray bytes = value.getBytes(); in writeTo0()
73 int utf16Size = value.getUtf16Size(); in writeTo0()
78 out.annotate(bytes.size() + 1, value.toQuoted()); in writeTo0()
[all …]
DStringIdItem.java32 private final CstUtf8 value; field in StringIdItem
42 public StringIdItem(CstUtf8 value) { in StringIdItem() argument
43 if (value == null) { in StringIdItem()
47 this.value = value; in StringIdItem()
59 return value.equals(otherString.value); in equals()
65 return value.hashCode(); in hashCode()
71 return value.compareTo(otherString.value); in compareTo()
92 data = new StringDataItem(value); in addContents()
103 out.annotate(0, indexString() + ' ' + value.toQuoted(100)); in writeTo()
116 return value; in getValue()
/dalvik/dexgen/src/com/android/dexgen/util/
DLeb128Utils.java37 public static int unsignedLeb128Size(int value) { in unsignedLeb128Size() argument
40 int remaining = value >> 7; in unsignedLeb128Size()
58 public static int signedLeb128Size(int value) { in signedLeb128Size() argument
61 int remaining = value >> 7; in signedLeb128Size()
64 int end = ((value & Integer.MIN_VALUE) == 0) ? 0 : -1; in signedLeb128Size()
68 || ((remaining & 1) != ((value >> 6) & 1)); in signedLeb128Size()
70 value = remaining; in signedLeb128Size()
DOutput.java47 public void writeByte(int value); in writeByte() argument
54 public void writeShort(int value); in writeShort() argument
61 public void writeInt(int value); in writeInt() argument
68 public void writeLong(long value); in writeLong() argument
78 public int writeUnsignedLeb128(int value); in writeUnsignedLeb128() argument
88 public int writeSignedLeb128(int value); in writeSignedLeb128() argument
DBitIntSet.java39 public void add(int value) { in add() argument
40 ensureCapacity(value); in add()
41 Bits.set(bits, value, true); in add()
49 private void ensureCapacity(int value) { in ensureCapacity() argument
50 if (value >= Bits.getMax(bits)) { in ensureCapacity()
52 Math.max(value + 1, 2 * Bits.getMax(bits))); in ensureCapacity()
59 public void remove(int value) { in remove() argument
60 if (value < Bits.getMax(bits)) { in remove()
61 Bits.set(bits, value, false); in remove()
66 public boolean has(int value) { in has() argument
[all …]
/dalvik/dx/src/com/android/dx/io/instructions/
DShortArrayCodeOutput.java93 public void writeInt(int value) { in writeInt() argument
94 write((short) value); in writeInt()
95 write((short) (value >> 16)); in writeInt()
99 public void writeLong(long value) { in writeLong() argument
100 write((short) value); in writeLong()
101 write((short) (value >> 16)); in writeLong()
102 write((short) (value >> 32)); in writeLong()
103 write((short) (value >> 48)); in writeLong()
108 int value = 0; in write() local
112 value = b & 0xff; in write()
[all …]
/dalvik/dx/src/com/android/dx/cf/attrib/
DAttAnnotationDefault.java29 private final Constant value; field in AttAnnotationDefault
42 public AttAnnotationDefault(Constant value, int byteLength) { in AttAnnotationDefault() argument
45 if (value == null) { in AttAnnotationDefault()
49 this.value = value; in AttAnnotationDefault()
65 return value; in getValue()
/dalvik/dx/src/com/android/dx/util/
DOutput.java49 public void writeByte(int value); in writeByte() argument
56 public void writeShort(int value); in writeShort() argument
63 public void writeInt(int value); in writeInt() argument
70 public void writeLong(long value); in writeLong() argument
80 public int writeUleb128(int value); in writeUleb128() argument
90 public int writeSleb128(int value); in writeSleb128() argument
DBitIntSet.java39 public void add(int value) { in add() argument
40 ensureCapacity(value); in add()
41 Bits.set(bits, value, true); in add()
49 private void ensureCapacity(int value) { in ensureCapacity() argument
50 if (value >= Bits.getMax(bits)) { in ensureCapacity()
52 Math.max(value + 1, 2 * Bits.getMax(bits))); in ensureCapacity()
59 public void remove(int value) { in remove() argument
60 if (value < Bits.getMax(bits)) { in remove()
61 Bits.set(bits, value, false); in remove()
66 public boolean has(int value) { in has() argument
[all …]

12345