Lines Matching refs:soa
114 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
115 StackHandleScope<2> hs(soa.Self()); in TEST_F()
116 Handle<ObjectArray<Object>> a1(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F()
118 ObjPtr<Object> clone = Object::Clone(a1, soa.Self()); in TEST_F()
124 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
125 StackHandleScope<3> hs(soa.Self()); in TEST_F()
126 Handle<ObjectArray<Object>> oa(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F()
138 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TEST_F()
141 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
142 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
143 soa.Self()->ClearException(); in TEST_F()
146 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
147 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
148 soa.Self()->ClearException(); in TEST_F()
153 EXPECT_OBJ_PTR_EQ(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Cloneable;"), in TEST_F()
155 EXPECT_OBJ_PTR_EQ(class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;"), in TEST_F()
160 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
161 StackHandleScope<2> hs(soa.Self()); in TEST_F()
162 MutableHandle<Class> c = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
165 Array::Alloc(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
169 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;")); in TEST_F()
170 a.Assign(Array::Alloc(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
174 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;")); in TEST_F()
175 a.Assign(Array::Alloc(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
181 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
182 StackHandleScope<2> hs(soa.Self()); in TEST_F()
183 MutableHandle<Class> c = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[B")); in TEST_F()
187 soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
191 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
193 soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
197 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;")); in TEST_F()
199 soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
203 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;")); in TEST_F()
205 soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
212 ScopedObjectAccess soa(Thread::Current()); in TestPrimitiveArray() local
215 StackHandleScope<2> hs(soa.Self()); in TestPrimitiveArray()
216 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TestPrimitiveArray()
228 cl->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TestPrimitiveArray()
231 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TestPrimitiveArray()
232 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TestPrimitiveArray()
233 soa.Self()->ClearException(); in TestPrimitiveArray()
236 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TestPrimitiveArray()
237 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TestPrimitiveArray()
238 soa.Self()->ClearException(); in TestPrimitiveArray()
261 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
262 StackHandleScope<2> hs(soa.Self()); in TEST_F()
265 hs.NewHandle(ObjPtr<PointerArray>::DownCast<Array>(IntArray::Alloc(soa.Self(), 1))); in TEST_F()
282 hs.NewHandle(ObjPtr<PointerArray>::DownCast<Array>(LongArray::Alloc(soa.Self(), 1))); in TEST_F()
304 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
307 StackHandleScope<2> hs(soa.Self()); in TEST_F()
308 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TEST_F()
320 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TEST_F()
323 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
324 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
325 soa.Self()->ClearException(); in TEST_F()
328 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
329 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
330 soa.Self()->ClearException(); in TEST_F()
335 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
338 StackHandleScope<2> hs(soa.Self()); in TEST_F()
339 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TEST_F()
351 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TEST_F()
354 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
355 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
356 soa.Self()->ClearException(); in TEST_F()
359 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
360 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
361 soa.Self()->ClearException(); in TEST_F()
366 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
368 StackHandleScope<4> hs(soa.Self()); in TEST_F()
369 Handle<Class> int_class(hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "I"))); in TEST_F()
370 Handle<Class> int_array_class = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
371 MutableHandle<IntArray> dims(hs.NewHandle(IntArray::Alloc(soa.Self(), 1))); in TEST_F()
373 MutableHandle<Array> multi = hs.NewHandle(Array::CreateMultiArray(soa.Self(), int_class, dims)); in TEST_F()
378 multi.Assign(Array::CreateMultiArray(soa.Self(), int_class, dims)); in TEST_F()
379 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
380 EXPECT_EQ(mirror::Class::PrettyDescriptor(soa.Self()->GetException()->GetClass()), in TEST_F()
382 soa.Self()->ClearException(); in TEST_F()
384 dims.Assign(IntArray::Alloc(soa.Self(), 2)); in TEST_F()
389 multi.Assign(Array::CreateMultiArray(soa.Self(), int_class, dims)); in TEST_F()
390 ObjPtr<mirror::Class> expected_class = class_linker_->FindSystemClass(soa.Self(), "[[I"); in TEST_F()
404 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
408 StackHandleScope<3> hs(soa.Self()); in TEST_F()
409 Handle<mirror::ClassLoader> loader(hs.NewHandle(soa.Decode<ClassLoader>(class_loader))); in TEST_F()
411 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticsFromCode;", loader)); in TEST_F()
434 Handle<CharArray> char_array(hs.NewHandle(CharArray::Alloc(soa.Self(), 0))); in TEST_F()
445 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
477 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
478 StackHandleScope<2> hs(soa.Self()); in TEST_F()
479 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
487 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
493 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
494 StackHandleScope<3> hs(soa.Self()); in TEST_F()
495 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
496 Handle<String> string_2(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
504 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
510 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
511 StackHandleScope<5> hs(soa.Self()); in TEST_F()
512 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
513 Handle<String> string_2(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
514 Handle<String> string_3(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "Android"))); in TEST_F()
515 Handle<String> string_4(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "and"))); in TEST_F()
516 Handle<String> string_5(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
527 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
528 StackHandleScope<1> hs(soa.Self()); in TEST_F()
529 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
536 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
541 StackHandleScope<4> hs(soa.Self()); in TEST_F()
542 Handle<ClassLoader> class_loader_1(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader_1))); in TEST_F()
543 Handle<ClassLoader> class_loader_2(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader_2))); in TEST_F()
546 hs.NewHandle(linker->FindClass(soa.Self(), "LProtoCompare;", class_loader_1)); in TEST_F()
549 hs.NewHandle(linker->FindClass(soa.Self(), "LProtoCompare2;", class_loader_2)); in TEST_F()
572 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
573 StackHandleScope<3> hs(soa.Self()); in TEST_F()
574 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
575 Handle<String> A(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "A"))); in TEST_F()
576 Handle<String> ABC(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
584 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
586 StackHandleScope<10> hs(soa.Self()); in TEST_F()
587 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader))); in TEST_F()
589 Handle<Class> X = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader)); in TEST_F()
590 Handle<Class> Y = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LY;", class_loader)); in TEST_F()
594 Handle<Object> x(hs.NewHandle(X->AllocObject(soa.Self()))); in TEST_F()
595 Handle<Object> y(hs.NewHandle(Y->AllocObject(soa.Self()))); in TEST_F()
605 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Class;")); in TEST_F()
607 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;")); in TEST_F()
614 hs.NewHandle<Object>(ObjectArray<Object>::Alloc(soa.Self(), Object_array_class.Get(), 1)); in TEST_F()
616 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Cloneable;")); in TEST_F()
618 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;")); in TEST_F()
624 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
626 StackHandleScope<5> hs(soa.Self()); in TEST_F()
627 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader))); in TEST_F()
628 Handle<Class> X = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader)); in TEST_F()
629 Handle<Class> Y = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LY;", class_loader)); in TEST_F()
638 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/String;")); in TEST_F()
640 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/CharSequence;")); in TEST_F()
664 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
666 StackHandleScope<14> hs(soa.Self()); in TEST_F()
667 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader))); in TEST_F()
668 Handle<Class> X = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader)); in TEST_F()
669 Handle<Class> Y = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LY;", class_loader)); in TEST_F()
673 Handle<Class> YA = hs.NewHandle(class_linker_->FindClass(soa.Self(), "[LY;", class_loader)); in TEST_F()
674 Handle<Class> YAA = hs.NewHandle(class_linker_->FindClass(soa.Self(), "[[LY;", class_loader)); in TEST_F()
678 Handle<Class> XAA = hs.NewHandle(class_linker_->FindClass(soa.Self(), "[[LX;", class_loader)); in TEST_F()
681 Handle<Class> O = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;")); in TEST_F()
683 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;")); in TEST_F()
685 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;")); in TEST_F()
687 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[[Ljava/lang/Object;")); in TEST_F()
694 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;")); in TEST_F()
696 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/io/Serializable;")); in TEST_F()
698 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/io/Serializable;")); in TEST_F()
703 Handle<Class> IA = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
724 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
725 StackHandleScope<1> hs(soa.Self()); in TEST_F()
726 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
749 c = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/StringBuilder;"); in TEST_F()
758 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
759 StackHandleScope<4> hs(soa.Self()); in TEST_F()
760 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
796 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
798 StackHandleScope<2> hs(soa.Self()); in TEST_F()
799 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader))); in TEST_F()
801 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader))); in TEST_F()
819 ObjPtr<Class> Y(class_linker_->FindClass(soa.Self(), "LY;", class_loader)); in TEST_F()
834 soa.Self()->AllowThreadSuspension(); in TEST_F()
856 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
859 StackHandleScope<2> hs(soa.Self()); in TEST_F()
860 Handle<mirror::String> s(hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
863 Handle<mirror::ShortArray> a(hs.NewHandle(mirror::ShortArray::Alloc(soa.Self(), 2))); in TEST_F()
866 ObjPtr<mirror::Class> c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"); in TEST_F()
868 ObjPtr<mirror::Object> o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()