/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/ |
D | ThrowingProviderBinder.java | 120 bind(Class<P> interfaceType, Type clazz) { in bind() argument 121 return new SecondaryBinder<P, Object>(interfaceType, clazz); in bind() 128 bind(Class<P> interfaceType, Class<T> clazz) { in bind() argument 129 return new SecondaryBinder<P, T>(interfaceType, clazz); in bind() 136 bind(Class<P> interfaceType, TypeLiteral<T> typeLiteral) { in bind() argument 137 return new SecondaryBinder<P, T>(interfaceType, typeLiteral.getType()); in bind() 141 private final Class<P> interfaceType; field in ThrowingProviderBinder.SecondaryBinder 151 public SecondaryBinder(Class<P> interfaceType, Type valueType) { in SecondaryBinder() argument 152 this.interfaceType = checkNotNull(interfaceType, "interfaceType"); in SecondaryBinder() 155 this.exceptionTypes = getExceptionType(interfaceType); in SecondaryBinder() [all …]
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | ForwardingWrapperTester.java | 72 Class<T> interfaceType, Function<? super T, ? extends T> wrapperFunction) { in testForwarding() argument 74 checkArgument(interfaceType.isInterface(), "%s isn't an interface", interfaceType); in testForwarding() local 75 Method[] methods = getMostConcreteMethods(interfaceType); in testForwarding() 99 testSuccessfulForwarding(interfaceType, method, wrapperFunction); in testForwarding() 100 testExceptionPropagation(interfaceType, method, wrapperFunction); in testForwarding() 103 testEquals(interfaceType, wrapperFunction); in testForwarding() 105 testToString(interfaceType, wrapperFunction); in testForwarding() 122 Class<T> interfaceType, Method method, Function<? super T, ? extends T> wrapperFunction) { in testSuccessfulForwarding() argument 123 new InteractionTester<T>(interfaceType, method).testInteraction(wrapperFunction); in testSuccessfulForwarding() 127 Class<T> interfaceType, Method method, Function<? super T, ? extends T> wrapperFunction) { in testExceptionPropagation() argument [all …]
|
D | DummyProxy.java | 46 final <T> T newProxy(TypeToken<T> interfaceType) { in newProxy() argument 48 interfaceClasses.addAll(interfaceType.getTypes().interfaces().rawTypes()); in newProxy() 54 new DummyHandler(interfaceType)); in newProxy() 64 private final TypeToken<?> interfaceType; field in DummyProxy.DummyHandler 66 DummyHandler(TypeToken<?> interfaceType) { in DummyHandler() argument 67 this.interfaceType = interfaceType; in DummyHandler() 72 Invokable<?, ?> invokable = interfaceType.method(method); in handleInvocation() 80 return dummyReturnValue(interfaceType.resolveType(method.getGenericReturnType())); in handleInvocation() 101 return "Dummy proxy for " + interfaceType; in toString() 107 return new DummyHandler(TypeToken.of(interfaceType.getRawType())); in writeReplace()
|
D | FreshValueGenerator.java | 224 final <T> T newProxy(final Class<T> interfaceType) { in newProxy() argument 225 return Reflection.newProxy(interfaceType, new FreshInvocationHandler(interfaceType)); in newProxy() 230 private final Class<?> interfaceType; field in FreshValueGenerator.FreshInvocationHandler 232 FreshInvocationHandler(Class<?> interfaceType) { in FreshInvocationHandler() argument 233 this.interfaceType = interfaceType; in FreshInvocationHandler() 237 return interfaceMethodCalled(interfaceType, method); in handleInvocation() 253 return paramString(interfaceType, identity); in toString() 259 @SuppressWarnings("unused") Class<?> interfaceType, in interfaceMethodCalled()
|
D | ClassSanityTester.java | 655 @Override Object interfaceMethodCalled(Class<?> interfaceType, Method method) { in newFreshValueGenerator() 656 return getDummyValue(TypeToken.of(interfaceType).method(method).getReturnType()); in newFreshValueGenerator()
|
/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() argument 87 checkNotNull(interfaceType); in newProxy() 90 checkArgument(interfaceType.isInterface(), in newProxy() 94 = findInterruptibleMethods(interfaceType); in newProxy() 115 return newProxy(interfaceType, handler); in newProxy() 168 private static Set<Method> findInterruptibleMethods(Class<?> interfaceType) { in findInterruptibleMethods() argument 170 for (Method m : interfaceType.getMethods()) { in findInterruptibleMethods() 190 Class<T> interfaceType, InvocationHandler handler) { in newProxy() argument 191 Object object = Proxy.newProxyInstance(interfaceType.getClassLoader(), in newProxy() 192 new Class<?>[] { interfaceType }, handler); in newProxy() [all …]
|
D | FakeTimeLimiter.java | 39 public <T> T newProxy(T target, Class<T> interfaceType, long timeoutDuration, in newProxy() argument 42 checkNotNull(interfaceType); in newProxy()
|
D | TimeLimiter.java | 78 <T> T newProxy(T target, Class<T> interfaceType, in newProxy() argument
|
/external/guava/guava/src/com/google/common/reflect/ |
D | Reflection.java | 87 Class<T> interfaceType, InvocationHandler handler) { in newProxy() argument 89 checkArgument(interfaceType.isInterface(), "%s is not an interface", interfaceType); in newProxy() local 91 interfaceType.getClassLoader(), in newProxy() 92 new Class<?>[] { interfaceType }, in newProxy() 94 return interfaceType.cast(object); in newProxy()
|
D | TypeToken.java | 334 for (Type interfaceType : getRawType().getGenericInterfaces()) { in getGenericInterfaces() 337 resolveSupertype(interfaceType); in getGenericInterfaces() 1142 for (K interfaceType : getInterfaces(type)) { 1143 aboveMe = Math.max(aboveMe, collectTypes(interfaceType, map));
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | ForwardingObjectTester.java | 56 Class<? super T> interfaceType = (Class<? super T>) in testForwardingObject() local 58 new ForwardingWrapperTester().testForwarding(interfaceType, new Function<Object, T>() { in testForwardingObject()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/ |
D | ClassProto.java | 135 for (String interfaceType: getClassDef().getInterfaces()) { 136 if (!interfaces.containsKey(interfaceType)) { 139 interfaceDef = classPath.getClassDef(interfaceType); 140 interfaces.put(interfaceType, interfaceDef); 142 interfaces.put(interfaceType, null); 146 … ClassProto interfaceProto = (ClassProto) classPath.getClass(interfaceType);
|
/external/guava/guava-testlib/test/com/google/common/testing/anotherpackage/ |
D | ForwardingWrapperTesterTest.java | 219 Class<T> interfaceType, Function<T, ? extends T> wrapperFunction, in assertFailure() argument 222 tester.testForwarding(interfaceType, wrapperFunction); in assertFailure()
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | TypeTokenTest.java | 529 TypeToken<Iterable<String>> interfaceType = new TypeToken<Iterable<String>>() {}; in testGetGenericInterfaces_wildcard_boundIsInterface() local 530 makeUnmodifiable(TypeToken.of(Types.subtypeOf(interfaceType.getType())).getGenericInterfaces()) in testGetGenericInterfaces_wildcard_boundIsInterface() 531 .has().exactly(interfaceType); in testGetGenericInterfaces_wildcard_boundIsInterface() 542 for (TypeToken<?> interfaceType: in testGetGenericInterfaces_withInterfaces() 544 interfaceMap.put(interfaceType.getRawType(), interfaceType.getType()); in testGetGenericInterfaces_withInterfaces() 1626 for (Class<?> interfaceType : Object[].class.getInterfaces()) { in arrayInterfaces() 1627 builder.add(TypeToken.of(interfaceType)); in arrayInterfaces()
|
/external/libpcap/ |
D | pcap-sita.c | 569 bpf_u_int32 interfaceType; local 609 interfaceType = ntohl(*(bpf_u_int32 *)ptr); 684 …newname = translate_IOP_to_pcap_name(u, iff->name, interfaceType); /* add a translation entry and…
|