Lines Matching refs:soa

97   ScopedObjectAccess soa(Thread::Current());  in TEST_F()  local
98 StackHandleScope<2> hs(soa.Self()); in TEST_F()
100 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F()
102 Object* clone = a1->Clone(soa.Self()); in TEST_F()
108 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
109 StackHandleScope<2> hs(soa.Self()); in TEST_F()
111 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F()
122 Class* aioobe = class_linker_->FindSystemClass(soa.Self(), in TEST_F()
126 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
127 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()); in TEST_F()
128 soa.Self()->ClearException(); in TEST_F()
131 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
132 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()); in TEST_F()
133 soa.Self()->ClearException(); in TEST_F()
138 EXPECT_EQ(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Cloneable;"), in TEST_F()
139 mirror::Class::GetDirectInterface(soa.Self(), klass, 0)); in TEST_F()
140 EXPECT_EQ(class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;"), in TEST_F()
141 mirror::Class::GetDirectInterface(soa.Self(), klass, 1)); in TEST_F()
145 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
146 Class* c = class_linker_->FindSystemClass(soa.Self(), "[I"); in TEST_F()
147 StackHandleScope<1> hs(soa.Self()); in TEST_F()
149 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(), in TEST_F()
154 c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"); in TEST_F()
155 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(), in TEST_F()
160 c = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;"); in TEST_F()
161 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(), in TEST_F()
168 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
169 Class* c = class_linker_->FindSystemClass(soa.Self(), "[B"); in TEST_F()
170 StackHandleScope<1> hs(soa.Self()); in TEST_F()
172 hs.NewHandle(Array::Alloc<true, true>(soa.Self(), c, 1, c->GetComponentSizeShift(), in TEST_F()
177 c = class_linker_->FindSystemClass(soa.Self(), "[I"); in TEST_F()
178 a.Assign(Array::Alloc<true, true>(soa.Self(), c, 2, c->GetComponentSizeShift(), in TEST_F()
183 c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"); in TEST_F()
184 a.Assign(Array::Alloc<true, true>(soa.Self(), c, 2, c->GetComponentSizeShift(), in TEST_F()
189 c = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;"); in TEST_F()
190 a.Assign(Array::Alloc<true, true>(soa.Self(), c, 2, c->GetComponentSizeShift(), in TEST_F()
198 ScopedObjectAccess soa(Thread::Current()); in TestPrimitiveArray() local
201 ArrayT* a = ArrayT::Alloc(soa.Self(), 2); in TestPrimitiveArray()
212 Class* aioobe = cl->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;"); in TestPrimitiveArray()
215 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TestPrimitiveArray()
216 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()); in TestPrimitiveArray()
217 soa.Self()->ClearException(); in TestPrimitiveArray()
220 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TestPrimitiveArray()
221 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()); in TestPrimitiveArray()
222 soa.Self()->ClearException(); in TestPrimitiveArray()
246 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
249 ArrayT* a = ArrayT::Alloc(soa.Self(), 2); in TEST_F()
260 Class* aioobe = class_linker_->FindSystemClass(soa.Self(), in TEST_F()
264 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
265 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()); in TEST_F()
266 soa.Self()->ClearException(); in TEST_F()
269 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
270 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()); in TEST_F()
271 soa.Self()->ClearException(); in TEST_F()
276 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
279 ArrayT* a = ArrayT::Alloc(soa.Self(), 2); in TEST_F()
290 Class* aioobe = class_linker_->FindSystemClass(soa.Self(), in TEST_F()
294 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
295 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()); in TEST_F()
296 soa.Self()->ClearException(); in TEST_F()
299 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
300 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass()); in TEST_F()
301 soa.Self()->ClearException(); in TEST_F()
307 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
308 Class* java_util_Arrays = class_linker_->FindSystemClass(soa.Self(), "Ljava/util/Arrays;"); in TEST_F()
326 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
328 StackHandleScope<2> hs(soa.Self()); in TEST_F()
329 Handle<Class> c(hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "I"))); in TEST_F()
330 MutableHandle<IntArray> dims(hs.NewHandle(IntArray::Alloc(soa.Self(), 1))); in TEST_F()
332 Array* multi = Array::CreateMultiArray(soa.Self(), c, dims); in TEST_F()
333 EXPECT_TRUE(multi->GetClass() == class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
337 multi = Array::CreateMultiArray(soa.Self(), c, dims); in TEST_F()
338 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
339 EXPECT_EQ(PrettyDescriptor(soa.Self()->GetException()->GetClass()), in TEST_F()
341 soa.Self()->ClearException(); in TEST_F()
343 dims.Assign(IntArray::Alloc(soa.Self(), 2)); in TEST_F()
348 multi = Array::CreateMultiArray(soa.Self(), c, dims); in TEST_F()
349 EXPECT_TRUE(multi->GetClass() == class_linker_->FindSystemClass(soa.Self(), "[[I")); in TEST_F()
353 EXPECT_TRUE(outer->GetClass() == class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
362 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
366 StackHandleScope<2> hs(soa.Self()); in TEST_F()
367 Handle<mirror::ClassLoader> loader(hs.NewHandle(soa.Decode<ClassLoader*>(class_loader))); in TEST_F()
368 Class* klass = class_linker_->FindClass(soa.Self(), "LStaticsFromCode;", loader); in TEST_F()
395 Handle<CharArray> char_array(hs.NewHandle(CharArray::Alloc(soa.Self(), 0))); in TEST_F()
406 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
438 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
439 StackHandleScope<2> hs(soa.Self()); in TEST_F()
440 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
448 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
454 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
455 StackHandleScope<3> hs(soa.Self()); in TEST_F()
456 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
457 Handle<String> string_2(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
465 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
471 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
472 StackHandleScope<5> hs(soa.Self()); in TEST_F()
473 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
474 Handle<String> string_2(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
475 Handle<String> string_3(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "Android"))); in TEST_F()
476 Handle<String> string_4(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "and"))); in TEST_F()
477 Handle<String> string_5(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
488 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
489 StackHandleScope<1> hs(soa.Self()); in TEST_F()
490 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
497 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
502 StackHandleScope<4> hs(soa.Self()); in TEST_F()
503 Handle<ClassLoader> class_loader_1(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader_1))); in TEST_F()
504 Handle<ClassLoader> class_loader_2(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader_2))); in TEST_F()
506 Class* klass1 = linker->FindClass(soa.Self(), "LProtoCompare;", class_loader_1); in TEST_F()
508 Class* klass2 = linker->FindClass(soa.Self(), "LProtoCompare2;", class_loader_2); in TEST_F()
531 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
532 StackHandleScope<3> hs(soa.Self()); in TEST_F()
533 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
534 Handle<String> A(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "A"))); in TEST_F()
535 Handle<String> ABC(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
543 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
545 StackHandleScope<3> hs(soa.Self()); in TEST_F()
546 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader))); in TEST_F()
548 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader); in TEST_F()
549 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader); in TEST_F()
553 Handle<Object> x(hs.NewHandle(X->AllocObject(soa.Self()))); in TEST_F()
554 Handle<Object> y(hs.NewHandle(Y->AllocObject(soa.Self()))); in TEST_F()
563 Class* java_lang_Class = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Class;"); in TEST_F()
564 Class* Object_array_class = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"); in TEST_F()
570 Object* array = ObjectArray<Object>::Alloc(soa.Self(), Object_array_class, 1); in TEST_F()
572 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Cloneable;"); in TEST_F()
574 class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;"); in TEST_F()
580 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
582 StackHandleScope<1> hs(soa.Self()); in TEST_F()
583 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader))); in TEST_F()
584 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader); in TEST_F()
585 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader); in TEST_F()
593 Class* string = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/String;"); in TEST_F()
594 Class* charseq = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/CharSequence;"); in TEST_F()
618 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
620 StackHandleScope<1> hs(soa.Self()); in TEST_F()
621 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader))); in TEST_F()
622 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader); in TEST_F()
623 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader); in TEST_F()
627 Class* YA = class_linker_->FindClass(soa.Self(), "[LY;", class_loader); in TEST_F()
628 Class* YAA = class_linker_->FindClass(soa.Self(), "[[LY;", class_loader); in TEST_F()
632 Class* XAA = class_linker_->FindClass(soa.Self(), "[[LX;", class_loader); in TEST_F()
635 Class* O = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in TEST_F()
636 Class* OA = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"); in TEST_F()
637 Class* OAA = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;"); in TEST_F()
638 Class* OAAA = class_linker_->FindSystemClass(soa.Self(), "[[[Ljava/lang/Object;"); in TEST_F()
644 Class* S = class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;"); in TEST_F()
645 Class* SA = class_linker_->FindSystemClass(soa.Self(), "[Ljava/io/Serializable;"); in TEST_F()
646 Class* SAA = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/io/Serializable;"); in TEST_F()
651 Class* IA = class_linker_->FindSystemClass(soa.Self(), "[I"); in TEST_F()
672 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
673 StackHandleScope<1> hs(soa.Self()); in TEST_F()
674 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
697 c = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/StringBuilder;"); in TEST_F()
706 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
707 StackHandleScope<4> hs(soa.Self()); in TEST_F()
708 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
716 soa.Self(), c, "CASE_INSENSITIVE_ORDER", "I") == nullptr); in TEST_F()
722 mirror::Class::FindStaticField(soa.Self(), c, "cASE_INSENSITIVE_ORDER", in TEST_F()
727 ArtField* f2 = mirror::Class::FindStaticField(soa.Self(), c, "CASE_INSENSITIVE_ORDER", in TEST_F()