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 = a1->Clone(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<true>(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<true>(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<true>(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()
182 Array::Alloc<true, true>(soa.Self(), c.Get(), 1, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
186 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
188 Array::Alloc<true, true>(soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
192 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;")); in TEST_F()
194 Array::Alloc<true, true>(soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
198 c.Assign(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;")); in TEST_F()
200 Array::Alloc<true, true>(soa.Self(), c.Get(), 2, c->GetComponentSizeShift(), allocator_type)); in TEST_F()
210 StackHandleScope<2> hs(soa.Self()); in TestPrimitiveArray()
211 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TestPrimitiveArray()
223 cl->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TestPrimitiveArray()
226 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TestPrimitiveArray()
227 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TestPrimitiveArray()
228 soa.Self()->ClearException(); 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()
260 StackHandleScope<2> hs(soa.Self()); in TEST_F()
261 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TEST_F()
273 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TEST_F()
276 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
277 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
278 soa.Self()->ClearException(); in TEST_F()
281 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
282 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
283 soa.Self()->ClearException(); in TEST_F()
291 StackHandleScope<2> hs(soa.Self()); in TEST_F()
292 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TEST_F()
304 class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;")); in TEST_F()
307 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
308 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
309 soa.Self()->ClearException(); in TEST_F()
312 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
313 EXPECT_OBJ_PTR_EQ(aioobe.Get(), soa.Self()->GetException()->GetClass()); in TEST_F()
314 soa.Self()->ClearException(); in TEST_F()
321 StackHandleScope<4> hs(soa.Self()); in TEST_F()
322 Handle<Class> int_class(hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "I"))); in TEST_F()
323 Handle<Class> int_array_class = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
324 MutableHandle<IntArray> dims(hs.NewHandle(IntArray::Alloc(soa.Self(), 1))); in TEST_F()
326 MutableHandle<Array> multi = hs.NewHandle(Array::CreateMultiArray(soa.Self(), int_class, dims)); in TEST_F()
331 multi.Assign(Array::CreateMultiArray(soa.Self(), int_class, dims)); in TEST_F()
332 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
333 EXPECT_EQ(mirror::Class::PrettyDescriptor(soa.Self()->GetException()->GetClass()), in TEST_F()
335 soa.Self()->ClearException(); in TEST_F()
337 dims.Assign(IntArray::Alloc(soa.Self(), 2)); in TEST_F()
342 multi.Assign(Array::CreateMultiArray(soa.Self(), int_class, dims)); in TEST_F()
343 ObjPtr<mirror::Class> expected_class = class_linker_->FindSystemClass(soa.Self(), "[[I"); in TEST_F()
361 StackHandleScope<3> hs(soa.Self()); in TEST_F()
364 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LStaticsFromCode;", loader)); in TEST_F()
385 Handle<CharArray> char_array(hs.NewHandle(CharArray::Alloc(soa.Self(), 0))); in TEST_F()
429 StackHandleScope<2> hs(soa.Self()); in TEST_F()
430 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
438 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
445 StackHandleScope<3> hs(soa.Self()); in TEST_F()
446 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
447 Handle<String> string_2(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
455 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
462 StackHandleScope<5> hs(soa.Self()); in TEST_F()
463 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
464 Handle<String> string_2(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
465 Handle<String> string_3(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "Android"))); in TEST_F()
466 Handle<String> string_4(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "and"))); in TEST_F()
467 Handle<String> string_5(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
479 StackHandleScope<1> hs(soa.Self()); in TEST_F()
480 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
492 StackHandleScope<4> hs(soa.Self()); in TEST_F()
497 hs.NewHandle(linker->FindClass(soa.Self(), "LProtoCompare;", class_loader_1)); in TEST_F()
500 hs.NewHandle(linker->FindClass(soa.Self(), "LProtoCompare2;", class_loader_2)); in TEST_F()
524 StackHandleScope<3> hs(soa.Self()); in TEST_F()
525 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
526 Handle<String> A(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "A"))); in TEST_F()
527 Handle<String> ABC(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
537 StackHandleScope<10> hs(soa.Self()); in TEST_F()
540 Handle<Class> X = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader)); in TEST_F()
541 Handle<Class> Y = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LY;", class_loader)); in TEST_F()
545 Handle<Object> x(hs.NewHandle(X->AllocObject(soa.Self()))); in TEST_F()
546 Handle<Object> y(hs.NewHandle(Y->AllocObject(soa.Self()))); in TEST_F()
556 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Class;")); in TEST_F()
558 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;")); in TEST_F()
565 hs.NewHandle<Object>(ObjectArray<Object>::Alloc(soa.Self(), Object_array_class.Get(), 1)); in TEST_F()
567 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Cloneable;")); in TEST_F()
569 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;")); in TEST_F()
577 StackHandleScope<5> hs(soa.Self()); in TEST_F()
579 Handle<Class> X = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader)); in TEST_F()
580 Handle<Class> Y = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LY;", class_loader)); in TEST_F()
589 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/String;")); in TEST_F()
591 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/CharSequence;")); in TEST_F()
617 StackHandleScope<14> hs(soa.Self()); in TEST_F()
619 Handle<Class> X = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader)); in TEST_F()
620 Handle<Class> Y = hs.NewHandle(class_linker_->FindClass(soa.Self(), "LY;", class_loader)); in TEST_F()
624 Handle<Class> YA = hs.NewHandle(class_linker_->FindClass(soa.Self(), "[LY;", class_loader)); in TEST_F()
625 Handle<Class> YAA = hs.NewHandle(class_linker_->FindClass(soa.Self(), "[[LY;", class_loader)); in TEST_F()
629 Handle<Class> XAA = hs.NewHandle(class_linker_->FindClass(soa.Self(), "[[LX;", class_loader)); in TEST_F()
632 Handle<Class> O = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;")); in TEST_F()
634 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;")); in TEST_F()
636 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;")); in TEST_F()
638 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[[Ljava/lang/Object;")); in TEST_F()
645 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;")); in TEST_F()
647 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/io/Serializable;")); in TEST_F()
649 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/io/Serializable;")); in TEST_F()
654 Handle<Class> IA = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
676 StackHandleScope<1> hs(soa.Self()); in TEST_F()
677 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
700 c = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/StringBuilder;"); in TEST_F()
710 StackHandleScope<4> hs(soa.Self()); in TEST_F()
711 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
719 soa.Self(), c.Get(), "CASE_INSENSITIVE_ORDER", "I") == nullptr); in TEST_F()
726 soa.Self(), c.Get(), "cASE_INSENSITIVE_ORDER", "Ljava/util/Comparator;") == nullptr); in TEST_F()
731 soa.Self(), c.Get(), "CASE_INSENSITIVE_ORDER", "Ljava/util/Comparator;"); in TEST_F()
753 StackHandleScope<2> hs(soa.Self()); in TEST_F()
756 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader))); in TEST_F()
774 ObjPtr<Class> Y(class_linker_->FindClass(soa.Self(), "LY;", class_loader)); in TEST_F()
789 soa.Self()->AllowThreadSuspension(); in TEST_F()
814 StackHandleScope<2> hs(soa.Self()); in TEST_F()
815 Handle<mirror::String> s(hs.NewHandle(mirror::String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
818 Handle<mirror::ShortArray> a(hs.NewHandle(mirror::ShortArray::Alloc(soa.Self(), 2))); in TEST_F()
821 ObjPtr<mirror::Class> c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/String;"); in TEST_F()
823 ObjPtr<mirror::Object> o = mirror::ObjectArray<mirror::String>::Alloc(soa.Self(), c, 0); in TEST_F()