Lines Matching refs:Self
83 StackHandleScope<2> hs(soa.Self()); in TEST_F()
87 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
89 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
95 StackHandleScope<2> hs(soa.Self()); in TEST_F()
100 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
101 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
108 StackHandleScope<2> hs(soa.Self()); in TEST_F()
112 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
113 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
120 StackHandleScope<2> hs(soa.Self()); in TEST_F()
125 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
126 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
127 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
128 soa.Self()->ClearException(); in TEST_F()
134 StackHandleScope<2> hs(soa.Self()); in TEST_F()
139 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
140 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
141 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
142 soa.Self()->ClearException(); in TEST_F()
148 StackHandleScope<2> hs(soa.Self()); in TEST_F()
153 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
154 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
155 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
156 soa.Self()->ClearException(); in TEST_F()
162 StackHandleScope<2> hs(soa.Self()); in TEST_F()
167 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
168 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
169 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
170 soa.Self()->ClearException(); in TEST_F()
180 StackHandleScope<3> hs(soa.Self()); in TEST_F()
185 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Number;")); in TEST_F()
187 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
188 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
197 StackHandleScope<3> hs(soa.Self()); in TEST_F()
201 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
203 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
204 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
205 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
206 ASSERT_TRUE(IsClassCastException(soa.Self()->GetException())); in TEST_F()
207 soa.Self()->ClearException(); in TEST_F()
217 StackHandleScope<2> hs(soa.Self()); in TEST_F()
221 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
222 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
223 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
232 StackHandleScope<2> hs(soa.Self()); in TEST_F()
236 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Number;")); in TEST_F()
237 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
238 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
247 StackHandleScope<2> hs(soa.Self()); in TEST_F()
251 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Runtime;")); in TEST_F()
252 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
253 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
254 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
255 soa.Self()->ClearException(); in TEST_F()
261 StackHandleScope<2> hs(soa.Self()); in TEST_F()
265 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Long;")); in TEST_F()
266 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
267 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
268 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
269 soa.Self()->ClearException(); in TEST_F()
275 StackHandleScope<2> hs(soa.Self()); in TEST_F()
279 Handle<mirror::Class> to = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Byte;")); in TEST_F()
280 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
281 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
282 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
283 soa.Self()->ClearException(); in TEST_F()
293 StackHandleScope<3> hs(soa.Self()); in TEST_F()
297 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
300 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
301 ASSERT_FALSE(soa.Self()->IsExceptionPending()); in TEST_F()
308 StackHandleScope<3> hs(soa.Self()); in TEST_F()
312 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
315 ASSERT_TRUE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
322 StackHandleScope<3> hs(soa.Self()); in TEST_F()
325 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
328 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
329 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
330 ASSERT_TRUE(IsNullPointerException(soa.Self()->GetException())); in TEST_F()
331 soa.Self()->ClearException(); in TEST_F()
337 StackHandleScope<2> hs(soa.Self()); in TEST_F()
338 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Class;")); in TEST_F()
343 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
344 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
345 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
346 soa.Self()->ClearException(); in TEST_F()
352 StackHandleScope<3> hs(soa.Self()); in TEST_F()
356 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Integer;")); in TEST_F()
359 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
360 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
361 ASSERT_TRUE(IsWrongMethodTypeException(soa.Self()->GetException())); in TEST_F()
362 soa.Self()->ClearException(); in TEST_F()
368 StackHandleScope<3> hs(soa.Self()); in TEST_F()
372 Handle<mirror::Class> from = hs.NewHandle(cl->FindSystemClass(soa.Self(), "Ljava/lang/Number;")); in TEST_F()
375 ASSERT_FALSE(TryConversion(soa.Self(), from, to, &value)); in TEST_F()
376 ASSERT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
377 ASSERT_TRUE(IsClassCastException(soa.Self()->GetException())); in TEST_F()
378 soa.Self()->ClearException(); in TEST_F()