Lines Matching refs:value
65 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()
114 ASSERT_FLOAT_EQ(-16.0f, value.GetF()); in TEST_F()
123 JValue value; in TEST_F() local
124 value.SetB(0); in TEST_F()
125 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
137 JValue value; in TEST_F() local
138 value.SetS(0x1234); in TEST_F()
139 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
151 JValue value; in TEST_F() local
152 value.SetD(1e72); in TEST_F()
153 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
165 JValue value; in TEST_F() local
166 value.SetZ(true); in TEST_F()
167 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
182 JValue value = JValue::FromPrimitive(kInitialValue); in TEST_F() local
183 Handle<mirror::Object> boxed_value = hs.NewHandle(BoxPrimitive(Primitive::kPrimInt, value)); in TEST_F()
186 value.SetL(boxed_value.Get()); in TEST_F()
187 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
190 ASSERT_TRUE(UnboxPrimitiveForResult(value.GetL(), cl->FindPrimitiveClass('I'), &unboxed_value)); in TEST_F()
198 JValue value = JValue::FromPrimitive(3.733e2); in TEST_F() local
199 Handle<mirror::Object> boxed_value = hs.NewHandle(BoxPrimitive(Primitive::kPrimDouble, value)); in TEST_F()
202 value.SetL(boxed_value.Get()); in TEST_F()
204 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
219 JValue value = JValue::FromPrimitive(kInitialValue); in TEST_F() local
222 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
225 ASSERT_TRUE(UnboxPrimitiveForResult(value.GetL(), from.Get(), &unboxed_to_value)); in TEST_F()
234 JValue value = JValue::FromPrimitive(kInitialValue); in TEST_F() local
237 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
240 ASSERT_TRUE(UnboxPrimitiveForResult(value.GetL(), from.Get(), &unboxed_to_value)); in TEST_F()
249 JValue value = JValue::FromPrimitive(kInitialValue); in TEST_F() local
252 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
263 JValue value = JValue::FromPrimitive(kInitialValue); in TEST_F() local
266 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
277 JValue value = JValue::FromPrimitive(kInitialValue); in TEST_F() local
280 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
295 JValue value = JValue::FromPrimitive(kInitialValue); in TEST_F() local
296 Handle<mirror::Object> boxed_value = hs.NewHandle(BoxPrimitive(Primitive::kPrimInt, value)); in TEST_F()
299 value.SetL(boxed_value.Get()); in TEST_F()
300 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
302 ASSERT_EQ(kInitialValue, value.GetI()); in TEST_F()
310 JValue value = JValue::FromPrimitive(kInitialValue); in TEST_F() local
311 Handle<mirror::Object> boxed_value = hs.NewHandle(BoxPrimitive(Primitive::kPrimInt, value)); in TEST_F()
314 value.SetL(boxed_value.Get()); in TEST_F()
315 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
316 ASSERT_EQ(kInitialValue, value.GetJ()); in TEST_F()
323 JValue value = JValue::FromPrimitive(101); in TEST_F() local
327 value.SetL(boxed_value.Get()); in TEST_F()
328 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
341 JValue value; in TEST_F() local
342 value.SetL(cl->FindPrimitiveClass('V')); in TEST_F()
343 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
354 JValue value = JValue::FromPrimitive(kInitialValue); in TEST_F() local
355 Handle<mirror::Object> boxed_value = hs.NewHandle(BoxPrimitive(Primitive::kPrimInt, value)); in TEST_F()
358 value.SetL(boxed_value.Get()); in TEST_F()
359 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
370 JValue value = JValue::FromPrimitive(kInitialValue); in TEST_F() local
371 Handle<mirror::Object> boxed_value = hs.NewHandle(BoxPrimitive(Primitive::kPrimDouble, value)); in TEST_F()
374 value.SetL(boxed_value.Get()); in TEST_F()
375 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()