Home
last modified time | relevance | path

Searched refs:TypeResolver (Results 1 – 25 of 30) sorted by relevance

12

/external/guava/guava-tests/test/com/google/common/reflect/
DTypeResolverTest.java35 assertEquals(t, new TypeResolver().resolveType(t)); in testWhere_noMapping()
40 assertEquals(String.class, new TypeResolver().where(t, String.class).resolveType(t)); in testWhere_typeVariableMapping()
47 new TypeResolver().where(t1, t2).where(t2, String.class).resolveType(t1)); in testWhere_indirectMapping()
51 TypeResolver resolver = new TypeResolver(); in testWhere_typeVariableSelfMapping()
57 TypeResolver resolver = new TypeResolver(); in testWhere_parameterizedSelfMapping()
63 TypeResolver resolver = new TypeResolver(); in testWhere_genericArraySelfMapping()
69 TypeResolver resolver = new TypeResolver(); in testWhere_rawClassSelfMapping()
75 TypeResolver resolver = new TypeResolver(); in testWhere_wildcardSelfMapping()
82 TypeResolver resolver = new TypeResolver().where(t, String.class); in testWhere_duplicateMapping()
92 assertEquals(t2, new TypeResolver().where(t1, t2).resolveType(t1)); in testWhere_recursiveMapping()
[all …]
DTypeTokenResolutionTest.java122 TypeResolver typeResolver = TypeResolver.accordingTo(parameterized.getClass());
/external/tensorflow/tensorflow/core/framework/
Dvariant_encode_decode.h47 struct TypeResolver {}; struct
51 void EncodeVariantImpl(const T& value, TypeResolver<T, true /* is_pod */>, in EncodeVariantImpl()
59 TypeResolver<T, false /* is_pod */, true /* Tensor */>, in EncodeVariantImpl()
68 TypeResolver<T, false /* is_pod */, false /* Tensor */, in EncodeVariantImpl()
77 TypeResolver<T, false /* is_pod */, false /* Tensor */, in EncodeVariantImpl()
86 TypeResolver<T, true /* is_pod */, false /* Tensor */, in DecodeVariantImpl()
95 TypeResolver<T, false /* is_pod */, true /* Tensor */, in DecodeVariantImpl()
105 TypeResolver<T, false /* is_pod */, false /* Tensor */, in DecodeVariantImpl()
116 TypeResolver<T, false /* is_pod */, false /* Tensor */, in DecodeVariantImpl()
223 EncodeVariantImpl(value, TypeResolver<T>(), data);
[all …]
/external/protobuf/src/google/protobuf/util/
Djson_util.h69 TypeResolver* resolver,
76 TypeResolver* resolver, const string& type_url, in BinaryToJsonStream()
84 TypeResolver* resolver,
90 inline util::Status BinaryToJsonString(TypeResolver* resolver, in BinaryToJsonString()
105 TypeResolver* resolver,
111 TypeResolver* resolver,
Dtype_resolver.h54 class LIBPROTOBUF_EXPORT TypeResolver {
56 TypeResolver() {} in TypeResolver() function
57 virtual ~TypeResolver() {} in ~TypeResolver()
68 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeResolver);
Djson_util.cc73 util::Status BinaryToJsonStream(TypeResolver* resolver, in BinaryToJsonStream()
94 util::Status BinaryToJsonString(TypeResolver* resolver, in BinaryToJsonString()
141 util::Status JsonToBinaryStream(TypeResolver* resolver, in JsonToBinaryStream()
165 util::Status JsonToBinaryString(TypeResolver* resolver, in JsonToBinaryString()
Dtype_resolver_util.h41 class TypeResolver; variable
45 LIBPROTOBUF_EXPORT TypeResolver* NewTypeResolverForDescriptorPool(
Dtype_resolver_util.cc68 class DescriptorPoolTypeResolver : public TypeResolver {
252 TypeResolver* NewTypeResolverForDescriptorPool(const string& url_prefix, in NewTypeResolverForDescriptorPool()
Djson_util_test.cc88 google::protobuf::scoped_ptr<TypeResolver> resolver_;
Dtype_resolver_util_test.cc156 google::protobuf::scoped_ptr<TypeResolver> resolver_;
/external/guava/guava/src/com/google/common/reflect/
DTypeResolver.java55 public final class TypeResolver { class
59 public TypeResolver() { in TypeResolver() method in TypeResolver
63 private TypeResolver(TypeTable typeTable) { in TypeResolver() method in TypeResolver
67 static TypeResolver accordingTo(Type type) { in accordingTo()
68 return new TypeResolver().where(TypeMappingIntrospector.getTypeMappings(type)); in accordingTo()
90 public TypeResolver where(Type formal, Type actual) { in where()
97 TypeResolver where(Map<TypeVariableKey, ? extends Type> mappings) { in where()
98 return new TypeResolver(typeTable.where(mappings)); in where()
267 Type[] resolvedBounds = new TypeResolver(forDependants).resolveTypes(bounds); in resolveInternal()
304 return new TypeResolver(forDependants).resolveType(type); in resolveInternal()
DTypeToken.java100 private transient TypeResolver typeResolver;
215 TypeResolver resolver = new TypeResolver() in where()
217 new TypeResolver.TypeVariableKey(typeParam.typeVariable), in where()
251 TypeResolver resolver = typeResolver; in resolveType()
253 resolver = (typeResolver = TypeResolver.accordingTo(runtimeType)); in resolveType()
718 return of(new TypeResolver().resolveType(runtimeType));
1040 return new TypeResolver().where(supertypeWithArgsFromSubtype, runtimeType)
/external/tensorflow/tensorflow/java/src/gen/cc/
Dop_specs.cc44 class TypeResolver { class
46 explicit TypeResolver(const OpDef& op_def) : op_def_(op_def) {} in TypeResolver() function in tensorflow::java::__anon9ce4e5540111::TypeResolver
92 Type TypeResolver::TypeOf(const OpDef_ArgDef& arg_def, bool* iterable_out) { in TypeOf()
128 std::pair<Type, Type> TypeResolver::TypesOf(const OpDef_AttrDef& attr_def, in TypesOf()
287 TypeResolver* type_resolver) { in CreateInput()
303 TypeResolver* type_resolver) { in CreateAttribute()
322 TypeResolver* type_resolver) { in CreateOutput()
357 TypeResolver type_resolver(op_def); in Create()
/external/protobuf/src/google/protobuf/util/internal/
Dtype_info.cc53 explicit TypeInfoForTypeResolver(TypeResolver* type_resolver) in TypeInfoForTypeResolver()
150 TypeResolver* type_resolver_;
164 TypeInfo* TypeInfo::NewTypeInfo(TypeResolver* type_resolver) { in NewTypeInfo()
Dtype_info.h81 static TypeInfo* NewTypeInfo(TypeResolver* type_resolver);
Dtype_info_test_helper.h90 google::protobuf::scoped_ptr<TypeResolver> type_resolver_;
Dprotostream_objectwriter.h96 ProtoStreamObjectWriter(TypeResolver* type_resolver,
Ddefault_value_objectwriter.h82 DefaultValueObjectWriter(TypeResolver* type_resolver,
Dprotostream_objectsource.h78 TypeResolver* type_resolver,
Dproto_writer.h78 ProtoWriter(TypeResolver* type_resolver, const google::protobuf::Type& type,
/external/grpc-grpc/test/cpp/qps/
Dparse_json.cc32 std::unique_ptr<google::protobuf::util::TypeResolver> type_resolver( in ParseJson()
51 std::unique_ptr<google::protobuf::util::TypeResolver> type_resolver( in SerializeJson()
/external/protobuf/conformance/
Dconformance_cpp.cc49 using google::protobuf::util::TypeResolver;
60 TypeResolver* type_resolver;
Dconformance_test.h170 google::protobuf::internal::scoped_ptr<google::protobuf::util::TypeResolver>
/external/jsilver/src/com/google/clearsilver/jsilver/syntax/
DSyntaxTreeBuilder.java73 protected final Switch typeResolver = new TypeResolver();
DTypeResolver.java75 public class TypeResolver extends DepthFirstAdapter { class

12