Lines Matching refs:Self

111   StackHandleScope<2> hs(soa.Self());  in TEST_F()
112 Handle<ObjectArray<Object>> a1(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F()
114 ObjPtr<Object> clone = Object::Clone(a1, soa.Self()); in TEST_F()
121 StackHandleScope<3> hs(soa.Self()); in TEST_F()
122 Handle<ObjectArray<Object>> oa(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F()
134 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TEST_F()
137 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
138 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
139 soa.Self()->ClearException(); in TEST_F()
142 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
143 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
144 soa.Self()->ClearException(); in TEST_F()
149 EXPECT_OBJ_PTR_EQ(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Cloneable;"), in TEST_F()
150 mirror::Class::GetDirectInterface(soa.Self(), klass.Get(), 0)); in TEST_F()
151 EXPECT_OBJ_PTR_EQ(class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;"), in TEST_F()
152 mirror::Class::GetDirectInterface(soa.Self(), klass.Get(), 1)); in TEST_F()
157 StackHandleScope<2> hs(soa.Self()); in TEST_F()
158 MutableHandle<Class> c = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
161 Array::Alloc(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
165 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;")); in TEST_F()
166 a.Assign(Array::Alloc(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
170 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;")); in TEST_F()
171 a.Assign(Array::Alloc(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
178 StackHandleScope<2> hs(soa.Self()); in TEST_F()
179 MutableHandle<Class> c = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[B")); in TEST_F()
183 soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
187 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
189 soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
193 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;")); in TEST_F()
195 soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
199 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;")); in TEST_F()
201 soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
211 StackHandleScope<2> hs(soa.Self()); in TestPrimitiveArray()
212 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TestPrimitiveArray()
224 cl->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TestPrimitiveArray()
227 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TestPrimitiveArray()
228 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TestPrimitiveArray()
229 soa.Self()->ClearException(); in TestPrimitiveArray()
232 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TestPrimitiveArray()
233 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TestPrimitiveArray()
234 soa.Self()->ClearException(); in TestPrimitiveArray()
258 StackHandleScope<2> hs(soa.Self()); in TEST_F()
261 hs.NewHandle(ObjPtr<PointerArray>::DownCast<Array>(IntArray::Alloc(soa.Self(), 1))); in TEST_F()
278 hs.NewHandle(ObjPtr<PointerArray>::DownCast<Array>(LongArray::Alloc(soa.Self(), 1))); in TEST_F()
303 StackHandleScope<2> hs(soa.Self()); in TEST_F()
304 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TEST_F()
316 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TEST_F()
319 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
320 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
321 soa.Self()->ClearException(); in TEST_F()
324 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
325 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
326 soa.Self()->ClearException(); in TEST_F()
334 StackHandleScope<2> hs(soa.Self()); in TEST_F()
335 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TEST_F()
347 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TEST_F()
350 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
351 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
352 soa.Self()->ClearException(); in TEST_F()
355 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
356 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
357 soa.Self()->ClearException(); in TEST_F()
364 StackHandleScope<4> hs(soa.Self()); in TEST_F()
365 Handle<Class> int_class(hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "I"))); in TEST_F()
366 Handle<Class> int_array_class = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
367 MutableHandle<IntArray> dims(hs.NewHandle(IntArray::Alloc(soa.Self(), 1))); in TEST_F()
369 MutableHandle<Array> multi = hs.NewHandle(Array::CreateMultiArray(soa.Self(), int_class, dims)); in TEST_F()
374 multi.Assign(Array::CreateMultiArray(soa.Self(), int_class, dims)); in TEST_F()
375 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
376 EXPECT_EQ(mirror::Class::PrettyDescriptor(soa.Self()->GetException()->GetClass()), in TEST_F()
378 soa.Self()->ClearException(); in TEST_F()
380 dims.Assign(IntArray::Alloc(soa.Self(), 2)); in TEST_F()
385 multi.Assign(Array::CreateMultiArray(soa.Self(), int_class, dims)); in TEST_F()
386 ObjPtr<mirror::Class> expected_class = class_linker_->FindSystemClass(soa.Self(), "[[I"); in TEST_F()
404 StackHandleScope<3> hs(soa.Self()); in TEST_F()
407 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticsFromCode;", loader)); in TEST_F()
428 Handle<CharArray> char_array(hs.NewHandle(CharArray::Alloc(soa.Self(), 0))); in TEST_F()
472 StackHandleScope<2> hs(soa.Self()); in TEST_F()
473 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
481 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
488 StackHandleScope<3> hs(soa.Self()); in TEST_F()
489 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
490 Handle<String> string_2(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
498 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
505 StackHandleScope<5> hs(soa.Self()); in TEST_F()
506 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
507 Handle<String> string_2(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
508 Handle<String> string_3(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "Android"))); in TEST_F()
509 Handle<String> string_4(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "and"))); in TEST_F()
510 Handle<String> string_5(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
522 StackHandleScope<1> hs(soa.Self()); in TEST_F()
523 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
535 StackHandleScope<4> hs(soa.Self()); in TEST_F()
540 hs.NewHandle(linker->FindClass(soa.Self(), "LProtoCompare;", class_loader_1)); in TEST_F()
543 hs.NewHandle(linker->FindClass(soa.Self(), "LProtoCompare2;", class_loader_2)); in TEST_F()
567 StackHandleScope<3> hs(soa.Self()); in TEST_F()
568 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
569 Handle<String> A(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "A"))); in TEST_F()
570 Handle<String> ABC(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
580 StackHandleScope<10> hs(soa.Self()); in TEST_F()
583 Handle<Class> X = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader)); in TEST_F()
584 Handle<Class> Y = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LY;", class_loader)); in TEST_F()
588 Handle<Object> x(hs.NewHandle(X->AllocObject(soa.Self()))); in TEST_F()
589 Handle<Object> y(hs.NewHandle(Y->AllocObject(soa.Self()))); in TEST_F()
599 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Class;")); in TEST_F()
601 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;")); in TEST_F()
608 hs.NewHandle<Object>(ObjectArray<Object>::Alloc(soa.Self(), Object_array_class.Get(), 1)); in TEST_F()
610 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Cloneable;")); in TEST_F()
612 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;")); in TEST_F()
620 StackHandleScope<5> hs(soa.Self()); in TEST_F()
622 Handle<Class> X = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader)); in TEST_F()
623 Handle<Class> Y = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LY;", class_loader)); in TEST_F()
632 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/String;")); in TEST_F()
634 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/CharSequence;")); in TEST_F()
660 StackHandleScope<14> hs(soa.Self()); in TEST_F()
662 Handle<Class> X = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader)); in TEST_F()
663 Handle<Class> Y = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LY;", class_loader)); in TEST_F()
667 Handle<Class> YA = hs.NewHandle(class_linker_->FindClass(soa.Self(), "[LY;", class_loader)); in TEST_F()
668 Handle<Class> YAA = hs.NewHandle(class_linker_->FindClass(soa.Self(), "[[LY;", class_loader)); in TEST_F()
672 Handle<Class> XAA = hs.NewHandle(class_linker_->FindClass(soa.Self(), "[[LX;", class_loader)); in TEST_F()
675 Handle<Class> O = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;")); in TEST_F()
677 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;")); in TEST_F()
679 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;")); in TEST_F()
681 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[[Ljava/lang/Object;")); in TEST_F()
688 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;")); in TEST_F()
690 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/io/Serializable;")); in TEST_F()
692 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/io/Serializable;")); in TEST_F()
697 Handle<Class> IA = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
719 StackHandleScope<1> hs(soa.Self()); in TEST_F()
720 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
743 c = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/StringBuilder;"); in TEST_F()
753 StackHandleScope<4> hs(soa.Self()); in TEST_F()
754 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
762 soa.Self(), c.Get(), "CASE_INSENSITIVE_ORDER", "I") == nullptr); in TEST_F()
769 soa.Self(), c.Get(), "cASE_INSENSITIVE_ORDER", "Ljava/util/Comparator;") == nullptr); in TEST_F()
774 soa.Self(), c.Get(), "CASE_INSENSITIVE_ORDER", "Ljava/util/Comparator;"); in TEST_F()
796 StackHandleScope<2> hs(soa.Self()); in TEST_F()
799 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader))); in TEST_F()
817 ObjPtr<Class> Y(class_linker_->FindClass(soa.Self(), "LY;", class_loader)); in TEST_F()
832 soa.Self()->AllowThreadSuspension(); in TEST_F()
857 StackHandleScope<2> hs(soa.Self()); in TEST_F()
858 Handle<mirror::String> s(hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
861 Handle<mirror::ShortArray> a(hs.NewHandle(mirror::ShortArray::Alloc(soa.Self(), 2))); in TEST_F()
864 ObjPtr<mirror::Class> c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"); in TEST_F()
866 ObjPtr<mirror::Object> o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()