Home
last modified time | relevance | path

Searched refs:proxyClass (Results 1 – 9 of 9) 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/guava/guava/src/com/google/common/reflect/
DAbstractInvocationHandler.java130 private static boolean isProxyOfSameInterfaces(Object arg, Class<?> proxyClass) { in isProxyOfSameInterfaces() argument
131 return proxyClass.isInstance(arg) in isProxyOfSameInterfaces()
138 && Arrays.equals(arg.getClass().getInterfaces(), proxyClass.getInterfaces())); in isProxyOfSameInterfaces()
/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/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-mockito-inline/src/main/java/com/android/dx/mockito/inline/
DInlineDexmakerMockMaker.java267 Class<? extends T> proxyClass; in createMock() local
283 proxyClass = builder.buildProxyClass(); in createMock()
291 mock = instantiator.newInstance(proxyClass); in createMock()
294 + proxyClass.getSuperclass().getSimpleName() + "'", e); in createMock()
/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/libchrome/mojo/public/js/
Dbindings.js143 this.proxy_ = new this.interfaceType_.proxyClass(
382 this.proxy_ = new this.interfaceType_.proxyClass(
/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()