/external/mockito/src/test/java/org/mockito/internal/util/reflection/ |
D | GenericMetadataSupportTest.java | 55 assertThat(genericMetadata.rawType()).isEqualTo(GenericsSelfReference.class); in typeVariable_of_self_type() 60 assertThat(inferFrom(ListOfAnyNumbers.class).rawType()).isEqualTo(ListOfAnyNumbers.class); in can_get_raw_type_from_Class() 61 assertThat(inferFrom(ListOfNumbers.class).rawType()).isEqualTo(ListOfNumbers.class); in can_get_raw_type_from_Class() 62 assertThat(inferFrom(GenericsNest.class).rawType()).isEqualTo(GenericsNest.class); in can_get_raw_type_from_Class() 63 assertThat(inferFrom(StringList.class).rawType()).isEqualTo(StringList.class); in can_get_raw_type_from_Class() 68 …assertThat(inferFrom(ListOfAnyNumbers.class.getGenericInterfaces()[0]).rawType()).isEqualTo(List.c… in can_get_raw_type_from_ParameterizedType() 69 …assertThat(inferFrom(ListOfNumbers.class.getGenericInterfaces()[0]).rawType()).isEqualTo(List.clas… in can_get_raw_type_from_ParameterizedType() 70 …assertThat(inferFrom(GenericsNest.class.getGenericInterfaces()[0]).rawType()).isEqualTo(Map.class); in can_get_raw_type_from_ParameterizedType() 71 …assertThat(inferFrom(StringList.class.getGenericSuperclass()).rawType()).isEqualTo(ArrayList.class… in can_get_raw_type_from_ParameterizedType() 87 …assertThat(inferFrom(AnotherListOfNumbers.class).resolveGenericReturnType(listGet).rawType()).isEq… in can_resolve_type_variables_from_ancestors() [all …]
|
/external/guice/core/src/com/google/inject/internal/ |
D | MoreTypes.java | 193 Type rawType = parameterizedType.getRawType(); in getRawType() local 194 checkArgument(rawType instanceof Class, in getRawType() 196 return (Class<?>) rawType; in getRawType() 284 public static Type getGenericSupertype(Type type, Class<?> rawType, Class<?> toResolve) { in getGenericSupertype() argument 285 if (toResolve == rawType) { in getGenericSupertype() 291 Class[] interfaces = rawType.getInterfaces(); in getGenericSupertype() 294 return rawType.getGenericInterfaces()[i]; in getGenericSupertype() 296 return getGenericSupertype(rawType.getGenericInterfaces()[i], interfaces[i], toResolve); in getGenericSupertype() 302 if (!rawType.isInterface()) { in getGenericSupertype() 303 while (rawType != Object.class) { in getGenericSupertype() [all …]
|
D | ProvidedByInternalFactory.java | 36 private final Class<?> rawType; field in ProvidedByInternalFactory 43 Class<?> rawType, in ProvidedByInternalFactory() argument 47 this.rawType = rawType; in ProvidedByInternalFactory() 82 if (o != null && !rawType.isInstance(o)) { in provision() 83 throw errors.subtypeNotProvided(providerType, rawType).toException(); in provision()
|
D | AbstractBindingProcessor.java | 73 Class<?> rawType = key.getTypeLiteral().getRawType(); in putBinding() local 74 if (FORBIDDEN_TYPES.contains(rawType)) { in putBinding() 75 errors.cannotBindToGuiceType(rawType.getSimpleName()); in putBinding() 141 final Class<? super T> rawType; field in AbstractBindingProcessor.Processor 147 rawType = key.getTypeLiteral().getRawType(); in Processor()
|
D | ConstructorBindingImpl.java | 80 Class<? super T> rawType = constructorInjector == null in create() local 85 if (Modifier.isAbstract(rawType.getModifiers())) { in create() 90 if (Classes.isInnerClass(rawType)) { in create() 91 errors.cannotInjectInnerClass(rawType); in create() 101 errors.atInjectRequired(rawType); in create() 114 injector, errors.withSource(rawType)); in create()
|
D | InjectorImpl.java | 627 Class<?> rawType = key.getTypeLiteral().getRawType(); 629 ImplementedBy implementedBy = rawType.getAnnotation(ImplementedBy.class); 632 if (rawType.isArray() || (rawType.isEnum() && implementedBy != null)) { 637 if (rawType == TypeLiteral.class) { 646 Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors); 651 ProvidedBy providedBy = rawType.getAnnotation(ProvidedBy.class); 653 Annotations.checkForMisplacedScopeAnnotations(rawType, source, errors); 701 Class<?> rawType = key.getTypeLiteral().getRawType(); 705 if (providerType == rawType) { 713 new ProvidedByInternalFactory<T>(rawType, providerType, providerKey); [all …]
|
/external/mockito/src/main/java/org/mockito/internal/util/reflection/ |
D | GenericMetadataSupport.java | 82 Class<?> rawType = extractRawTypeOf(typeToRegister); in registerAllTypeVariables() local 83 typesToRegister.add(rawType.getGenericSuperclass()); in registerAllTypeVariables() 84 typesToRegister.addAll(Arrays.asList(rawType.getGenericInterfaces())); in registerAllTypeVariables() 176 public abstract Class<?> rawType(); in rawType() method in GenericMetadataSupport 203 TypeVariable<?>[] typeParameters = rawType().getTypeParameters(); in actualTypeArguments() 312 public Class<?> rawType() { in rawType() method in GenericMetadataSupport.FromClassGenericMetadataSupport 341 public Class<?> rawType() { in rawType() method in GenericMetadataSupport.FromParameterizedTypeGenericMetadataSupport 371 public Class<?> rawType() { in rawType() method in GenericMetadataSupport.ParameterizedReturnType 383 private Class<?> rawType; field in GenericMetadataSupport.TypeVariableReturnType 407 public Class<?> rawType() { in rawType() method in GenericMetadataSupport.TypeVariableReturnType [all …]
|
/external/guava/guava/src/com/google/common/reflect/ |
D | Types.java | 91 @Nullable Type ownerType, Class<?> rawType, Type... arguments) { in newParameterizedTypeWithOwner() argument 93 return newParameterizedType(rawType, arguments); in newParameterizedTypeWithOwner() 97 checkArgument(rawType.getEnclosingClass() != null, "Owner type for unenclosed %s", rawType); in newParameterizedTypeWithOwner() local 98 return new ParameterizedTypeImpl(ownerType, rawType, arguments); in newParameterizedTypeWithOwner() 105 static ParameterizedType newParameterizedType(Class<?> rawType, Type... arguments) { in newParameterizedType() argument 107 ClassOwnership.JVM_BEHAVIOR.getOwnerType(rawType), rawType, arguments); in newParameterizedType() 116 Class<?> getOwnerType(Class<?> rawType) { in getOwnerType() argument 117 return rawType.getEnclosingClass(); in getOwnerType() 123 Class<?> getOwnerType(Class<?> rawType) { in getOwnerType() argument 124 if (rawType.isLocalClass()) { in getOwnerType() [all …]
|
/external/guice/core/src/com/google/inject/ |
D | TypeLiteral.java | 65 final Class<? super T> rawType; field in TypeLiteral 80 this.rawType = (Class<? super T>) MoreTypes.getRawType(type); in TypeLiteral() 90 this.rawType = (Class<? super T>) MoreTypes.getRawType(this.type); in TypeLiteral() 120 return rawType; in getRawType() 189 toResolve = MoreTypes.resolveTypeVariable(type, rawType, original); in resolveType() 257 checkArgument(supertype.isAssignableFrom(rawType), in getSupertype() 259 return resolve(MoreTypes.getGenericSupertype(type, rawType, supertype)); in getSupertype() 269 checkArgument(field.getDeclaringClass().isAssignableFrom(rawType), in getFieldType() 285 checkArgument(method.getDeclaringClass().isAssignableFrom(rawType), in getParameterTypes() 291 checkArgument(constructor.getDeclaringClass().isAssignableFrom(rawType), in getParameterTypes() [all …]
|
/external/webrtc/webrtc/modules/video_capture/ |
D | device_info_impl.cc | 197 if (bestRawType != requested.rawType in GetBestMatchedCapability() 198 && requested.rawType != kVideoUnknown in GetBestMatchedCapability() 199 && (capability.rawType == requested.rawType in GetBestMatchedCapability() 200 || capability.rawType == kVideoI420 in GetBestMatchedCapability() 201 || capability.rawType == kVideoYUY2 in GetBestMatchedCapability() 202 || capability.rawType == kVideoYV12)) in GetBestMatchedCapability() 205 bestRawType = capability.rawType; in GetBestMatchedCapability() 230 bestRawType = capability.rawType; in GetBestMatchedCapability() 244 bestRawType = capability.rawType; in GetBestMatchedCapability() 258 bestRawType = capability.rawType; in GetBestMatchedCapability()
|
D | video_capture_defines.h | 35 RawVideoType rawType; member 45 rawType = kVideoUnknown; in VideoCaptureCapability() 58 if (rawType != other.rawType)
|
/external/webrtc/webrtc/modules/video_capture/windows/ |
D | sink_filter_ds.cc | 214 _resultingCapability.rawType = kVideoMJPEG; in CheckMediaType() 220 _resultingCapability.rawType = kVideoI420; in CheckMediaType() 226 _resultingCapability.rawType = kVideoYUY2; in CheckMediaType() 233 _resultingCapability.rawType = kVideoUYVY; in CheckMediaType() 239 _resultingCapability.rawType = kVideoUYVY; in CheckMediaType() 245 _resultingCapability.rawType = kVideoRGB24; in CheckMediaType() 281 _resultingCapability.rawType = kVideoMJPEG; in CheckMediaType() 287 _resultingCapability.rawType = kVideoI420; in CheckMediaType() 293 _resultingCapability.rawType = kVideoYUY2; in CheckMediaType() 299 _resultingCapability.rawType = kVideoUYVY; in CheckMediaType() [all …]
|
D | device_info_ds.cc | 609 capability.rawType = kVideoI420; in CreateCapabilityMap() 613 capability.rawType = kVideoIYUV; in CreateCapabilityMap() 617 capability.rawType = kVideoRGB24; in CreateCapabilityMap() 621 capability.rawType = kVideoYUY2; in CreateCapabilityMap() 625 capability.rawType = kVideoRGB565; in CreateCapabilityMap() 629 capability.rawType = kVideoMJPEG; in CreateCapabilityMap() 635 capability.rawType = kVideoYUY2;// MS DV filter seems to create this type in CreateCapabilityMap() 639 capability.rawType = kVideoUYVY; in CreateCapabilityMap() 645 capability.rawType = kVideoUYVY; in CreateCapabilityMap() 670 capability.rawType, capability.maxFPS); in CreateCapabilityMap()
|
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/ |
D | CheckedProvideUtils.java | 45 Class<?> rawType = typeLiteral.getRawType(); in findThrowingConstructor() local 46 Errors errors = new Errors(rawType); in findThrowingConstructor() 48 for (Constructor<?> constructor : rawType.getDeclaredConstructors()) { in findThrowingConstructor() 52 + CONSTRUCTOR_RULES, rawType); in findThrowingConstructor() 66 "Could not find a suitable constructor in %s. " + CONSTRUCTOR_RULES, rawType); in findThrowingConstructor()
|
/external/guice/core/src/com/google/inject/util/ |
D | Types.java | 49 public static ParameterizedType newParameterizedType(Type rawType, Type... typeArguments) { in newParameterizedType() argument 50 return newParameterizedTypeWithOwner(null, rawType, typeArguments); in newParameterizedType() 60 Type ownerType, Type rawType, Type... typeArguments) { in newParameterizedTypeWithOwner() argument 61 return new ParameterizedTypeImpl(ownerType, rawType, typeArguments); in newParameterizedTypeWithOwner()
|
/external/caliper/caliper/src/main/java/com/google/caliper/json/ |
D | ImmutableMultimapTypeAdapterFactory.java | 46 ParameterizedType rawType = (ParameterizedType) from.getSupertype(ListMultimap.class).getType(); in getMapOfListsToken() local 48 TypeToken<K> keyType = (TypeToken<K>) TypeToken.of(rawType.getActualTypeArguments()[0]); in getMapOfListsToken() 50 TypeToken<V> valueType = (TypeToken<V>) TypeToken.of(rawType.getActualTypeArguments()[1]); in getMapOfListsToken() 58 ParameterizedType rawType = (ParameterizedType) from.getSupertype(SetMultimap.class).getType(); in getMapOfSetsToken() local 60 TypeToken<K> keyType = (TypeToken<K>) TypeToken.of(rawType.getActualTypeArguments()[0]); in getMapOfSetsToken() 62 TypeToken<V> valueType = (TypeToken<V>) TypeToken.of(rawType.getActualTypeArguments()[1]); in getMapOfSetsToken()
|
/external/mockito/src/main/java/org/mockito/internal/stubbing/defaultanswers/ |
D | ReturnsDeepStubs.java | 51 Class<?> rawType = returnTypeGenericMetadata.rawType(); in answer() local 52 if (!mockitoCore().isTypeMockable(rawType)) { in answer() 53 return delegate().returnValueFor(rawType); in answer() 97 returnTypeGenericMetadata.rawType(), in newDeepStubMock()
|
/external/webrtc/webrtc/modules/video_capture/linux/ |
D | device_info_linux.cc | 294 cap.rawType = kVideoYUY2; in FillCapabilities() 298 cap.rawType = kVideoI420; in FillCapabilities() 302 cap.rawType = kVideoMJPEG; in FillCapabilities() 306 cap.rawType = kVideoUYVY; in FillCapabilities() 311 if(cap.width >= 800 && cap.rawType != kVideoMJPEG) in FillCapabilities() 324 cap.width, cap.height, cap.rawType, cap.maxFPS); in FillCapabilities()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/ |
D | JavaParserSymbolDeclaration.java | 134 final ResolvedType rawType; in getType() local 136 …rawType = ResolvedPrimitiveType.byName(((com.github.javaparser.ast.type.PrimitiveType) parameter.g… in getType() 138 … rawType = JavaParserFacade.get(typeSolver).convertToUsage(parameter.getType(), wrappedNode); in getType() 141 return new ResolvedArrayType(rawType); in getType() 143 return rawType; in getType()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ |
D | ReflectionFactory.java | 63 … ResolvedReferenceType rawType = typeUsageFor(pt.getRawType(), typeSolver).asReferenceType(); in typeUsageFor() local 67 …rawType = rawType.transformTypeParameters(tp -> typeUsageFor(actualTypes.remove(0), typeSolver)).a… in typeUsageFor() 68 return rawType; in typeUsageFor()
|
/external/webrtc/webrtc/modules/video_capture/ios/ |
D | device_info_ios_objc.mm | 65 capability.rawType = webrtc::kVideoNV12; 74 capability.rawType = webrtc::kVideoNV12; 83 capability.rawType = webrtc::kVideoNV12; 92 capability.rawType = webrtc::kVideoNV12;
|
/external/guice/extensions/mini/src/com/google/inject/mini/ |
D | MiniGuice.java | 357 private final Class<?> rawType; field in MiniGuice.ProviderType 360 public ProviderType(Class<?> rawType, Type typeArgument) { in ProviderType() argument 361 this.rawType = rawType; in ProviderType() 366 return rawType; in getRawType() 381 && that.getRawType() == rawType; in equals() 387 return Arrays.hashCode(getActualTypeArguments()) ^ rawType.hashCode(); in hashCode()
|
/external/desugar/java/com/google/devtools/common/options/ |
D | GenericTypeHelper.java | 96 Class<?> rawType = getRawType(type); in getActualReturnType() local 97 for (Type interfaceType : rawType.getGenericInterfaces()) { in getActualReturnType() 104 type = rawType.getGenericSuperclass(); in getActualReturnType()
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | FreshValueGenerator.java | 162 Class<?> rawType = type.getRawType(); in generate() local 163 List<Object> samples = sampleInstances.get(rawType); in generate() 168 if (rawType.isEnum()) { in generate() 169 return nextInstance(rawType.getEnumConstants(), null); in generate() 177 if (rawType == Optional.class && generatedOptionalTypes.add(type.getType())) { in generate() 182 Method generator = GENERATORS.get(rawType); in generate() 186 TypeVariable<?>[] typeVars = rawType.getTypeParameters(); in generate() 209 return defaultGenerate(rawType); in generate() 216 private <T> T defaultGenerate(Class<T> rawType) { in defaultGenerate() argument 217 if (rawType.isInterface()) { in defaultGenerate() [all …]
|
/external/guice/core/src/com/google/inject/spi/ |
D | InjectionPoint.java | 241 Class<?> rawType = getRawType(type.getType()); in forConstructorOf() local 242 Errors errors = new Errors(rawType); in forConstructorOf() 245 for (Constructor<?> constructor : rawType.getDeclaredConstructors()) { in forConstructorOf() 264 errors.tooManyConstructors(rawType); in forConstructorOf() 279 Constructor<?> noArgConstructor = rawType.getDeclaredConstructor(); in forConstructorOf() 283 && !Modifier.isPrivate(rawType.getModifiers())) { in forConstructorOf() 284 errors.missingConstructor(rawType); in forConstructorOf() 291 errors.missingConstructor(rawType); in forConstructorOf()
|