Home
last modified time | relevance | path

Searched refs:interfaceType (Results 1 – 21 of 21) sorted by relevance

/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/
DProviderChecker.java20 Class<P> interfaceType, Optional<? extends Type> valueType) { in checkInterface() argument
21 checkArgument(interfaceType.isInterface(), "%s must be an interface", interfaceType.getName()); in checkInterface()
23 interfaceType.getGenericInterfaces().length == 1, in checkInterface()
25 interfaceType); in checkInterface() local
27 boolean tpMode = interfaceType.getInterfaces()[0] == ThrowingProvider.class; in checkInterface()
30 interfaceType.getInterfaces()[0] == CheckedProvider.class, in checkInterface()
32 interfaceType); in checkInterface() local
37 (ParameterizedType) interfaceType.getGenericInterfaces()[0]; in checkInterface()
38 if (interfaceType.getTypeParameters().length == 1) { in checkInterface()
39 String returnTypeName = interfaceType.getTypeParameters()[0].getName(); in checkInterface()
[all …]
DThrowingProviderBinder.java119 Class<P> interfaceType, Type clazz) { in bind() argument
120 return new SecondaryBinder<P, Object>(interfaceType, clazz); in bind()
125 Class<P> interfaceType, Class<T> clazz) { in bind() argument
126 return new SecondaryBinder<P, T>(interfaceType, clazz); in bind()
131 Class<P> interfaceType, TypeLiteral<T> typeLiteral) { in bind() argument
132 return new SecondaryBinder<P, T>(interfaceType, typeLiteral.getType()); in bind()
136 private final Class<P> interfaceType; field in ThrowingProviderBinder.SecondaryBinder
146 public SecondaryBinder(Class<P> interfaceType, Type valueType) { in SecondaryBinder() argument
147 this.interfaceType = checkNotNull(interfaceType, "interfaceType"); in SecondaryBinder()
150 this.exceptionTypes = getExceptionType(interfaceType); in SecondaryBinder()
[all …]
/external/guava/guava-testlib/src/com/google/common/testing/
DForwardingWrapperTester.java72 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 …]
DDummyProxy.java46 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()
DFreshValueGenerator.java224 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()
DClassSanityTester.java655 @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/
DSimpleTimeLimiter.java84 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 …]
DFakeTimeLimiter.java39 public <T> T newProxy(T target, Class<T> interfaceType, long timeoutDuration, in newProxy() argument
42 checkNotNull(interfaceType); in newProxy()
DTimeLimiter.java78 <T> T newProxy(T target, Class<T> interfaceType, in newProxy() argument
/external/guava/guava/src/com/google/common/reflect/
DReflection.java87 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()
DTypeToken.java334 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/libchrome/mojo/public/js/
Dbindings.js39 function InterfacePtrController(interfaceType, ptrInfoOrHandle) { argument
42 this.interfaceType_ = interfaceType;
183 function Binding(interfaceType, impl, requestOrHandle) { argument
184 this.interfaceType_ = interfaceType;
265 function BindingSetEntry(bindingSet, interfaceType, bindingType, impl, argument
269 this.binding_ = new bindingType(interfaceType, impl,
281 function BindingSet(interfaceType) { argument
282 this.interfaceType_ = interfaceType;
360 function AssociatedInterfacePtrController(interfaceType, associatedPtrInfo) { argument
363 this.interfaceType_ = interfaceType;
[all …]
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DClassProto.java143 for (String interfaceType: getClassDef().getInterfaces()) {
144 if (!interfaces.containsKey(interfaceType)) {
147 interfaceDef = classPath.getClassDef(interfaceType);
148 interfaces.put(interfaceType, interfaceDef);
150 interfaces.put(interfaceType, null);
151 unresolvedInterfaces.add(interfaceType);
155 … ClassProto interfaceProto = (ClassProto) classPath.getClass(interfaceType);
231 for (String interfaceType: getClassDef().getInterfaces()) {
232 if (!interfaces.containsKey(interfaceType)) {
233 … ClassProto interfaceProto = (ClassProto)classPath.getClass(interfaceType);
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DForwardingObjectTester.java56 Class<? super T> interfaceType = (Class<? super T>) in testForwardingObject() local
58 new ForwardingWrapperTester().testForwarding(interfaceType, new Function<Object, T>() { in testForwardingObject()
/external/desugar/java/com/google/devtools/common/options/
DGenericTypeHelper.java97 for (Type interfaceType : rawType.getGenericInterfaces()) { in getActualReturnType()
98 candidate = matchTypeVariable(interfaceType, variable); in getActualReturnType()
/external/guava/guava-testlib/test/com/google/common/testing/anotherpackage/
DForwardingWrapperTesterTest.java219 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/
DTypeTokenTest.java529 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/mockito/src/test/java/org/mockito/internal/util/reflection/
DFieldInitializerTest.java31 private Interface interfaceType; field in FieldInitializerTest
/external/libpcap/
Dpcap-sita.c574 bpf_u_int32 interfaceType; in process_client_data() local
620 interfaceType = ntohl(*(bpf_u_int32 *)ptr); in process_client_data()
705 …newname = translate_IOP_to_pcap_name(u, iff->name, interfaceType); /* add a translation entry and… in process_client_data()
/external/oj-libjdwp/src/share/classes/com/sun/tools/jdi/
DVirtualMachineImpl.java864 InterfaceTypeImpl interfaceType(long ref) { in interfaceType() method in VirtualMachineImpl
/external/oj-libjdwp/make/data/jdwp/
Djdwp.spec1309 (interfaceType clazz "The interface type ID.")