/external/auto/value/src/test/java/com/google/auto/value/extension/serializable/serializer/impl/ |
D | ImmutableListSerializerExtensionTest.java | 52 TypeMirror typeMirror = typeMirrorOf(String.class); in getSerializer_nonImmutableList_emptyReturned() local 55 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment); in getSerializer_nonImmutableList_emptyReturned() 63 TypeMirror typeMirror = typeMirrorOf(ImmutableList.class); in getSerializer_immutableListWithSerializableContainedType_emptyReturned() local 66 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment); in getSerializer_immutableListWithSerializableContainedType_emptyReturned() 73 TypeMirror typeMirror = typeMirrorOf(ImmutableList.class); in getSerializer_immutableList_serializerReturned() local 76 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment).get(); in getSerializer_immutableList_serializerReturned() 84 TypeMirror typeMirror = declaredTypeOf(ImmutableList.class, Integer.class); in proxyFieldType() local 87 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment).get(); in proxyFieldType() 90 assertThat(typeUtils.isSameType(actualTypeMirror, typeMirror)).isTrue(); in proxyFieldType() 95 TypeMirror typeMirror = declaredTypeOf(ImmutableList.class, Integer.class); in toProxy() local [all …]
|
D | ImmutableMapSerializerExtensionTest.java | 54 TypeMirror typeMirror = typeMirrorOf(String.class); in getSerializer_nonImmutableMap_emptyReturned() local 57 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment); in getSerializer_nonImmutableMap_emptyReturned() 65 TypeMirror typeMirror = typeMirrorOf(ImmutableMap.class); in getSerializer_immutableMapWithSerializableContainedTypes_emptyReturned() local 68 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment); in getSerializer_immutableMapWithSerializableContainedTypes_emptyReturned() 75 TypeMirror typeMirror = typeMirrorOf(ImmutableMap.class); in getSerializer_immutableMap_serializerReturned() local 78 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment).get(); in getSerializer_immutableMap_serializerReturned() 86 TypeMirror typeMirror = declaredTypeOf(ImmutableMap.class, Integer.class, String.class); in proxyFieldType() local 89 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment).get(); in proxyFieldType() 92 assertThat(typeUtils.isSameType(actualTypeMirror, typeMirror)).isTrue(); in proxyFieldType() 97 TypeMirror typeMirror = declaredTypeOf(ImmutableMap.class, Integer.class, String.class); in toProxy() local [all …]
|
D | IdentitySerializerFactoryTest.java | 32 TypeMirror typeMirror = typeMirrorOf(String.class); in proxyFieldType_isUnchanged() local 35 IdentitySerializerFactory.getSerializer(typeMirror).proxyFieldType(); in proxyFieldType_isUnchanged() 37 assertThat(actualTypeMirror).isSameInstanceAs(typeMirror); in proxyFieldType_isUnchanged() 42 TypeMirror typeMirror = typeMirrorOf(String.class); in toProxy_isUnchanged() local 46 IdentitySerializerFactory.getSerializer(typeMirror).toProxy(inputExpression); in toProxy_isUnchanged() 53 TypeMirror typeMirror = typeMirrorOf(String.class); in fromProxy_isUnchanged() local 57 IdentitySerializerFactory.getSerializer(typeMirror).fromProxy(inputExpression); in fromProxy_isUnchanged() 64 TypeMirror typeMirror = typeMirrorOf(String.class); in isIdentity() local 66 boolean actualIsIdentity = IdentitySerializerFactory.getSerializer(typeMirror).isIdentity(); in isIdentity()
|
D | OptionalSerializerExtensionTest.java | 46 TypeMirror typeMirror = typeMirrorOf(String.class); in getSerializer_nonOptional_emptyReturned() local 49 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment); in getSerializer_nonOptional_emptyReturned() 56 TypeMirror typeMirror = typeMirrorOf(Optional.class); in getSerializer_optional_serializerReturned() local 59 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment).get(); in getSerializer_optional_serializerReturned() 67 TypeMirror typeMirror = declaredTypeOf(Optional.class, Integer.class); in proxyFieldType() local 70 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment).get(); in proxyFieldType() 78 TypeMirror typeMirror = declaredTypeOf(Optional.class, Integer.class); in toProxy() local 81 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment).get(); in toProxy() 89 TypeMirror typeMirror = declaredTypeOf(Optional.class, Integer.class); in fromProxy() local 92 extension.getSerializer(typeMirror, fakeSerializerFactory, mockProcessingEnvironment).get(); in fromProxy()
|
/external/auto/value/src/main/java/com/google/auto/value/extension/serializable/serializer/impl/ |
D | IdentitySerializerFactory.java | 26 public static Serializer getSerializer(TypeMirror typeMirror) { in getSerializer() argument 27 return new IdentitySerializer(typeMirror); in getSerializer() 32 private final TypeMirror typeMirror; field in IdentitySerializerFactory.IdentitySerializer 34 IdentitySerializer(TypeMirror typeMirror) { in IdentitySerializer() argument 35 this.typeMirror = typeMirror; in IdentitySerializer() 40 return typeMirror; in proxyFieldType()
|
D | SerializerFactoryImpl.java | 39 public Serializer getSerializer(TypeMirror typeMirror) { in getSerializer() argument 41 Optional<Serializer> serializer = extension.getSerializer(typeMirror, this, env); in getSerializer() 46 return IdentitySerializerFactory.getSerializer(typeMirror); in getSerializer()
|
D | OptionalSerializerExtension.java | 43 TypeMirror typeMirror, SerializerFactory factory, ProcessingEnvironment processingEnv) { in getSerializer() argument 44 if (!isOptional(typeMirror)) { in getSerializer() 49 TypeMirror containedType = getContainedType(typeMirror); in getSerializer()
|
D | ImmutableMapSerializerExtension.java | 45 TypeMirror typeMirror, SerializerFactory factory, ProcessingEnvironment processingEnv) { in getSerializer() argument 46 if (!isImmutableMap(typeMirror)) { in getSerializer() 51 TypeMirror keyType = getKeyType(typeMirror); in getSerializer() 52 TypeMirror valueType = getValueType(typeMirror); in getSerializer()
|
D | ImmutableListSerializerExtension.java | 44 TypeMirror typeMirror, SerializerFactory factory, ProcessingEnvironment processingEnv) { in getSerializer() argument 45 if (!isImmutableList(typeMirror)) { in getSerializer() 50 TypeMirror containedType = getContainedType(typeMirror); in getSerializer()
|
/external/auto/value/src/test/java/com/google/auto/value/extension/serializable/serializer/utils/ |
D | TestStringSerializerFactory.java | 40 TypeMirror typeMirror, SerializerFactory factory, ProcessingEnvironment processingEnv) { in getSerializer() argument 41 if (typeMirror.getKind() != TypeKind.DECLARED) { in getSerializer() 45 DeclaredType declaredType = MoreTypes.asDeclared(typeMirror); in getSerializer() 48 return Optional.of(new TestStringSerializer(typeMirror)); in getSerializer() 56 private final TypeMirror typeMirror; field in TestStringSerializerFactory.TestStringSerializer 58 TestStringSerializer(TypeMirror typeMirror) { in TestStringSerializer() argument 59 this.typeMirror = typeMirror; in TestStringSerializer() 64 return typeMirror; in proxyFieldType()
|
D | FakeSerializerFactory.java | 47 private final TypeMirror typeMirror; field in FakeSerializerFactory.FakeIdentitySerializer 50 FakeIdentitySerializer(TypeMirror typeMirror, boolean isIdentity) { in FakeIdentitySerializer() argument 51 this.typeMirror = typeMirror; in FakeIdentitySerializer() 57 return typeMirror; in proxyFieldType()
|
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/containers/ |
D | CrossProfileConfigurationInfo.java | 99 SupportedTypes supportedTypes, TypeMirror typeMirror) { in convertTypeMirrorToSupportedTypes() argument 100 if (TypeUtils.isGeneric(typeMirror)) { in convertTypeMirrorToSupportedTypes() 101 return convertGenericTypeMirrorToSupportedTypes(supportedTypes, typeMirror); in convertTypeMirrorToSupportedTypes() 103 return Collections.singleton(supportedTypes.getType(typeMirror)); in convertTypeMirrorToSupportedTypes() 107 SupportedTypes supportedTypes, TypeMirror typeMirror) { in convertGenericTypeMirrorToSupportedTypes() argument 109 TypeMirror genericType = TypeUtils.removeTypeArguments(typeMirror); in convertGenericTypeMirrorToSupportedTypes() 112 for (TypeMirror typeArgument : TypeUtils.extractTypeArguments(typeMirror)) { in convertGenericTypeMirrorToSupportedTypes()
|
D | CrossProfileTypeInfo.java | 151 SupportedTypes supportedTypes, TypeMirror typeMirror) { in convertTypeMirrorToSupportedTypes() argument 152 if (TypeUtils.isGeneric(typeMirror)) { in convertTypeMirrorToSupportedTypes() 153 return convertGenericTypeMirrorToSupportedTypes(supportedTypes, typeMirror); in convertTypeMirrorToSupportedTypes() 155 return Collections.singleton(supportedTypes.getType(typeMirror)); in convertTypeMirrorToSupportedTypes() 159 SupportedTypes supportedTypes, TypeMirror typeMirror) { in convertGenericTypeMirrorToSupportedTypes() argument 161 TypeMirror genericType = TypeUtils.removeTypeArguments(typeMirror); in convertGenericTypeMirrorToSupportedTypes() 164 for (TypeMirror typeArgument : TypeUtils.extractTypeArguments(typeMirror)) { in convertGenericTypeMirrorToSupportedTypes()
|
D | ParcelableWrapper.java | 252 TypeMirror typeMirror = types.getArrayType(typeElement.asType()); in addArrayWrappers() local 256 wrappers.add(ParcelableWrapper.create(typeMirror, wrapperClassName, WrapperType.DEFAULT)); in addArrayWrappers()
|
D | Type.java | 107 public abstract Builder setTypeMirror(TypeMirror typeMirror); in setTypeMirror() argument
|
/external/auto/value/src/main/java/com/google/auto/value/processor/ |
D | TypeMirrorSet.java | 46 private Equivalence.Wrapper<TypeMirror> wrap(TypeMirror typeMirror) { in wrap() argument 47 return MoreTypes.equivalence().wrap(typeMirror); in wrap() 51 public boolean add(TypeMirror typeMirror) { in add() argument 52 return wrappers.add(wrap(typeMirror)); in add()
|
D | autoannotation.vm | 85 #elseif ($members[$p].typeMirror.componentType.kind.primitive) 87 this.$p = ${members[$p].typeMirror.componentType}ArrayFromCollection($p); 140 #if ($m.typeMirror.toString() == "java.lang.String") 144 #elseif ($m.typeMirror.toString() == "char") 148 #elseif ($m.typeMirror.toString() == "java.lang.String[]") 152 #elseif ($m.typeMirror.toString() == "char[]")
|
D | GwtSerialization.java | 139 TypeMirror typeMirror = property.getTypeMirror(); in getGwtType() local 140 String type = typeMirror.toString(); in getGwtType()
|
/external/javapoet/src/main/java/com/squareup/javapoet/ |
D | TypeVariableName.java | 126 for (TypeMirror typeMirror : element.getBounds()) { in get() 127 bounds.add(TypeName.get(typeMirror, typeVariables)); in get() 140 for (TypeMirror typeMirror : boundsMirrors) { in get() 141 boundsTypeNames.add(TypeName.get(typeMirror)); in get()
|
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/ |
D | Helpers.java | 238 for (TypeMirror typeMirror : shadowPickerType.getInterfaces()) { in findInterface() 239 if (types.erasure(typeMirror).equals(types.erasure(shadowPickerMirror))) { in findInterface() 240 return typeMirror; in findInterface() 250 public Element asElement(TypeMirror typeMirror) { in asElement() argument 251 return types.asElement(typeMirror); in asElement()
|
/external/robolectric-shadows/processor/src/main/java/org/robolectric/annotation/processing/validator/ |
D | SdkStore.java | 102 private static String canonicalize(TypeMirror typeMirror) { in canonicalize() argument 103 if (typeMirror instanceof TypeVar) { in canonicalize() 104 return ((TypeVar) typeMirror).getUpperBound().toString(); in canonicalize() 105 } else if (typeMirror instanceof ArrayType) { in canonicalize() 106 return canonicalize(((ArrayType) typeMirror).elemtype) + "[]"; in canonicalize() 108 return typeMirror.toString(); in canonicalize()
|
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/ |
D | SupportedTypes.java | 343 for (TypeMirror typeMirror : in addSupportForUsedType() 345 addSupportForUsedType(types, elements, usableTypes, typeMirror); in addSupportForUsedType() 411 private static Type createParcelableType(TypeMirror typeMirror) { in createParcelableType() argument 413 .setTypeMirror(typeMirror) in createParcelableType() 423 private static Type createSerializableType(TypeMirror typeMirror) { in createSerializableType() argument 425 .setTypeMirror(typeMirror) in createSerializableType() 725 for (TypeMirror typeMirror : in copySupportedType() 727 copySupportedType(context, usedTypes, typeMirror); in copySupportedType()
|
D | InternalCrossProfileClassGenerator.java | 362 private static boolean isPrimitiveOrObjectVoid(TypeMirror typeMirror) { in isPrimitiveOrObjectVoid() argument 363 return typeMirror.getKind().equals(TypeKind.VOID) in isPrimitiveOrObjectVoid() 364 || typeMirror.toString().equals("java.lang.Void"); in isPrimitiveOrObjectVoid()
|
/external/turbine/java/com/google/turbine/processing/ |
D | TurbineAnnotationMirror.java | 245 private final TypeMirror typeMirror; field in TurbineAnnotationMirror.TurbineClassConstant 249 this.typeMirror = factory.asTypeMirror(value.type()); in TurbineClassConstant() 254 return typeMirror; in getValue() 270 return typeMirror + ".class"; in toString()
|
D | TurbineTypes.java | 82 private static Type asTurbineType(TypeMirror typeMirror) { in asTurbineType() argument 83 if (!(typeMirror instanceof TurbineTypeMirror)) { in asTurbineType() 84 throw new IllegalArgumentException(typeMirror.toString()); in asTurbineType() 86 return ((TurbineTypeMirror) typeMirror).asTurbineType(); in asTurbineType() 884 public TypeMirror erasure(TypeMirror typeMirror) { in erasure() argument 885 return factory.asTypeMirror(erasure(asTurbineType(typeMirror))); in erasure() 930 public PrimitiveType unboxedType(TypeMirror typeMirror) { 931 Type type = asTurbineType(typeMirror); 966 public TypeMirror capture(TypeMirror typeMirror) {
|