Searched refs:InvocationHandler (Results 1 – 7 of 7) sorted by relevance
| /libcore/support/src/test/java/tests/io/ |
| D | MockOs.java | 19 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/ |
| D | ProxyTest.java | 20 import java.lang.reflect.InvocationHandler; 49 InvocationHandler invocationHandlerB = (InvocationHandler) loaderB.loadClass( in testClassLoaderDoesNotNeedToSeeInvocationHandlerLoader() 62 public static class TestInvocationHandler implements InvocationHandler { 72 Object proxy = Proxy.newProxyInstance(cl, interfaces, new InvocationHandler() { in test24846()
|
| /libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
| D | ProxyTest.java | 20 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/ |
| D | Proxy.java | 49 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()
|
| D | InvocationHandler.java | 25 public interface InvocationHandler { interface
|
| /libcore/luni/src/main/java/org/apache/harmony/lang/annotation/ |
| D | AnnotationFactory.java | 25 import java.lang.reflect.InvocationHandler; 51 public final class AnnotationFactory implements InvocationHandler, Serializable {
|
| /libcore/luni/src/test/java/libcore/net/http/ |
| D | HttpResponseCacheTest.java | 31 import java.lang.reflect.InvocationHandler; 1483 Deque<InvocationHandler> writeHandlers = mockOs.getHandlers("write"); in testDiskWriteFailureCacheDegradation() 1497 Deque<InvocationHandler> readHandlers = mockOs.getHandlers("read"); in testDiskReadFailureCacheDegradation()
|