Lines Matching refs:Self
118 StackHandleScope<2> hs(soa.Self()); in TEST_F()
120 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F()
122 Object* clone = a1->Clone(soa.Self()); in TEST_F()
129 StackHandleScope<2> hs(soa.Self()); in TEST_F()
131 hs.NewHandle(class_linker_->AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F()
142 Class* aioobe = class_linker_->FindSystemClass(soa.Self(), in TEST_F()
146 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
147 EXPECT_EQ(aioobe, soa.Self()->GetException(NULL)->GetClass()); in TEST_F()
148 soa.Self()->ClearException(); in TEST_F()
151 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
152 EXPECT_EQ(aioobe, soa.Self()->GetException(NULL)->GetClass()); in TEST_F()
153 soa.Self()->ClearException(); in TEST_F()
158 EXPECT_EQ(class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Cloneable;"), in TEST_F()
159 mirror::Class::GetDirectInterface(soa.Self(), klass, 0)); in TEST_F()
160 EXPECT_EQ(class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;"), in TEST_F()
161 mirror::Class::GetDirectInterface(soa.Self(), klass, 1)); in TEST_F()
166 Class* c = class_linker_->FindSystemClass(soa.Self(), "[I"); in TEST_F()
167 StackHandleScope<1> hs(soa.Self()); in TEST_F()
169 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
174 c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"); in TEST_F()
175 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
180 c = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;"); in TEST_F()
181 a.Assign(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
189 Class* c = class_linker_->FindSystemClass(soa.Self(), "[B"); in TEST_F()
190 StackHandleScope<1> hs(soa.Self()); in TEST_F()
192 hs.NewHandle(Array::Alloc<true>(soa.Self(), c, 1, c->GetComponentSize(), in TEST_F()
197 c = class_linker_->FindSystemClass(soa.Self(), "[I"); in TEST_F()
198 a.Assign(Array::Alloc<true>(soa.Self(), c, 2, c->GetComponentSize(), in TEST_F()
203 c = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"); in TEST_F()
204 a.Assign(Array::Alloc<true>(soa.Self(), c, 2, c->GetComponentSize(), in TEST_F()
209 c = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;"); in TEST_F()
210 a.Assign(Array::Alloc<true>(soa.Self(), c, 2, c->GetComponentSize(), in TEST_F()
221 ArrayT* a = ArrayT::Alloc(soa.Self(), 2); in TestPrimitiveArray()
232 Class* aioobe = cl->FindSystemClass(soa.Self(), "Ljava/lang/ArrayIndexOutOfBoundsException;"); in TestPrimitiveArray()
235 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TestPrimitiveArray()
236 EXPECT_EQ(aioobe, soa.Self()->GetException(NULL)->GetClass()); in TestPrimitiveArray()
237 soa.Self()->ClearException(); in TestPrimitiveArray()
240 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TestPrimitiveArray()
241 EXPECT_EQ(aioobe, soa.Self()->GetException(NULL)->GetClass()); in TestPrimitiveArray()
242 soa.Self()->ClearException(); in TestPrimitiveArray()
273 Class* java_util_Arrays = class_linker_->FindSystemClass(soa.Self(), "Ljava/util/Arrays;"); in TEST_F()
292 StackHandleScope<2> hs(soa.Self()); in TEST_F()
293 Handle<Class> c(hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "I"))); in TEST_F()
294 Handle<IntArray> dims(hs.NewHandle(IntArray::Alloc(soa.Self(), 1))); in TEST_F()
296 Array* multi = Array::CreateMultiArray(soa.Self(), c, dims); in TEST_F()
297 EXPECT_TRUE(multi->GetClass() == class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
301 multi = Array::CreateMultiArray(soa.Self(), c, dims); in TEST_F()
302 EXPECT_TRUE(soa.Self()->IsExceptionPending()); in TEST_F()
303 EXPECT_EQ(PrettyDescriptor(soa.Self()->GetException(NULL)->GetClass()), in TEST_F()
305 soa.Self()->ClearException(); in TEST_F()
307 dims.Assign(IntArray::Alloc(soa.Self(), 2)); in TEST_F()
312 multi = Array::CreateMultiArray(soa.Self(), c, dims); in TEST_F()
313 EXPECT_TRUE(multi->GetClass() == class_linker_->FindSystemClass(soa.Self(), "[[I")); in TEST_F()
317 EXPECT_TRUE(outer->GetClass() == class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
331 StackHandleScope<2> hs(soa.Self()); in TEST_F()
333 Class* klass = class_linker_->FindClass(soa.Self(), "LStaticsFromCode;", loader); in TEST_F()
360 Handle<CharArray> char_array(hs.NewHandle(CharArray::Alloc(soa.Self(), 0))); in TEST_F()
396 StackHandleScope<2> hs(soa.Self()); in TEST_F()
397 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
405 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
412 StackHandleScope<3> hs(soa.Self()); in TEST_F()
413 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
414 Handle<String> string_2(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
422 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
429 StackHandleScope<5> hs(soa.Self()); in TEST_F()
430 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
431 Handle<String> string_2(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
432 Handle<String> string_3(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "Android"))); in TEST_F()
433 Handle<String> string_4(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "and"))); in TEST_F()
434 Handle<String> string_5(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
446 StackHandleScope<1> hs(soa.Self()); in TEST_F()
447 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
465 StackHandleScope<4> hs(soa.Self()); in TEST_F()
469 Class* klass1 = linker->FindClass(soa.Self(), "LProtoCompare;", class_loader_1); in TEST_F()
471 Class* klass2 = linker->FindClass(soa.Self(), "LProtoCompare2;", class_loader_2); in TEST_F()
515 StackHandleScope<3> hs(soa.Self()); in TEST_F()
516 Handle<String> empty(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), ""))); in TEST_F()
517 Handle<String> A(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "A"))); in TEST_F()
518 Handle<String> ABC(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
528 StackHandleScope<3> hs(soa.Self()); in TEST_F()
531 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader); in TEST_F()
532 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader); in TEST_F()
536 Handle<Object> x(hs.NewHandle(X->AllocObject(soa.Self()))); in TEST_F()
537 Handle<Object> y(hs.NewHandle(Y->AllocObject(soa.Self()))); in TEST_F()
546 Class* java_lang_Class = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Class;"); in TEST_F()
547 Class* Object_array_class = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"); in TEST_F()
553 Object* array = ObjectArray<Object>::Alloc(soa.Self(), Object_array_class, 1); in TEST_F()
554 Class* java_lang_Cloneable = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Cloneable;"); in TEST_F()
555 …Class* java_io_Serializable = class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;"); in TEST_F()
563 StackHandleScope<1> hs(soa.Self()); in TEST_F()
565 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader); in TEST_F()
566 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader); in TEST_F()
574 Class* string = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/String;"); in TEST_F()
575 Class* charseq = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/CharSequence;"); in TEST_F()
601 StackHandleScope<1> hs(soa.Self()); in TEST_F()
603 Class* X = class_linker_->FindClass(soa.Self(), "LX;", class_loader); in TEST_F()
604 Class* Y = class_linker_->FindClass(soa.Self(), "LY;", class_loader); in TEST_F()
608 Class* YA = class_linker_->FindClass(soa.Self(), "[LY;", class_loader); in TEST_F()
609 Class* YAA = class_linker_->FindClass(soa.Self(), "[[LY;", class_loader); in TEST_F()
613 Class* XAA = class_linker_->FindClass(soa.Self(), "[[LX;", class_loader); in TEST_F()
616 Class* O = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in TEST_F()
617 Class* OA = class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Object;"); in TEST_F()
618 Class* OAA = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Object;"); in TEST_F()
619 Class* OAAA = class_linker_->FindSystemClass(soa.Self(), "[[[Ljava/lang/Object;"); in TEST_F()
625 Class* S = class_linker_->FindSystemClass(soa.Self(), "Ljava/io/Serializable;"); in TEST_F()
626 Class* SA = class_linker_->FindSystemClass(soa.Self(), "[Ljava/io/Serializable;"); in TEST_F()
627 Class* SAA = class_linker_->FindSystemClass(soa.Self(), "[[Ljava/io/Serializable;"); in TEST_F()
632 Class* IA = class_linker_->FindSystemClass(soa.Self(), "[I"); in TEST_F()
654 StackHandleScope<1> hs(soa.Self()); in TEST_F()
655 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
678 c = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/StringBuilder;"); in TEST_F()
688 StackHandleScope<4> hs(soa.Self()); in TEST_F()
689 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
696 EXPECT_TRUE(mirror::Class::FindStaticField(soa.Self(), c, "CASE_INSENSITIVE_ORDER", "I") == NULL); in TEST_F()
701 mirror::Class::FindStaticField(soa.Self(), c, "cASE_INSENSITIVE_ORDER", in TEST_F()
708 mirror::Class::FindStaticField(soa.Self(), c, "CASE_INSENSITIVE_ORDER", in TEST_F()