Lines Matching refs:hs
66 StackHandleScope<1> hs(self); in AssertString() local
68 hs.NewHandle(String::AllocFromModifiedUtf8(self, expected_utf16_length, utf8_in))); in AssertString()
111 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
112 Handle<ObjectArray<Object>> a1(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 256))); in TEST_F()
121 StackHandleScope<3> hs(soa.Self()); in TEST_F() local
122 Handle<ObjectArray<Object>> oa(hs.NewHandle(AllocObjectArray<Object>(soa.Self(), 2))); in TEST_F()
133 Handle<Class> aioobe = hs.NewHandle( in TEST_F()
147 Handle<mirror::Class> klass(hs.NewHandle(oa->GetClass())); in TEST_F()
157 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
158 MutableHandle<Class> c = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[I")); in TEST_F()
160 MutableHandle<Array> a = hs.NewHandle( in TEST_F()
178 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
179 MutableHandle<Class> c = hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[B")); in TEST_F()
181 MutableHandle<Array> a = hs.NewHandle( in TEST_F()
211 StackHandleScope<2> hs(soa.Self()); in TestPrimitiveArray() local
212 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TestPrimitiveArray()
223 Handle<Class> aioobe = hs.NewHandle( in TestPrimitiveArray()
258 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
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() local
304 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TEST_F()
315 Handle<Class> aioobe = hs.NewHandle( in TEST_F()
334 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
335 Handle<ArrayT> a = hs.NewHandle(ArrayT::Alloc(soa.Self(), 2)); in TEST_F()
346 Handle<Class> aioobe = hs.NewHandle( in TEST_F()
364 StackHandleScope<4> hs(soa.Self()); in TEST_F() local
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()
404 StackHandleScope<3> hs(soa.Self()); in TEST_F() local
405 Handle<mirror::ClassLoader> loader(hs.NewHandle(soa.Decode<ClassLoader>(class_loader))); 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() local
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() local
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() local
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() local
523 Handle<String> string(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "android"))); in TEST_F()
535 StackHandleScope<4> hs(soa.Self()); in TEST_F() local
536 Handle<ClassLoader> class_loader_1(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader_1))); in TEST_F()
537 Handle<ClassLoader> class_loader_2(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader_2))); 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() local
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() local
581 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader))); 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() local
621 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader))); 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() local
661 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader))); 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() local
720 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
753 StackHandleScope<4> hs(soa.Self()); in TEST_F() local
754 Handle<String> s(hs.NewHandle(String::AllocFromModifiedUtf8(soa.Self(), "ABC"))); in TEST_F()
756 Handle<Class> c(hs.NewHandle(s->GetClass())); in TEST_F()
796 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
797 Handle<ClassLoader> class_loader(hs.NewHandle(soa.Decode<ClassLoader>(jclass_loader))); in TEST_F()
799 hs.NewHandle(class_linker_->FindClass(soa.Self(), "LX;", class_loader))); in TEST_F()
857 StackHandleScope<2> hs(soa.Self()); in TEST_F() local
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()