Home | History | Annotate | Download | only in mirror

Lines Matching refs:soa

97   ScopedObjectAccess soa(Thread::Current());
98 StackHandleScope<2> hs(soa.Self());
100 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 256)));
102 Object* clone = a1->Clone(soa.Self());
108 ScopedObjectAccess soa(Thread::Current());
109 StackHandleScope<2> hs(soa.Self());
111 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 2)));
122 Class* aioobe = class_linker_->FindSystemClass(soa.Self(),
126 EXPECT_TRUE(soa.Self()->IsExceptionPending());
127 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass());
128 soa.Self()->ClearException();
131 EXPECT_TRUE(soa.Self()->IsExceptionPending());
132 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass());
133 soa.Self()->ClearException();
138 EXPECT_EQ(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Cloneable;"),
139 mirror::Class::GetDirectInterface(soa.Self(), klass, 0));
140 EXPECT_EQ(class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;"),
141 mirror::Class::GetDirectInterface(soa.Self(), klass, 1));
145 ScopedObjectAccess soa(Thread::Current());
146 Class* c = class_linker_->FindSystemClass(soa.Self(), "[I");
147 StackHandleScope<1> hs(soa.Self());
149 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(),
154 c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;");
155 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(),
160 c = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;");
161 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSizeShift(),
168 ScopedObjectAccess soa(Thread::Current());
169 Class* c = class_linker_->FindSystemClass(soa.Self(), "[B");
170 StackHandleScope<1> hs(soa.Self());
172 hs.NewHandle(Array::Alloc<true, true>(soa.Self(), c, 1, c->GetComponentSizeShift(),
177 c = class_linker_->FindSystemClass(soa.Self(), "[I");
178 a.Assign(Array::Alloc<true, true>(soa.Self(), c, 2, c->GetComponentSizeShift(),
183 c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;");
184 a.Assign(Array::Alloc<true, true>(soa.Self(), c, 2, c->GetComponentSizeShift(),
189 c = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;");
190 a.Assign(Array::Alloc<true, true>(soa.Self(), c, 2, c->GetComponentSizeShift(),
198 ScopedObjectAccess soa(Thread::Current());
201 ArrayT* a = ArrayT::Alloc(soa.Self(), 2);
212 Class* aioobe = cl->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;");
215 EXPECT_TRUE(soa.Self()->IsExceptionPending());
216 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass());
217 soa.Self()->ClearException();
220 EXPECT_TRUE(soa.Self()->IsExceptionPending());
221 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass());
222 soa.Self()->ClearException();
246 ScopedObjectAccess soa(Thread::Current());
249 ArrayT* a = ArrayT::Alloc(soa.Self(), 2);
260 Class* aioobe = class_linker_->FindSystemClass(soa.Self(),
264 EXPECT_TRUE(soa.Self()->IsExceptionPending());
265 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass());
266 soa.Self()->ClearException();
269 EXPECT_TRUE(soa.Self()->IsExceptionPending());
270 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass());
271 soa.Self()->ClearException();
276 ScopedObjectAccess soa(Thread::Current());
279 ArrayT* a = ArrayT::Alloc(soa.Self(), 2);
290 Class* aioobe = class_linker_->FindSystemClass(soa.Self(),
294 EXPECT_TRUE(soa.Self()->IsExceptionPending());
295 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass());
296 soa.Self()->ClearException();
299 EXPECT_TRUE(soa.Self()->IsExceptionPending());
300 EXPECT_EQ(aioobe, soa.Self()->GetException()->GetClass());
301 soa.Self()->ClearException();
307 ScopedObjectAccess soa(Thread::Current());
308 Class* java_util_Arrays = class_linker_->FindSystemClass(soa.Self(), "Ljava/util/Arrays;");
323 ScopedObjectAccess soa(Thread::Current());
325 StackHandleScope<2> hs(soa.Self());
326 Handle<Class> c(hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "I")));
327 MutableHandle<IntArray> dims(hs.NewHandle(IntArray::Alloc(soa.Self(), 1)));
329 Array* multi = Array::CreateMultiArray(soa.Self(), c, dims);
330 EXPECT_TRUE(multi->GetClass() == class_linker_->FindSystemClass(soa.Self(), "[I"));
334 multi = Array::CreateMultiArray(soa.Self(), c, dims);
335 EXPECT_TRUE(soa.Self()->IsExceptionPending());
336 EXPECT_EQ(PrettyDescriptor(soa.Self()->GetException()->GetClass()),
338 soa.Self()->ClearException();
340 dims.Assign(IntArray::Alloc(soa.Self(), 2));
345 multi = Array::CreateMultiArray(soa.Self(), c, dims);
346 EXPECT_TRUE(multi->GetClass() == class_linker_->FindSystemClass(soa.Self(), "[[I"));
350 EXPECT_TRUE(outer->GetClass() == class_linker_->FindSystemClass(soa.Self(), "[I"));
359 ScopedObjectAccess soa(Thread::Current());
363 StackHandleScope<2> hs(soa.Self());
364 Handle<mirror::ClassLoader> loader(hs.NewHandle(soa.Decode<ClassLoader*>(class_loader)));
365 Class* klass = class_linker_->FindClass(soa.Self(), "LStaticsFromCode;", loader);
386 Handle<CharArray> char_array(hs.NewHandle(CharArray::Alloc(soa.Self(), 0)));
397 ScopedObjectAccess soa(Thread::Current());
429 ScopedObjectAccess soa(Thread::Current());
430 StackHandleScope<2> hs(soa.Self());
431 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android")));
439 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "")));
445 ScopedObjectAccess soa(Thread::Current());
446 StackHandleScope<3> hs(soa.Self());
447 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android")));
448 Handle<String> string_2(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android")));
456 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "")));
462 ScopedObjectAccess soa(Thread::Current());
463 StackHandleScope<5> hs(soa.Self());
464 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android")));
465 Handle<String> string_2(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android")));
466 Handle<String> string_3(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "Android")));
467 Handle<String> string_4(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "and")));
468 Handle<String> string_5(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "")));
479 ScopedObjectAccess soa(Thread::Current());
480 StackHandleScope<1> hs(soa.Self());
481 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android")));
488 ScopedObjectAccess soa(Thread::Current());
493 StackHandleScope<4> hs(soa.Self());
494 Handle<ClassLoader> class_loader_1(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader_1)));
495 Handle<ClassLoader> class_loader_2(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader_2)));
497 Class* klass1 = linker->FindClass(soa.Self(), "LProtoCompare;", class_loader_1);
499 Class* klass2 = linker->FindClass(soa.Self(), "LProtoCompare2;", class_loader_2);
522 ScopedObjectAccess soa(Thread::Current());
523 StackHandleScope<3> hs(soa.Self());
524 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "")));
525 Handle<String> A(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "A")));
526 Handle<String> ABC(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC")));
534 ScopedObjectAccess soa(Thread::Current());
536 StackHandleScope<3> hs(soa.Self());
537 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader)));
539 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader);
540 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader);
544 Handle<Object> x(hs.NewHandle(X->AllocObject(soa.Self())));
545 Handle<Object> y(hs.NewHandle(Y->AllocObject(soa.Self())));
554 Class* java_lang_Class = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Class;");
555 Class* Object_array_class = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;");
561 Object* array = ObjectArray<Object>::Alloc(soa.Self(), Object_array_class, 1);
563 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Cloneable;");
565 class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;");
571 ScopedObjectAccess soa(Thread::Current());
573 StackHandleScope<1> hs(soa.Self());
574 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader)));
575 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader);
576 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader);
584 Class* string = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/String;");
585 Class* charseq = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/CharSequence;");
609 ScopedObjectAccess soa(Thread::Current());
611 StackHandleScope<1> hs(soa.Self());
612 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader*>(jclass_loader)));
613 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader);
614 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader);
618 Class* YA = class_linker_->FindClass(soa.Self(), "[LY;", class_loader);
619 Class* YAA = class_linker_->FindClass(soa.Self(), "[[LY;", class_loader);
623 Class* XAA = class_linker_->FindClass(soa.Self(), "[[LX;", class_loader);
626 Class* O = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;");
627 Class* OA = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;");
628 Class* OAA = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;");
629 Class* OAAA = class_linker_->FindSystemClass(soa.Self(), "[[[Ljava/lang/Object;");
635 Class* S = class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;");
636 Class* SA = class_linker_->FindSystemClass(soa.Self(), "[Ljava/io/Serializable;");
637 Class* SAA = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/io/Serializable;");
642 Class* IA = class_linker_->FindSystemClass(soa.Self(), "[I");
663 ScopedObjectAccess soa(Thread::Current());
664 StackHandleScope<1> hs(soa.Self());
665 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC")));
688 c = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/StringBuilder;");
697 ScopedObjectAccess soa(Thread::Current());
698 StackHandleScope<4> hs(soa.Self());
699 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC")));
707 soa.Self(), c, "CASE_INSENSITIVE_ORDER", "I") == nullptr);
713 mirror::Class::FindStaticField(soa.Self(), c, "cASE_INSENSITIVE_ORDER",
718 ArtField* f2 = mirror::Class::FindStaticField(soa.Self(), c, "CASE_INSENSITIVE_ORDER",