Lines Matching refs:soa
86 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
88 StackHandleScope<2> hs(soa.Self()); in TEST_F()
92 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
94 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
98 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
100 StackHandleScope<2> hs(soa.Self()); in TEST_F()
105 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
106 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
111 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
113 StackHandleScope<2> hs(soa.Self()); in TEST_F()
117 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
118 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
123 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
125 StackHandleScope<2> hs(soa.Self()); in TEST_F()
130 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
131 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
132 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
133 soa.Self()->ClearException(); in TEST_F()
137 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
139 StackHandleScope<2> hs(soa.Self()); in TEST_F()
144 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
145 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
146 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
147 soa.Self()->ClearException(); in TEST_F()
151 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
153 StackHandleScope<2> hs(soa.Self()); in TEST_F()
158 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
159 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
160 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
161 soa.Self()->ClearException(); in TEST_F()
165 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
167 StackHandleScope<2> hs(soa.Self()); in TEST_F()
172 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
173 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
174 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
175 soa.Self()->ClearException(); in TEST_F()
183 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
185 StackHandleScope<3> hs(soa.Self()); in TEST_F()
190 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Number;")); in TEST_F()
192 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
193 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
200 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
202 StackHandleScope<3> hs(soa.Self()); in TEST_F()
206 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
208 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
209 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
210 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
211 ASSERT_TRUE(IsClassCastException(soa.Self()->GetException())); in TEST_F()
212 soa.Self()->ClearException(); in TEST_F()
220 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
222 StackHandleScope<2> hs(soa.Self()); in TEST_F()
226 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
227 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
228 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
235 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
237 StackHandleScope<2> hs(soa.Self()); in TEST_F()
241 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Number;")); in TEST_F()
242 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
243 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
250 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
252 StackHandleScope<2> hs(soa.Self()); in TEST_F()
256 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Runtime;")); in TEST_F()
257 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
258 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
259 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
260 soa.Self()->ClearException(); in TEST_F()
264 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
266 StackHandleScope<2> hs(soa.Self()); in TEST_F()
270 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Long;")); in TEST_F()
271 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
272 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
273 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
274 soa.Self()->ClearException(); in TEST_F()
278 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
280 StackHandleScope<2> hs(soa.Self()); in TEST_F()
284 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Byte;")); in TEST_F()
285 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
286 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
287 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
288 soa.Self()->ClearException(); in TEST_F()
296 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
298 StackHandleScope<3> hs(soa.Self()); in TEST_F()
302 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
305 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
306 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
311 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
313 StackHandleScope<3> hs(soa.Self()); in TEST_F()
317 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
320 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
325 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
327 StackHandleScope<3> hs(soa.Self()); in TEST_F()
330 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
333 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
334 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
335 ASSERT_TRUE(IsNullPointerException(soa.Self()->GetException())); in TEST_F()
336 soa.Self()->ClearException(); in TEST_F()
340 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
342 StackHandleScope<2> hs(soa.Self()); in TEST_F()
343 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Class;")); in TEST_F()
348 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
349 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
350 ASSERT_TRUE(IsClassCastException(soa.Self()->GetException())); in TEST_F()
351 soa.Self()->ClearException(); in TEST_F()
355 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
357 StackHandleScope<3> hs(soa.Self()); in TEST_F()
361 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
364 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
365 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
366 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
367 soa.Self()->ClearException(); in TEST_F()
371 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
373 StackHandleScope<3> hs(soa.Self()); in TEST_F()
377 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Number;")); in TEST_F()
380 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
381 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
382 ASSERT_TRUE(IsClassCastException(soa.Self()->GetException())); in TEST_F()
383 soa.Self()->ClearException(); in TEST_F()