Lines Matching refs:interfaces
29 // Generate a proxy class with the given name and interfaces. This is a simplification from what
30 // libcore does to fit to our test needs. We do not check for duplicated interfaces or methods and
34 const std::vector<mirror::Class*>& interfaces)
41 // Builds the interfaces array.
42 jobjectArray proxyClassInterfaces = soa.Env()->NewObjectArray(interfaces.size(), javaLangClass,
45 for (size_t i = 0; i < interfaces.size(); ++i) {
47 soa.AddLocalReference<jclass>(interfaces[i]));
52 for (mirror::Class* interface : interfaces) {
82 // Now adds all interfaces virtual methods.
83 for (mirror::Class* interface : interfaces) {
111 jobject jclass_loader = LoadDex("Interfaces");
123 std::vector<mirror::Class*> interfaces;
124 interfaces.push_back(I.Get());
125 interfaces.push_back(J.Get());
127 GenerateProxyClass(soa, jclass_loader, "$Proxy1234", interfaces)));
128 interfaces.clear(); // Don't least possibly stale objects in the array as good practice.
133 EXPECT_EQ(2U, proxy_class->NumDirectInterfaces()); // Interfaces$I and Interfaces$J.
145 jobject jclass_loader = LoadDex("Interfaces");
159 std::vector<mirror::Class*> interfaces;
160 interfaces.push_back(I.Get());
161 interfaces.push_back(J.Get());
162 proxyClass = hs.NewHandle(GenerateProxyClass(soa, jclass_loader, "$Proxy1234", interfaces));
185 // Test "Class[] interfaces" field.
187 EXPECT_EQ("interfaces", std::string(fh.GetField()->GetName()));