Home
last modified time | relevance | path

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

12345

/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/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()
70 return value.compareTo(otherString.value); in compareTo()
91 data = new StringDataItem(value); in addContents()
102 out.annotate(0, indexString() + ' ' + value.toQuoted(100)); in writeTo()
115 return value; in getValue()
DCallSiteItem.java28 private final CstCallSite value; field in CallSiteItem
38 public CallSiteItem(CstCallSite value) { in CallSiteItem() argument
39 super(1, writeSize(value)); in CallSiteItem()
41 this.value = value; in CallSiteItem()
50 private static int writeSize(CstCallSite value) { in writeSize() argument
62 encoder.writeArray(value, true); in place0()
70 return value.toHuman(); in toHuman()
76 return value.toString(); in toString()
85 encoder.writeArray(value, true); in writeTo0()
103 ValueEncoder.addContents(file, value); in addContents()
/dalvik/dexgen/src/com/android/dexgen/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()
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()
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/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()
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()
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/dex/
DLeb128.java37 public static int unsignedLeb128Size(int value) { in unsignedLeb128Size() argument
40 int remaining = value >> 7; in unsignedLeb128Size()
104 public static void writeUnsignedLeb128(ByteOutput out, int value) { in writeUnsignedLeb128() argument
105 int remaining = value >>> 7; in writeUnsignedLeb128()
108 out.writeByte((byte) ((value & 0x7f) | 0x80)); in writeUnsignedLeb128()
109 value = remaining; in writeUnsignedLeb128()
113 out.writeByte((byte) (value & 0x7f)); in writeUnsignedLeb128()
120 public static void writeSignedLeb128(ByteOutput out, int value) { in writeSignedLeb128() argument
121 int remaining = value >> 7; in writeSignedLeb128()
123 int end = ((value & Integer.MIN_VALUE) == 0) ? 0 : -1; in writeSignedLeb128()
[all …]
DEncodedValueCodec.java32 public static void writeSignedIntegralValue(ByteOutput out, int type, long value) { in writeSignedIntegralValue() argument
42 int requiredBits = 65 - Long.numberOfLeadingZeros(value ^ (value >> 63)); in writeSignedIntegralValue()
55 out.writeByte((byte) value); in writeSignedIntegralValue()
56 value >>= 8; in writeSignedIntegralValue()
64 public static void writeUnsignedIntegralValue(ByteOutput out, int type, long value) { in writeUnsignedIntegralValue() argument
66 int requiredBits = 64 - Long.numberOfLeadingZeros(value); in writeUnsignedIntegralValue()
82 out.writeByte((byte) value); in writeUnsignedIntegralValue()
83 value >>= 8; in writeUnsignedIntegralValue()
91 public static void writeRightZeroExtendedValue(ByteOutput out, int type, long value) { in writeRightZeroExtendedValue() argument
93 int requiredBits = 64 - Long.numberOfTrailingZeros(value); in writeRightZeroExtendedValue()
[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()
54 return name.toHuman() + ":" + value; in toString()
60 return name.hashCode() * 31 + value.hashCode(); in hashCode()
73 && value.equals(otherPair.value); in equals()
90 return value.compareTo(other.value); in compareTo()
108 return value; in getValue()
/dalvik/dx/src/com/android/dx/io/instructions/
DShortArrayCodeOutput.java99 public void writeInt(int value) { in writeInt() argument
100 write((short) value); in writeInt()
101 write((short) (value >> 16)); in writeInt()
106 public void writeLong(long value) { in writeLong() argument
107 write((short) value); in writeLong()
108 write((short) (value >> 16)); in writeLong()
109 write((short) (value >> 32)); in writeLong()
110 write((short) (value >> 48)); in writeLong()
116 int value = 0; in write() local
120 value = b & 0xff; in write()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/code/
DInsnFormat.java190 protected static String literalBitsString(CstLiteralBits value) { in literalBitsString() argument
195 if (value instanceof CstKnownNull) { in literalBitsString()
198 sb.append(value.typeName()); in literalBitsString()
200 sb.append(value.toHuman()); in literalBitsString()
214 protected static String literalBitsComment(CstLiteralBits value, in literalBitsComment() argument
222 if (value instanceof CstLiteral64) { in literalBitsComment()
223 bits = ((CstLiteral64) value).getLongBits(); in literalBitsComment()
225 bits = value.getIntBits(); in literalBitsComment()
315 protected static boolean signedFitsInNibble(int value) { in signedFitsInNibble() argument
316 return (value >= -8) && (value <= 7); in signedFitsInNibble()
[all …]
/dalvik/dexgen/src/com/android/dexgen/util/
DIntList.java46 public static IntList makeImmutable(int value) { in makeImmutable() argument
49 result.add(value); in makeImmutable()
190 public void set(int n, int value) { in set() argument
198 values[n] = value; in set()
214 public void add(int value) { in add() argument
219 values[size++] = value; in add()
222 sorted = (value >= values[size - 2]); in add()
235 public void insert(int n, int value) { in insert() argument
243 values[n] = value; in insert()
247 && (n == 0 || value > values[n-1]) in insert()
[all …]
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()
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/util/
DIntList.java46 public static IntList makeImmutable(int value) { in makeImmutable() argument
49 result.add(value); in makeImmutable()
190 public void set(int n, int value) { in set() argument
198 values[n] = value; in set()
214 public void add(int value) { in add() argument
219 values[size++] = value; in add()
222 sorted = (value >= values[size - 2]); in add()
235 public void insert(int n, int value) { in insert() argument
243 values[n] = value; in insert()
247 && (n == 0 || value > values[n-1]) in insert()
[all …]

12345