Lines Matching refs:soa

73   ScopedObjectAccess soa(Thread::Current());  in TEST_F()  local
75 StackHandleScope<2> hs(soa.Self()); in TEST_F()
81 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
85 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
87 StackHandleScope<2> hs(soa.Self()); in TEST_F()
93 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_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
110 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
112 StackHandleScope<2> hs(soa.Self()); in TEST_F()
118 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
119 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
120 soa.Self()->ClearException(); in TEST_F()
124 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
126 StackHandleScope<2> hs(soa.Self()); in TEST_F()
132 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
133 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
134 soa.Self()->ClearException(); in TEST_F()
138 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
140 StackHandleScope<2> hs(soa.Self()); in TEST_F()
146 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
147 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
148 soa.Self()->ClearException(); in TEST_F()
152 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
154 StackHandleScope<2> hs(soa.Self()); in TEST_F()
160 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
161 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
162 soa.Self()->ClearException(); in TEST_F()
170 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
172 StackHandleScope<3> hs(soa.Self()); in TEST_F()
177 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Number;")); in TEST_F()
180 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
187 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
189 StackHandleScope<3> hs(soa.Self()); in TEST_F()
193 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
195 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
197 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
198 ASSERT_TRUE(IsClassCastException(soa.Self()->GetException())); in TEST_F()
199 soa.Self()->ClearException(); in TEST_F()
207 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
209 StackHandleScope<2> hs(soa.Self()); in TEST_F()
213 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
215 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
222 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
224 StackHandleScope<2> hs(soa.Self()); in TEST_F()
228 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Number;")); in TEST_F()
230 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
237 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
239 StackHandleScope<2> hs(soa.Self()); in TEST_F()
243 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Runtime;")); in TEST_F()
245 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
246 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
247 soa.Self()->ClearException(); in TEST_F()
251 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
253 StackHandleScope<2> hs(soa.Self()); in TEST_F()
257 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Long;")); in TEST_F()
259 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
260 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
261 soa.Self()->ClearException(); in TEST_F()
265 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
267 StackHandleScope<2> hs(soa.Self()); in TEST_F()
271 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Byte;")); in TEST_F()
273 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
274 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
275 soa.Self()->ClearException(); in TEST_F()
283 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
285 StackHandleScope<3> hs(soa.Self()); in TEST_F()
289 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
293 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
298 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
300 StackHandleScope<3> hs(soa.Self()); in TEST_F()
304 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
312 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
314 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()
321 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
322 ASSERT_TRUE(IsNullPointerException(soa.Self()->GetException())); in TEST_F()
323 soa.Self()->ClearException(); in TEST_F()
327 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
329 StackHandleScope<2> hs(soa.Self()); in TEST_F()
330 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Class;")); in TEST_F()
336 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
337 ASSERT_TRUE(IsClassCastException(soa.Self()->GetException())); in TEST_F()
338 soa.Self()->ClearException(); in TEST_F()
342 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
344 StackHandleScope<3> hs(soa.Self()); in TEST_F()
348 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
352 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
353 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
354 soa.Self()->ClearException(); in TEST_F()
358 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
360 StackHandleScope<3> hs(soa.Self()); in TEST_F()
364 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Number;")); in TEST_F()
368 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
369 ASSERT_TRUE(IsClassCastException(soa.Self()->GetException())); in TEST_F()
370 soa.Self()->ClearException(); in TEST_F()