Home
last modified time | relevance | path

Searched refs:TypeResolver (Results 1 – 25 of 34) 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 String.class, 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()
93 assertEquals(t2, new TypeResolver().where(t1, t2).resolveType(t1)); in testWhere_recursiveMapping()
[all …]
/external/guava/android/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 String.class, 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()
93 assertEquals(t2, new TypeResolver().where(t1, t2).resolveType(t1)); in testWhere_recursiveMapping()
[all …]
/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.h122 TypeResolver* resolver, const std::string& type_url,
127 TypeResolver* resolver, const std::string& type_url, in BinaryToJsonStream()
135 TypeResolver* resolver, const std::string& type_url,
139 inline util::Status BinaryToJsonString(TypeResolver* resolver, in BinaryToJsonString()
153 TypeResolver* resolver, const std::string& type_url,
158 TypeResolver* resolver, const std::string& type_url, in JsonToBinaryStream()
166 TypeResolver* resolver, const std::string& type_url,
170 inline util::Status JsonToBinaryString(TypeResolver* resolver, in JsonToBinaryString()
Dtype_resolver.h52 class PROTOBUF_EXPORT TypeResolver {
54 TypeResolver() {} in TypeResolver() function
55 virtual ~TypeResolver() {} in ~TypeResolver()
66 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeResolver);
Djson_util.cc85 util::Status BinaryToJsonStream(TypeResolver* resolver, in BinaryToJsonStream()
113 util::Status BinaryToJsonString(TypeResolver* resolver, in BinaryToJsonString()
176 util::Status JsonToBinaryStream(TypeResolver* resolver, in JsonToBinaryStream()
207 util::Status JsonToBinaryString(TypeResolver* resolver, in JsonToBinaryString()
220 TypeResolver* generated_type_resolver_ = NULL;
236 TypeResolver* GetGeneratedTypeResolver() { in GetGeneratedTypeResolver()
246 TypeResolver* resolver = in MessageToJsonString()
262 TypeResolver* resolver = in JsonStringToMessage()
Dtype_resolver_util.h42 class TypeResolver; variable
48 PROTOBUF_EXPORT TypeResolver* NewTypeResolverForDescriptorPool(
Dtype_resolver_util.cc71 class DescriptorPoolTypeResolver : public TypeResolver {
366 TypeResolver* NewTypeResolverForDescriptorPool(const std::string& url_prefix, in NewTypeResolverForDescriptorPool()
Djson_util_test.cc85 std::unique_ptr<TypeResolver> resolver_;
626 TypeResolver* resolver = NewTypeResolverForDescriptorPool( in TEST_F()
/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
74 static TypeResolver covariantly(Type contextType) { in covariantly()
75 return new TypeResolver().where(TypeMappingIntrospector.getTypeMappings(contextType)); in covariantly()
89 static TypeResolver invariantly(Type contextType) { in invariantly()
91 return new TypeResolver().where(TypeMappingIntrospector.getTypeMappings(invariantContext)); in invariantly()
113 public TypeResolver where(Type formal, Type actual) { in where()
120 TypeResolver where(Map<TypeVariableKey, ? extends Type> mappings) { in where()
121 return new TypeResolver(typeTable.where(mappings)); in where()
[all …]
DTypeToken.java106 private transient @Nullable TypeResolver invariantTypeResolver;
109 private transient @Nullable TypeResolver covariantTypeResolver;
159 this.runtimeType = TypeResolver.covariantly(declaringClass).resolveType(captured); in TypeToken()
224 TypeResolver resolver = in where()
225 new TypeResolver() in where()
228 new TypeResolver.TypeVariableKey(typeParam.typeVariable), typeArg.runtimeType)); in where()
841 return of(new TypeResolver().resolveType(runtimeType));
1178 private TypeResolver getCovariantTypeResolver() {
1179 TypeResolver resolver = covariantTypeResolver;
1181 resolver = (covariantTypeResolver = TypeResolver.covariantly(runtimeType));
[all …]
/external/guava/android/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
74 static TypeResolver covariantly(Type contextType) { in covariantly()
75 return new TypeResolver().where(TypeMappingIntrospector.getTypeMappings(contextType)); in covariantly()
89 static TypeResolver invariantly(Type contextType) { in invariantly()
91 return new TypeResolver().where(TypeMappingIntrospector.getTypeMappings(invariantContext)); in invariantly()
113 public TypeResolver where(Type formal, Type actual) { in where()
120 TypeResolver where(Map<TypeVariableKey, ? extends Type> mappings) { in where()
121 return new TypeResolver(typeTable.where(mappings)); in where()
[all …]
DTypeToken.java106 @NullableDecl private transient TypeResolver invariantTypeResolver;
109 @NullableDecl private transient TypeResolver covariantTypeResolver;
159 this.runtimeType = TypeResolver.covariantly(declaringClass).resolveType(captured); in TypeToken()
224 TypeResolver resolver = in where()
225 new TypeResolver() in where()
228 new TypeResolver.TypeVariableKey(typeParam.typeVariable), typeArg.runtimeType)); in where()
844 return of(new TypeResolver().resolveType(runtimeType));
1182 private TypeResolver getCovariantTypeResolver() {
1183 TypeResolver resolver = covariantTypeResolver;
1185 resolver = (covariantTypeResolver = TypeResolver.covariantly(runtimeType));
[all …]
/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::__anon373d94720111::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/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/src/google/protobuf/util/internal/
Dtype_info.cc53 explicit TypeInfoForTypeResolver(TypeResolver* type_resolver) in TypeInfoForTypeResolver()
160 TypeResolver* type_resolver_;
174 TypeInfo* TypeInfo::NewTypeInfo(TypeResolver* type_resolver) { in NewTypeInfo()
Dtype_info.h83 static TypeInfo* NewTypeInfo(TypeResolver* type_resolver);
Dtype_info_test_helper.h87 std::unique_ptr<TypeResolver> type_resolver_;
Ddefault_value_objectwriter.h81 DefaultValueObjectWriter(TypeResolver* type_resolver,
Dprotostream_objectsource.h75 TypeResolver* type_resolver,
Dprotostream_objectwriter.h116 ProtoStreamObjectWriter(TypeResolver* type_resolver,
/external/protobuf/conformance/
Dconformance_cpp.cc55 using google::protobuf::util::TypeResolver;
97 TypeResolver* type_resolver;
Dbinary_json_conformance_suite.h113 std::unique_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