Home
last modified time | relevance | path

Searched refs:proxyClass (Results 1 – 16 of 16) sorted by relevance

/external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
DByteBuddyCrossClassLoaderSerializationSupport.java272 … Class<?> proxyClass = ((ClassCreatingMockMaker) Plugins.getMockMaker()).createMockType( in resolveClass() local
278 hackClassNameToMatchNewlyCreatedClass(desc, proxyClass); in resolveClass()
279 return proxyClass; in resolveClass()
307 …sNameToMatchNewlyCreatedClass(ObjectStreamClass descInstance, Class<?> proxyClass) throws ObjectSt… in hackClassNameToMatchNewlyCreatedClass() argument
310 setField(descInstance, classNameField,proxyClass.getCanonicalName()); in hackClassNameToMatchNewlyCreatedClass()
/external/javassist/src/test/test/javassist/proxy/
DProxySerializationTest.java26 Class proxyClass = factory.createClass(new TestFilter()); in testSerialization() local
34 Constructor constructor = proxyClass.getConstructor(new Class[] {String.class}); in testSerialization()
57 proxyClass = factory.createClass(new TestFilter()); in testSerialization()
61 Constructor constructor = proxyClass.getConstructor(new Class[] {String.class}); in testSerialization()
DProxyCacheGCTest.java105 Class proxyClass = factory.createClass(); in createProxy() local
106 Object target = proxyClass.getConstructor().newInstance(); in createProxy()
/external/guava/android/guava/src/com/google/common/reflect/
DAbstractInvocationHandler.java135 private static boolean isProxyOfSameInterfaces(Object arg, Class<?> proxyClass) { in isProxyOfSameInterfaces() argument
136 return proxyClass.isInstance(arg) in isProxyOfSameInterfaces()
143 && Arrays.equals(arg.getClass().getInterfaces(), proxyClass.getInterfaces())); in isProxyOfSameInterfaces()
/external/guava/guava/src/com/google/common/reflect/
DAbstractInvocationHandler.java135 private static boolean isProxyOfSameInterfaces(Object arg, Class<?> proxyClass) { in isProxyOfSameInterfaces() argument
136 return proxyClass.isInstance(arg) in isProxyOfSameInterfaces()
143 && Arrays.equals(arg.getClass().getInterfaces(), proxyClass.getInterfaces())); in isProxyOfSameInterfaces()
/external/javassist/src/test/javassist/proxyfactory/
DProxyFactoryTest.java20 Class proxyClass = fact.createClass(); in testMethodHandlers() local
25 MyCls myCls = (MyCls) proxyClass.getConstructor().newInstance(); in testMethodHandlers()
37 Class proxyClass = fact.createClass(); in testSerialize() local
42 MyCls myCls = (MyCls) proxyClass.getConstructor().newInstance(); in testSerialize()
/external/javassist/src/main/javassist/util/proxy/
DProxyObjectInputStream.java88 Class<?> proxyClass = factory.createClass(signature); in readClassDescriptor() local
89 return ObjectStreamClass.lookup(proxyClass); in readClassDescriptor()
DProxyFactory.java365 Reference<Class<?>> proxyClass; field in ProxyFactory.ProxyDetails
372 ProxyDetails(byte[] signature, Class<?> proxyClass, boolean isUseWriteReplace) in ProxyDetails() argument
375 this.proxyClass = new WeakReference<Class<?>>(proxyClass); in ProxyDetails()
581 Reference<Class<?>> reference = details.proxyClass; in createClass2()
1005 private static void setInterfaces(ClassFile cf, Class<?>[] interfaces, Class<?> proxyClass) { in setInterfaces() argument
1006 String setterIntf = proxyClass.getName(); in setInterfaces()
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DProxyMaker.java77 … final Class<?> proxyClass = UNSAFE.defineAnonymousClass(targetClass, writer.toByteArray(), null); in createProxyFactory() local
80 final Field field = proxyClass.getDeclaredField(TARGET_FIELD); in createProxyFactory()
84 Object proxy = UNSAFE.allocateInstance(proxyClass); in createProxyFactory()
/external/dexmaker/dexmaker/src/main/java/com/android/dx/stock/
DProxyBuilder.java236 Class<? extends T> proxyClass = buildProxyClass(); in build() local
239 constructor = proxyClass.getConstructor(constructorArgTypes); in build()
282 Class<? extends T> proxyClass = (Class) generatedProxyClasses.get(cacheKey); in buildProxyClass() local
283 if (proxyClass != null) { in buildProxyClass()
284 return proxyClass; // cache hit! in buildProxyClass()
340 proxyClass = loadClass(classLoader, generatedName); in buildProxyClass()
349 setMethodsStaticField(proxyClass, methodsToProxy); in buildProxyClass()
350 generatedProxyClasses.put(cacheKey, proxyClass); in buildProxyClass()
351 return proxyClass; in buildProxyClass()
375 private static void setMethodsStaticField(Class<?> proxyClass, Method[] methodsToProxy) { in setMethodsStaticField() argument
[all …]
/external/dexmaker/dexmaker-mockito/src/main/java/com/android/dx/mockito/
DDexmakerMockMaker.java114 Class<? extends T> proxyClass = builder.buildProxyClass(); in createMock() local
115 T mock = unsafeAllocator.newInstance(proxyClass); in createMock()
/external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DInlineDexmakerMockMaker.java269 Class<? extends T> proxyClass; in createMock() local
285 proxyClass = builder.buildProxyClass(); in createMock()
293 mock = instantiator.newInstance(proxyClass); in createMock()
296 + proxyClass.getSuperclass().getSimpleName() + "'", e); in createMock()
/external/libchrome/mojo/public/js/
Dbindings.js143 this.proxy_ = new this.interfaceType_.proxyClass(
382 this.proxy_ = new this.interfaceType_.proxyClass(
/external/javassist/src/test/testproxy/
DProxyFactoryPerformanceTest.java111 Class proxyClass = factory.createClass(); in callCreateClass() local
/external/libchrome/mojo/public/tools/bindings/generators/js_templates/
Dinterface_definition.tmpl221 proxyClass: {{interface.name}}Proxy,
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/stock/
DProxyBuilderTest.java1122 Class<?> proxyClass = proxyFor(parentClass).buildProxyClass(); in getMethodsForProxyClass() local
1124 for (Field f : proxyClass.getDeclaredFields()) { in getMethodsForProxyClass()