Lines Matching refs:soa
34 mirror::Class* GenerateProxyClass(ScopedObjectAccess& soa, jobject jclass_loader, in GenerateProxyClass() argument
38 … mirror::Class* javaLangObject = class_linker_->FindSystemClass(soa.Self(), "Ljava/lang/Object;"); in GenerateProxyClass()
41 jclass javaLangClass = soa.AddLocalReference<jclass>(mirror::Class::GetJavaLangClass()); in GenerateProxyClass()
44 jobjectArray proxyClassInterfaces = soa.Env()->NewObjectArray(interfaces.size(), javaLangClass, in GenerateProxyClass()
46 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
48 soa.Env()->SetObjectArrayElement(proxyClassInterfaces, i, in GenerateProxyClass()
49 soa.AddLocalReference<jclass>(interfaces[i])); in GenerateProxyClass()
57 jobjectArray proxyClassMethods = soa.Env()->NewObjectArray( in GenerateProxyClass()
58 methods_count, soa.AddLocalReference<jclass>(mirror::Method::StaticClass()), nullptr); in GenerateProxyClass()
59 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
66 soa.Env()->SetObjectArrayElement( in GenerateProxyClass()
67 proxyClassMethods, array_index++, soa.AddLocalReference<jobject>( in GenerateProxyClass()
68 mirror::Method::CreateFromArtMethod(soa.Self(), method))); in GenerateProxyClass()
71 soa.Env()->SetObjectArrayElement( in GenerateProxyClass()
72 proxyClassMethods, array_index++, soa.AddLocalReference<jobject>( in GenerateProxyClass()
73 mirror::Method::CreateFromArtMethod(soa.Self(), method))); in GenerateProxyClass()
77 soa.Env()->SetObjectArrayElement( in GenerateProxyClass()
78 proxyClassMethods, array_index++, soa.AddLocalReference<jobject>( in GenerateProxyClass()
79 mirror::Method::CreateFromArtMethod(soa.Self(), method))); in GenerateProxyClass()
83 soa.Env()->SetObjectArrayElement( in GenerateProxyClass()
84 proxyClassMethods, array_index++, soa.AddLocalReference<jobject>( in GenerateProxyClass()
85 mirror::Method::CreateFromArtMethod(soa.Self(), &m))); in GenerateProxyClass()
91 jobjectArray proxyClassThrows = soa.Env()->NewObjectArray(0, javaLangClass, nullptr); in GenerateProxyClass()
92 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
95 soa, soa.Env()->NewStringUTF(className), proxyClassInterfaces, jclass_loader, in GenerateProxyClass()
97 soa.Self()->AssertNoPendingException(); in GenerateProxyClass()
104 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
106 StackHandleScope<4> hs(soa.Self()); in TEST_F()
108 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(jclass_loader))); in TEST_F()
111 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
113 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
121 GenerateProxyClass(soa, jclass_loader, "$Proxy1234", interfaces))); in TEST_F()
128 EXPECT_EQ(I.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class, 0)); in TEST_F()
129 EXPECT_EQ(J.Get(), mirror::Class::GetDirectInterface(soa.Self(), proxy_class, 1)); in TEST_F()
138 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
140 StackHandleScope<9> hs(soa.Self()); in TEST_F()
142 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(jclass_loader))); in TEST_F()
145 class_linker_->FindClass(soa.Self(), "LInterfaces$I;", class_loader))); in TEST_F()
147 class_linker_->FindClass(soa.Self(), "LInterfaces$J;", class_loader))); in TEST_F()
156 proxyClass = hs.NewHandle(GenerateProxyClass(soa, jclass_loader, "$Proxy1234", interfaces)); in TEST_F()
171 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[Ljava/lang/Class;"))); in TEST_F()
174 hs.NewHandle(class_linker_->FindSystemClass(soa.Self(), "[[Ljava/lang/Class;"))); in TEST_F()
197 ScopedObjectAccess soa(Thread::Current()); in TEST_F() local
199 StackHandleScope<7> hs(soa.Self()); in TEST_F()
201 hs.NewHandle(soa.Decode<mirror::ClassLoader*>(jclass_loader))); in TEST_F()
207 proxyClass0 = hs.NewHandle(GenerateProxyClass(soa, jclass_loader, "$Proxy0", interfaces)); in TEST_F()
208 proxyClass1 = hs.NewHandle(GenerateProxyClass(soa, jclass_loader, "$Proxy1", interfaces)); in TEST_F()
231 hs.NewHandle(mirror::Field::CreateFromArtField(soa.Self(), &static_fields0[0], true)); in TEST_F()
233 hs.NewHandle(mirror::Field::CreateFromArtField(soa.Self(), &static_fields0[1], true)); in TEST_F()
235 hs.NewHandle(mirror::Field::CreateFromArtField(soa.Self(), &static_fields1[0], true)); in TEST_F()
237 hs.NewHandle(mirror::Field::CreateFromArtField(soa.Self(), &static_fields1[1], true)); in TEST_F()