/external/dagger2/compiler/src/main/java/dagger/internal/codegen/ |
D | SourceFiles.java | 54 static final Ordering<DependencyRequest> DEPENDENCY_ORDERING = new Ordering<DependencyRequest>() { 56 public int compare(DependencyRequest left, DependencyRequest right) { 81 static ImmutableSetMultimap<BindingKey, DependencyRequest> indexDependenciesByUnresolvedKey( in indexDependenciesByUnresolvedKey() 82 Types types, Iterable<? extends DependencyRequest> dependencies) { in indexDependenciesByUnresolvedKey() 83 ImmutableSetMultimap.Builder<BindingKey, DependencyRequest> dependenciesByKeyBuilder = in indexDependenciesByUnresolvedKey() 84 new ImmutableSetMultimap.Builder<BindingKey, DependencyRequest>() in indexDependenciesByUnresolvedKey() 86 for (DependencyRequest dependency : dependencies) { in indexDependenciesByUnresolvedKey() 91 DependencyRequest.Factory.extractKindAndType(dependency.requestElement().asType()).type(); in indexDependenciesByUnresolvedKey() 106 static ImmutableSetMultimap<BindingKey, DependencyRequest> indexDependenciesByKey( in indexDependenciesByKey() 107 Iterable<? extends DependencyRequest> dependencies) { in indexDependenciesByKey() [all …]
|
D | ProductionBinding.java | 61 Set<DependencyRequest> implicitDependencies() { in implicitDependencies() 77 abstract Optional<DependencyRequest> monitorRequest(); in monitorRequest() 97 private final DependencyRequest.Factory dependencyRequestFactory; 100 Types types, Key.Factory keyFactory, DependencyRequest.Factory dependencyRequestFactory) { in Factory() 117 ImmutableSet<DependencyRequest> dependencies = in forProducesMethod() 122 DependencyRequest monitorRequest = in forProducesMethod() 135 Optional.<DependencyRequest>absent(), in forProducesMethod() 142 ProductionBinding implicitMapOfProducerBinding(DependencyRequest mapOfValueRequest) { in implicitMapOfProducerBinding() 148 DependencyRequest implicitMapOfProducerRequest = in implicitMapOfProducerBinding() 159 Optional.<DependencyRequest>absent(), in implicitMapOfProducerBinding() [all …]
|
D | DependencyRequest.java | 63 abstract class DependencyRequest { class 64 static final Function<DependencyRequest, BindingKey> BINDING_KEY_FUNCTION = 65 new Function<DependencyRequest, BindingKey>() { 66 @Override public BindingKey apply(DependencyRequest request) { 142 ImmutableSet<DependencyRequest> forRequiredResolvedVariables(DeclaredType container, in forRequiredResolvedVariables() 145 ImmutableSet.Builder<DependencyRequest> builder = ImmutableSet.builder(); in forRequiredResolvedVariables() 152 ImmutableSet<DependencyRequest> forRequiredVariables( in forRequiredVariables() 156 new Function<VariableElement, DependencyRequest>() { in forRequiredVariables() 158 public DependencyRequest apply(VariableElement input) { in forRequiredVariables() 173 DependencyRequest forImplicitMapBinding( in forImplicitMapBinding() [all …]
|
D | ProvisionBinding.java | 70 private final DependencyRequest.Factory dependencyRequestFactory; 73 DependencyRequest.Factory dependencyRequestFactory) { in Factory() 115 ImmutableSet<DependencyRequest> dependencies = in forInjectConstructor() 119 Optional<DependencyRequest> membersInjectionRequest = in forInjectConstructor() 143 private Optional<DependencyRequest> membersInjectionRequest(DeclaredType type) { in membersInjectionRequest() 168 ImmutableSet<DependencyRequest> dependencies = in forProvidesMethod() 182 Optional.<DependencyRequest>absent(), in forProvidesMethod() 188 ProvisionBinding implicitMapOfProviderBinding(DependencyRequest mapOfValueRequest) { in implicitMapOfProviderBinding() 196 DependencyRequest implicitMapOfProviderRequest = in implicitMapOfProviderBinding() 207 Optional.<DependencyRequest>absent(), in implicitMapOfProviderBinding() [all …]
|
D | DependencyRequestMapper.java | 35 abstract Class<?> getFrameworkClass(DependencyRequest request); in getFrameworkClass() 41 Class<?> getFrameworkClass(Iterable<DependencyRequest> requests) { in getFrameworkClass() 43 .transform(new Function<DependencyRequest, Class<?>>() { in getFrameworkClass() 44 @Override public Class<?> apply(DependencyRequest request) { in getFrameworkClass() 59 @Override public Class<?> getFrameworkClass(DependencyRequest request) { in getFrameworkClass() 79 @Override public Class<?> getFrameworkClass(DependencyRequest request) { in getFrameworkClass()
|
D | ProducerFactoryGenerator.java | 159 ImmutableList<DependencyRequest> asyncDependencies = in write() 162 new Predicate<DependencyRequest>() { in write() 164 public boolean apply(DependencyRequest dependency) { in write() 170 for (DependencyRequest dependency : asyncDependencies) { in write() 182 dependency.kind().equals(DependencyRequest.Kind.PRODUCED) in write() 253 ImmutableList<DependencyRequest> asyncDependencies) { in create() 292 for (DependencyRequest dependency : binding.dependencies()) { in parameterSnippets() 303 private final DependencyRequest asyncDependency; 308 DependencyRequest asyncDependency) { in SingleArgFutureTransform() 331 for (DependencyRequest dependency : binding.dependencies()) { in parameterSnippets() [all …]
|
D | MembersInjectionBinding.java | 69 abstract Optional<DependencyRequest> parentInjectorRequest(); in parentInjectorRequest() 89 Optional.<DependencyRequest>absent()); in withoutParentInjectorRequest() 108 abstract ImmutableSet<DependencyRequest> dependencies(); in dependencies() 123 private final DependencyRequest.Factory dependencyRequestFactory; 126 DependencyRequest.Factory dependencyRequestFactory) { in Factory() 191 ImmutableSet<DependencyRequest> dependencies = in forInjectedType() 194 new Function<InjectionSite, Set<DependencyRequest>>() { in forInjectedType() 196 public Set<DependencyRequest> apply(InjectionSite input) { in forInjectedType() 202 Optional<DependencyRequest> parentInjectorRequest = in forInjectedType() 205 new Function<DeclaredType, DependencyRequest>() { in forInjectedType() [all …]
|
D | BindingGraphValidator.java | 166 Optional<DependencyRequest> entryPoint = componentMethod.dependencyRequest(); in validateSubgraph() 173 new HashSet<DependencyRequest>()); in validateSubgraph() 240 DependencyRequest request, in traverseRequest() 244 Set<DependencyRequest> resolvedRequests) { in traverseRequest() 265 for (DependencyRequest nextRequest : binding.implicitDependencies()) { in traverseRequest() 343 DependencyRequest request, Set<ContributionBinding> bindings) { in validateNullability() 910 DependencyRequest request, in reportCycle() 912 ImmutableList<DependencyRequest> requestPath = in reportCycle() 918 ImmutableList<DependencyRequest> cycle = in reportCycle() 953 private boolean cycleHasProviderOrLazy(ImmutableList<DependencyRequest> cycle) { in cycleHasProviderOrLazy() [all …]
|
D | BindingGraph.java | 233 Optional<DependencyRequest> componentMethodRequest = componentMethod.dependencyRequest(); 307 ResolvedBindings lookUpBindings(DependencyRequest request) { 400 DependencyRequest request, ContributionBinding binding) { 410 private boolean isResolvedInParent(DependencyRequest request, ContributionBinding binding) { 427 DependencyRequest request, ContributionBinding binding) { 501 void resolve(DependencyRequest request) { 531 for (DependencyRequest dependency : binding.implicitDependencies()) { 573 for (DependencyRequest dependency : binding.implicitDependencies()) {
|
D | DependencyVariableNamer.java | 33 final class DependencyVariableNamer implements Function<DependencyRequest, String> { 35 public String apply(DependencyRequest dependency) { in apply()
|
D | MembersInjectorGenerator.java | 289 ImmutableSet<DependencyRequest> dependencies, 292 for (DependencyRequest dependency : dependencies) { 320 ImmutableSet<DependencyRequest> dependencies) { 328 for (DependencyRequest dependency : dependencies) { 362 Set<String> parameterNames, DependencyRequest dependency, FieldWriter field) {
|
D | ComponentDescriptor.java | 205 abstract Optional<DependencyRequest> dependencyRequest(); in dependencyRequest() 240 private final DependencyRequest.Factory dependencyRequestFactory; 246 DependencyRequest.Factory dependencyRequestFactory, 384 Optional.<DependencyRequest>absent(), 390 Optional.<DependencyRequest>absent(),
|
D | DependencyRequestFormatter.java | 44 final class DependencyRequestFormatter extends Formatter<DependencyRequest> { 53 @Override public String format(final DependencyRequest request) { in format()
|
D | ContributionBinding.java | 60 Set<DependencyRequest> implicitDependencies() { in implicitDependencies() 117 abstract Optional<DependencyRequest> membersInjectionRequest(); in membersInjectionRequest()
|
D | Binding.java | 155 abstract ImmutableSet<DependencyRequest> dependencies(); in dependencies() 161 abstract Set<DependencyRequest> implicitDependencies(); in implicitDependencies()
|
D | AbstractComponentWriter.java | 586 DependencyRequest interfaceRequest = componentMethod.dependencyRequest().get(); in implementInterfaceMethods() 839 for (Collection<DependencyRequest> requestsForKey : in initializeDelegateFactories() 844 .transform(DependencyRequest.BINDING_KEY_FUNCTION) in initializeDelegateFactories() 1056 for (Collection<DependencyRequest> requestsForKey : in getDependencyParameters() 1059 for (DependencyRequest dependencyRequest : requestsForKey) { in getDependencyParameters() 1092 for (Collection<DependencyRequest> requestsForKey : in getProducerDependencyParameters() 1097 .transform(DependencyRequest.BINDING_KEY_FUNCTION)); in getProducerDependencyParameters()
|
D | ComponentProcessor.java | 138 DependencyRequest.Factory dependencyRequestFactory = in initSteps() 139 new DependencyRequest.Factory(elements, keyFactory); in initSteps()
|
D | FactoryGenerator.java | 225 for (DependencyRequest dependency : binding.dependencies()) { in write()
|
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/ |
D | DependencyRequestMapperTest.java | 54 private DependencyRequest.Factory dependencyRequestFactory; 60 this.dependencyRequestFactory = new DependencyRequest.Factory(elements, keyFactory); in setUp() 79 private DependencyRequest dependencyRequestForInstance() { in dependencyRequestForInstance() 83 private DependencyRequest dependencyRequestForLazy() { in dependencyRequestForLazy() 87 private DependencyRequest dependencyRequestForProvider() { in dependencyRequestForProvider() 91 private DependencyRequest dependencyRequestForMembersInjector() { in dependencyRequestForMembersInjector() 95 private DependencyRequest dependencyRequestForProducer() { in dependencyRequestForProducer() 99 private DependencyRequest dependencyRequestForProduced() { in dependencyRequestForProduced()
|