Home
last modified time | relevance | path

Searched refs:value (Results 26 – 50 of 592) sorted by relevance

12345678910>>...24

/art/test/2036-structural-subclass-shadow/
Dexpected.txt1 value-getter is 42
2 value is 42
4 static-value is 3.14
5 value-getter is 0
6 value is 0
8 static-value is 0.0
/art/runtime/base/
Dquasi_atomic.h62 int64_t value; in Read64() local
64 value = *addr; in Read64()
71 : "=r" (value) in Read64()
77 : "=r" (value) in Read64()
83 : "=x" (value) in Read64()
89 return value; in Read64()
96 static void Write64(volatile int64_t* addr, int64_t value) { in Write64() argument
99 *addr = value; in Write64()
107 : "r" (value)); in Write64()
117 : "r" (value) in Write64()
[all …]
/art/tools/ahat/src/main/com/android/ahat/
DQuery.java59 String value = mParams.get(name); in get() local
60 return (value == null) ? defaultValue : value; in get()
67 String value = get(name, null); in getLong() local
68 return value == null ? defaultValue : Long.decode(value); in getLong()
75 String value = get(name, null); in getInt() local
76 return value == null ? defaultValue : Integer.decode(value); in getInt()
88 public URI with(String name, String value) { in with() argument
94 params.put(name, value); in with()
112 public URI with(String name, long value) { in with() argument
113 return with(name, String.valueOf(value)); in with()
/art/compiler/utils/
Datomic_dex_ref_map_test.cc36 int value = 123; in TEST_F() local
38 EXPECT_FALSE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
49 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
50 EXPECT_EQ(value, 0); in TEST_F()
55 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
56 EXPECT_EQ(value, kInsertValue); in TEST_F()
60 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 1), &value)); in TEST_F()
61 EXPECT_EQ(value, kInsertValue); in TEST_F()
62 EXPECT_TRUE(map.Get(MethodReference(dex.get(), 2), &value)); in TEST_F()
63 EXPECT_EQ(value, kInsertValue2); in TEST_F()
[all …]
/art/runtime/
Dmethod_handles_test.cc65 JValue* value) in TryConversion() argument
70 return ConvertJValueCommon(from_mt, to_mt, from.Get(), to.Get(), value); in TryConversion()
86 JValue value = JValue::FromPrimitive(static_cast<int8_t>(3)); in TEST_F() local
87 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
88 ASSERT_EQ(3, value.GetI()); in TEST_F()
99 JValue value = JValue::FromPrimitive(raw_value); in TEST_F() local
100 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
102 ASSERT_EQ(static_cast<int64_t>(raw_value), value.GetJ()); in TEST_F()
111 JValue value = JValue::FromPrimitive(-16); in TEST_F() local
112 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
[all …]
Dtransaction.cc137 bool Transaction::WriteValueConstraint(Thread* self, ObjPtr<mirror::Object> value) { in WriteValueConstraint() argument
138 if (value == nullptr) { in WriteValueConstraint()
150 ObjPtr<mirror::Class> klass = value->IsClass() ? value->AsClass() : value->GetClass(); in WriteValueConstraint()
170 uint8_t value, in RecordWriteFieldBoolean() argument
176 object_log.LogBooleanValue(field_offset, value, is_volatile); in RecordWriteFieldBoolean()
181 int8_t value, in RecordWriteFieldByte() argument
187 object_log.LogByteValue(field_offset, value, is_volatile); in RecordWriteFieldByte()
192 uint16_t value, in RecordWriteFieldChar() argument
198 object_log.LogCharValue(field_offset, value, is_volatile); in RecordWriteFieldChar()
204 int16_t value, in RecordWriteFieldShort() argument
[all …]
Dmethod_handles-inl.h82 ALWAYS_INLINE void Set(uint32_t value) REQUIRES_SHARED(Locks::mutator_lock_) { in Set() argument
84 shadow_frame_->SetVReg(arg_index_++, value); in Set()
87 ALWAYS_INLINE void SetReference(ObjPtr<mirror::Object> value) in SetReference() argument
90 shadow_frame_->SetVRegReference(arg_index_++, value); in SetReference()
93 ALWAYS_INLINE void SetLong(int64_t value) REQUIRES_SHARED(Locks::mutator_lock_) { in SetLong() argument
95 shadow_frame_->SetVRegLong(arg_index_, value); in SetLong()
112 JValue* value) REQUIRES_SHARED(Locks::mutator_lock_) { in ConvertArgumentValue() argument
121 if (ConvertJValueCommon(callsite_type, callee_type, from_class, to_class, value)) { in ConvertArgumentValue()
126 value->SetJ(0); in ConvertArgumentValue()
134 JValue* value) REQUIRES_SHARED(Locks::mutator_lock_) { in ConvertArgumentValue() argument
[all …]
/art/libelffile/dwarf/
Ddebug_info_entry_writer.h46 static_assert(std::is_same<typename Vector::value_type, uint8_t>::value, "Invalid value type");
85 void WriteAddr(Attribute attrib, uint64_t value) { in WriteAddr() argument
89 this->PushUint64(value); in WriteAddr()
91 this->PushUint32(value); in WriteAddr()
107 void WriteData1(Attribute attrib, uint8_t value) { in WriteData1() argument
109 this->PushUint8(value); in WriteData1()
112 void WriteData2(Attribute attrib, uint16_t value) { in WriteData2() argument
114 this->PushUint16(value); in WriteData2()
117 void WriteData4(Attribute attrib, uint32_t value) { in WriteData4() argument
119 this->PushUint32(value); in WriteData4()
[all …]
Dexpression.h39 void WriteOpConsts(int32_t value) { in WriteOpConsts() argument
40 if (0 <= value && value < 32) { in WriteOpConsts()
41 PushUint8(DW_OP_lit0 + value); in WriteOpConsts()
44 PushSleb128(value); in WriteOpConsts()
49 void WriteOpConstu(uint32_t value) { in WriteOpConstu() argument
50 if (value < 32) { in WriteOpConstu()
51 PushUint8(DW_OP_lit0 + value); in WriteOpConstu()
54 PushUleb128(value); in WriteOpConstu()
/art/test/712-varhandle-invocations/src/
DVarHandleUnitTestHelpers.java120 public static void setBytesAs_boolean(byte[] array, int index, boolean value, ByteOrder order) { in setBytesAs_boolean() argument
121 setBytesAs_boolean(ByteBuffer.wrap(array), index, value, order); in setBytesAs_boolean() local
124 public static void setBytesAs_byte(byte[] array, int index, byte value, ByteOrder order) { in setBytesAs_byte() argument
125 setBytesAs_byte(ByteBuffer.wrap(array), index, value, order); in setBytesAs_byte() local
128 public static void setBytesAs_char(byte[] array, int index, char value, ByteOrder order) { in setBytesAs_char() argument
129 setBytesAs_char(ByteBuffer.wrap(array), index, value, order); in setBytesAs_char() local
132 public static void setBytesAs_short(byte[] array, int index, short value, ByteOrder order) { in setBytesAs_short() argument
133 setBytesAs_short(ByteBuffer.wrap(array), index, value, order); in setBytesAs_short() local
136 public static void setBytesAs_int(byte[] array, int index, int value, ByteOrder order) { in setBytesAs_int() argument
137 setBytesAs_int(ByteBuffer.wrap(array), index, value, order); in setBytesAs_int() local
[all …]
/art/libartbase/base/
Dcasts.h74 static_assert(std::is_base_of<From, typename std::remove_pointer<To>::type>::value, in down_cast()
82 static_assert(std::is_base_of<From, typename std::remove_reference<To>::type>::value, in down_cast()
124 typename std::enable_if<!std::is_enum<Source>::value, Dest>::type
125 enum_cast(Source value) { in enum_cast() argument
127 dchecked_integral_cast<typename std::underlying_type<Dest>::type>(value)); in enum_cast()
132 typename std::enable_if<std::is_enum<Source>::value,
133 typename std::conditional<std::is_same<Dest, void>::value,
136 enum_cast(Source value) { in enum_cast() argument
137 using return_type = typename std::conditional<std::is_same<Dest, void>::value, in enum_cast()
141 static_cast<typename std::underlying_type<Source>::type>(value)); in enum_cast()
[all …]
/art/test/1981-structural-redef-private-method-handles/
Dexpected_no_mh.txt1 Initial: class art.Test1981$Transform[FOO: value of <FOO FIELD>, BAR: value of <BAR FIELD>]
2 Reading field FOO using (ID: 0) MethodHandle()Object = (ID: 1) value of <FOO FIELD>
3 Reading field BAR using (ID: 2) MethodHandle()Object = (ID: 3) value of <BAR FIELD>
5 Post redefinition : class art.Test1981$Transform[FOO: value of <FOO FIELD>, BAR: value of <BAR FIEL…
6 Reading field FOO using (ID: 0) MethodHandle()Object = (ID: 1) value of <FOO FIELD>
7 Reading field BAR using (ID: 2) MethodHandle()Object = (ID: 3) value of <BAR FIELD>
9 Reading new field FOO using (ID: 6) MethodHandle()Object = (ID: 1) value of <FOO FIELD>
10 Reading new field BAR using (ID: 7) MethodHandle()Object = (ID: 3) value of <BAR FIELD>
12 Post set with new mh: class art.Test1981$Transform[FOO: value of <FOO FIELD>, BAR: value of <BAR FI…
14 Post set with old mh: class art.Test1981$Transform[FOO: class art.Test1981$Transform, BAR: value of…
[all …]
Dexpected.txt1 Initial: class art.Test1981$Transform[FOO: value of <FOO FIELD>, BAR: value of <BAR FIELD>]
2 Reading field FOO using (ID: 0) MethodHandle()Object = (ID: 1) value of <FOO FIELD>
3 Reading field FOO using (ID: 2) java.lang.invoke.FieldVarHandle()->java.lang.Object = (ID: 1) value
4 Reading field BAR using (ID: 3) MethodHandle()Object = (ID: 4) value of <BAR FIELD>
5 Reading field BAR using (ID: 5) java.lang.invoke.FieldVarHandle()->java.lang.Object = (ID: 4) value
7 Post redefinition : class art.Test1981$Transform[FOO: value of <FOO FIELD>, BAR: value of <BAR FIEL…
8 Reading field FOO using (ID: 0) MethodHandle()Object = (ID: 1) value of <FOO FIELD>
9 Reading field FOO using (ID: 2) java.lang.invoke.FieldVarHandle()->java.lang.Object = (ID: 1) value
10 Reading field BAR using (ID: 3) MethodHandle()Object = (ID: 4) value of <BAR FIELD>
11 Reading field BAR using (ID: 5) java.lang.invoke.FieldVarHandle()->java.lang.Object = (ID: 4) value
[all …]
/art/test/163-app-image-methods/src/
DMain.java34 int value = 0; in main() local
39 value = Derived.foo(); in main()
41 value = -1; in main()
54 System.out.println("match: " + (value == another_value)); in main()
55 if (value != another_value || (value != -1 && value != 42)) { in main()
57 System.out.println("value: " + value); in main()
/art/test/957-methodhandle-transforms/src/
DMain.java272 int value = (int) getter.invoke(array, 0); in testArrayElementGetter() local
273 if (value != 42) { in testArrayElementGetter()
274 fail("Unexpected value: " + value); in testArrayElementGetter()
278 value = (int) getter.invoke(array, -1); in testArrayElementGetter()
284 value = (int) getter.invoke(null, -1); in testArrayElementGetter()
294 long value = (long) getter.invoke(array, 0); in testArrayElementGetter() local
295 if (value != 42l) { in testArrayElementGetter()
296 fail("Unexpected value: " + value); in testArrayElementGetter()
304 short value = (short) getter.invoke(array, 0); in testArrayElementGetter() local
305 if (value != 42l) { in testArrayElementGetter()
[all …]
/art/tools/ahat/src/main/com/android/ahat/heapdump/
DAhatClassInstance.java55 return field.value; in getField()
62 Value value = getField(fieldName); in getRefField() local
63 return value == null ? null : value.asAhatInstance(); in getRefField()
73 Value value = getField(fieldName); in getIntField() local
74 if (value == null || !value.isInteger()) { in getIntField()
77 return value.asInteger(); in getIntField()
87 Value value = getField(fieldName); in getLongField() local
88 if (value == null || !value.isLong()) { in getLongField()
91 return value.asLong(); in getLongField()
115 Value value = getField("value"); in asString() local
[all …]
DFieldValue.java36 public final Value value; field in FieldValue
45 public FieldValue(String name, Type type, Value value) { in FieldValue() argument
48 this.value = value; in FieldValue()
/art/tools/cpp-define-generator/
Dmake_header.py44 for name, value, negative_value in sorted(asm_defines):
45 value = int(value)
46 if value < 0 and negative_value == "0":
48 value += 2 ** 64 # Python will use arbitrary precision arithmetic.
49 output.append("#define {0} {1:#x}".format(name, value))
/art/test/959-invoke-polymorphic-accessors/src/
DMain.java70 public static void assertTrue(boolean value) throws AssertionError { in assertTrue() argument
71 if (!value) { in assertTrue()
101 static void setByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in setByte() argument
106 m.invokeExact(value); in setByte()
109 m.invokeExact(v, value); in setByte()
118 static void setByte(MethodHandle m, byte value, boolean expectFailure) throws Throwable { in setByte() argument
119 setByte(m, null, value, expectFailure); in setByte()
122 static void getByte(MethodHandle m, ValueHolder v, byte value, boolean expectFailure) in getByte() argument
132 assertTrue(got == value); in getByte()
140 static void getByte(MethodHandle m, byte value, boolean expectFailure) throws Throwable { in getByte() argument
[all …]
/art/cmdline/
Dcmdline_parse_result.h49 static CmdlineParseResult<T> Success(const T& value) { in Success()
50 return CmdlineParseResult(value); in Success()
54 static CmdlineParseResult<T> Success(T&& value) { in Success()
55 return CmdlineParseResult(std::forward<T>(value)); in Success()
72 static CmdlineParseResult<T> OutOfRange(const T& value, in OutOfRange()
76 "actual: " + art::detail::ToStringAny(value) + in OutOfRange()
125 explicit CmdlineParseResult(const T& value) in CmdlineParseResult()
126 : CmdlineResult(kSuccess), value_(value), has_value_(true) {} in CmdlineParseResult()
127 explicit CmdlineParseResult(T&& value) in CmdlineParseResult()
128 : CmdlineResult(kSuccess), value_(std::forward<T>(value)), has_value_(true) {} in CmdlineParseResult()
/art/tools/dexfuzz/src/dexfuzz/rawdex/formats/
DRawInsnHelper.java105 public static void writeUnsignedIntToFourBytes(byte[] raw, int idx, int value) { in writeUnsignedIntToFourBytes() argument
106 raw[idx] = (byte) (value & 0xFF); in writeUnsignedIntToFourBytes()
107 raw[idx + 1] = (byte) ((value & 0xFF00) >>> 8); in writeUnsignedIntToFourBytes()
108 raw[idx + 2] = (byte) ((value & 0xFF0000) >>> 16); in writeUnsignedIntToFourBytes()
109 raw[idx + 3] = (byte) ((value & 0xFF000000) >>> 24); in writeUnsignedIntToFourBytes()
115 public static void writeUnsignedShortToTwoBytes(byte[] raw, int idx, int value) { in writeUnsignedShortToTwoBytes() argument
116 raw[idx] = (byte) (value & 0xFF); in writeUnsignedShortToTwoBytes()
117 raw[idx + 1] = (byte) ((value & 0xFF00) >>> 8); in writeUnsignedShortToTwoBytes()
/art/test/567-checker-builder-intrinsics/src/
DTestRotate.java29 private static int rotateLeftByte(byte value, int distance) { in rotateLeftByte() argument
30 return Integer.rotateLeft(value, distance); in rotateLeftByte()
43 private static int rotateLeftShort(short value, int distance) { in rotateLeftShort() argument
44 return Integer.rotateLeft(value, distance); in rotateLeftShort()
57 private static int rotateLeftChar(char value, int distance) { in rotateLeftChar() argument
58 return Integer.rotateLeft(value, distance); in rotateLeftChar()
71 private static int rotateLeftInt(int value, int distance) { in rotateLeftInt() argument
72 return Integer.rotateLeft(value, distance); in rotateLeftInt()
85 private static long rotateLeftLong(long value, int distance) { in rotateLeftLong() argument
86 return Long.rotateLeft(value, distance); in rotateLeftLong()
[all …]
/art/test/458-checker-instruct-simplification/src/
DMain.java1373 public static int $noinline$intToDoubleToInt(int value) { in $noinline$intToDoubleToInt() argument
1375 return (int) (double) value; in $noinline$intToDoubleToInt()
1391 public static String $noinline$intToDoubleToIntPrint(int value) { in $noinline$intToDoubleToIntPrint() argument
1394 double d = (double) value; in $noinline$intToDoubleToIntPrint()
1412 public static int $noinline$byteToDoubleToInt(byte value) { in $noinline$byteToDoubleToInt() argument
1414 return (int) (double) value; in $noinline$byteToDoubleToInt()
1432 public static int $noinline$floatToDoubleToInt(float value) { in $noinline$floatToDoubleToInt() argument
1434 return (int) (double) value; in $noinline$floatToDoubleToInt()
1447 public static String $noinline$floatToDoubleToIntPrint(float value) { in $noinline$floatToDoubleToIntPrint() argument
1450 double d = (double) value; in $noinline$floatToDoubleToIntPrint()
[all …]
/art/test/1974-resize-array/
Dexpected.txt4 Same value? true
8 Map is: ([1, 2, 3, 4]->Other Value), ([1, 2, 3, 4]->THE VALUE), ([1, 4]->Third value),
10 Map is: ([1, 2, 3, 4]->Other Value), ([1, 2, 3, 4, 0, 0, 0]->THE VALUE), ([1, 4]->Third value),
15 Same value? true
21 Same value? true
29 Same value? true
36 Same value? true
41 Same value? true
46 T1: Same value? true
50 T2: Same value? true
[all …]
/art/test/461-get-reference-vreg/
Dget_reference_vreg_jni.cc41 uint32_t value = 0; in CheckOptimizedOutRegLiveness() local
43 CHECK_EQ(sv->GetVReg(m, dex_reg, vreg_kind, &value), false); in CheckOptimizedOutRegLiveness()
45 CHECK(sv->GetVReg(m, dex_reg, vreg_kind, &value)); in CheckOptimizedOutRegLiveness()
47 CHECK_EQ(value, expected); in CheckOptimizedOutRegLiveness()
64 uint32_t value = 0; in FindMethodIndex()
68 CHECK(stack_visitor->GetVReg(m, 1, kReferenceVReg, &value)); in FindMethodIndex()
69 CHECK_EQ(reinterpret_cast<mirror::Object*>(value), this_value); in FindMethodIndex()
91 extern "C" JNIEXPORT jint JNICALL Java_Main_doNativeCallRef(JNIEnv*, jobject value) { in Java_Main_doNativeCallRef() argument
92 return FindMethodIndex(value); in Java_Main_doNativeCallRef()

12345678910>>...24