Home
last modified time | relevance | path

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

123456789

/dalvik/dx/src/com/android/dx/gen/
DConstants.java43 static TypedConstant getConstant(Object value) { in getConstant() argument
44 if (value == null) { in getConstant()
46 } else if (value instanceof Boolean) { in getConstant()
47 return CstBoolean.make((Boolean) value); in getConstant()
48 } else if (value instanceof Byte) { in getConstant()
49 return CstByte.make((Byte) value); in getConstant()
50 } else if (value instanceof Character) { in getConstant()
51 return CstChar.make((Character) value); in getConstant()
52 } else if (value instanceof Double) { in getConstant()
53 return CstDouble.make(Double.doubleToLongBits((Double) value)); in getConstant()
[all …]
/dalvik/dx/src/com/android/dx/util/
DLeb128Utils.java38 public static int unsignedLeb128Size(int value) { in unsignedLeb128Size() argument
41 int remaining = value >> 7; in unsignedLeb128Size()
59 public static int signedLeb128Size(int value) { in signedLeb128Size() argument
62 int remaining = value >> 7; in signedLeb128Size()
65 int end = ((value & Integer.MIN_VALUE) == 0) ? 0 : -1; in signedLeb128Size()
69 || ((remaining & 1) != ((value >> 6) & 1)); in signedLeb128Size()
71 value = remaining; in signedLeb128Size()
132 public static void writeUnsignedLeb128(ByteOutput out, int value) { in writeUnsignedLeb128() argument
133 int remaining = value >>> 7; in writeUnsignedLeb128()
136 out.writeByte((byte) ((value & 0x7f) | 0x80)); in writeUnsignedLeb128()
[all …]
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 writeUleb128(int value); in writeUleb128() argument
88 public int writeSleb128(int value); in writeSleb128() argument
/dalvik/vm/native/
Djava_lang_reflect_Field.cpp138 static void getStaticFieldValue(const StaticField* sfield, JValue* value) in getStaticFieldValue() argument
142 *value = sfield->value; in getStaticFieldValue()
147 value->i = dvmGetStaticFieldBooleanVolatile(sfield); in getStaticFieldValue()
150 value->i = dvmGetStaticFieldByteVolatile(sfield); in getStaticFieldValue()
153 value->i = dvmGetStaticFieldShortVolatile(sfield); in getStaticFieldValue()
156 value->i = dvmGetStaticFieldCharVolatile(sfield); in getStaticFieldValue()
159 value->i = dvmGetStaticFieldIntVolatile(sfield); in getStaticFieldValue()
162 value->f = dvmGetStaticFieldFloatVolatile(sfield); in getStaticFieldValue()
165 value->j = dvmGetStaticFieldLongVolatile(sfield); in getStaticFieldValue()
168 value->d = dvmGetStaticFieldDoubleVolatile(sfield); in getStaticFieldValue()
[all …]
/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/cst/
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()
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()
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()
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()
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()
/dalvik/dexgen/src/com/android/dexgen/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()
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/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/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/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/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/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
/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()

123456789