Home
last modified time | relevance | path

Searched refs:InvocationHandler (Results 1 – 7 of 7) sorted by relevance

/libcore/support/src/test/java/tests/io/
DMockOs.java19 import java.lang.reflect.InvocationHandler;
37 private final InheritableThreadLocal<Map<String, Deque<InvocationHandler>>> handlers
38 = new InheritableThreadLocal<Map<String, Deque<InvocationHandler>>>() {
39 @Override protected Map<String, Deque<InvocationHandler>> initialValue() {
40 return new HashMap<String, Deque<InvocationHandler>>();
45 private final InvocationHandler delegateHandler = new InvocationHandler() {
55 private final InvocationHandler invocationHandler = new InvocationHandler() {
58 InvocationHandler handler = getHandlers(method.getName()).poll();
88 public Deque<InvocationHandler> getHandlers(String methodName) { in getHandlers()
89 Map<String, Deque<InvocationHandler>> threadFaults = handlers.get(); in getHandlers()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DProxyTest.java19 import java.lang.reflect.InvocationHandler;
48 InvocationHandler invocationHandlerB = (InvocationHandler) loaderB.loadClass( in testClassLoaderDoesNotNeedToSeeInvocationHandlerLoader()
61 public static class TestInvocationHandler implements InvocationHandler {
/libcore/luni/src/test/java/tests/api/java/lang/reflect/
DProxyTest.java20 import java.lang.reflect.InvocationHandler;
51 class Broken1Invoke implements InvocationHandler {
59 protected ProxyCoonstructorTest(InvocationHandler h) { in ProxyCoonstructorTest()
100 assertNotNull(new ProxyCoonstructorTest(new InvocationHandler() { in test_ProxyLjava_lang_reflect_InvocationHandler()
117 Support_Proxy_I2.class }, new InvocationHandler() { in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
207 Proxy fake = new Proxy(new InvocationHandler() { in test_isProxyClassLjava_lang_Class()
234 InvocationHandler handler = new InvocationHandler() { in test_getInvocationHandlerLjava_lang_Object()
299 public static class TestProxyHandler implements InvocationHandler {
/libcore/luni/src/main/java/java/lang/reflect/
DProxy.java49 protected InvocationHandler h;
62 protected Proxy(InvocationHandler h) { in Proxy()
206 Class<?>[] interfaces, InvocationHandler h) in newProxyInstance()
213 new Class<?>[] { InvocationHandler.class }).newInstance( in newProxyInstance()
260 public static InvocationHandler getInvocationHandler(Object proxy) in getInvocationHandler()
277 native private static void constructorPrototype(InvocationHandler h); in constructorPrototype()
DInvocationHandler.java25 public interface InvocationHandler { interface
/libcore/luni/src/main/java/org/apache/harmony/lang/annotation/
DAnnotationFactory.java25 import java.lang.reflect.InvocationHandler;
51 public final class AnnotationFactory implements InvocationHandler, Serializable {
/libcore/luni/src/test/java/libcore/net/http/
DHttpResponseCacheTest.java31 import java.lang.reflect.InvocationHandler;
1483 Deque<InvocationHandler> writeHandlers = mockOs.getHandlers("write"); in testDiskWriteFailureCacheDegradation()
1497 Deque<InvocationHandler> readHandlers = mockOs.getHandlers("read"); in testDiskReadFailureCacheDegradation()