Lines Matching refs:from

49   static bool TryConversion(Handle<mirror::Class> from, Handle<mirror::Class> to, JValue* value)  in TryConversion()  argument
57 return ConvertJValueCommon(throw_wmt, from.Get(), to.Get(), value); in TryConversion()
76 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('B')); in TEST_F() local
79 ASSERT_TRUE(TryConversion(from, to, &value)); in TEST_F()
88 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('C')); in TEST_F() local
92 ASSERT_TRUE(TryConversion(from, to, &value)); in TEST_F()
101 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('I')); in TEST_F() local
104 ASSERT_TRUE(TryConversion(from, to, &value)); in TEST_F()
113 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('B')); in TEST_F() local
117 ASSERT_FALSE(TryConversion(from, to, &value)); in TEST_F()
127 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('S')); in TEST_F() local
131 ASSERT_FALSE(TryConversion(from, to, &value)); in TEST_F()
141 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('D')); in TEST_F() local
145 ASSERT_FALSE(TryConversion(from, to, &value)); in TEST_F()
155 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('Z')); in TEST_F() local
159 ASSERT_FALSE(TryConversion(from, to, &value)); in TEST_F()
176 Handle<mirror::Class> from = hs.NewHandle(boxed_value->GetClass()); in TEST_F() local
179 ASSERT_TRUE(TryConversion(from, to, &value)); in TEST_F()
192 Handle<mirror::Class> from = hs.NewHandle(boxed_value->GetClass()); in TEST_F() local
196 ASSERT_FALSE(TryConversion(from, to, &value)); in TEST_F()
212 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('I')); in TEST_F() local
214 ASSERT_TRUE(TryConversion(from, to, &value)); in TEST_F()
217 ASSERT_TRUE(UnboxPrimitiveForResult(value.GetL(), from.Get(), &unboxed_to_value)); in TEST_F()
227 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('I')); in TEST_F() local
229 ASSERT_TRUE(TryConversion(from, to, &value)); in TEST_F()
232 ASSERT_TRUE(UnboxPrimitiveForResult(value.GetL(), from.Get(), &unboxed_to_value)); in TEST_F()
242 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('I')); in TEST_F() local
244 ASSERT_FALSE(TryConversion(from, to, &value)); in TEST_F()
256 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('I')); in TEST_F() local
258 ASSERT_FALSE(TryConversion(from, to, &value)); in TEST_F()
270 Handle<mirror::Class> from = hs.NewHandle(cl->FindPrimitiveClass('I')); in TEST_F() local
272 ASSERT_FALSE(TryConversion(from, to, &value)); in TEST_F()
289 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F() local
292 ASSERT_TRUE(TryConversion(from, to, &value)); in TEST_F()
304 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F() local
307 ASSERT_TRUE(TryConversion(from, to, &value)); in TEST_F()
317 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F() local
320 ASSERT_FALSE(TryConversion(from, to, &value)); in TEST_F()
330 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Class;")); in TEST_F() local
335 ASSERT_FALSE(TryConversion(from, to, &value)); in TEST_F()
348 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F() local
351 ASSERT_FALSE(TryConversion(from, to, &value)); in TEST_F()
364 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Number;")); in TEST_F() local
367 ASSERT_FALSE(TryConversion(from, to, &value)); in TEST_F()