HomeSort by relevance Sort by last modified time
    Searched refs:interfaceType (Results 1 - 25 of 204) sorted by null

1 2 3 4 5 6 7 8 9

  /external/guava/guava-testlib/src/com/google/common/testing/
DummyProxy.java 43 * Returns a new proxy for {@code interfaceType}. Proxies of the same interface are equal to each
46 final <T> T newProxy(TypeToken<T> interfaceType) {
48 interfaceClasses.addAll(interfaceType.getTypes().interfaces().rawTypes());
54 new DummyHandler(interfaceType));
55 @SuppressWarnings("unchecked") // interfaceType is T
64 private final TypeToken<?> interfaceType;
66 DummyHandler(TypeToken<?> interfaceType) {
67 this.interfaceType = interfaceType;
72 Invokable<?, ?> invokable = interfaceType.method(method)
    [all...]
ForwardingWrapperTester.java 72 Class<T> interfaceType, Function<? super T, ? extends T> wrapperFunction) {
74 checkArgument(interfaceType.isInterface(), "%s isn't an interface", interfaceType);
75 Method[] methods = getMostConcreteMethods(interfaceType);
99 testSuccessfulForwarding(interfaceType, method, wrapperFunction);
100 testExceptionPropagation(interfaceType, method, wrapperFunction);
103 testEquals(interfaceType, wrapperFunction);
105 testToString(interfaceType, wrapperFunction);
122 Class<T> interfaceType, Method method, Function<? super T, ? extends T> wrapperFunction) {
123 new InteractionTester<T>(interfaceType, method).testInteraction(wrapperFunction)
    [all...]
FreshValueGenerator.java 224 final <T> T newProxy(final Class<T> interfaceType) {
225 return Reflection.newProxy(interfaceType, new FreshInvocationHandler(interfaceType));
230 private final Class<?> interfaceType;
232 FreshInvocationHandler(Class<?> interfaceType) {
233 this.interfaceType = interfaceType;
237 return interfaceMethodCalled(interfaceType, method);
253 return paramString(interfaceType, identity);
259 @SuppressWarnings("unused") Class<?> interfaceType,
    [all...]
ClassSanityTester.java 655 @Override Object interfaceMethodCalled(Class<?> interfaceType, Method method) {
656 return getDummyValue(TypeToken.of(interfaceType).method(method).getReturnType());
    [all...]
  /external/guava/guava/src/com/google/common/reflect/
Reflection.java 77 * Returns a proxy instance that implements {@code interfaceType} by
79 * {@code interfaceType} will be used to define the proxy class. To implement
83 * @throws IllegalArgumentException if {@code interfaceType} does not specify
87 Class<T> interfaceType, InvocationHandler handler) {
89 checkArgument(interfaceType.isInterface(), "%s is not an interface", interfaceType);
91 interfaceType.getClassLoader(),
92 new Class<?>[] { interfaceType },
94 return interfaceType.cast(object);
TypeToken.java 334 for (Type interfaceType : getRawType().getGenericInterfaces()) {
337 resolveSupertype(interfaceType);
    [all...]
  /external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/
ThrowingProviderBinder.java 120 bind(Class<P> interfaceType, Type clazz) {
121 return new SecondaryBinder<P, Object>(interfaceType, clazz);
128 bind(Class<P> interfaceType, Class<T> clazz) {
129 return new SecondaryBinder<P, T>(interfaceType, clazz);
136 bind(Class<P> interfaceType, TypeLiteral<T> typeLiteral) {
137 return new SecondaryBinder<P, T>(interfaceType, typeLiteral.getType());
141 private final Class<P> interfaceType;
151 public SecondaryBinder(Class<P> interfaceType, Type valueType) {
152 this.interfaceType = checkNotNull(interfaceType, "interfaceType")
    [all...]
  /external/guava/guava/src/com/google/common/util/concurrent/
SimpleTimeLimiter.java 84 public <T> T newProxy(final T target, Class<T> interfaceType,
87 checkNotNull(interfaceType);
90 checkArgument(interfaceType.isInterface(),
91 "interfaceType must be an interface type");
94 = findInterruptibleMethods(interfaceType);
115 return newProxy(interfaceType, handler);
168 private static Set<Method> findInterruptibleMethods(Class<?> interfaceType) {
170 for (Method m : interfaceType.getMethods()) {
190 Class<T> interfaceType, InvocationHandler handler) {
191 Object object = Proxy.newProxyInstance(interfaceType.getClassLoader()
    [all...]
FakeTimeLimiter.java 39 public <T> T newProxy(T target, Class<T> interfaceType, long timeoutDuration,
42 checkNotNull(interfaceType);
TimeLimiter.java 48 * Returns an instance of {@code interfaceType} that delegates all method
68 * @param interfaceType the interface you wish the returned proxy to
75 * @throws IllegalArgumentException if {@code interfaceType} is a regular
78 <T> T newProxy(T target, Class<T> interfaceType,
  /frameworks/base/packages/SystemUI/src/com/android/systemui/
SystemUI.java 44 public <T> T getComponent(Class<T> interfaceType) {
45 return (T) (mComponents != null ? mComponents.get(interfaceType) : null);
48 public <T, C extends T> void putComponent(Class<T> interfaceType, C component) {
50 mComponents.put(interfaceType, component);
SystemUIApplication.java 193 public <T> T getComponent(Class<T> interfaceType) {
194 return (T) mComponents.get(interfaceType);
  /system/tools/aidl/
generate_java_binder.cpp 37 StubClass(const Type* type, const InterfaceType* interfaceType,
48 void make_as_interface(const InterfaceType* interfaceType,
54 StubClass::StubClass(const Type* type, const InterfaceType* interfaceType,
62 this->interfaces.push_back(interfaceType);
68 descriptor->value = "\"" + interfaceType->JavaType() + "\"";
86 make_as_interface(interfaceType, types);
122 void StubClass::make_as_interface(const InterfaceType* interfaceType
    [all...]
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
ForwardingObjectTester.java 56 Class<? super T> interfaceType = (Class<? super T>)
58 new ForwardingWrapperTester().testForwarding(interfaceType, new Function<Object, T>() {
  /frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/tethering/
TetherInterfaceStateMachineTest.java 66 private void initStateMachine(int interfaceType) throws Exception {
67 mTestedSm = new TetherInterfaceStateMachine(IFACE_NAME, mLooper.getLooper(), interfaceType,
77 private void initTetheredStateMachine(int interfaceType, String upstreamIface) throws Exception {
78 initStateMachine(interfaceType);
  /frameworks/base/services/core/java/com/android/server/connectivity/tethering/
TetherInterfaceStateMachine.java 95 public TetherInterfaceStateMachine(String ifaceName, Looper looper, int interfaceType,
103 mInterfaceType = interfaceType;
117 public int interfaceType() {
IPv6TetheringCoordinator.java 128 if (sm.interfaceType() == ConnectivityManager.TETHERING_BLUETOOTH) {
  /frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/annotation/
AnnotationClass.java 97 private DeclaredType findInterface(TypeMirror interfaceType) {
100 if (typeUtil.isSameType(interfaceType, typeUtil.erasure(mTypeMirror))) {
107 if (typeUtil.isSameType(interfaceType, typeUtil.erasure(typeMirror))) {
115 L.e("Detected " + interfaceType + " type for " + mTypeMirror +
121 L.e("Found " + interfaceType + " type for " + mTypeMirror +
  /frameworks/base/services/core/java/com/android/server/connectivity/
Tethering.java 267 int interfaceType = ifaceNameToType(iface);
268 if (interfaceType == ConnectivityManager.TETHERING_INVALID) {
275 trackNewTetherableInterface(iface, interfaceType);
278 if (interfaceType == ConnectivityManager.TETHERING_BLUETOOTH) {
340 int interfaceType = ifaceNameToType(iface);
341 if (interfaceType == ConnectivityManager.TETHERING_INVALID) {
348 trackNewTetherableInterface(iface, interfaceType);
    [all...]
  /external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
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);
    [all...]
  /external/guava/guava-testlib/test/com/google/common/testing/anotherpackage/
ForwardingWrapperTesterTest.java 219 Class<T> interfaceType, Function<T, ? extends T> wrapperFunction,
222 tester.testForwarding(interfaceType, wrapperFunction);
  /external/guava/guava-tests/test/com/google/common/reflect/
TypeTokenTest.java 529 TypeToken<Iterable<String>> interfaceType = new TypeToken<Iterable<String>>() {};
530 makeUnmodifiable(TypeToken.of(Types.subtypeOf(interfaceType.getType())).getGenericInterfaces())
531 .has().exactly(interfaceType);
542 for (TypeToken<?> interfaceType:
544 interfaceMap.put(interfaceType.getRawType(), interfaceType.getType());
    [all...]
  /external/libpcap/
pcap-sita.c 569 bpf_u_int32 interfaceType;
609 interfaceType = ntohl(*(bpf_u_int32 *)ptr);
684 newname = translate_IOP_to_pcap_name(u, iff->name, interfaceType); /* add a translation entry and get a point to the mangled name */
    [all...]
  /frameworks/data-binding/compilerCommon/src/main/java/android/databinding/tool/store/
ResourceBundle.java 796 public void setInterfaceType(String interfaceType) {
797 mInterfaceType = interfaceType;
    [all...]
  /frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
LayoutBinderWriter.kt 136 target.interfaceType
802 equals(binding.target.interfaceType)) {
    [all...]

Completed in 6094 milliseconds

1 2 3 4 5 6 7 8 9