/aosp_15_r20/external/dagger2/javatests/dagger/internal/codegen/ |
H A D | ComponentProcessorTest.java | 68 private final CompilerMode compilerMode; field in ComponentProcessorTest 70 public ComponentProcessorTest(CompilerMode compilerMode) { in ComponentProcessorTest() argument 71 this.compilerMode = compilerMode; in ComponentProcessorTest() 120 .withProcessingOptions(compilerMode.processorOptions()) in doubleBindingFromResolvedModules() 158 .putAll(compilerMode.processorOptions()) in privateNestedClassWithWarningThatIsAnErrorInComponent() 195 .withProcessingOptions(compilerMode.processorOptions()) in simpleComponent() 232 .withProcessingOptions(compilerMode.processorOptions()) in componentWithScope() 262 .withProcessingOptions(compilerMode.processorOptions()) in simpleComponentWithNesting() 317 .withProcessingOptions(compilerMode.processorOptions()) in componentWithModule() 374 .withProcessingOptions(compilerMode.processorOptions()) in componentWithAbstractModule() [all …]
|
H A D | MembersInjectionTest.java | 42 private final CompilerMode compilerMode; field in MembersInjectionTest 44 public MembersInjectionTest(CompilerMode compilerMode) { in MembersInjectionTest() argument 45 this.compilerMode = compilerMode; in MembersInjectionTest() 82 .withProcessingOptions(compilerMode.processorOptions()) in injectKotlinProtectField_fails() 126 .withProcessingOptions(compilerMode.processorOptions()) in injectJavaProtectField_succeeds() 162 .withProcessingOptions(compilerMode.processorOptions()) in parentClass_noInjectedMembers() 215 .withProcessingOptions(compilerMode.processorOptions()) in parentClass_injectedMembersInSupertype() 240 .withProcessingOptions(compilerMode.processorOptions()) in fieldAndMethodGenerics() 298 .withProcessingOptions(compilerMode.processorOptions()) in subclassedGenericMembersInjectors() 322 .withProcessingOptions(compilerMode.processorOptions()) in fieldInjection() [all …]
|
H A D | MapMultibindingValidationTest.java | 35 private final CompilerMode compilerMode; field in MapMultibindingValidationTest 37 public MapMultibindingValidationTest(CompilerMode compilerMode) { in MapMultibindingValidationTest() argument 38 this.compilerMode = compilerMode; in MapMultibindingValidationTest() 71 .withProcessingOptions(compilerMode.processorOptions()) in duplicateMapKeys_UnwrappedMapKey() 84 .putAll(compilerMode.processorOptions()) in duplicateMapKeys_UnwrappedMapKey() 104 .withProcessingOptions(compilerMode.processorOptions()) in duplicateMapKeys_UnwrappedMapKey() 118 .withProcessingOptions(compilerMode.processorOptions()) in duplicateMapKeys_UnwrappedMapKey() 132 .withProcessingOptions(compilerMode.processorOptions()) in duplicateMapKeys_UnwrappedMapKey() 143 .withProcessingOptions(compilerMode.processorOptions()) in duplicateMapKeys_UnwrappedMapKey() 154 .withProcessingOptions(compilerMode.processorOptions()) in duplicateMapKeys_UnwrappedMapKey() [all …]
|
H A D | MissingBindingValidationTest.java | 40 private final CompilerMode compilerMode; field in MissingBindingValidationTest 42 public MissingBindingValidationTest(CompilerMode compilerMode) { in MissingBindingValidationTest() argument 43 this.compilerMode = compilerMode; in MissingBindingValidationTest() 78 .withProcessingOptions(compilerMode.processorOptions()) in dependOnInterface() 107 .withProcessingOptions(compilerMode.processorOptions()) in entryPointDependsOnInterface() 139 .withProcessingOptions(compilerMode.processorOptions()) in entryPointDependsOnQualifiedInterface() 173 .withProcessingOptions(compilerMode.processorOptions()) in constructorInjectionWithoutAnnotation() 212 .withProcessingOptions(compilerMode.processorOptions()) in membersInjectWithoutProvision() 251 .withProcessingOptions(compilerMode.processorOptions()) in missingBindingWithSameKeyAsMembersInjectionMethod() 285 .withProcessingOptions(compilerMode.processorOptions()) in genericInjectClassWithWildcardDependencies() [all …]
|
H A D | AssistedFactoryErrorsTest.java | 34 private final CompilerMode compilerMode; field in AssistedFactoryErrorsTest 36 public AssistedFactoryErrorsTest(CompilerMode compilerMode) { in AssistedFactoryErrorsTest() argument 37 this.compilerMode = compilerMode; in AssistedFactoryErrorsTest() 52 .withProcessingOptions(compilerMode.processorOptions()) in testFactoryNotAbstract() 84 .withProcessingOptions(compilerMode.processorOptions()) in testNestedFactoryNotStatic() 104 .withProcessingOptions(compilerMode.processorOptions()) in testFactoryMissingAbstractMethod() 153 .withProcessingOptions(compilerMode.processorOptions()) in testFactoryReturnsNonDeclaredType() 226 .withProcessingOptions(compilerMode.processorOptions()) in testFactoryMultipleAbstractMethods() 267 .withProcessingOptions(compilerMode.processorOptions()) in testFactoryMismatchingParameter() 306 .withProcessingOptions(compilerMode.processorOptions()) in testFactoryMismatchingGenericParameter() [all …]
|
H A D | SubcomponentValidationTest.java | 39 private final CompilerMode compilerMode; field in SubcomponentValidationTest 41 public SubcomponentValidationTest(CompilerMode compilerMode) { in SubcomponentValidationTest() argument 42 this.compilerMode = compilerMode; in SubcomponentValidationTest() 91 .withProcessingOptions(compilerMode.processorOptions()) in factoryMethod_missingModulesWithParameters() 160 .withProcessingOptions(compilerMode.processorOptions()) in factoryMethod_grandchild() 194 .withProcessingOptions(compilerMode.processorOptions()) in factoryMethod_nonModuleParameter() 234 .withProcessingOptions(compilerMode.processorOptions()) in factoryMethod_duplicateParameter() 274 .withProcessingOptions(compilerMode.processorOptions()) in factoryMethod_superflouousModule() 322 .withProcessingOptions(compilerMode.processorOptions()) in missingBinding() 344 .withProcessingOptions(compilerMode.processorOptions()) in subcomponentOnConcreteType() [all …]
|
H A D | AssistedInjectErrorsTest.java | 34 private final CompilerMode compilerMode; field in AssistedInjectErrorsTest 36 public AssistedInjectErrorsTest(CompilerMode compilerMode) { in AssistedInjectErrorsTest() argument 37 this.compilerMode = compilerMode; in AssistedInjectErrorsTest() 56 .withProcessingOptions(compilerMode.processorOptions()) in testAssistedInjectWithDuplicateTypesFails() 84 .withProcessingOptions(compilerMode.processorOptions()) in testAssistedInjectWithDuplicateTypesEmptyQualifierFails() 112 .withProcessingOptions(compilerMode.processorOptions()) in testAssistedInjectWithDuplicateQualifiedTypesFails() 141 .withProcessingOptions(compilerMode.processorOptions()) in testAssistedInjectWithDuplicateGenericTypesFails() 169 .withProcessingOptions(compilerMode.processorOptions()) in testAssistedInjectWithDuplicateParameterizedTypesFails() 197 .withProcessingOptions(compilerMode.processorOptions()) in testAssistedInjectWithUniqueParameterizedTypesPasses() 218 .withProcessingOptions(compilerMode.processorOptions()) in testAssistedInjectWithUniqueGenericTypesPasses() [all …]
|
H A D | ProductionGraphValidationTest.java | 36 private final CompilerMode compilerMode; field in ProductionGraphValidationTest 38 public ProductionGraphValidationTest(CompilerMode compilerMode) { in ProductionGraphValidationTest() argument 39 this.compilerMode = compilerMode; in ProductionGraphValidationTest() 100 .withProcessingOptions(compilerMode.processorOptions()) in componentWithUnprovidedInput() 131 .withProcessingOptions(compilerMode.processorOptions()) in componentProductionWithNoDependencyChain() 180 .withProcessingOptions(compilerMode.processorOptions()) in provisionDependsOnProduction() 193 .putAll(compilerMode.processorOptions()) in provisionDependsOnProduction() 234 .withProcessingOptions(compilerMode.processorOptions()) in provisionEntryPointDependsOnProduction() 298 .withProcessingOptions(compilerMode.processorOptions()) in providingMultibindingWithProductions() 352 .withProcessingOptions(compilerMode.processorOptions()) in monitoringDependsOnUnboundType() [all …]
|
H A D | ProductionComponentProcessorTest.java | 39 private final CompilerMode compilerMode; field in ProductionComponentProcessorTest 41 public ProductionComponentProcessorTest(CompilerMode compilerMode) { in ProductionComponentProcessorTest() argument 42 this.compilerMode = compilerMode; in ProductionComponentProcessorTest() 55 .withProcessingOptions(compilerMode.processorOptions()) in componentOnConcreteClass() 76 .withProcessingOptions(compilerMode.processorOptions()) in componentOnEnum() 95 .withProcessingOptions(compilerMode.processorOptions()) in componentOnAnnotation() 114 .withProcessingOptions(compilerMode.processorOptions()) in nonModuleModule() 178 .withProcessingOptions(compilerMode.processorOptions()) in dependsOnProductionExecutor() 191 .putAll(compilerMode.processorOptions()) in dependsOnProductionExecutor() 243 .putAll(compilerMode.processorOptions()) in dependsOnProductionSubcomponentWithPluginsVisitFullBindingGraphs() [all …]
|
H A D | DependencyCycleValidationTest.java | 40 private final CompilerMode compilerMode; field in DependencyCycleValidationTest 42 public DependencyCycleValidationTest(CompilerMode compilerMode) { in DependencyCycleValidationTest() argument 43 this.compilerMode = compilerMode; in DependencyCycleValidationTest() 84 .withProcessingOptions(compilerMode.processorOptions()) in cyclicDependency() 190 .withProcessingOptions(compilerMode.processorOptions()) in cyclicDependencyNotIncludingEntryPoint() 262 .withProcessingOptions(compilerMode.processorOptions()) in cyclicDependencyNotBrokenByMapBinding() 332 .withProcessingOptions(compilerMode.processorOptions()) in cyclicDependencyWithSetBinding() 397 .withProcessingOptions(compilerMode.processorOptions()) in falsePositiveCyclicDependencyIndirectionDetected() 490 .withProcessingOptions(compilerMode.processorOptions()) in cyclicDependencyInSubcomponents() 581 .withProcessingOptions(compilerMode.processorOptions()) in cyclicDependencyInSubcomponentsWithChildren() [all …]
|
H A D | ComponentBuilderTest.java | 43 private final CompilerMode compilerMode; field in ComponentBuilderTest 45 public ComponentBuilderTest(CompilerMode compilerMode) { in ComponentBuilderTest() argument 46 this.compilerMode = compilerMode; in ComponentBuilderTest() 86 .withProcessingOptions(compilerMode.processorOptions()) in testUsesBuildAndSetterNames() 115 .withProcessingOptions(compilerMode.processorOptions()) in testSetterMethodWithMoreThanOneArgFails() 152 .withProcessingOptions(compilerMode.processorOptions()) in testInheritedSetterMethodWithMoreThanOneArgFails() 187 .withProcessingOptions(compilerMode.processorOptions()) in testSetterReturningNonVoidOrBuilderFails() 220 .withProcessingOptions(compilerMode.processorOptions()) in testInheritedSetterReturningNonVoidOrBuilderFails() 254 .withProcessingOptions(compilerMode.processorOptions()) in testGenericsOnSetterMethodFails() 287 .withProcessingOptions(compilerMode.processorOptions()) in testGenericsOnInheritedSetterMethodFails() [all …]
|
H A D | DelegateRequestRepresentationTest.java | 38 private final CompilerMode compilerMode; field in DelegateRequestRepresentationTest 40 public DelegateRequestRepresentationTest(CompilerMode compilerMode) { in DelegateRequestRepresentationTest() argument 41 this.compilerMode = compilerMode; in DelegateRequestRepresentationTest() 137 .withProcessingOptions(compilerMode.processorOptions()) in toDoubleCheck() 170 .withProcessingOptions(compilerMode.processorOptions()) in toSingleCheck() 202 .withProcessingOptions(compilerMode.processorOptions()) in toUnscoped() 258 .withProcessingOptions(compilerMode.processorOptions()) in castNeeded_rawTypes_Provider_get() 323 .withProcessingOptions(compilerMode.processorOptions()) in noCast_rawTypes_Provider_get_toInaccessibleType() 373 .withProcessingOptions(compilerMode.processorOptions()) in castedToRawType() 419 .withProcessingOptions(compilerMode.processorOptions()) in doubleBinds() [all …]
|
H A D | BindsInstanceValidationTest.java | 34 private final CompilerMode compilerMode; field in BindsInstanceValidationTest 36 public BindsInstanceValidationTest(CompilerMode compilerMode) { in BindsInstanceValidationTest() argument 37 this.compilerMode = compilerMode; in BindsInstanceValidationTest() 55 .withProcessingOptions(compilerMode.processorOptions()) in bindsInstanceInModule() 79 .withProcessingOptions(compilerMode.processorOptions()) in bindsInstanceInComponent() 103 .withProcessingOptions(compilerMode.processorOptions()) in bindsInstanceNotAbstract() 126 .withProcessingOptions(compilerMode.processorOptions()) in bindsInstanceNoParameters() 150 .withProcessingOptions(compilerMode.processorOptions()) in bindsInstanceManyParameters() 177 .withProcessingOptions(compilerMode.processorOptions()) in bindsInstanceFrameworkType()
|
H A D | ComponentHierarchyValidationTest.java | 36 private final CompilerMode compilerMode; field in ComponentHierarchyValidationTest 38 public ComponentHierarchyValidationTest(CompilerMode compilerMode) { in ComponentHierarchyValidationTest() argument 39 this.compilerMode = compilerMode; in ComponentHierarchyValidationTest() 70 .withProcessingOptions(compilerMode.processorOptions()) in singletonSubcomponent() 85 .putAll(compilerMode.processorOptions()) in singletonSubcomponent() 143 .withProcessingOptions(compilerMode.processorOptions()) in productionComponents_productionScopeImplicitOnBoth() 179 .withProcessingOptions(compilerMode.processorOptions()) in producerModuleRepeated() 235 .withProcessingOptions(compilerMode.processorOptions()) in factoryMethodForSubcomponentWithBuilder_isNotAllowed() 307 .withProcessingOptions(compilerMode.processorOptions()) in repeatedModulesWithScopes() 375 .withProcessingOptions(compilerMode.processorOptions()) in repeatedModulesWithReusableScope()
|
H A D | SubcomponentBuilderValidationTest.java | 43 private final CompilerMode compilerMode; field in SubcomponentBuilderValidationTest 45 public SubcomponentBuilderValidationTest(CompilerMode compilerMode) { in SubcomponentBuilderValidationTest() argument 46 this.compilerMode = compilerMode; in SubcomponentBuilderValidationTest() 70 .withProcessingOptions(compilerMode.processorOptions()) in testMoreThanOneArgFails() 108 .withProcessingOptions(compilerMode.processorOptions()) in testInheritedMoreThanOneArgFails() 136 .withProcessingOptions(compilerMode.processorOptions()) in testSetterReturningNonVoidOrBuilderFails() 166 .withProcessingOptions(compilerMode.processorOptions()) in testInheritedSetterReturningNonVoidOrBuilderFails() 197 .withProcessingOptions(compilerMode.processorOptions()) in testGenericsOnSetterMethodFails() 227 .withProcessingOptions(compilerMode.processorOptions()) in testGenericsOnInheritedSetterMethodFails()
|
H A D | SwitchingProviderTest.java | 38 private final CompilerMode compilerMode; field in SwitchingProviderTest 40 public SwitchingProviderTest(CompilerMode compilerMode) { in SwitchingProviderTest() argument 41 this.compilerMode = compilerMode; in SwitchingProviderTest() 78 .withProcessingOptions(compilerMode.processorOptions()) in switchingProviderTest() 123 .withProcessingOptions(compilerMode.processorOptions()) in unscopedBinds() 170 .withProcessingOptions(compilerMode.processorOptions()) in scopedBinds() 212 .withProcessingOptions(compilerMode.processorOptions()) in emptyMultibindings_avoidSwitchProviders() 244 .withProcessingOptions(compilerMode.processorOptions()) in memberInjectors() 299 .withProcessingOptions(compilerMode.processorOptions()) in optionals()
|
H A D | AssistedFactoryTest.java | 38 private final CompilerMode compilerMode; field in AssistedFactoryTest 40 public AssistedFactoryTest(CompilerMode compilerMode) { in AssistedFactoryTest() argument 41 this.compilerMode = compilerMode; in AssistedFactoryTest() 95 .withProcessingOptions(compilerMode.processorOptions()) in testAssistedFactory() 154 .withProcessingOptions(compilerMode.processorOptions()) in testAssistedFactoryCycle() 214 .withProcessingOptions(compilerMode.processorOptions()) in assistedParamConflictsWithComponentFieldName_successfulyDeduped() 274 .withProcessingOptions(compilerMode.processorOptions()) in testFactoryGeneratorDuplicatedParamNames() 322 .withProcessingOptions(compilerMode.processorOptions()) in testParameterizedAssistParam() 428 .withProcessingOptions(compilerMode.processorOptions()) in testMultipleAssistedFactoryInDifferentComponents()
|
H A D | ConflictingEntryPointsTest.java | 34 private final CompilerMode compilerMode; field in ConflictingEntryPointsTest 36 public ConflictingEntryPointsTest(CompilerMode compilerMode) { in ConflictingEntryPointsTest() argument 37 this.compilerMode = compilerMode; in ConflictingEntryPointsTest() 77 .withProcessingOptions(compilerMode.processorOptions()) in covariantType() 129 .withProcessingOptions(compilerMode.processorOptions()) in covariantTypeFromGenericSupertypes() 184 .withProcessingOptions(compilerMode.processorOptions()) in differentQualifier() 235 .withProcessingOptions(compilerMode.processorOptions()) in sameKey() 280 .withProcessingOptions(compilerMode.processorOptions()) in sameQualifiedKey()
|
H A D | BindsMissingDelegateValidationTest.java | 38 private final CompilerMode compilerMode; field in BindsMissingDelegateValidationTest 40 public BindsMissingDelegateValidationTest(CompilerMode compilerMode) { in BindsMissingDelegateValidationTest() argument 41 this.compilerMode = compilerMode; in BindsMissingDelegateValidationTest() 68 .withProcessingOptions(compilerMode.processorOptions()) in bindsMissingDelegate() 104 .withProcessingOptions(compilerMode.processorOptions()) in bindsMissingDelegate_duplicateBinding() 160 .withProcessingOptions(compilerMode.processorOptions()) in bindsMissingDelegate_setBinding() 198 .withProcessingOptions(compilerMode.processorOptions()) in bindsMissingDelegate_mapBinding() 241 .withProcessingOptions(compilerMode.processorOptions()) in bindsMissingDelegate_mapBinding_sameKey()
|
H A D | ComponentRequirementFieldTest.java | 38 private final CompilerMode compilerMode; field in ComponentRequirementFieldTest 40 public ComponentRequirementFieldTest(CompilerMode compilerMode) { in ComponentRequirementFieldTest() argument 41 this.compilerMode = compilerMode; in ComponentRequirementFieldTest() 68 .withProcessingOptions(compilerMode.processorOptions()) in bindsInstance() 116 .withProcessingOptions(compilerMode.processorOptions()) in instanceModuleMethod() 166 .withProcessingOptions(compilerMode.processorOptions()) in componentInstances() 238 .withProcessingOptions(compilerMode.processorOptions()) in componentRequirementNeededInFactoryCreationOfSubcomponent()
|
H A D | MapRequestRepresentationWithGuavaTest.java | 38 private final CompilerMode compilerMode; field in MapRequestRepresentationWithGuavaTest 40 public MapRequestRepresentationWithGuavaTest(CompilerMode compilerMode) { in MapRequestRepresentationWithGuavaTest() argument 41 this.compilerMode = compilerMode; in MapRequestRepresentationWithGuavaTest() 122 .withProcessingOptions(compilerMode.processorOptions()) in mapBindings() 177 .withProcessingOptions(compilerMode.processorOptions()) in inaccessible() 228 .withProcessingOptions(compilerMode.processorOptions()) in subcomponentOmitsInheritedBindings() 266 .withProcessingOptions(compilerMode.processorOptions()) in productionComponents()
|
/aosp_15_r20/external/dagger2/javatests/dagger/internal/codegen/bindinggraphvalidation/ |
H A D | NullableBindingValidationTest.java | 38 private final CompilerMode compilerMode; field in NullableBindingValidationTest 40 public NullableBindingValidationTest(CompilerMode compilerMode) { in NullableBindingValidationTest() argument 41 this.compilerMode = compilerMode; in NullableBindingValidationTest() 86 .withProcessingOptions(compilerMode.processorOptions()) in nullCheckForConstructorParameters() 100 .putAll(compilerMode.processorOptions()) in nullCheckForConstructorParameters() 142 .withProcessingOptions(compilerMode.processorOptions()) in nullCheckForMembersInjectParam() 156 .putAll(compilerMode.processorOptions()) in nullCheckForMembersInjectParam() 198 .withProcessingOptions(compilerMode.processorOptions()) in nullCheckForVariable() 212 .putAll(compilerMode.processorOptions()) in nullCheckForVariable() 243 .withProcessingOptions(compilerMode.processorOptions()) in nullCheckForComponentReturn() [all …]
|
H A D | NullableBindingValidationKotlinTest.java | 38 private final CompilerMode compilerMode; field in NullableBindingValidationKotlinTest 40 public NullableBindingValidationKotlinTest(CompilerMode compilerMode) { in NullableBindingValidationKotlinTest() argument 41 this.compilerMode = compilerMode; in NullableBindingValidationKotlinTest() 78 .withProcessingOptions(compilerMode.processorOptions()) in nullCheckForConstructorParameters() 92 .putAll(compilerMode.processorOptions()) in nullCheckForConstructorParameters() 134 .withProcessingOptions(compilerMode.processorOptions()) in nullCheckForMembersInjectParam() 148 .putAll(compilerMode.processorOptions()) in nullCheckForMembersInjectParam() 190 .withProcessingOptions(compilerMode.processorOptions()) in nullCheckForVariable() 204 .putAll(compilerMode.processorOptions()) in nullCheckForVariable() 235 .withProcessingOptions(compilerMode.processorOptions()) in nullCheckForComponentReturn() [all …]
|
H A D | SetMultibindingValidationTest.java | 35 private final CompilerMode compilerMode; field in SetMultibindingValidationTest 37 public SetMultibindingValidationTest(CompilerMode compilerMode) { in SetMultibindingValidationTest() argument 38 this.compilerMode = compilerMode; in SetMultibindingValidationTest() 88 .withProcessingOptions(compilerMode.processorOptions()) in testMultipleSetBindingsToSameFoo() 132 .withProcessingOptions(compilerMode.processorOptions()) in testSetBindingsToDuplicateBinding() 169 .withProcessingOptions(compilerMode.processorOptions()) in testSetBindingsToMissingBinding() 208 .withProcessingOptions(compilerMode.processorOptions()) in testMultipleSetBindingsToSameFooThroughMultipleBinds() 257 .withProcessingOptions(compilerMode.processorOptions()) in testMultipleSetBindingsViaElementsIntoSet() 321 .withProcessingOptions(compilerMode.processorOptions()) in testMultipleSetBindingsToSameFooSubcomponents() 414 .withProcessingOptions(compilerMode.processorOptions()) in testMultipleSetBindingsToSameKeyButDifferentBindings()
|
/aosp_15_r20/external/dagger2/java/dagger/internal/codegen/writing/ |
H A D | FrameworkInstanceKind.java | 30 public static FrameworkInstanceKind from(ContributionBinding binding, CompilerMode compilerMode) { in from() argument 31 if (usesSwitchingProvider(binding, compilerMode)) { in from() 32 if (compilerMode.isFastInit()) { in from() 36 "Compiler mode " + compilerMode + " cannot use Switching Provider."); in from() 38 } else if (usesStaticFactoryCreation(binding, compilerMode)) { in from() 46 ContributionBinding binding, CompilerMode compilerMode) { in usesSwitchingProvider() argument 47 if (!compilerMode.isFastInit()) { in usesSwitchingProvider() 80 ContributionBinding binding, CompilerMode compilerMode) { in usesStaticFactoryCreation() argument 93 return !compilerMode.isFastInit() in usesStaticFactoryCreation() 96 return !compilerMode.isFastInit(); in usesStaticFactoryCreation()
|