/external/javassist/src/test/test/javassist/proxy/ |
D | ProxySerializationTest.java | 43 TestClass newProxy = (TestClass)in.readObject(); in testSerialization() local 45 assertTrue("new name should be null", newProxy.getName() == null); in testSerialization() 47 assertTrue("classes should be equal", newProxy.getClass() == proxy.getClass()); in testSerialization() 70 TestClass newProxy = (TestClass)in.readObject(); in testSerialization() local 72 assertTrue("names should be equal", proxy.getName().equals(newProxy.getName())); in testSerialization() 74 assertTrue("classes should still be equal", newProxy.getClass() == proxy.getClass()); in testSerialization()
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | AbstractInvocationHandlerTest.java | 85 return Reflection.newProxy(List.class, new DelegatingInvocationHandler(delegate)); in newDelegatingList() 90 return Reflection.newProxy(List.class, new DelegatingInvocationHandlerWithEquals(delegate)); in newDelegatingListWithEquals() 95 return Reflection.newProxy(Iterable.class, new DelegatingInvocationHandlerWithEquals(delegate)); in newDelegatingIterableWithEquals() 100 return Reflection.newProxy(List.class, new SubHandler1(delegate)); in newProxyWithSubHandler1() 105 return Reflection.newProxy(List.class, new SubHandler2(delegate)); in newProxyWithSubHandler2()
|
D | ReflectionTest.java | 39 Runnable runnable = Reflection.newProxy(Runnable.class, X_RETURNER); in testNewProxy() 45 Reflection.newProxy(Object.class, X_RETURNER); in testNewProxyCantWorkOnAClass()
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | ForwardingWrapperTester.java | 129 T proxy = Reflection.newProxy(interfaceType, new AbstractInvocationHandler() { in testExceptionPropagation() 151 T instance = generator.newProxy(interfaceType); in testEquals() 154 .addEqualityGroup(wrapperFunction.apply(generator.newProxy(interfaceType))) in testEquals() 161 T proxy = new FreshValueGenerator().newProxy(interfaceType); in testToString() 204 T proxy = Reflection.newProxy(interfaceType, this); in testInteraction()
|
D | DummyProxy.java | 46 final <T> T newProxy(TypeToken<T> interfaceType) { in newProxy() method in DummyProxy
|
D | FreshValueGenerator.java | 219 return newProxy(rawType); in defaultGenerate() 224 final <T> T newProxy(final Class<T> interfaceType) { in newProxy() method in FreshValueGenerator 225 return Reflection.newProxy(interfaceType, new FreshInvocationHandler(interfaceType)); in newProxy()
|
D | NullPointerTester.java | 445 }.newProxy(type);
|
D | ClassSanityTester.java | 745 return new SerializableDummyProxy(this).newProxy(type); in getDummyValue()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | SimpleTimeLimiterTest.java | 121 Sample proxy = service.newProxy( in testGoodMethodWithEnoughTime() 131 Sample proxy = service.newProxy( in testGoodMethodWithNotEnoughTime() 149 Sample proxy = service.newProxy( in testBadMethodWithEnoughTime() 162 Sample proxy = service.newProxy( in testBadMethodWithNotEnoughTime()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | SimpleTimeLimiter.java | 84 public <T> T newProxy(final T target, Class<T> interfaceType, in newProxy() method in SimpleTimeLimiter 115 return newProxy(interfaceType, handler); in newProxy() 189 private static <T> T newProxy( in newProxy() method in SimpleTimeLimiter
|
D | TimeLimiter.java | 78 <T> T newProxy(T target, Class<T> interfaceType, in newProxy() method
|
D | FakeTimeLimiter.java | 39 public <T> T newProxy(T target, Class<T> interfaceType, long timeoutDuration, in newProxy() method in FakeTimeLimiter
|
/external/guava/guava/src/com/google/common/reflect/ |
D | Reflection.java | 86 public static <T> T newProxy( in newProxy() method in Reflection
|
D | Types.java | 329 TypeVariable<D> typeVariable = Reflection.newProxy( in newTypeVariableImpl()
|